From patchwork Thu Jan 11 19:44:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baruch Siach X-Patchwork-Id: 10158411 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 5F550602D8 for ; Thu, 11 Jan 2018 19:46:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4FE8F2851E for ; Thu, 11 Jan 2018 19:46:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 44857285EA; Thu, 11 Jan 2018 19:46:40 +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,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 AF1C72851E for ; Thu, 11 Jan 2018 19:46:39 +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=2sVUp58SbiTw3B7qWwUY5a7oiEpFOALt2LFmtxAQtbE=; b=WgJtIY2hNPYN9Ga75Ncj3qFjv/ wyf2dH3H5yjdaEH+HZO3EC/qj+qzLTIwxLHq/FYkRZgM4TPaHzlvyVqjrb4AJHbgzxXKlmZVK//DW Y33PxixM/vT9DLA3UsT2oyvCn4IjJUgRzJHFh+Txo7aI8gpoAFoYe78Z8/rg4+UOuUARRTknBLodg 49FMuoYRGZVzXjUO3IeeYdJzi7NpGzG8rXAhmYnio137IRYPZ4ZHMl5ulVQMZQIGeXy80A/Drdyvh lrguCY6lhPWf1taKWeezO6gm71Dsh2N33PIXRogRTIL4jSAHCNeEO3OwLdJGy5M+Un0RW69aeF/oA N5M7W86g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eZioA-0002Wx-4y; Thu, 11 Jan 2018 19:46:38 +0000 Received: from guitar.tcltek.co.il ([192.115.133.116] helo=mx.tkos.co.il) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eZinS-0001ud-Hd; Thu, 11 Jan 2018 19:45:58 +0000 Received: from tarshish.tkos.co.il (unknown [10.0.8.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx.tkos.co.il (Postfix) with ESMTPSA id 5E8734409CB; Thu, 11 Jan 2018 21:45:20 +0200 (IST) From: Baruch Siach To: Dave Stevenson , Eric Anholt , Stefan Wahren , Linus Walleij Subject: [PATCH v2 4/4] ARM: dts: bcm2837-rpi-3-b: add GPIO expander Date: Thu, 11 Jan 2018 21:44:27 +0200 Message-Id: <1cb81e3d7a1b1f7ccf374952fa7e8d2147c186fb.1515698418.git.baruch@tkos.co.il> X-Mailer: git-send-email 2.15.1 In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180111_114554_955218_E6557C3E X-CRM114-Status: UNSURE ( 7.01 ) X-CRM114-Notice: Please train this message. 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: devicetree@vger.kernel.org, Baruch Siach , linux-gpio@vger.kernel.org, Michael Zoran , 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 Add a description of the RPi3 GPIO expander that the VC4 firmware controls. Signed-off-by: Baruch Siach --- v2: * Move GPIO expander node out of the soc container * Rename compatible string * Add gpio-line-names property --- arch/arm/boot/dts/bcm2837-rpi-3-b.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts index b44b3b5af00d..24555e8a43ec 100644 --- a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts +++ b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts @@ -23,6 +23,16 @@ gpios = <&gpio 47 0>; }; }; + + expgpio: gpio-expander { + compatible = "raspberrypi,firmware-gpio"; + gpio-controller; + #gpio-cells = <2>; + firmware = <&firmware>; + 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 */