[PATCH v2 2/5] ARM: dts: pxa: add clocks
Add clocks to the IPs already described in the pxa device-tree files. There are more clocks in the clock tree than IPs described in the current pxa device-tree. This patch ensures that : - the current description is correct - the clocks are actually claimed, so that clock framework doesn't disable them automatically (unused clocks shutdown) Signed-off-by: Robert Jarzmik --- arch/arm/boot/dts/pxa27x.dtsi | 36 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/pxa27x.dtsi b/arch/arm/boot/dts/pxa27x.dtsi index 80fc5d7..7cbf36f 100644 --- a/arch/arm/boot/dts/pxa27x.dtsi +++ b/arch/arm/boot/dts/pxa27x.dtsi @@ -1,6 +1,6 @@ /* The pxa3xx skeleton simply augments the 2xx version */ #include "pxa2xx.dtsi" -#include "dt-bindings/clock/pxa2xx-clock.h" +#include "dt-bindings/clock/pxa-clock.h" / { model = "Marvell PXA27x familiy SoC"; @@ -12,30 +12,58 @@ marvell,intc-nr-irqs = <34>; }; + gpio: gpio@40e0 { + compatible = "intel,pxa27x-gpio"; + clocks = <_clks CLK_NONE>; + }; + + ffuart: uart@4010 { + clocks = <_clks CLK_FFUART>; + }; + + btuart: uart@4020 { + clocks = <_clks CLK_BTUART>; + }; + + stuart: uart@4070 { + clocks = <_clks CLK_STUART>; + }; + pwm0: pwm@40b0 { compatible = "marvell,pxa270-pwm", "marvell,pxa250-pwm"; reg = <0x40b0 0x10>; #pwm-cells = <1>; + clocks = <_clks CLK_PWM0>; }; pwm1: pwm@40b00010 { compatible = "marvell,pxa270-pwm", "marvell,pxa250-pwm"; reg = <0x40b00010 0x10>; #pwm-cells = <1>; + clocks = <_clks CLK_PWM1>; }; pwm2: pwm@40c0 { compatible = "marvell,pxa270-pwm", "marvell,pxa250-pwm"; reg = <0x40c0 0x10>; #pwm-cells = <1>; + clocks = <_clks CLK_PWM0>; }; pwm3: pwm@40c00010 { compatible = "marvell,pxa270-pwm", "marvell,pxa250-pwm"; reg = <0x40c00010 0x10>; #pwm-cells = <1>; + clocks = <_clks CLK_PWM1>; + }; + + pwri2c: i2c@40f000180 { + clocks = <_clks CLK_PWRI2C>; + }; + + pxai2c1: i2c@40301680 { + clocks = <_clks CLK_I2C>; }; - }; clocks { /* @@ -47,10 +75,10 @@ ranges; pxa2xx_clks: pxa2xx_clks@4134 { - compatible = "marvell,pxa-clocks"; + compatible = "marvell,pxa270-clocks"; #clock-cells = <1>; status = "okay"; }; }; - + }; }; -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH v2 2/5] ARM: dts: pxa: add clocks
Add clocks to the IPs already described in the pxa device-tree files. There are more clocks in the clock tree than IPs described in the current pxa device-tree. This patch ensures that : - the current description is correct - the clocks are actually claimed, so that clock framework doesn't disable them automatically (unused clocks shutdown) Signed-off-by: Robert Jarzmik robert.jarz...@free.fr --- arch/arm/boot/dts/pxa27x.dtsi | 36 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/pxa27x.dtsi b/arch/arm/boot/dts/pxa27x.dtsi index 80fc5d7..7cbf36f 100644 --- a/arch/arm/boot/dts/pxa27x.dtsi +++ b/arch/arm/boot/dts/pxa27x.dtsi @@ -1,6 +1,6 @@ /* The pxa3xx skeleton simply augments the 2xx version */ #include pxa2xx.dtsi -#include dt-bindings/clock/pxa2xx-clock.h +#include dt-bindings/clock/pxa-clock.h / { model = Marvell PXA27x familiy SoC; @@ -12,30 +12,58 @@ marvell,intc-nr-irqs = 34; }; + gpio: gpio@40e0 { + compatible = intel,pxa27x-gpio; + clocks = pxa2xx_clks CLK_NONE; + }; + + ffuart: uart@4010 { + clocks = pxa2xx_clks CLK_FFUART; + }; + + btuart: uart@4020 { + clocks = pxa2xx_clks CLK_BTUART; + }; + + stuart: uart@4070 { + clocks = pxa2xx_clks CLK_STUART; + }; + pwm0: pwm@40b0 { compatible = marvell,pxa270-pwm, marvell,pxa250-pwm; reg = 0x40b0 0x10; #pwm-cells = 1; + clocks = pxa2xx_clks CLK_PWM0; }; pwm1: pwm@40b00010 { compatible = marvell,pxa270-pwm, marvell,pxa250-pwm; reg = 0x40b00010 0x10; #pwm-cells = 1; + clocks = pxa2xx_clks CLK_PWM1; }; pwm2: pwm@40c0 { compatible = marvell,pxa270-pwm, marvell,pxa250-pwm; reg = 0x40c0 0x10; #pwm-cells = 1; + clocks = pxa2xx_clks CLK_PWM0; }; pwm3: pwm@40c00010 { compatible = marvell,pxa270-pwm, marvell,pxa250-pwm; reg = 0x40c00010 0x10; #pwm-cells = 1; + clocks = pxa2xx_clks CLK_PWM1; + }; + + pwri2c: i2c@40f000180 { + clocks = pxa2xx_clks CLK_PWRI2C; + }; + + pxai2c1: i2c@40301680 { + clocks = pxa2xx_clks CLK_I2C; }; - }; clocks { /* @@ -47,10 +75,10 @@ ranges; pxa2xx_clks: pxa2xx_clks@4134 { - compatible = marvell,pxa-clocks; + compatible = marvell,pxa270-clocks; #clock-cells = 1; status = okay; }; }; - + }; }; -- 2.1.0 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/