From patchwork Mon Sep 19 16:13:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Anholt X-Patchwork-Id: 9339863 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 D0D8D607D0 for ; Mon, 19 Sep 2016 16:15:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BEDD428726 for ; Mon, 19 Sep 2016 16:15:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF90A28D7B; Mon, 19 Sep 2016 16:15:33 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 72B6428726 for ; Mon, 19 Sep 2016 16:15:32 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bm1Ch-0007Nc-AH; Mon, 19 Sep 2016 16:13:59 +0000 Received: from anholt.net ([50.246.234.109]) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bm1Cc-0007Gh-9C; Mon, 19 Sep 2016 16:13:55 +0000 Received: from localhost (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id 17F7B2C9C072; Mon, 19 Sep 2016 09:13:22 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at anholt.net Received: from anholt.net ([127.0.0.1]) by localhost (kingsolver.anholt.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id FSgaGWtHs4_0; Mon, 19 Sep 2016 09:13:21 -0700 (PDT) Received: from eliezer.anholt.net (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id 8DA032C9C06F; Mon, 19 Sep 2016 09:13:19 -0700 (PDT) Received: by eliezer.anholt.net (Postfix, from userid 1000) id 4E97C2E6BC1; Mon, 19 Sep 2016 17:13:14 +0100 (BST) From: Eric Anholt To: Linus Walleij Subject: [PATCH 3/3] arm64: Add the Raspberry Pi firmware's interface to the FXL6408. Date: Mon, 19 Sep 2016 17:13:14 +0100 Message-Id: <20160919161314.25858-3-eric@anholt.net> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160919161314.25858-1-eric@anholt.net> References: <20160919161314.25858-1-eric@anholt.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160919_091355_156602_FEC6960E X-CRM114-Status: GOOD ( 10.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Alexandre Courbot , Stephen Warren , Lee Jones , linux-kernel@vger.kernel.org, Eric Anholt , Rob Herring , bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Gerd Hoffmann 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 This gets us hotplug detection of HDMI, so that graphics now works at boot. Tested with watching the output of xrandr while plugging and unplugging the HDMI cable. Signed-off-by: Eric Anholt Tested-by: Gerd Hoffmann --- arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts b/arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts index 7841b724e340..2460b47737e9 100644 --- a/arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts +++ b/arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts @@ -23,8 +23,25 @@ linux,default-trigger = "default-on"; }; }; + + soc { + fxl6408: firmware-gpio-128 { + compatible = "raspberrypi,firmware-gpio"; + gpio-controller; + #gpio-cells = <2>; + firmware = <&firmware>; + ngpios = <8>; + gpio-line-names = "BT_ON", "WL_ON", "", "LAN_RUN", "HPD_N", "CAM_GPIO0", "CAM_GPIO1", "PWR_LOW_N"; + + raspberrypi,firmware-gpio-offset = <128>; + }; + }; }; &uart1 { status = "okay"; }; + +&hdmi { + hpd-gpios = <&fxl6408 4 GPIO_ACTIVE_HIGH>; +};