clk: bcm2835: Add PWM clock support to the device tree
Subsystems (3)
PATCH 1/1 clk: bcm2835: Add PWM clock support to the device tree
---
With the upcomming PWM clock patch (see https://lkml.org/lkml/2015/12/6/74)
PWM can now be used and can be added in the RPI devicetree.
arch/arm/boot/dts/bcm2835-rpi.dtsi | 4 ++++ arch/arm/boot/dts/bcm2835.dtsi | 10 ++++++++++ 2 files changed, 14 insertions(+)
arch/arm/boot/dts/bcm2835-rpi.dtsi +4 -0
@@ -60,3 +60,7 @@ status = "okay"; bus-width = <4>; }; + +&pwm { + status = "okay"; +};
arch/arm/boot/dts/bcm2835.dtsi +10 -0
@@ -149,6 +149,16 @@ status = "disabled"; }; + pwm: pwm@7e20c000 { + compatible = "brcm,bcm2835-pwm"; + reg = <0x7e20c000 0x28>; + clocks = <&clocks BCM2835_CLOCK_PWM>; + assigned-clocks = <&clocks BCM2835_CLOCK_PWM>; + assigned-clock-rates = <10000000>; + #pwm-cells = <2>; + status = "disabled"; + }; + sdhci: sdhci@7e300000 { compatible = "brcm,bcm2835-sdhci"; reg = <0x7e300000 0x100>;
Signature · 6 lines
2.0.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines · Remi Pommarel
Signed-off-by Remi Pommarel <[email protected]>---
With the upcomming PWM clock patch (see https://lkml.org/lkml/2015/12/6/74)
PWM can now be used and can be added in the RPI devicetree.
Looks good to me. I'll try to keep a watch on the clock tree and include this (possibly moved to bcm283x.dtsi depending on if 2836 lands first) when I have something I can pull from for the BCM2835_CLOCK_PWM definition.
Quoted 5 lines · Eric Anholt
Quoted 3 lines · Remi Pommarel
Signed-off-by Remi Pommarel <[email protected]>---
Quoted 7 lines
Quoted 2 lines
With the upcomming PWM clock patch (see https://lkml.org/lkml/2015/12/6/74)
PWM can now be used and can be added in the RPI devicetree.Looks good to me. I'll try to keep a watch on the clock tree and include this (possibly moved to
bcm283x.dtsidepending on if 2836 lands first) when I have something I can pull from for theBCM2835_CLOCK_PWMdefinition.
Did the rebase and merged to bcm2835-dt-next.