From patchwork Thu Apr 13 13:32:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 9679433 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 C70A260383 for ; Thu, 13 Apr 2017 13:41:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA3F6285BF for ; Thu, 13 Apr 2017 13:41:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF0A128652; Thu, 13 Apr 2017 13:41:57 +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 5FBCA285BF for ; Thu, 13 Apr 2017 13:41:57 +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=vLg6CTWWUFDksolqPxXfyIca3lD+YXO8fTSoDpkK3VM=; b=qmz/ETcpFx26ebP3svb/KU2tjH XttUqHxjbislxFlPjxg1ZYjxkl+3Y1WM0Dc5EdkP9xsz7wKuG79svH74qn9W0rIx0B2zxMSJkvPrY VrDvkvPnYle/24WHTgMwJQEaRaoer8Um074Nt4xB53dleYOkXQxueTMhDt1rdwl/C4eebsOiLnq2s loAoSOgZ8dA3Y3tdZsxtMcz0rnSR1By2iEIZ2R650gki+nXGOPF4lAuY3IFdqq7FdbuqKxAT72WrT LwArEcIDrKrhtrlv5Gx7+q/yMHm2mFGfIC97p+r/6PMSbm88oG928KaHFfAwLpfRcHB/4Ral/bpP5 X+UGAKbw==; 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 1cyf0W-0008A2-EG; Thu, 13 Apr 2017 13:41:56 +0000 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cyesG-0001M8-Ll for linux-arm-kernel@lists.infradead.org; Thu, 13 Apr 2017 13:33:27 +0000 Received: by mail-pg0-x241.google.com with SMTP id o123so11545936pga.1 for ; Thu, 13 Apr 2017 06:33:09 -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=PGe05xheRh/+RObVm0ACGyV8TUUZmJHjBeeJA0MbaTw=; b=qjQGms8KMoXaYQ/hSBnDTEysfVj52TIBe9Owz7mqy8XfhosRt/tNPy9IX6kgmFk/IP iTFIIUwmGj7O0LfD9loMStnStL2P80KxPCkvTT1dePoDpq+rFkZACxD7SJfbcfWExMkK IFX7AaJydMhBlKPBYRJNGaBUgGHBIqP6zWdhlSJHCJGjKQoFBfCF5uHXyy9L1NHstYWa he4vZKW8AgPmYuBmcdHoCdUnPwnBgG7tFfBpwHZEEYbmV00z/C4iWQLf4dnQQ1f1mU3B iG8xnKnvnIrmxaeRU6l5SLQWY4wv+M9h66/CTGleRVDcrNV5Ml6nplo+uO8iAdw1r6wr vdmw== 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=PGe05xheRh/+RObVm0ACGyV8TUUZmJHjBeeJA0MbaTw=; b=G7m2hAXn+f1EJmIB62lBD+9Xt5FrPe3NslGZPXhnFh3CsoXbkfwhatmHXheNOsHw52 oNjseFcT3gIPUf6wc4oVvkFOEfdooFZGsgqnS/j373kCFIgUoO/bYR+rfV6yZF976LWY ZcNL1XhdQFUhuJXScWpqXPnV+4QrC110nHKCaVP7tVYIxVrgN1331BBQSc9HGgSTdsr+ aVG+FSpl0xwQm+Blj9Ua/qnqreH+fWw0ALAx3Q4+YocXus/o2HCB0pL/Vu3UIiZQAZkb 0xwtrLS7+ZSFgqaJUnGXE35l0r0M48dlF9ocJv1FBNjWDY5jwjNINHT1ri467kJfxy9E Bw+Q== X-Gm-Message-State: AN3rC/4yiaMWuScqBHs0qbX7exXS/lc/TogeELtk1yeqW71EY0Ijkh6U wLIb6MmPEF3xvQ== X-Received: by 10.98.205.14 with SMTP id o14mr2878567pfg.42.1492090388916; Thu, 13 Apr 2017 06:33:08 -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 y6sm42944437pgc.40.2017.04.13.06.33.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Apr 2017 06:33:08 -0700 (PDT) From: Andrey Smirnov To: Shawn Guo Subject: [PATCH 6/8] ARM: dts: imx7d-sdb: Add GPIO expander node Date: Thu, 13 Apr 2017 06:32:40 -0700 Message-Id: <20170413133242.5068-7-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170413133242.5068-1-andrew.smirnov@gmail.com> References: <20170413133242.5068-1-andrew.smirnov@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170413_063324_763760_962BCCC8 X-CRM114-Status: GOOD ( 11.43 ) 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: 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: 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 | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts index 5be01a1..e0ff276 100644 --- a/arch/arm/boot/dts/imx7d-sdb.dts +++ b/arch/arm/boot/dts/imx7d-sdb.dts @@ -52,6 +52,30 @@ reg = <0x80000000 0x80000000>; }; + spi4 { + compatible = "spi-gpio"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_spi1>; + status = "okay"; + gpio-sck = <&gpio1 13 0>; + gpio-mosi = <&gpio1 9 0>; + cs-gpios = <&gpio1 12 0>; + num-chipselects = <1>; + #address-cells = <1>; + #size-cells = <0>; + + gpio_spi: gpio_spi@0 { + compatible = "fairchild,74hc595"; + gpio-controller; + #gpio-cells = <2>; + reg = <0>; + registers-number = <1>; + /* Enable PERI_3V3, SENSOR_RST_B and HDMI_RST*/ + registers-default = /bits/ 8 <0x74>; + spi-max-frequency = <100000>; + }; + }; + regulators { compatible = "simple-bus"; #address-cells = <1>; @@ -642,5 +666,13 @@ fsl,pins = < MX7D_PAD_LPSR_GPIO1_IO01__PWM1_OUT 0x110b0 >; + + pinctrl_spi1: spi1grp { + fsl,pins = < + MX7D_PAD_GPIO1_IO09__GPIO1_IO9 0x59 + MX7D_PAD_GPIO1_IO12__GPIO1_IO12 0x59 + MX7D_PAD_GPIO1_IO13__GPIO1_IO13 0x59 + >; + }; }; };