Commit 071407ee authored by Shawn Guo's avatar Shawn Guo Committed by Thierry Reding

pwm: pwm-mxs: encode soc name in compatible string

Encode soc name in the compatible string to know the specific version
hardware block.  This is the general approach adopted for most bindings.
Change mxs-pwm binding to use the approach.
Signed-off-by: default avatarShawn Guo <shawn.guo@linaro.org>
Signed-off-by: default avatarThierry Reding <thierry.reding@avionic-design.de>
parent 200efedd
Freescale MXS PWM controller Freescale MXS PWM controller
Required properties: Required properties:
- compatible: should be "fsl,mxs-pwm" - compatible: should be "fsl,imx23-pwm"
- reg: physical base address and length of the controller's registers - reg: physical base address and length of the controller's registers
- #pwm-cells: should be 2. The first cell specifies the per-chip index - #pwm-cells: should be 2. The first cell specifies the per-chip index
of the PWM to use and the second cell is the duty cycle in nanoseconds. of the PWM to use and the second cell is the duty cycle in nanoseconds.
...@@ -10,7 +10,7 @@ Required properties: ...@@ -10,7 +10,7 @@ Required properties:
Example: Example:
pwm: pwm@80064000 { pwm: pwm@80064000 {
compatible = "fsl,imx28-pwm", "fsl,mxs-pwm"; compatible = "fsl,imx28-pwm", "fsl,imx23-pwm";
reg = <0x80064000 2000>; reg = <0x80064000 2000>;
#pwm-cells = <2>; #pwm-cells = <2>;
fsl,pwm-number = <8>; fsl,pwm-number = <8>;
......
...@@ -186,7 +186,7 @@ static int __devexit mxs_pwm_remove(struct platform_device *pdev) ...@@ -186,7 +186,7 @@ static int __devexit mxs_pwm_remove(struct platform_device *pdev)
} }
static struct of_device_id mxs_pwm_dt_ids[] = { static struct of_device_id mxs_pwm_dt_ids[] = {
{ .compatible = "fsl,mxs-pwm", }, { .compatible = "fsl,imx23-pwm", },
{ /* sentinel */ } { /* sentinel */ }
}; };
MODULE_DEVICE_TABLE(of, mxs_pwm_dt_ids); MODULE_DEVICE_TABLE(of, mxs_pwm_dt_ids);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment