diff options
author | Stephen Warren <swarren@wwwdotorg.org> | 2013-12-27 03:43:10 +0100 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2014-01-02 21:08:03 +0100 |
commit | 5631e7f4e29b1ebf3d856614c0b5876463857da6 (patch) | |
tree | d7d2f785fd040dbe0ac233efdbf247b0c3c74e99 /arch/arm/boot/dts/bcm2835-rpi-b.dts | |
parent | Merge tag 'sunxi-dt-for-3.14' of https://github.com/mripard/linux into next/dt (diff) | |
download | linux-5631e7f4e29b1ebf3d856614c0b5876463857da6.tar.xz linux-5631e7f4e29b1ebf3d856614c0b5876463857da6.zip |
ARM: bcm2835: add USB controller to device tree
The BCM2835 SoC contains a DWC2 USB controller. Add this to the DT.
Set up the pin controller to fully enable the USB controller on the
Raspberry Pi. The GPIO setup works because the default output value for
GPIO 6 (LAN_RUN/n_reset) just happens to be 1, which enables the
USB/LAN chip.
Note that you'll need a U-Boot which enables power to the USB controller;
search for U-Boot patch "ARM: rpi_b: power on SDHCI and USB HW modules".
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/boot/dts/bcm2835-rpi-b.dts')
-rw-r--r-- | arch/arm/boot/dts/bcm2835-rpi-b.dts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/arm/boot/dts/bcm2835-rpi-b.dts b/arch/arm/boot/dts/bcm2835-rpi-b.dts index 6e9deb786a7d..2a3b1c1313a0 100644 --- a/arch/arm/boot/dts/bcm2835-rpi-b.dts +++ b/arch/arm/boot/dts/bcm2835-rpi-b.dts @@ -23,10 +23,15 @@ &gpio { pinctrl-names = "default"; - pinctrl-0 = <&alt0 &alt3>; + pinctrl-0 = <&gpioout &alt0 &alt3>; + + gpioout: gpioout { + brcm,pins = <6>; + brcm,function = <1>; /* GPIO out */ + }; alt0: alt0 { - brcm,pins = <0 1 2 3 4 5 6 7 8 9 10 11 14 15 40 45>; + brcm,pins = <0 1 2 3 4 5 7 8 9 10 11 14 15 40 45>; brcm,function = <4>; /* alt0 */ }; |