Message ID | 1439507142-2965-4-git-send-email-eric@anholt.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 08/13/2015 05:05 PM, Eric Anholt wrote: > Signed-off-by: Eric Anholt <eric@anholt.net> > Acked-by: Lee Jones <lee@kernel.org> A patch description might be nice, although admittedly the subject seems clear enough. > diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi > + firmware_clocks: firmware-clocks { > + compatible = "raspberrypi,bcm2835-firmware-clocks"; > + #clock-cells = <1>; > + raspberrypi,firmware = <&firmware>; > + }; No need to resend for this, but just a background note: DT node names usually contain a device type not a device identity, so "clocks" not "firmware-clocks" would be typical. This patch, Acked-by: Stephen Warren <swarren@wwwdotorg.org>
On Fri, 14 Aug 2015, Stephen Warren wrote: > On 08/13/2015 05:05 PM, Eric Anholt wrote: > > Signed-off-by: Eric Anholt <eric@anholt.net> > > Acked-by: Lee Jones <lee@kernel.org> > > A patch description might be nice, although admittedly the subject seems > clear enough. Agreed that the subject is clear enough on this occasion. > > diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi > > > + firmware_clocks: firmware-clocks { > > + compatible = "raspberrypi,bcm2835-firmware-clocks"; > > + #clock-cells = <1>; > > + raspberrypi,firmware = <&firmware>; > > + }; > > No need to resend for this, but just a background note: DT node names > usually contain a device type not a device identity, so "clocks" not > "firmware-clocks" would be typical. Please fix this up when you re-send the set. > This patch, > Acked-by: Stephen Warren <swarren@wwwdotorg.org>
diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi index ab5474e..5d370cb 100644 --- a/arch/arm/boot/dts/bcm2835-rpi.dtsi +++ b/arch/arm/boot/dts/bcm2835-rpi.dtsi @@ -1,3 +1,4 @@ +#include <dt-bindings/clk/raspberrypi.h> #include "bcm2835.dtsi" / { @@ -20,6 +21,12 @@ compatible = "raspberrypi,bcm2835-firmware"; mboxes = <&mailbox>; }; + + firmware_clocks: firmware-clocks { + compatible = "raspberrypi,bcm2835-firmware-clocks"; + #clock-cells = <1>; + raspberrypi,firmware = <&firmware>; + }; }; }; @@ -55,4 +62,15 @@ &sdhci { status = "okay"; bus-width = <4>; + clocks = <&firmware_clocks RPI_CLOCK_EMMC>; +}; + +&uart0 { + clocks = <&firmware_clocks RPI_CLOCK_UART0>, + <&firmware_clocks RPI_CLOCK_CORE>; + clock-names = "uartclk", "apb_pclk"; +}; + +&spi { + clocks = <&firmware_clocks RPI_CLOCK_CORE>; }; diff --git a/arch/arm/boot/dts/bcm2835.dtsi b/arch/arm/boot/dts/bcm2835.dtsi index 301c73f..5be2862 100644 --- a/arch/arm/boot/dts/bcm2835.dtsi +++ b/arch/arm/boot/dts/bcm2835.dtsi @@ -92,11 +92,10 @@ #interrupt-cells = <2>; }; - uart@7e201000 { + uart0: uart@7e201000 { compatible = "brcm,bcm2835-pl011", "arm,pl011", "arm,primecell"; reg = <0x7e201000 0x1000>; interrupts = <2 25>; - clock-frequency = <3000000>; arm,primecell-periphid = <0x00241011>; };