From patchwork Wed Jan 25 18:51:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 9537781 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 092846046A for ; Wed, 25 Jan 2017 18:54:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED7BA27E22 for ; Wed, 25 Jan 2017 18:54:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E123927F94; Wed, 25 Jan 2017 18:54:50 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 71FDE27E22 for ; Wed, 25 Jan 2017 18:54:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752359AbdAYSwr (ORCPT ); Wed, 25 Jan 2017 13:52:47 -0500 Received: from outils.crapouillou.net ([89.234.176.41]:34788 "EHLO outils.crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752393AbdAYSwn (ORCPT ); Wed, 25 Jan 2017 13:52:43 -0500 From: Paul Cercueil To: Linus Walleij , Rob Herring , Mark Rutland , Ralf Baechle , Ulf Hansson Cc: Boris Brezillon , Thierry Reding , Bartlomiej Zolnierkiewicz , Maarten ter Huurne , Lars-Peter Clausen , Paul Burton , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, linux-mmc@vger.kernel.org, linux-mtd@lists.infradead.org, linux-pwm@vger.kernel.org, linux-fbdev@vger.kernel.org, james.hogan@imgtec.com, Paul Cercueil Subject: [PATCH v3 06/14] MIPS: jz4740: DTS: Add nodes for ingenic pinctrl and gpio drivers Date: Wed, 25 Jan 2017 19:51:59 +0100 Message-Id: <20170125185207.23902-7-paul@crapouillou.net> In-Reply-To: <20170125185207.23902-1-paul@crapouillou.net> References: <27071da2f01d48141e8ac3dfaa13255d@mail.crapouillou.net> <20170125185207.23902-1-paul@crapouillou.net> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1485370355; bh=xvvA87E3tsxNvgSmAV43LSOckxrJaQKqmeg5bmIGfqo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=Z9KKQdTM3uNF6BZFMeRqh+hbB6sa/v2H8H1eUrIi+v+soZeBDVRxcn2SITgbBMNYdybLDtnarAWWzkTQaJwdgS8tek13mQ+yj+TOTM+hQP53XnovsJPyQcNWwo6VGxONlp1GColWT/LwgVPQiAeBd6MzQXqXIne9FEd4x8yoa34= Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP For a description of the pinctrl devicetree node, please read Documentation/devicetree/bindings/pinctrl/ingenic,pinctrl.txt For a description of the gpio devicetree nodes, please read Documentation/devicetree/bindings/gpio/ingenic,gpio.txt Signed-off-by: Paul Cercueil --- arch/mips/boot/dts/ingenic/jz4740.dtsi | 194 +++++++++++++++++++++++++++++++++ 1 file changed, 194 insertions(+) v2: Changed the devicetree bindings to match the new driver v3: No changes diff --git a/arch/mips/boot/dts/ingenic/jz4740.dtsi b/arch/mips/boot/dts/ingenic/jz4740.dtsi index 3e1587f1f77a..960e060eb725 100644 --- a/arch/mips/boot/dts/ingenic/jz4740.dtsi +++ b/arch/mips/boot/dts/ingenic/jz4740.dtsi @@ -55,6 +55,200 @@ clock-names = "rtc"; }; + pinctrl: ingenic-pinctrl@10010000 { + compatible = "ingenic,jz4740-pinctrl"; + reg = <0x10010000 0x400>; + + ingenic,pull-ups = <0xffffffff 0xffffffff 0xffffffff 0xdfffffff>; + ingenic,pull-downs = <0x00000000 0x00000000 0x00000000 0x00000000>; + + functions { + mmc { + mmc-1bit { + /* CLK, CMD, D0 */ + ingenic,pins = <0x69 0 0x68 0 0x6a 0>; + }; + + mmc-4bit { + /* D1, D2, D3 */ + ingenic,pins = <0x6b 0 0x6c 0 0x6d 0>; + }; + }; + + uart0 { + uart0-data { + /* RXD, TXD */ + ingenic,pins = <0x7a 1 0x79 1>; + }; + + uart0-hwflow { + /* CTS, RTS */ + ingenic,pins = <0x7e 1 0x7f 1>; + }; + }; + + uart1 { + uart1-data { + /* RXD, TXD */ + ingenic,pins = <0x7e 2 0x7f 2>; + }; + }; + + lcd { + lcd-8bit { + /* LCD_DATA0 ... LCD_DATA7, PCLK, HSYNC, VSYNC */ + ingenic,pins = <0x40 0 0x41 0 0x42 0 0x43 0 + 0x44 0 0x45 0 0x46 0 0x47 0 + 0x52 0 0x53 0 0x54 0>; + }; + + lcd-16bit { + /* LCD_DATA8 ... LCD_DATA15, DE */ + ingenic,pins = <0x48 0 0x49 0 0x4a 0 0x4b 0 + 0x4c 0 0x4d 0 0x4e 0 0x4f 0 + 0x55 0>; + }; + + lcd-18bit { + /* LCD_DATA16, LCD_DATA17 */ + ingenic,pins = <0x50 0 0x51 0>; + }; + + lcd-18bit-tft { + /* PS, REV, CLS, SPL */ + ingenic,pins = <0x56 0 0x57 0 0x31 0 0x32 0>; + }; + + lcd-no-pins { + ingenic,pins = <>; + }; + }; + + nand { + nand { + /* CS1, CS2, CS3, CS4 */ + ingenic,pins = <0x39 0 0x3a 0 0x3b 0 0x3c 0>; + }; + }; + + pwm0 { + pwm0 { + ingenic,pins = <0x77 0>; + }; + }; + + pwm1 { + pwm1 { + ingenic,pins = <0x78 0>; + }; + }; + + pwm2 { + pwm2 { + ingenic,pins = <0x79 0>; + }; + }; + + pwm3 { + pwm3 { + ingenic,pins = <0x7a 0>; + }; + }; + + pwm4 { + pwm4 { + ingenic,pins = <0x7b 0>; + }; + }; + + pwm5 { + pwm5 { + ingenic,pins = <0x7c 0>; + }; + }; + + pwm6 { + pwm6 { + ingenic,pins = <0x7e 0>; + }; + }; + + pwm7 { + pwm7 { + ingenic,pins = <0x7f 0>; + }; + }; + }; + }; + + gpa: gpio-controller@10010000 { + compatible = "ingenic,jz4740-gpio"; + reg = <0x10010000 0x100>; + + gpio-controller; + gpio-ranges = <&pinctrl 0 0 32>; + #gpio-cells = <2>; + + base = <0x00>; + + interrupt-controller; + #interrupt-cells = <2>; + + interrupt-parent = <&intc>; + interrupts = <28>; + }; + + gpb: gpio-controller@10010100 { + compatible = "ingenic,jz4740-gpio"; + reg = <0x10010100 0x100>; + + gpio-controller; + gpio-ranges = <&pinctrl 0 32 32>; + #gpio-cells = <2>; + + base = <0x20>; + + interrupt-controller; + #interrupt-cells = <2>; + + interrupt-parent = <&intc>; + interrupts = <27>; + }; + + gpc: gpio-controller@10010200 { + compatible = "ingenic,jz4740-gpio"; + reg = <0x10010200 0x100>; + + gpio-controller; + gpio-ranges = <&pinctrl 0 64 32>; + #gpio-cells = <2>; + + base = <0x40>; + + interrupt-controller; + #interrupt-cells = <2>; + + interrupt-parent = <&intc>; + interrupts = <26>; + }; + + gpd: gpio-controller@10010300 { + compatible = "ingenic,jz4740-gpio"; + reg = <0x10010300 0x100>; + + gpio-controller; + gpio-ranges = <&pinctrl 0 96 32>; + #gpio-cells = <2>; + + base = <0x60>; + + interrupt-controller; + #interrupt-cells = <2>; + + interrupt-parent = <&intc>; + interrupts = <25>; + }; + uart0: serial@10030000 { compatible = "ingenic,jz4740-uart"; reg = <0x10030000 0x100>;