Skip to contentSkip to conversation

clk: bcm2835: Add PWM clock support to the device tree

PATCH In review Remi Pommarel 2 participants 3 messages Dec 21, 2015 – Feb 3, 2016 2 messages not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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
index 3572f03..55801e0 100644
@@ -60,3 +60,7 @@
 	status = "okay";
 	bus-width = <4>;
 };
+
+&pwm {
+	status = "okay";
+};
arch/arm/boot/dts/bcm2835.dtsi +10 -0
index aef64de..fe8d17c 100644
@@ -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

A message that is not in the archive (sent off-list or not yet received): 1450728779-2599-1-git-send-email-repk-lovNVp52yxIDGOk2Oe9MvA@public.gmane.org

#2 lore raw
Quoted 5 lines · Remi Pommarel

---

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.

A message that is not in the archive (sent off-list or not yet received): 87twnbe4o5.fsf-omZaPlIz5HhaEpDpdNBo/[email protected]

#4 lore raw
Quoted 5 lines · Eric Anholt
Quoted 3 lines · Remi Pommarel

---

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.dtsi depending on if 2836 lands first) when I have something I can pull from for the BCM2835_CLOCK_PWM definition.

Did the rebase and merged to bcm2835-dt-next.