All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clk: bcm2835: Add PWM clock support to the device tree
@ 2015-12-21 20:12 Remi Pommarel
       [not found] ` <1450728779-2599-1-git-send-email-repk-lovNVp52yxIDGOk2Oe9MvA@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Remi Pommarel @ 2015-12-21 20:12 UTC (permalink / raw)
  To: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell,
	Stephen Warren, Eric Anholt
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Remi Pommarel

Signed-off-by: Remi Pommarel <repk-lovNVp52yxIDGOk2Oe9MvA@public.gmane.org>
---

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(+)

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..fe8d17c 100644
--- a/arch/arm/boot/dts/bcm2835.dtsi
+++ b/arch/arm/boot/dts/bcm2835.dtsi
@@ -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>;
-- 
2.0.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] clk: bcm2835: Add PWM clock support to the device tree
       [not found] ` <1450728779-2599-1-git-send-email-repk-lovNVp52yxIDGOk2Oe9MvA@public.gmane.org>
@ 2015-12-21 23:57   ` Eric Anholt
       [not found]     ` <87twnbe4o5.fsf-omZaPlIz5HhaEpDpdNBo/KxOck334EZe@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Anholt @ 2015-12-21 23:57 UTC (permalink / raw)
  To: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Stephen Warren
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Remi Pommarel

[-- Attachment #1: Type: text/plain, Size: 518 bytes --]

Remi Pommarel <repk-lovNVp52yxIDGOk2Oe9MvA@public.gmane.org> writes:

> Signed-off-by: Remi Pommarel <repk-lovNVp52yxIDGOk2Oe9MvA@public.gmane.org>
> ---
>
> 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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] clk: bcm2835: Add PWM clock support to the device tree
       [not found]     ` <87twnbe4o5.fsf-omZaPlIz5HhaEpDpdNBo/KxOck334EZe@public.gmane.org>
@ 2016-02-03  1:33       ` Eric Anholt
  0 siblings, 0 replies; 3+ messages in thread
From: Eric Anholt @ 2016-02-03  1:33 UTC (permalink / raw)
  To: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Stephen Warren
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Remi Pommarel

[-- Attachment #1: Type: text/plain, Size: 650 bytes --]

Eric Anholt <eric-WhKQ6XTQaPysTnJN9+BGXg@public.gmane.org> writes:

> Remi Pommarel <repk-lovNVp52yxIDGOk2Oe9MvA@public.gmane.org> writes:
>
>> Signed-off-by: Remi Pommarel <repk-lovNVp52yxIDGOk2Oe9MvA@public.gmane.org>
>> ---
>>
>> 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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-03  1:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-21 20:12 [PATCH] clk: bcm2835: Add PWM clock support to the device tree Remi Pommarel
     [not found] ` <1450728779-2599-1-git-send-email-repk-lovNVp52yxIDGOk2Oe9MvA@public.gmane.org>
2015-12-21 23:57   ` Eric Anholt
     [not found]     ` <87twnbe4o5.fsf-omZaPlIz5HhaEpDpdNBo/KxOck334EZe@public.gmane.org>
2016-02-03  1:33       ` Eric Anholt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.