From patchwork Fri Mar 9 05:13:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 131080 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp573309lja; Thu, 8 Mar 2018 21:15:22 -0800 (PST) X-Google-Smtp-Source: AG47ELvUaUU0keYNOd4XRd5KRnNpDATNPd19gUTJCzDitaF9lvYgEyL3y3vSKeQ2u6TXIZt/oady X-Received: by 10.101.83.140 with SMTP id x12mr22593388pgq.288.1520572522631; Thu, 08 Mar 2018 21:15:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520572522; cv=none; d=google.com; s=arc-20160816; b=R4HBnSkxOvxa7Dex8VVHacdjofsANVzk+ODkB3mqjJRxFGqfLJOCLuoms7WAfiDrcv AyHzegGsXlE8CNnJt/G5oxliTeXYt6eSPYY6pMUPVK/3S6+v5SY/Y74dZ4XmnJAKNPOl nmAa6JIHZxZaNZ7BFXxfRSU6TSbqyj1pR/XNDENttxKkwGLm5Ytl01NAi8uDZTw6x23Y +G5LFdsjFXBewgBj748DSlSgsQiX5XmImWJF7AM/ckTTbqCL9Rxe7+a63bkPJfyx0Vti PARvpJsR16zl9qs5nZDMreVCTFOpUoafXGQRZrtYJJW8aFT+IGPHiYUJhMINLVz2riwZ kW4g== 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=6jigBe5n0YVKnLnYLg8nkjPnG+zab2GbcAeRN+oS2XE=; b=wvR7yvivHGzuzyhtnrFceyFawTJXkJzXWbTdZWHkPOvfsd1mnKApURYt7XQqVKAn1M t2PWUHI9tBRjiOgqQjeHEC6yar0PioJXb55REPlTz0nHxKIO8QT+RPlf4cm4KbdQlFuM 9cyUnJ9EMcv/6nYzOle5/LITwUAx419/2ZdhvI7IUFkndfwRf9HqzXiUp6VDd8QjzDBu zxbr+CaqMGRgNiN8zJfAQQGr6yo5ErzNxXvcc04LlZbVL/yKzM/IEz3qipSmHHUi2I0Q ix8rWkV9mRaugX08cPCHAlZff0RRPZttzE/ftOS6Nsq0EoWDi4qPr1JuH8cZQ1M96gM2 sIwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=frF2BPmk; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 g1si197673pgc.726.2018.03.08.21.15.22; Thu, 08 Mar 2018 21:15:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=frF2BPmk; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1751612AbeCIFPU (ORCPT + 6 others); Fri, 9 Mar 2018 00:15:20 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:39629 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751290AbeCIFPQ (ORCPT ); Fri, 9 Mar 2018 00:15:16 -0500 Received: by mail-pg0-f66.google.com with SMTP id e3so3170331pga.6 for ; Thu, 08 Mar 2018 21:15:16 -0800 (PST) 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=0SH3ErUc7yq84SE3yUwoba4n2La6P7IDW1QmKbXXEYg=; b=frF2BPmkukLOLf/6/st962EtJ/T7DC3fHaGwL0YgO4/wGpiAwM0Ks5Ldyc3shpe5A2 PwhFVxz49gazcdnh3DiPym2/FPxgrYqV+GGpBVfbZY3XJR4wQ4qXsXQ9uS6KGcvC50xC ERybanFkW+rHGn7CgROFttOjyKIOnjIBBsQyA= 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=0SH3ErUc7yq84SE3yUwoba4n2La6P7IDW1QmKbXXEYg=; b=bd3TZ7e3VI3HM9DJU/4WAfbZBkhpSYP7cokGVW2tqb7ExiATR7qe18uEvkDIkF6NsF xOhpYmFyjYedrCgZwu+/PJoUpQGWxyE3DNBfDXJleoH50g1TIYYPjrSycAdOrt/GvjHo gxP+Ll/kTrN5oIo7SEKoMaQoJZlXzYJ8YASLSjVUHWUAvLB0MPiE3uJYX34kgBxuVUE9 l88HLfoumxH/zZWS38ksQB8pEq0KRNkmhJhpxJpgoYtYRnm7qQQhlOEQ2l3azQmxnLh0 BCFBkwQrsSMSZSuWO7wQUH2BzACz5lISB0ueofzzczqMYZBkcqDuQtAIMA/TMSXCoo/z E82Q== X-Gm-Message-State: APf1xPBKIeq2ORgaLTOPPJGxkpB+wc/PQwHhAGZb0iDF9vh/zEhnqNQM vFf8KKVaQ4DGmz4ilFRrPJ1P X-Received: by 10.98.62.196 with SMTP id y65mr28507328pfj.24.1520572516095; Thu, 08 Mar 2018 21:15:16 -0800 (PST) Received: from localhost.localdomain ([2405:204:7081:af21:ac40:fc54:f562:4008]) by smtp.gmail.com with ESMTPSA id i186sm635182pfg.25.2018.03.08.21.15.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Mar 2018 21:15:15 -0800 (PST) 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 v5 4/9] dt-bindings: gpio: Add gpio nodes for Actions S900 SoC Date: Fri, 9 Mar 2018 10:43:40 +0530 Message-Id: <20180309051345.1011-5-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180309051345.1011-1-manivannan.sadhasivam@linaro.org> References: <20180309051345.1011-1-manivannan.sadhasivam@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add gpio nodes for Actions Semi S900 SoC. Signed-off-by: Manivannan Sadhasivam --- .../devicetree/bindings/gpio/actions,owl-gpio.txt | 90 ++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/actions,owl-gpio.txt -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" 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..ad7d32ce2abe --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/actions,owl-gpio.txt @@ -0,0 +1,90 @@ +* 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 0x1000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 0 32>; + ngpios = <32>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpiob: gpio@e01b000c { + compatible = "actions,s900-gpio"; + reg = <0x0 0xe01b000c 0x0 0x1000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 32 32>; + ngpios = <32>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpioc: gpio@e01b0018 { + compatible = "actions,s900-gpio"; + reg = <0x0 0xe01b0018 0x0 0x1000>; + 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 0x1000>; + 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 0x1000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 106 32>; + ngpios = <32>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpiof: gpio@e01b00f0 { + compatible = "actions,s900-gpio"; + reg = <0x0 0xe01b00f0 0x0 0x1000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 138 8>; + ngpios = <8>; + interrupt-controller; + #interrupt-cells = <2>; + }; From patchwork Fri Mar 9 05:13:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 131081 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp573401lja; Thu, 8 Mar 2018 21:15:29 -0800 (PST) X-Google-Smtp-Source: AG47ELvMZjPfOFx1q5oDQYN2TfCPWCIdgVUWiCR1mneSk/VCbBFJ+BROFKK7Pd/QBr/Nfv/y+H1f X-Received: by 2002:a17:902:f44:: with SMTP id 62-v6mr25798094ply.27.1520572529672; Thu, 08 Mar 2018 21:15:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520572529; cv=none; d=google.com; s=arc-20160816; b=LSCy9oZUc+6QzTzZuYZdjR2sCoJOs5uNXwTswthFtpQv/3MjRbFof26Ice16JXAUFm xiuSElwTzfnROMGMJksFGIJiXjn8szcl0GMbNth5CfJp+QIW/P5jk7wIK7bxeP/mxRVl lJO/HTSlPA1YnFbnBSd5eMac7x7xgOygQxH3vT1EHYtvmKM796dof7Re8bTAP/uSMeya /PJOECNmYWnhetK3rGzxn8KEW9gLl0ut54h0k13TGcLMPb68NxLd3gu/ev8E5WUEvqBz /9Kyr/y7/KAXUxDzhr2DXub14R6zQu9xPkm0tJxmF+jImsYPF7jMRL7BprKYX6yIfVlf 7SfA== 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=ij7nfKaNcXEFQpCS48uR/dEMrr/KQJvWALP1CmDU3ZA=; b=yQVLuir6Z7ktDO66LbBmwEBlSw7yDmAq0fR8cZC+HTRY/WAs7knxF2tiWh53n7yOUJ 2u4bgkVxEBeGhw9TSgSErKIYlANEGETRJ5JlyMFEBZZrsxsu8d9zjBghoaJfFQfEsjEU 649DJzWAsVSADu3jhJDcUbhpIm5OpR8L5Wm1LDq1sT6PreM0ThyODQZ9/GxvK1a0CWmw TgnqoFUciCds52Ssk+almw88qYhAkEv4V33G8GQ7AdDGkmGNhP3vBLZD9Qc+r6coW3cK eEsvh+3wYdqtBqAlzJFh7c+2YBcVqx6IYjp6H2/zlIfXu66GJFxeDSuy517j9Pm8eR+p vT+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FvVd9BI3; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 n11-v6si235287plg.565.2018.03.08.21.15.29; Thu, 08 Mar 2018 21:15:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=FvVd9BI3; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1751729AbeCIFP0 (ORCPT + 6 others); Fri, 9 Mar 2018 00:15:26 -0500 Received: from mail-pl0-f68.google.com ([209.85.160.68]:38295 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751439AbeCIFPY (ORCPT ); Fri, 9 Mar 2018 00:15:24 -0500 Received: by mail-pl0-f68.google.com with SMTP id m22-v6so4699779pls.5 for ; Thu, 08 Mar 2018 21:15:24 -0800 (PST) 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=kl1gqllUdffTRX6r+Sri999jkRDFobIrAY+7Ow9Ey64=; b=FvVd9BI3FDp2XsSeoAAfTeePIK7QYOmQBnjU/2YE9jl/0y8z8ypkpfTf4zqlPprTDa uaOP9HhaA/ckS+J9en407rSi2iERcCrVHA0tNuHv12IJj8rf4Am9qzUgASBbkTsRvSVW vMBTYuUF9YGkqgxXwycd6vpDIWCfqaqihqFLY= 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=kl1gqllUdffTRX6r+Sri999jkRDFobIrAY+7Ow9Ey64=; b=r7gmY4snGXByUTyKnFrIRiRuJ8cxmWEy7spi/07YisAUgDLLYQF3Uk4h3Pk3lI/H8C 4clhA9TNqoF0Hiv6SF8TBFGR5B3XGjC5RJ+psoDddMMP/zaObF+3yGf3NyjAVkQn/zrS L+7QDWqe7Z2udefdKpUhzAP0x3H/JleshrL7npWbIlsaFTj/Q5fm/vqGdtydqZrG3e2V kwjM5Zc/clb1SwX9nlCKMnSRKd5OPnWkqTquPTg5hB1D0qTOgNkePR/Oq2VAwWBBF492 eJecjt5m4bJkS51rvdIhPPgmVgjWeIL7/2GNurWCXkjsiVAFp3oJlJqzJQrUgyoPYaUl kibg== X-Gm-Message-State: AElRT7FqEo0bKfCbGf5G8lwYd7KhnU2PylaXDeo9nTeTFXPGypJN8t9m d3mwI9mckokFFioRlMI4BXU6 X-Received: by 2002:a17:902:9897:: with SMTP id s23-v6mr14513383plp.105.1520572523894; Thu, 08 Mar 2018 21:15:23 -0800 (PST) Received: from localhost.localdomain ([2405:204:7081:af21:ac40:fc54:f562:4008]) by smtp.gmail.com with ESMTPSA id i186sm635182pfg.25.2018.03.08.21.15.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Mar 2018 21:15:23 -0800 (PST) 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 v5 5/9] arm64: dts: actions: Add S900 gpio nodes Date: Fri, 9 Mar 2018 10:43:41 +0530 Message-Id: <20180309051345.1011-6-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180309051345.1011-1-manivannan.sadhasivam@linaro.org> References: <20180309051345.1011-1-manivannan.sadhasivam@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add gpio nodes for Actions Semi S900 SoC. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/actions/s900.dtsi | 54 +++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" 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 0156483f0f4d..69ead8a24b6b 100644 --- a/arch/arm64/boot/dts/actions/s900.dtsi +++ b/arch/arm64/boot/dts/actions/s900.dtsi @@ -180,6 +180,60 @@ clocks = <&cmu CLK_GPIO>; }; + gpioa: gpio@e01b0000 { + compatible = "actions,s900-gpio"; + reg = <0x0 0xe01b0000 0x0 0x1000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 0 32>; + ngpios = <32>; + }; + + gpiob: gpio@e01b000c { + compatible = "actions,s900-gpio"; + reg = <0x0 0xe01b000c 0x0 0x1000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 32 32>; + ngpios = <32>; + }; + + gpioc: gpio@e01b0018 { + compatible = "actions,s900-gpio"; + reg = <0x0 0xe01b0018 0x0 0x1000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 64 12>; + ngpios = <12>; + }; + + gpiod: gpio@e01b0024 { + compatible = "actions,s900-gpio"; + reg = <0x0 0xe01b0024 0x0 0x1000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 76 30>; + ngpios = <30>; + }; + + gpioe: gpio@e01b0030 { + compatible = "actions,s900-gpio"; + reg = <0x0 0xe01b0030 0x0 0x1000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 106 32>; + ngpios = <32>; + }; + + gpiof: gpio@e01b00f0 { + compatible = "actions,s900-gpio"; + reg = <0x0 0xe01b00f0 0x0 0x1000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 138 8>; + ngpios = <8>; + }; + timer: timer@e0228000 { compatible = "actions,s900-timer"; reg = <0x0 0xe0228000 0x0 0x8000>;