Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1284883

[PATCH v3 4/4] clk: bcm2835: Add PWM clock support to the device tree

From Remi Pommarel <repk@triplefau.lt>
Newsgroups linux.kernel
Subject [PATCH v3 4/4] clk: bcm2835: Add PWM clock support to the device tree
Date 2015-12-06 17:30 +0100
Message-ID <qCKmd-NF-5@gated-at.bofh.it> (permalink)
References <qCKmd-NF-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Signed-off-by: Remi Pommarel <repk@triplefau.lt>
---
 arch/arm/boot/dts/bcm2835-rpi.dtsi | 4 ++++
 arch/arm/boot/dts/bcm2835.dtsi     | 9 +++++++++
 2 files changed, 13 insertions(+)

diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi
index 3572f03..55801e0 100644
--- a/arch/arm/boot/dts/bcm2835-rpi.dtsi
+++ b/arch/arm/boot/dts/bcm2835-rpi.dtsi
@@ -60,3 +60,7 @@
 	status = "okay";
 	bus-width = <4>;
 };
+
+&pwm {
+	status = "okay";
+};
diff --git a/arch/arm/boot/dts/bcm2835.dtsi b/arch/arm/boot/dts/bcm2835.dtsi
index aef64de..641f7f4 100644
--- a/arch/arm/boot/dts/bcm2835.dtsi
+++ b/arch/arm/boot/dts/bcm2835.dtsi
@@ -149,6 +149,15 @@
 			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>;
+			status = "disabled";
+		};
+
 		sdhci: sdhci@7e300000 {
 			compatible = "brcm,bcm2835-sdhci";
 			reg = <0x7e300000 0x100>;
-- 
2.0.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH v3 4/4] clk: bcm2835: Add PWM clock support to the device tree Remi Pommarel <repk@triplefau.lt> - 2015-12-06 17:30 +0100
  Re: [PATCH v3 4/4] clk: bcm2835: Add PWM clock support to the device  tree Stefan Wahren <info@lategoodbye.de> - 2015-12-06 22:20 +0100
    Re: [PATCH v3 4/4] clk: bcm2835: Add PWM clock support to the device  tree Remi Pommarel <repk@triplefau.lt> - 2015-12-07 19:20 +0100
      Re: [PATCH v3 4/4] clk: bcm2835: Add PWM clock support to the device  tree Stefan Wahren <info@lategoodbye.de> - 2015-12-07 19:50 +0100
        Re: [PATCH v3 4/4] clk: bcm2835: Add PWM clock support to the device tree Eric Anholt <eric@anholt.net> - 2015-12-08 05:10 +0100

csiph-web