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>
This commit is contained in:
Alexander Aring 2015-12-16 16:26:49 -08:00 committed by Eric Anholt
parent 7a1298e339
commit 5ec6f2cd8e
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,5 @@
#include <dt-bindings/power/raspberrypi-power.h>
/ {
memory {
reg = <0 0x10000000>;
@ -18,6 +20,12 @@ firmware: firmware {
compatible = "raspberrypi,bcm2835-firmware";
mboxes = <&mailbox>;
};
power: power {
compatible = "raspberrypi,bcm2835-power";
firmware = <&firmware>;
#power-domain-cells = <1>;
};
};
};
@ -62,3 +70,7 @@ &sdhci {
&pwm {
status = "okay";
};
&usb {
power-domains = <&power RPI_POWER_DOMAIN_USB>;
};

View File

@ -218,7 +218,7 @@ i2c2: i2c@7e805000 {
status = "disabled";
};
usb@7e980000 {
usb: usb@7e980000 {
compatible = "brcm,bcm2835-usb";
reg = <0x7e980000 0x10000>;
interrupts = <1 9>;