From 1cf42779a06c6b4241c10d3d47e413c068daaa6f Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Mon, 19 Mar 2018 09:43:45 +0000 Subject: rpi3: add the gpio expander for the 3+ too --- bcm2837-rpi-initial-support-for-the-3.patch | 52 +++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/bcm2837-rpi-initial-support-for-the-3.patch b/bcm2837-rpi-initial-support-for-the-3.patch index df3414547..90ba8b645 100644 --- a/bcm2837-rpi-initial-support-for-the-3.patch +++ b/bcm2837-rpi-initial-support-for-the-3.patch @@ -160,4 +160,56 @@ index 000000000000..46ad2023cccf +#include "arm/bcm2837-rpi-3-b-plus.dts" -- 2.16.2 +From patchwork Tue Feb 20 12:19:35 2018 +Content-Type: text/plain; charset="utf-8" +MIME-Version: 1.0 +Content-Transfer-Encoding: 7bit +Subject: [v5,5/5] ARM: dts: bcm2837-rpi-3-b: add GPIO expander +From: Baruch Siach +X-Patchwork-Id: 10229995 +Message-Id: +To: Linus Walleij , + Dave Stevenson , + Eric Anholt , Stefan Wahren +Cc: devicetree@vger.kernel.org, Baruch Siach , + linux-gpio@vger.kernel.org, Michael Zoran , + Rob Herring , linux-rpi-kernel@lists.infradead.org, + Frank Rowand , linux-arm-kernel@lists.infradead.org +Date: Tue, 20 Feb 2018 14:19:35 +0200 + +Add a description of the RPi3 GPIO expander that the VC4 firmware controls. + +Signed-off-by: Peter Robinson +--- + arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts | 17 +++++++++++++++++ + 1 file changed, 17 insertions(+) + +diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts b/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts +index 3e4ed7c5b0b3..0b31d995a066 100644 +--- a/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts ++++ b/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts +@@ -25,6 +25,23 @@ + }; + }; + ++&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"; -- cgit