ARM: dts: bcm2837-rpi-3-b: add GPIO expander
authorBaruch Siach <baruch@tkos.co.il>
Tue, 20 Feb 2018 12:19:35 +0000 (14:19 +0200)
committerEric Anholt <eric@anholt.net>
Thu, 22 Feb 2018 19:33:02 +0000 (11:33 -0800)
Add a description of the RPi3 GPIO expander that the VC4 firmware controls.

Acked-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Eric Anholt <eric@anholt.net>
arch/arm/boot/dts/bcm2837-rpi-3-b.dts

index 3e4ed7c5b0b3b952c5af8fa2b91d0fdf4190f557..0b31d995a066cbfb0a4aa86fd1e31022d2f769ef 100644 (file)
        };
 };
 
+&firmware {
+       expgpio: gpio {
+               compatible = "raspberrypi,firmware-gpio";
+               gpio-controller;
+               #gpio-cells = <2>;
+               gpio-line-names = "BT_ON",
+                                 "WL_ON",
+                                 "STATUS_LED",
+                                 "LAN_RUN",
+                                 "HPD_N",
+                                 "CAM_GPIO0",
+                                 "CAM_GPIO1",
+                                 "PWR_LOW_N";
+               status = "okay";
+       };
+};
+
 /* uart0 communicates with the BT module */
 &uart0 {
        pinctrl-names = "default";