From patchwork Fri Apr 13 17:27:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 10340667 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 43DCC604D4 for ; Fri, 13 Apr 2018 17:29:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2D54528975 for ; Fri, 13 Apr 2018 17:29:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1F7DB28973; Fri, 13 Apr 2018 17:29:14 +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 49BBF28973 for ; Fri, 13 Apr 2018 17:29:12 +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=ZqaQ7bxGCkQF86XHZp5vaLvexqDb+h7Dj5WOe5qRmIg=; b=hSI+u0+i1AFBm1OSp6OLDyiDOS FT11szx3mzKbykoIvoyJrc8Rus5X1lxocsZFyiAdBCMIvfThoy3+AjS+TVwtvP2p2WpSG+FmlBB1X DZ/qxgJGJp6za8WUG+4DsBIO/peYId9asOAEpgyIeuI7DHyDAQOPr+hsMgWCCS34MJQwgWOVpuGws KkiXTIH2pIBtgYmxR3GlutriqDo5LScaClDSGlt+K2KM7iBjWRVX2gcjKzJkODQzu8JgqikrUlF9j VymxOgjxSCSWhW6g2HRcwkiaqgzbT6bjxgd0zM/bjn0OnoISI+/QnEY4Bli8SMstHvf275Xl6aiMm W/WrB9uQ==; 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 1f72VS-00045g-5k; Fri, 13 Apr 2018 17:29:02 +0000 Received: from mout.kundenserver.de ([212.227.126.133]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f72VF-0003s0-BS; Fri, 13 Apr 2018 17:28:53 +0000 Received: from localhost.localdomain ([95.90.209.130]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.167]) with ESMTPSA (Nemesis) id 0MAAX7-1fIGtU2h6P-00BPL9; Fri, 13 Apr 2018 19:28:25 +0200 From: Stefan Wahren To: Rob Herring , Mark Rutland , Eric Anholt , Catalin Marinas , Will Deacon Subject: [PATCH 2/9] ARM: dts: bcm2837: Add missing GPIOs of Expander Date: Fri, 13 Apr 2018 19:27:51 +0200 Message-Id: <1523640478-4448-3-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523640478-4448-1-git-send-email-stefan.wahren@i2se.com> References: <1523640478-4448-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K1:y+YpxJQOjhW0wXHAX6LIKea5Q9I2nhDZe80BVJJOnv8iH+PFJ3D x8vO73jdO+OjzV2uP3Q8m9Qi2hKSBVhSh6RiKzUUx/Cp3tVJoCa6K9htA7WteU8NsMOqEoh 9KZYRyXEeeecK+eNSbp6a1+ciiROsE5JBzV+GhqddwQpwaKKgpVxJDXJZFxjSlN224/h7Ts pyeFtsg7WXwhSemDAJUUA== X-UI-Out-Filterresults: notjunk:1; V01:K0:7jtQbRMoJsc=:wp7TL/Rp+6IPQaU5FqKfoN RdF1PBWXXBXLWBUsaw9B3rpp+ItT9uPrgBRBB7Cv9vIULy12UluxgU5HRKtJi79FdSDeu5yS+ QxdNJw25qndfr7Yrf0+A/3yhXZoyFQQjnD97ygOHWGOFGKBFtB+WKQMkoLPTKl3RjGtQQacLY 05k3oVA3fegSLKeba29le2EMlFsooLkEjxLaHaPIUTbWe7JyAwr0P+XJBbbKdzsVmH2CAY208 erF3hdb0vDhxJHt1V8yrYNZGLjbgcNHpclfrx6YzDYbf2FyQySgfOEmpxE0X1F12xOsaUJcLm oWV89JxQv6HiW8q+V4tV0E1H2Jae7qyTaqiico87kcSP4AfZgIb2EY83eqojwnlD3GLdVBM/Q vwa5M/81UfLFOwsAxEX5S/BTvpX0VyZAptpzJ/gvdakU4j8Xd7o4+yddeYx2sI9YDoNZT4fOk 2rAUQ6rwbZMA+J5rToMCuFDla78VAFFF+75w6cWuwGgbUN2p/i4X/rFZmmJo/+rxNfwn7ZR41 NIpJ2MG4/68xMo5PldUwnpCpqVzaCbgNdilUrwRA5z9uZrnkRovRxioGZe1zOkAcmTgFXZ8k6 XgtDp+uai1gDPAal4Sv/Y0VuuHjdicbr/6I5uGTkH35u8WuwuEpXAgsbCYClQHjVo4QkHZzAJ HzFqWqlN1JAAyFZyoeehWTpmJ2GvbTrvfm7iNz+SASTbP4X7c9tKOFcIfYB3NiJUEDRz+xVwW 8tE+NXOyBOb2ddV1A1OIl8kpte7uwOUal5p7uQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180413_102849_725637_CBC4F69E X-CRM114-Status: GOOD ( 16.92 ) 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 --- 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 */