From patchwork Tue Apr 18 15:01:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 9685597 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 9F0A8602C9 for ; Tue, 18 Apr 2017 15:04:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9172D223A6 for ; Tue, 18 Apr 2017 15:04:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 84E6E27816; Tue, 18 Apr 2017 15:04:12 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM 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 115C5223A6 for ; Tue, 18 Apr 2017 15:04: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=qCVUf3cEiW3VjD2kPlsJYC59dyNlstUF5AW1zjg31JA=; b=ukiTOMYiYOIeVIxR07qRSbtLZk kvsoKomoCpGpZS1IqeJOlPBtcEiFbgGsP/QRG/pD2aqLjdg5Xe1+b4/Gcy9atCoe8ctUiumbqlCK4 rgfGb8Qf+s+Nm5d2jMyUHj5spbd6WMObnbpgoEToTYe8R3wW0M0KGFDsyskEGxOUH+F6vlrLOBqlS Q1zDt9hd5Izpp9j8uXFfOYCCq3M3mwIZQP/gSESYCFBmNiJD6gBRWPjMURwKawA0nABvtkgiMi19d yaWGmGWix6wOSC5qyGhltHL9wqCgzB6npZt4ijvPUz2OSMPdZNB17yGZpPSTZYVEQZ3vbEJt5HQyi O0lOmCvA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d0Ufp-0005Ty-U4; Tue, 18 Apr 2017 15:04:09 +0000 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d0Udv-00036A-RN for linux-arm-kernel@lists.infradead.org; Tue, 18 Apr 2017 15:02:16 +0000 Received: by mail-pg0-x242.google.com with SMTP id 63so20992294pgh.0 for ; Tue, 18 Apr 2017 08:01:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yLfbg6bMXwiy1nKHPa5E026GCdBFIEkLm3HJosO1BGo=; b=Y70afygr7hB/luAspV9cj2XrYCvbVl3KMcuV9bCn0b67Bkgd28UMXnTLxkA+cc+dS4 Th3ZGiqXi16Tm7SzvrIXsxyaVWxxSztXOfWt9XbZSQxexriAbihfs2R+k/5XQsDrgd66 v0uYXzBjWlRWe6eDBR4iNpxQQ7pZnv5ZRLcxyijysGwzXz9UTNFuUOI4+LUaYUlYL1XW EtHTCaPktRsAqCxfm6Jl2aidyV82EtSvF4YPh3nf43O9myryFSQXUMjCkO+kxwpbtGCs BjZi5mf0uuUsZCTRIggapn31EMDiIKC2n3X8tPMZZxuCtfeB1TSptwKr9fz7bALqEbrl 7biw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yLfbg6bMXwiy1nKHPa5E026GCdBFIEkLm3HJosO1BGo=; b=Go2zFreQtsmt7meHMWpMfag8QelCRvwNAF40wk7pSTX+sTXdShOiuj31XdkMN5Pef4 Zgm4sAldo5njRvZiVtI1N+gFpTxfkXoDQF+SnJFFrh04AhSsTp8poYaLGW4v6jtv1BMn J+kCFW0RUEqg7cciWh+o+dEHxiJ54w9vx/R0+tzTgsryeQmXl6bUcfHxKp8Sqz9mRqXk uJRGPVe6HStPQfQtstyGQNY7iox/64eL5ZjqzprrAlsWAIVraKSNm3fO98SlVUB1AMin adbmywC5YzgazdZb2ozEpOh2HVJ1cHDqBPJ/AKgZxq7JWGY44mA+tH7ZTmxCSgSnE8li /DmA== X-Gm-Message-State: AN3rC/4g093UBOY+HcHBboh3BOpQdCBA83R7a01nuqPNeWWZqo6J2C+C n6hMrKKbWzYlrg== X-Received: by 10.99.104.69 with SMTP id d66mr18899189pgc.93.1492527715361; Tue, 18 Apr 2017 08:01:55 -0700 (PDT) Received: from squirtle.lan (c-73-19-0-61.hsd1.wa.comcast.net. [73.19.0.61]) by smtp.gmail.com with ESMTPSA id q136sm24712521pfq.80.2017.04.18.08.01.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Apr 2017 08:01:54 -0700 (PDT) From: Andrey Smirnov To: Shawn Guo Subject: [PATCH v2 5/7] ARM: dts: imx7d-sdb: Add GPIO expander node Date: Tue, 18 Apr 2017 08:01:31 -0700 Message-Id: <20170418150133.31679-6-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170418150133.31679-1-andrew.smirnov@gmail.com> References: <20170418150133.31679-1-andrew.smirnov@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170418_080212_002874_83E76D61 X-CRM114-Status: GOOD ( 11.91 ) 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: Dong Aisheng , Mark Rutland , devicetree@vger.kernel.org, Andrey Smirnov , Russell King , linux-kernel@vger.kernel.org, Rob Herring , Sascha Hauer , Fabio Estevam , linux-arm-kernel@lists.infradead.org, yurovsky@gmail.com 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 node for U38, a 74LV595PW serial-in shift register that acts as a GPIO expander on the board. Cc: yurovsky@gmail.com Cc: Dong Aisheng Cc: Shawn Guo Cc: Sascha Hauer Cc: Fabio Estevam Cc: Rob Herring Cc: Mark Rutland Cc: Russell King Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Andrey Smirnov --- arch/arm/boot/dts/imx7d-sdb.dts | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts index 5be01a1..d6f2dda 100644 --- a/arch/arm/boot/dts/imx7d-sdb.dts +++ b/arch/arm/boot/dts/imx7d-sdb.dts @@ -52,6 +52,27 @@ reg = <0x80000000 0x80000000>; }; + spi4 { + compatible = "spi-gpio"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_spi4>; + gpio-sck = <&gpio1 13 GPIO_ACTIVE_HIGH>; + gpio-mosi = <&gpio1 9 GPIO_ACTIVE_HIGH>; + cs-gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>; + num-chipselects = <1>; + #address-cells = <1>; + #size-cells = <0>; + + extended_io: gpio-expander@0 { + compatible = "fairchild,74hc595"; + gpio-controller; + #gpio-cells = <2>; + reg = <0>; + registers-number = <1>; + spi-max-frequency = <100000>; + }; + }; + regulators { compatible = "simple-bus"; #address-cells = <1>; @@ -642,5 +663,13 @@ fsl,pins = < MX7D_PAD_LPSR_GPIO1_IO01__PWM1_OUT 0x110b0 >; + + pinctrl_spi4: spi4grp { + fsl,pins = < + MX7D_PAD_GPIO1_IO09__GPIO1_IO9 0x59 + MX7D_PAD_GPIO1_IO12__GPIO1_IO12 0x59 + MX7D_PAD_GPIO1_IO13__GPIO1_IO13 0x59 + >; + }; }; };