aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2015-12-16 19:26:49 -0500
committerEric Anholt <eric@anholt.net>2016-02-02 23:02:45 -0500
commit5ec6f2cd8ec4bcd38ba199ea8711a5ec906d85e7 (patch)
tree5dda3d107523789a40a049e87c80dded34e20f8f
parent7a1298e339249f25f4ef97fed332c70e1d1507e4 (diff)
ARM: bcm2835: Add the Raspberry Pi power domain driver to the DT.
This connects the USB driver to the USB power domain, so that USB can actually be turned on at boot if the bootloader didn't do it for us. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Kevin Hilman <khilman@linaro.org>
-rw-r--r--arch/arm/boot/dts/bcm2835-rpi.dtsi12
-rw-r--r--arch/arm/boot/dts/bcm283x.dtsi2
2 files changed, 13 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi
index a584a93f631d..76bdbcafab18 100644
--- a/arch/arm/boot/dts/bcm2835-rpi.dtsi
+++ b/arch/arm/boot/dts/bcm2835-rpi.dtsi
@@ -1,3 +1,5 @@
1#include <dt-bindings/power/raspberrypi-power.h>
2
1/ { 3/ {
2 memory { 4 memory {
3 reg = <0 0x10000000>; 5 reg = <0 0x10000000>;
@@ -18,6 +20,12 @@
18 compatible = "raspberrypi,bcm2835-firmware"; 20 compatible = "raspberrypi,bcm2835-firmware";
19 mboxes = <&mailbox>; 21 mboxes = <&mailbox>;
20 }; 22 };
23
24 power: power {
25 compatible = "raspberrypi,bcm2835-power";
26 firmware = <&firmware>;
27 #power-domain-cells = <1>;
28 };
21 }; 29 };
22}; 30};
23 31
@@ -62,3 +70,7 @@
62&pwm { 70&pwm {
63 status = "okay"; 71 status = "okay";
64}; 72};
73
74&usb {
75 power-domains = <&power RPI_POWER_DOMAIN_USB>;
76};
diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi
index c003f2d77de5..05ff5ce91c95 100644
--- a/arch/arm/boot/dts/bcm283x.dtsi
+++ b/arch/arm/boot/dts/bcm283x.dtsi
@@ -218,7 +218,7 @@
218 status = "disabled"; 218 status = "disabled";
219 }; 219 };
220 220
221 usb@7e980000 { 221 usb: usb@7e980000 {
222 compatible = "brcm,bcm2835-usb"; 222 compatible = "brcm,bcm2835-usb";
223 reg = <0x7e980000 0x10000>; 223 reg = <0x7e980000 0x10000>;
224 interrupts = <1 9>; 224 interrupts = <1 9>;