pwm: pwm-mxs: encode soc name in compatible string
authorShawn Guo <shawn.guo@linaro.org>
Tue, 26 Jun 2012 08:58:08 +0000 (16:58 +0800)
committerThierry Reding <thierry.reding@avionic-design.de>
Mon, 23 Jul 2012 11:23:53 +0000 (13:23 +0200)
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: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Documentation/devicetree/bindings/pwm/mxs-pwm.txt
drivers/pwm/pwm-mxs.c

index 48ead0db178cb9cef260e8749dfc9199d6c5d682..b16f4a57d1116756b750a9f5523e1b1c19352ba2 100644 (file)
@@ -1,7 +1,7 @@
 Freescale MXS PWM controller
 
 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
 - #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.
@@ -10,7 +10,7 @@ Required properties:
 Example:
 
 pwm: pwm@80064000 {
-       compatible = "fsl,imx28-pwm", "fsl,mxs-pwm";
+       compatible = "fsl,imx28-pwm", "fsl,imx23-pwm";
        reg = <0x80064000 2000>;
        #pwm-cells = <2>;
        fsl,pwm-number = <8>;
index 9602708372b8123a81d7aa289eab9613fd532cbb..d9a38050a50238b1812620c770e368f3d46b2a08 100644 (file)
@@ -186,7 +186,7 @@ static int __devexit mxs_pwm_remove(struct platform_device *pdev)
 }
 
 static struct of_device_id mxs_pwm_dt_ids[] = {
-       { .compatible = "fsl,mxs-pwm", },
+       { .compatible = "fsl,imx23-pwm", },
        { /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, mxs_pwm_dt_ids);
This page took 0.02669 seconds and 5 git commands to generate.