Skip to content

Commit

Permalink
ARM: bcm2835: Add the Raspberry Pi power domain driver to the DT.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Eric Anholt <[email protected]>
Reviewed-by: Kevin Hilman <[email protected]>
  • Loading branch information
alexaring authored and anholt committed Feb 3, 2016
1 parent 7a1298e commit 5ec6f2c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions arch/arm/boot/dts/bcm2835-rpi.dtsi
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <dt-bindings/power/raspberrypi-power.h>

/ {
memory {
reg = <0 0x10000000>;
Expand All @@ -18,6 +20,12 @@
compatible = "raspberrypi,bcm2835-firmware";
mboxes = <&mailbox>;
};

power: power {
compatible = "raspberrypi,bcm2835-power";
firmware = <&firmware>;
#power-domain-cells = <1>;
};
};
};

Expand Down Expand Up @@ -62,3 +70,7 @@
&pwm {
status = "okay";
};

&usb {
power-domains = <&power RPI_POWER_DOMAIN_USB>;
};
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/bcm283x.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
status = "disabled";
};

usb@7e980000 {
usb: usb@7e980000 {
compatible = "brcm,bcm2835-usb";
reg = <0x7e980000 0x10000>;
interrupts = <1 9>;
Expand Down

0 comments on commit 5ec6f2c

Please sign in to comment.