]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: bcm2835: Add the Raspberry Pi power domain driver to the DT.
authorAlexander Aring <alex.aring@gmail.com>
Thu, 17 Dec 2015 00:26:49 +0000 (16:26 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 3 Feb 2016 04:02:45 +0000 (20:02 -0800)
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>
arch/arm/boot/dts/bcm2835-rpi.dtsi
arch/arm/boot/dts/bcm283x.dtsi

index a584a93f631dc45bc76b6786a7f6d7d67efe405e..76bdbcafab18e8ea7c4e06decd315540aac7ef33 100644 (file)
@@ -1,3 +1,5 @@
+#include <dt-bindings/power/raspberrypi-power.h>
+
 / {
        memory {
                reg = <0 0x10000000>;
                        compatible = "raspberrypi,bcm2835-firmware";
                        mboxes = <&mailbox>;
                };
+
+               power: power {
+                       compatible = "raspberrypi,bcm2835-power";
+                       firmware = <&firmware>;
+                       #power-domain-cells = <1>;
+               };
        };
 };
 
@@ -62,3 +70,7 @@
 &pwm {
        status = "okay";
 };
+
+&usb {
+       power-domains = <&power RPI_POWER_DOMAIN_USB>;
+};
index c003f2d77de52e58c1076a34a67b7e4f438cbf95..05ff5ce91c957786794b68c7e0eae9b83c667545 100644 (file)
                        status = "disabled";
                };
 
-               usb@7e980000 {
+               usb: usb@7e980000 {
                        compatible = "brcm,bcm2835-usb";
                        reg = <0x7e980000 0x10000>;
                        interrupts = <1 9>;