From patchwork Sat Apr 21 11:28:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 10354079 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 48AF86019C for ; Sat, 21 Apr 2018 11:32:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 43A5928917 for ; Sat, 21 Apr 2018 11:32:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 37BA428909; Sat, 21 Apr 2018 11:32:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AE55528909 for ; Sat, 21 Apr 2018 11:32:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=8fLntrqUqCt2SrfUQ94ZXJ/jDiV9eDUelTvZf34wGbc=; b=tynnPizYPSkN+qPSt3cO/hNLmt Uo5TiTX9MIL+IKFpcegM6hQcCpSSOuYoR36J9wSPovnTSFghiGhYQVUVPpxCVV75QdFHPoWcZszGc LlkJnbkRgsopd0ZnrDawv5jeBhZuDbtS4CAq1hzjDY9PPG+Z98AZXf48zLbsVcMpdmWinjTYM47OA 1ok3mvMRq2usZs//jQeH03nmVM7kScRdG0By+0YG9+uZYpnpHgEa11l5Y16ICQOLdl7cwmXhcBKd1 dzv2aRCEwBRV6Y9Fdm1ioLWpe2GrT3wPfCCK9qDT8HOuMj7S9xOoZ4qBUiiDmRAUAuJX/KBckIiNO mM/aRZGg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f9qkX-0003hg-7l; Sat, 21 Apr 2018 11:32:13 +0000 Received: from mout.kundenserver.de ([212.227.126.135]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f9qi4-0001Ph-FT; Sat, 21 Apr 2018 11:29:45 +0000 Received: from localhost.localdomain ([95.90.209.130]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.167]) with ESMTPSA (Nemesis) id 0MEJOW-1fC2ZY0pxY-00FVun; Sat, 21 Apr 2018 13:29:16 +0200 From: Stefan Wahren To: Rob Herring , Mark Rutland , Eric Anholt , Catalin Marinas , Will Deacon Subject: [PATCH V2 2/9] ARM: dts: bcm2837: Add missing GPIOs of Expander Date: Sat, 21 Apr 2018 13:28:35 +0200 Message-Id: <1524310122-9439-3-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524310122-9439-1-git-send-email-stefan.wahren@i2se.com> References: <1524310122-9439-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K1:XtFFjkh3/OxO10JP+dZNZDf0/Hdo9wh3VDYUQrqkzts95A/pS00 RYNErTf9lK2dbxzkupBerxqIyumrdYQw9V1fSyZbVaX11hGuWqYFQXwzgd6fW4FhU7bxi3g fYucCSmtMCgft9pq2vv218xUIrNWOdL8Lwtxgyi0BGxyk0dObDzqly0DJO+2XJyfqQa8CTQ MArWoLH/x5GaWJQThgodw== X-UI-Out-Filterresults: notjunk:1; V01:K0:3gUfW6qCfws=:/BrX8UG/wptEPuETzg0N3C NbUeDk72A4Bxje0xp4VwN2Xlw8vaI4FKQDoGRtLc0ZH+5aDYoYJfPRPe0v9wwNDx+hzPv5cIc JFxqHz65JgTkJv/fOJxH5dBPLO+QXVSpWMDaoTvoYj5S0vi3CA/HN79vcoIAFXlb3HOpX+fnF NoioZ8kdfB0ARsg5DLK6J6LfJKIp400eM7i9JiUulEg87N3eWHgEyfL+FmcVNQuBT9hTuC69N 0ERme8nE3+nD6vfmd7cqUFEh2vY+gMG/MwIoSYspBwlC2FUIJY595gRyvGpZ9WNccgCAJKsB1 e2W7g2JQRHTiuSBHoiyRTD0nI8/zhOFcLr+qcyhoBHfDAZ/FCxG7RIT5az3vc5XhU/KuBc0pc 2EgT6GCWj2dE/RxnX15+twJkIC5mc07Wb3BklWIpfgZO/zOLQmKz2aZFMUVKibI2cG4TEB0ef aPp6y3ukp7886GMPAh9Z8QmXk10BjwoKC6pibxjLiptDDY0+xRMcNbZGUK3JVaVqBFTv51uDi ZYWqk8b2anBFdu5DVxM1dAKc2Tu8WIRUJidMMAdIODE2yb5CgY72GeEmMJtNzOkLHr2Q229qU 1erLyb0UyNxem+3Rt9VJio+CNgM7xzCWC/iy5XVBoHDAchLHQQdLXjLQsvfgZ/8TRsybZogaO OHDNaDI32E2pG7QtMnTeUKXdT15VyHp9O53cwDRjpE3zO4fmKib/hOGgdfkXxiaUCQ9ZS1Rr8 hrQJqsYgyipvEl35pPPmeRvv5+9gvM18hpHXAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180421_042940_868930_EF7A04BA X-CRM114-Status: GOOD ( 18.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stefan Wahren , devicetree@vger.kernel.org, Florian Fainelli , Arnd Bergmann , Scott Branden , Ray Jui , Phil Elwell , Alexander Graf , bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP After commit a98d90e7d588 ("gpio: raspberrypi-exp: Driver for RPi3 GPIO expander via mailbox service") we are able to control the rest of the GPIOs of the RPi 3. So add all the missing parts (ACT LED, Wifi & BT control, HDMI detect) to the DT. Signed-off-by: Stefan Wahren Reviewed-by: Eric Anholt --- arch/arm/boot/dts/bcm2837-rpi-3-b.dts | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts index cc39b6f..c318bcb 100644 --- a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts +++ b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts @@ -20,9 +20,14 @@ leds { act { - gpios = <&gpio 47 GPIO_ACTIVE_HIGH>; + gpios = <&expgpio 2 GPIO_ACTIVE_HIGH>; }; }; + + wifi_pwrseq: wifi-pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&expgpio 1 GPIO_ACTIVE_HIGH>; + }; }; &firmware { @@ -48,6 +53,10 @@ status = "okay"; }; +&hdmi { + hpd-gpios = <&expgpio 4 GPIO_ACTIVE_LOW>; +}; + /* uart0 communicates with the BT module */ &uart0 { pinctrl-names = "default"; @@ -57,6 +66,7 @@ bluetooth { compatible = "brcm,bcm43438-bt"; max-speed = <2000000>; + shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>; }; }; @@ -69,11 +79,19 @@ /* SDHCI is used to control the SDIO for wireless */ &sdhci { + #address-cells = <1>; + #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&emmc_gpio34>; status = "okay"; bus-width = <4>; non-removable; + mmc-pwrseq = <&wifi_pwrseq>; + + brcmf: wifi@1 { + reg = <1>; + compatible = "brcm,bcm4329-fmac"; + }; }; /* SDHOST is used to drive the SD card */