From patchwork Wed Mar 28 17:46:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 132537 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp769051ljb; Wed, 28 Mar 2018 10:53:53 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/mgbdCoHDKC4JVF6CUy5ft+44zFVSSA3sW0O6KtNAyZHmMhWxRTBpcB0NLjjQPb+uVW7MA X-Received: by 2002:a17:902:b905:: with SMTP id bf5-v6mr4832556plb.159.1522259633263; Wed, 28 Mar 2018 10:53:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522259633; cv=none; d=google.com; s=arc-20160816; b=GCZ0GKTFHe4eJ3JSm4YedxiqFnHvcAk7zCXQsxJ3RoZdsACIda6EoEVD9gi/bJlNGY FLdXTyHGis4ehnObOFLwjpOSRr+IZk8jDsgTpRgLORsbPGg5uANu45RkabAbYGA2HLtZ 3Ibt5d4VMTHvrG1q3+wEQtJFWwjciQiXibvnelkwazArHCNkTSpArKPGlNmCVfrLwXyY lA/hZ8nN2wYY6ZKReXB6trTiey9wpEUNKNcTRIkmsLVVUQEcDjExOdzKNFp228+qR/T0 A/LuzklJ382EAjDWSjrdZnYyK/q79VR2ul3cmSEi1iOEiQZPZlseuf1jgZDW4lgla8RI MFvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=YpsqKSdx55WnfniahJGxZunW4f6BLL7dKCa29wmqm10=; b=CFTjpaonQgRukr22tPnnA75ItH6g5Q3EJxJv4EmnxQTfpikFa9u9ddQHdbTeAME56j JEtWuPbxF2/suDTyJPH5mvmXOKfsRK/4EMiZjaQvXh1iSjfotKvlboBYVzrF8lkZxXvT aGMHEVa4EGpHTBsT7Uix1vTvXH0S8VUx9SCIDPgzpXMNvEoK7ZmABQFs2D1w6VpwAyqt xKqL4VzDIyeoUTaYUngstoG0EwGTpYYOwc1G+BK3nFE3hYORxw01RLdQJQqDdolQsds6 iNsiWI/0hcM5XsRTVQgMteYhjKniXJiwF7uMGP7jG3GVKc/hFhqCoDDBC6gk4M9/4hY0 x6aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Kv9EVDCh; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t13si2781419pgr.205.2018.03.28.10.53.53; Wed, 28 Mar 2018 10:53:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Kv9EVDCh; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753148AbeC1Rxv (ORCPT + 5 others); Wed, 28 Mar 2018 13:53:51 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:43628 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753091AbeC1Rxu (ORCPT ); Wed, 28 Mar 2018 13:53:50 -0400 Received: by mail-pg0-f67.google.com with SMTP id i124so1239782pgc.10 for ; Wed, 28 Mar 2018 10:53:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=B/48Cn4NN9KEx8Nbhm5uMRQsoH7PNuUeTokj5qB2biY=; b=Kv9EVDChGqERz6uuDVvi/oP6ConxmOd32fMZqRxshf07QcEA0E7hhWGOzPK8BaxMKi ykdMhdROuSinCjC7uuxmWSwbvVmC3YYbLb219+OzdCW6ADMUw8dw+hqXtqhx+aap+Lkv 5YJh4y8+tLxONc5E35qb0+BDHhLIddIWKjbDc= 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=B/48Cn4NN9KEx8Nbhm5uMRQsoH7PNuUeTokj5qB2biY=; b=oYA2E6JGIrFbKV3vJ7s2aB8mHIoWCPyESYsC/G/9e9ia1QXTOOImi7Wohx1RHsmLi0 btZKPoF3CnKuKKpfsdjVrLikz7mxnkGnLEXXZUaX+ZGfg3POPgBQXFPFOg1eRhNDAu80 59Qgl4Fq7UBsnzu8l/Quw3HlDgsYZKdTPUXvIFke+tHkXtp4XNBDHmUzVCU8xKfz5WOZ 24zgDjzGcu6dPDO+39uxsKnmUIk9qAd4HvdkfqDWUOHzi2H/su+fdMOtor+XZqA/npVM MD9jUT/gtt4xxaHGCa0rtVbYezvFZi6sEkuK4FmfglaPnOyHjI46Owf5rM5HyeDAlmFK 8BQQ== X-Gm-Message-State: AElRT7EaNJJazmthIrQZQvMXPAe+iic+3L8xu1EFVct3sSwAbV50UiRG 4hs3zzNhdUm7mWEM4xju8lum X-Received: by 2002:a17:902:744c:: with SMTP id e12-v6mr2769628plt.382.1522259629760; Wed, 28 Mar 2018 10:53:49 -0700 (PDT) Received: from localhost.localdomain ([2405:204:70c6:7103:1d04:9825:cfd:7751]) by smtp.gmail.com with ESMTPSA id j21sm7404446pgn.61.2018.03.28.10.53.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Mar 2018 10:53:49 -0700 (PDT) From: Manivannan Sadhasivam To: linus.walleij@linaro.org, robh+dt@kernel.org, afaerber@suse.de Cc: liuwei@actions-semi.com, mp-cs@actions-semi.com, 96boards@ucrobotics.com, devicetree@vger.kernel.org, andy.shevchenko@gmail.com, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, hzhang@ucrobotics.com, bdong@ucrobotics.com, manivannanece23@gmail.com, Manivannan Sadhasivam Subject: [PATCH v6 1/9] arm64: dts: actions: Add pinctrl node for S900 Date: Wed, 28 Mar 2018 23:16:55 +0530 Message-Id: <20180328174703.19778-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180328174703.19778-1-manivannan.sadhasivam@linaro.org> References: <20180328174703.19778-1-manivannan.sadhasivam@linaro.org> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Add pinctrl nodes for Actions Semi S900 SoC Signed-off-by: Manivannan Sadhasivam Reviewed-by: Linus Walleij --- arch/arm64/boot/dts/actions/s900.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/boot/dts/actions/s900.dtsi b/arch/arm64/boot/dts/actions/s900.dtsi index fee0c9557656..0156483f0f4d 100644 --- a/arch/arm64/boot/dts/actions/s900.dtsi +++ b/arch/arm64/boot/dts/actions/s900.dtsi @@ -174,6 +174,12 @@ #clock-cells = <1>; }; + pinctrl: pinctrl@e01b0000 { + compatible = "actions,s900-pinctrl"; + reg = <0x0 0xe01b0000 0x0 0x1000>; + clocks = <&cmu CLK_GPIO>; + }; + timer: timer@e0228000 { compatible = "actions,s900-timer"; reg = <0x0 0xe0228000 0x0 0x8000>; From patchwork Wed Mar 28 17:46:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 132540 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp769407ljb; Wed, 28 Mar 2018 10:54:19 -0700 (PDT) X-Google-Smtp-Source: AIpwx48oa/HgY9AuIFmKCF+kVbBX8cRSm6n1y433dQJzohvLAweaMAF1p3c0kMZy8h9u7wHgMe2b X-Received: by 2002:a17:902:24:: with SMTP id 33-v6mr4736096pla.341.1522259659777; Wed, 28 Mar 2018 10:54:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522259659; cv=none; d=google.com; s=arc-20160816; b=IcYHw6B2IQd+pR5Y/Y96XTQ8qZpSRWRydzBguvr+Eh1z5WY2U3UXKd0GRquRM63DBX 7N+vumaKxIF2oRY5iu96gOBy2Z0CgwXDw+EGA+HHviYWfeLs9KsDz1gJjQmpZfpfCm9w PZrAIjU1xJzYo7HkPxTuYiS+a8hSIfySYjxHjbM+xc99Kgh2z+TTF8CAJgiEKYsmUZql rB8iG+01DaOQEhuHK+rDDc98P/7rtUkflBAaxjL7jzNvSWVl+AZbxvtnmQN2NxGrpr1T aTGIROEsJc/tE7cxjbEbQ2nPx8vBUlELW8UeqOxLF7d7JPL2vyrEB1QcLuR8NHXDNpaO j+wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=tEectMwZt0QYpPA92CkKdfRvJ9QVXidbmxYFOEp6n2A=; b=BXu6ISsCSxETPf+oiQD43/DZaeseSKWJ0bCjxO/LUhQKlSfjmhia7OBdRDNaKYPfL+ eqFpqEQgewBVQ/+ew1MWNnF4qUKiIS1gLk2vunL1YqezURJquF9ZmUASnbMsmZCloQBZ StpmciCx1/jZ4pycrMqWxNWD8OW/z/n8Mhf219LKVBtisMYwrTLqCM2NVi7TBBLftnDU pwy7whfUC7nkcyc4iXPDBFWp+BwKZSm3Fjf66DgUvO/ivOEffHmQ9iu98UuMEc2PQVPw ubr83FiDmOm3wdWxqTjKtM16ID333te6Oc0S92vSdEQyT+/+9F8F/cLhliL2FcI3CKp0 tQCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ild1LgGf; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p5si2823594pga.300.2018.03.28.10.54.19; Wed, 28 Mar 2018 10:54:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ild1LgGf; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753229AbeC1RyS (ORCPT + 5 others); Wed, 28 Mar 2018 13:54:18 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:37931 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753232AbeC1RyP (ORCPT ); Wed, 28 Mar 2018 13:54:15 -0400 Received: by mail-pg0-f65.google.com with SMTP id a15so1246906pgn.5 for ; Wed, 28 Mar 2018 10:54:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jLdZFBFUyckKPEbJXNCeaJgwrec114GPO6CefOxXRBk=; b=ild1LgGf11mdHW1CD0SS74Bxn1RYfFET2jt7/JQX8ZFDJa2gPQK1J2S1bDxuwxGgP9 v/tqEWvBvdSkB22tdwJ94iKq9FpiO0bEAEEsgaFW2H/NEvsbC3gZh0555JwpY1Hnwqcy vUwMcvbdpFYuc9JBdnibWxsdIdFa9mJAA9zSg= 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=jLdZFBFUyckKPEbJXNCeaJgwrec114GPO6CefOxXRBk=; b=DX1ZrscFl7ovg5t2QH9UN8TycBlVg7a8s0cNTTVGZ+0IMC7isk/bAEx2hqciyD56jM iGh75KSA7qp0vpUNT5EMdf99n2TK9KCNU8/jn+uxwu4YA/wNuSRKMQ/nZWi1lN8enbH9 uek3kktWfZwHTNvxqXWypcGnU/hcLUGkQrzwTIVPUienYIg1cg43BU54CoRwalEN9uXo lJqn9kqO5jXadZWE0bQAQvXoAJAslbrUgmfGWgduCW9EKcW/g0s3tw5NzJi7QwpciTHz 5SVIl0z2YdsL7zywr0/nEDDaSAczB/DQDOy1fWci0B/9q5vyQjIrQzAaxxkelyqdPBlH LEXA== X-Gm-Message-State: AElRT7Exltyu5vZuCFbQbzSi3qQwUvn5D0ic2rNtrp4XyRYMOf5gbrVs PE0UKL8thzoGDM/DrJr0onJH X-Received: by 10.99.149.21 with SMTP id p21mr3248076pgd.154.1522259654286; Wed, 28 Mar 2018 10:54:14 -0700 (PDT) Received: from localhost.localdomain ([2405:204:70c6:7103:1d04:9825:cfd:7751]) by smtp.gmail.com with ESMTPSA id j21sm7404446pgn.61.2018.03.28.10.54.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Mar 2018 10:54:13 -0700 (PDT) From: Manivannan Sadhasivam To: linus.walleij@linaro.org, robh+dt@kernel.org, afaerber@suse.de Cc: liuwei@actions-semi.com, mp-cs@actions-semi.com, 96boards@ucrobotics.com, devicetree@vger.kernel.org, andy.shevchenko@gmail.com, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, hzhang@ucrobotics.com, bdong@ucrobotics.com, manivannanece23@gmail.com, Manivannan Sadhasivam Subject: [PATCH v6 4/9] dt-bindings: gpio: Add gpio nodes for Actions S900 SoC Date: Wed, 28 Mar 2018 23:16:58 +0530 Message-Id: <20180328174703.19778-5-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180328174703.19778-1-manivannan.sadhasivam@linaro.org> References: <20180328174703.19778-1-manivannan.sadhasivam@linaro.org> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Add gpio nodes for Actions Semi S900 SoC. Signed-off-by: Manivannan Sadhasivam --- .../devicetree/bindings/gpio/actions,owl-gpio.txt | 87 ++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/actions,owl-gpio.txt -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/gpio/actions,owl-gpio.txt b/Documentation/devicetree/bindings/gpio/actions,owl-gpio.txt new file mode 100644 index 000000000000..34283e9195ea --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/actions,owl-gpio.txt @@ -0,0 +1,87 @@ +* Actions Semi OWL GPIO controller bindings + +The GPIOs are organized as individual banks/ports with variable number +of GPIOs. Each bank is represented as an individual GPIO controller. + +Required properties: +- compatible : Should be "actions,s900-gpio" +- reg : Address and range of the GPIO controller registers. +- gpio-controller : Marks the device node as a GPIO controller. +- #gpio-cells : Should be <2>. The first cell is the gpio number + and the second cell is used to specify optional + parameters. +- ngpios : Specifies the number of GPIO lines. +- interrupt-controller : Marks the device node as an interrupt controller. +- #interrupt-cells : Specifies the number of cells needed to encode an + interrupt. Shall be set to 2. The first cell + defines the interrupt number, the second encodes + the trigger flags described in + bindings/interrupt-controller/interrupts.txt + +Optional properties: +- gpio-ranges : Mapping between GPIO and pinctrl + +Examples: + + gpioa: gpio@e01b0000 { + compatible = "actions,s900-gpio"; + reg = <0x0 0xe01b0000 0x0 0x000c>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 0 32>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpiob: gpio@e01b000c { + compatible = "actions,s900-gpio"; + reg = <0x0 0xe01b000c 0x0 0x000c>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 32 32>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpioc: gpio@e01b0018 { + compatible = "actions,s900-gpio"; + reg = <0x0 0xe01b0018 0x0 0x000c>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 64 12>; + ngpios = <12>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpiod: gpio@e01b0024 { + compatible = "actions,s900-gpio"; + reg = <0x0 0xe01b0024 0x0 0x000c>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 76 30>; + ngpios = <30>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpioe: gpio@e01b0030 { + compatible = "actions,s900-gpio"; + reg = <0x0 0xe01b0030 0x0 0x000c>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 106 32>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpiof: gpio@e01b00f0 { + compatible = "actions,s900-gpio"; + reg = <0x0 0xe01b00f0 0x0 0x000c>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 138 8>; + ngpios = <8>; + interrupt-controller; + #interrupt-cells = <2>; + }; From patchwork Wed Mar 28 17:47:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 132542 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp769629ljb; Wed, 28 Mar 2018 10:54:36 -0700 (PDT) X-Google-Smtp-Source: AIpwx481QGIUo5rHm46MPBkiQdDY7uSFeNoRpN6IHC0M3QFX08OU75AkpXphTmqO1C6EZMk0eEuz X-Received: by 10.99.45.131 with SMTP id t125mr3167521pgt.267.1522259675916; Wed, 28 Mar 2018 10:54:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522259675; cv=none; d=google.com; s=arc-20160816; b=FacYVAnWn0lY5Yj3E2hBOtwfQoAJu3Jl046U96zSy8ZVv8xXaKSy7XTttPKz/yeL1Z H7P2bwlxFS0abWsEDiXF3fmXppAlK2Xx9xUqvo+Kl5EUHs/Tziu6Wxw4FqYcBYbjV/86 kYTQPhK2TiZWS0eAV27DsxUmEGUb+c7bC6cynrOAbBHsRiLRM2+Tpa3g5ecuUsYUU2vr ta7X78rJ+0y87LoY+sYUDHiM6OPCVIuyMqndYCzZ4+COGvzEt1GZIkq6sjeSzK3g9UEy utnF8UaqtuWKexp5iBnVVzzb2izYfDkZugk1yV2IDEIU8H2cOfK2NftqWqbXIgR90uPT v8VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=dTKatvveshKL9D+PrCS/ZaM3q7yQmH032vw8Rr2Y5jU=; b=VQzVhrcK9wLCViJ2Hvm9r9EHjHQFPJoC6UEiodVSM3NO++WNRqJ92LkkOU5ZIIC8B4 WNerQm2EuvI2M7SioErsQfps3yU/ZfsjZDbdrpDlI7D/pB61LW+t6z19Zs8Vh7kzLlpZ 8llAFKPqMDdSq6zvDYYZDT18NQS6Zz57ju2yEGD/zvcIXFlvDahwwDJzNVnKnRb6a27J LD0Wbq+rf3CQ6u1J0nQZbeb+HmWodEBFDWttDPdtYB2RNoh+5w6A0rIqTCEDMVdfLWgp YW6/FwMeLRKqxCzwrQOjmt73v1AyaXRLJ+GGGiyOrinFhKZ1wjsIwn/nLA4eR/cNk0cc Ifxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ZZo6z5K6; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r30si2788476pgu.587.2018.03.28.10.54.35; Wed, 28 Mar 2018 10:54:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ZZo6z5K6; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753306AbeC1Rye (ORCPT + 5 others); Wed, 28 Mar 2018 13:54:34 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:35139 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753270AbeC1Ryb (ORCPT ); Wed, 28 Mar 2018 13:54:31 -0400 Received: by mail-pf0-f195.google.com with SMTP id u86so1306914pfd.2 for ; Wed, 28 Mar 2018 10:54:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=oAN6pjPhy14o7ISGcCV/W0Qs8Ev7mrrU9RCg6z+pJy4=; b=ZZo6z5K6/6EnAJGPQKwFgTYaStTOzwapALtlRv7Mo6kMVZuAS6WRih6NvEf1qb+z6y n6dCeLpqPerfM8C++EP8F8rtfK4Bfc+WJODJsSK2zTj/LrlEabWuBG/60rI1j1N8iMF/ ktnAwN4xYiw8vPW8sQCmSE+jqFaf4N/ur1cnE= 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=oAN6pjPhy14o7ISGcCV/W0Qs8Ev7mrrU9RCg6z+pJy4=; b=G+LGZhhJSrKeCaaayc0/RbdMsv3dnuNcyrDViQQdSD2Z0R1WFBAEfsDylVlJKO6Hpb EvTSDw9Cg5ONa8TdCT8sQAewd1NlG5ghK9ZlaKQsh+k7eujk7FEQh5gxZ79z9OLne6qn xW+jTg2tnALv++pzpewU5uvE2xhyj1uk57sn6X31HT/O8C6ONlURFPvL6ChZyGGVwaDS u1ZtvP/UI8eHgiFe5LtLJAmyZyjXgibthQWYUw5IGK3p+WXCG7cDa96DP6g16Qid6/QW faXqMtH2ByvH2pKNRndhJPdeb+mZFxCllclxOmzvM0a2Aaa4Vustgl60/1yvChdLJsWZ AGyQ== X-Gm-Message-State: AElRT7Fd7jjiFWc72AIDWsuIQZgvvCqrdEAhrKaefHPYBllTCFx0n6sJ ERYkt5nnybJIgFaUIPIWDEsF X-Received: by 2002:a17:902:a701:: with SMTP id w1-v6mr254410plq.109.1522259670538; Wed, 28 Mar 2018 10:54:30 -0700 (PDT) Received: from localhost.localdomain ([2405:204:70c6:7103:1d04:9825:cfd:7751]) by smtp.gmail.com with ESMTPSA id j21sm7404446pgn.61.2018.03.28.10.54.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Mar 2018 10:54:29 -0700 (PDT) From: Manivannan Sadhasivam To: linus.walleij@linaro.org, robh+dt@kernel.org, afaerber@suse.de Cc: liuwei@actions-semi.com, mp-cs@actions-semi.com, 96boards@ucrobotics.com, devicetree@vger.kernel.org, andy.shevchenko@gmail.com, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, hzhang@ucrobotics.com, bdong@ucrobotics.com, manivannanece23@gmail.com, Manivannan Sadhasivam Subject: [PATCH v6 6/9] arm64: dts: actions: Add gpio line names to Bubblegum-96 board Date: Wed, 28 Mar 2018 23:17:00 +0530 Message-Id: <20180328174703.19778-7-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180328174703.19778-1-manivannan.sadhasivam@linaro.org> References: <20180328174703.19778-1-manivannan.sadhasivam@linaro.org> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Add gpio line names to Actions Semi S900 based Bubblegum-96 board. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Linus Walleij --- arch/arm64/boot/dts/actions/s900-bubblegum-96.dts | 195 ++++++++++++++++++++++ 1 file changed, 195 insertions(+) -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts b/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts index ff043c961d75..02dbb4291d68 100644 --- a/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts +++ b/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts @@ -34,3 +34,198 @@ status = "okay"; clocks = <&cmu CLK_UART5>; }; + +/* + * GPIO name legend: proper name = the GPIO line is used as GPIO + * NC = not connected (pin out but not routed from the chip to + * anything the board) + * "[PER]" = pin is muxed for [peripheral] (not GPIO) + * LSEC = Low Speed External Connector + * HSEC = High Speed External Connector + * + * Line names are taken from the schematic "Schematics Bubblegum96" + * version v1.0 + * + * For the lines routed to the external connectors the + * lines are named after the 96Boards CE Specification 1.0, + * Appendix "Expansion Connector Signal Description". + * + * When the 96Boards naming of a line and the schematic name of + * the same line are in conflict, the 96Boards specification + * takes precedence, which means that the external UART on the + * LSEC is named UART0 while the schematic and SoC names this + * UART2. Only exception is the I2C lines for which the schematic + * naming has been preferred. This is only for the informational + * lines i.e. "[FOO]", the GPIO named lines "GPIO-A" thru "GPIO-L" + * are the only ones actually used for GPIO. + */ + +&gpioa { + gpio-line-names = + "GPIO-A", /* GPIO_0, LSEC pin 23 */ + "GPIO-B", /* GPIO_1, LSEC pin 24 */ + "GPIO-C", /* GPIO_2, LSEC pin 25 */ + "GPIO-D", /* GPIO_3, LSEC pin 26 */ + "GPIO-E", /* GPIO_4, LSEC pin 27 */ + "GPIO-F", /* GPIO_5, LSEC pin 28 */ + "GPIO-G", /* GPIO_6, LSEC pin 29 */ + "GPIO-H", /* GPIO_7, LSEC pin 30 */ + "GPIO-I", /* GPIO_8, LSEC pin 31 */ + "GPIO-J", /* GPIO_9, LSEC pin 32 */ + "NC", /* GPIO_10 */ + "NC", /* GPIO_11 */ + "SIRQ2_1V8", /* GPIO_12 */ + "PCM0_OUT", /* GPIO_13 */ + "WIFI_LED", /* GPIO_14 */ + "PCM0_SYNC", /* GPIO_15 */ + "PCM0_CLK", /* GPIO_16 */ + "PCM0_IN", /* GPIO_17 */ + "BT_LED", /* GPIO_18 */ + "LED0", /* GPIO_19 */ + "LED1", /* GPIO_20 */ + "JTAG_TCK", /* GPIO_21 */ + "JTAG_TMS", /* GPIO_22 */ + "JTAG_TDI", /* GPIO_23 */ + "JTAG_TDO", /* GPIO_24 */ + "[UART1_RxD]", /* GPIO_25, LSEC pin 13 */ + "NC", /* GPIO_26 */ + "[UART1_TxD]", /* GPIO_27, LSEC pin 11 */ + "SD0_D0", /* GPIO_28 */ + "SD0_D1", /* GPIO_29 */ + "SD0_D2", /* GPIO_30 */ + "SD0_D3"; /* GPIO_31 */ +}; + +&gpiob { + gpio-line-names = + "SD1_D0", /* GPIO_32 */ + "SD1_D1", /* GPIO_33 */ + "SD1_D2", /* GPIO_34 */ + "SD1_D3", /* GPIO_35 */ + "SD0_CMD", /* GPIO_36 */ + "SD0_CLK", /* GPIO_37 */ + "SD1_CMD", /* GPIO_38 */ + "SD1_CLK", /* GPIO_39 */ + "SPI0_SCLK", /* GPIO_40, LSEC pin 8 */ + "SPI0_CS", /* GPIO_41, LSEC pin 12 */ + "SPI0_DIN", /* GPIO_42, LSEC pin 10 */ + "SPI0_DOUT", /* GPIO_43, LSEC pin 14 */ + "I2C5_SDATA", /* GPIO_44, HSEC pin 36 */ + "I2C5_SCLK", /* GPIO_45, HSEC pin 38 */ + "UART0_RX", /* GPIO_46, LSEC pin 7 */ + "UART0_TX", /* GPIO_47, LSEC pin 5 */ + "UART0_RTSB", /* GPIO_48, LSEC pin 9 */ + "UART0_CTSB", /* GPIO_49, LSEC pin 3 */ + "I2C4_SCLK", /* GPIO_50, HSEC pin 32 */ + "I2C4_SDATA", /* GPIO_51, HSEC pin 34 */ + "I2C0_SCLK", /* GPIO_52 */ + "I2C0_SDATA", /* GPIO_53 */ + "I2C1_SCLK", /* GPIO_54, LSEC pin 15 */ + "I2C1_SDATA", /* GPIO_55, LSEC pin 17 */ + "I2C2_SCLK", /* GPIO_56, LSEC pin 19 */ + "I2C2_SDATA", /* GPIO_57, LSEC pin 21 */ + "CSI0_DN0", /* GPIO_58, HSEC pin 10 */ + "CSI0_DP0", /* GPIO_59, HSEC pin 8 */ + "CSI0_DN1", /* GPIO_60, HSEC pin 16 */ + "CSI0_DP1", /* GPIO_61, HSEC pin 14 */ + "CSI0_CN", /* GPIO_62, HSEC pin 4 */ + "CSI0_CP"; /* GPIO_63, HSEC pin 2 */ +}; + +&gpioc { + gpio-line-names = + "CSI0_DN2", /* GPIO_64, HSEC pin 22 */ + "CSI0_DP2", /* GPIO_65, HSEC pin 20 */ + "CSI0_DN3", /* GPIO_66, HSEC pin 28 */ + "CSI0_DP3", /* GPIO_67, HSEC pin 26 */ + "[CLK0]", /* GPIO_68, HSEC pin 15 */ + "CSI1_DN0", /* GPIO_69, HSEC pin 44 */ + "CSI1_DP0", /* GPIO_70, HSEC pin 42 */ + "CSI1_DN1", /* GPIO_71, HSEC pin 50 */ + "CSI1_DP1", /* GPIO_72, HSEC pin 48 */ + "CSI1_CN", /* GPIO_73, HSEC pin 56 */ + "CSI1_CP", /* GPIO_74, HSEC pin 54 */ + "[CLK1]"; /* GPIO_75, HSEC pin 17 */ +}; + +&gpiod { + gpio-line-names = + "[GPIOD0]", /* GPIO_76 */ + "[GPIOD1]", /* GPIO_77 */ + "BT_RST_N", /* GPIO_78 */ + "EXT_DC_EN", /* GPIO_79 */ + "[PCM_DI]", /* GPIO_80, LSEC pin 22 */ + "[PCM_DO]", /* GPIO_81, LSEC pin 20 */ + "[PCM_CLK]", /* GPIO_82, LSEC pin 18 */ + "[PCM_FS]", /* GPIO_83, LSEC pin 16 */ + "WAKE_BT", /* GPIO_84 */ + "WL_REG_ON", /* GPIO_85 */ + "NC", /* GPIO_86 */ + "NC", /* GPIO_87 */ + "NC", /* GPIO_88 */ + "NC", /* GPIO_89 */ + "NC", /* GPIO_90 */ + "WIFI_WAKE", /* GPIO_91 */ + "BT_WAKE", /* GPIO_92 */ + "NC", /* GPIO_93 */ + "OTG_EN2", /* GPIO_94 */ + "OTG_EN", /* GPIO_95 */ + "DSI_DP3", /* GPIO_96, HSEC pin 45 */ + "DSI_DN3", /* GPIO_97, HSEC pin 47 */ + "DSI_DP1", /* GPIO_98, HSEC pin 33 */ + "DSI_DN1", /* GPIO_99, HSEC pin 35 */ + "DSI_CP", /* GPIO_100, HSEC pin 21 */ + "DSI_CN", /* GPIO_101, HSEC pin 23 */ + "DSI_DP0", /* GPIO_102, HSEC pin 27 */ + "DSI_DN0", /* GPIO_103, HSEC pin 29 */ + "DSI_DP2", /* GPIO_104, HSEC pin 39 */ + "DSI_DN2"; /* GPIO_105, HSEC pin 41 */ +}; + +&gpioe { + gpio-line-names = + "N0_D0", /* GPIO_106 */ + "N0_D1", /* GPIO_107 */ + "N0_D2", /* GPIO_108 */ + "N0_D3", /* GPIO_109 */ + "N0_D4", /* GPIO_110 */ + "N0_D5", /* GPIO_111 */ + "N0_D6", /* GPIO_112 */ + "N0_D7", /* GPIO_113 */ + "N0_DQS", /* GPIO_114 */ + "N0_DQSN", /* GPIO_115 */ + "NC", /* GPIO_116 */ + "NC", /* GPIO_117 */ + "NC", /* GPIO_118 */ + "N0_CEB1", /* GPIO_119 */ + "CARD_DT", /* GPIO_120 */ + "N0_CEB3", /* GPIO_121 */ + "SD_DAT0", /* GPIO_122, HSEC pin 1 */ + "SD_DAT1", /* GPIO_123, HSEC pin 3 */ + "SD_DAT2", /* GPIO_124, HSEC pin 5 */ + "SD_DAT3", /* GPIO_125, HSEC pin 7 */ + "NC", /* GPIO_126 */ + "NC", /* GPIO_127 */ + "[PWR_BTN_N]", /* GPIO_128, LSEC pin 4 */ + "[RST_BTN_N]", /* GPIO_129, LSEC pin 6 */ + "NC", /* GPIO_130 */ + "SD_CMD", /* GPIO_131 */ + "GPIO-L", /* GPIO_132, LSEC pin 34 */ + "GPIO-K", /* GPIO_133, LSEC pin 33 */ + "NC", /* GPIO_134 */ + "SD_SCLK", /* GPIO_135 */ + "NC", /* GPIO_136 */ + "JTAG_TRST"; /* GPIO_137 */ +}; + +&gpiof { + gpio-line-names = + "I2C3_SCLK", /* GPIO_138 */ + "LED2", /* GPIO_139 */ + "LED3", /* GPIO_140 */ + "I2C3_SDATA", /* GPIO_141 */ + "UART3_RX", /* GPIO_142 */ + "UART3_TX", /* GPIO_143 */ + "UART3_RTSB", /* GPIO_144 */ + "UART3_CTSB"; /* GPIO_145 */ +};