From patchwork Fri Mar 2 03:50: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: 130444 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp829866lja; Thu, 1 Mar 2018 19:52:21 -0800 (PST) X-Google-Smtp-Source: AG47ELulKieC7XOozV/RX6MVhB8s6gXfWoN067K4FPBuYdzKNH3vXxOnhYi5cexWPOFk2fJKAdpb X-Received: by 10.98.75.18 with SMTP id y18mr4299237pfa.124.1519962740942; Thu, 01 Mar 2018 19:52:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519962740; cv=none; d=google.com; s=arc-20160816; b=YfWRjH9NnxPVKkntEyiTYN0FM5npsNEFpU25vuMJ+IBQ+V4L4rn/Uiyw5TRntmg7Cg aPcloZiPjFrxe+IGX+bqRQen/RqhfWllBO3HB6p1XSTkSxEBmn1Mh8NrZ0QnRg5Cceyw sY4naPTd0emHXZJMkxT9ndBw5FAfsGd+IP2JL8IoC2bUfZ44zcKTB8/9blO9Oy0/sDo5 YoBQsnshduVFx+b64uvMsV6k2LevBsUD+JazaSKMm/TdU4U+frQmXxudgyJUj/2x1Dx+ b3Hl/OnoaXjYh29aJk5ecfnh9d+FoU9Hu2DTdcXlfc9OGIZHmo27Wup5NP6m34+movfQ lQJA== 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=OcyYPtrWHA8VQyhnM9ez88EcS2soOXuB7xEhbdWAWl0=; b=FoasoSCJW8sbsEYxYhiof1DzG0xKEs03CJEl/g7SU9WD7sBWlsRdsNnijMreB+ckYz 3L3zfYPGN6ktra80kLqMRQU1/SZlP/wzHA67mv3vrVGODewvoLe5/3o311+jhsj5CTmo RoIAEFtammwzH9g/wv7aY06FVcrAPO3bGfmuKfCfdyDAsiAYbkfxfmnSkfAA3IgFLfqq wiosHPm1DPDKJPfkfVUjA8mZ35zLcC1bnIvzhi3r0FeL5yB7kUrtM1jl0YGM2BkfpUfQ b6Ngh4incS0fV9oyzOkiirjRikBMtMPXQF5GSgFYsSeJV35SMgjBu/y13r8y0bw9fSmE J46Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UuHPPJNn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 j12si3401370pgn.115.2018.03.01.19.52.20; Thu, 01 Mar 2018 19:52:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UuHPPJNn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1164760AbeCBDwR (ORCPT + 28 others); Thu, 1 Mar 2018 22:52:17 -0500 Received: from mail-pl0-f68.google.com ([209.85.160.68]:34257 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1164743AbeCBDwI (ORCPT ); Thu, 1 Mar 2018 22:52:08 -0500 Received: by mail-pl0-f68.google.com with SMTP id u13-v6so4940495plq.1 for ; Thu, 01 Mar 2018 19:52:08 -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=OcyYPtrWHA8VQyhnM9ez88EcS2soOXuB7xEhbdWAWl0=; b=UuHPPJNnHg91bB4pQCVELpiny5qSz5Hjied8VKk4cB4YEpaajSvNM+3uUCpiz0koaQ b+dZW1URmrxu4xyW0VZv5px5WGEtxBJtjSRYuC0aX7xqZMqLMEfaDUNC9rJKalecGCiN AuUXo7b4DdpxV7tZhlE+BmbLYKvdzU34RV5Cc= 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=OcyYPtrWHA8VQyhnM9ez88EcS2soOXuB7xEhbdWAWl0=; b=cvab4VxQUIgmJ6s/zdy6hZuRzXjv3dtFcM17FkhY/BGq+yfi+F8hkHDkjHg3SdApPI T6hrTqhnjNPHA4GdE1mNtZgIIT3HNQO1KClembYJunT3QPySdGGlxoVUIdbcJNEOV997 et9DxeUVLBLy8AoJTx17+UJmiFYby7S/apaOCdt7C3AoPMX4mL0g7FJZKnuVSKK3fPi4 W7aVbEWFncCoPCi/VkHy77HbYYazWU69hS2NsqxEg2BLaBKH07RGetKkIYd2AeSaiqIu wzJYvG3L70HVcE45zfExYx5TjRGmBpRd2bk2uo8nEFUdqroVrI8f+eWEmJyCitQcouVE el/A== X-Gm-Message-State: APf1xPDQurOBCbwhYMfEBRipQglWKjKnmnrquIBCVohzGq6hXbct7e9Q yoNT2shSIVXYNSFVV0mY2z62 X-Received: by 2002:a17:902:c24:: with SMTP id 33-v6mr4034468pls.24.1519962727650; Thu, 01 Mar 2018 19:52:07 -0800 (PST) Received: from localhost.localdomain ([2405:204:71c0:7f9a:bd87:b648:dccb:cbc9]) by smtp.gmail.com with ESMTPSA id n66sm10284997pfn.111.2018.03.01.19.52.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Mar 2018 19:52:07 -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, 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 v4 06/10] arm64: dts: actions: Add S900 gpio nodes Date: Fri, 2 Mar 2018 09:20:41 +0530 Message-Id: <20180302035045.14660-7-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180302035045.14660-1-manivannan.sadhasivam@linaro.org> References: <20180302035045.14660-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add gpio nodes for Actions Semi S900 SoC. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/actions/s900-bubblegum-96.dts | 6 +++ arch/arm64/boot/dts/actions/s900.dtsi | 48 +++++++++++++++++++++++ 2 files changed, 54 insertions(+) -- 2.14.1 diff --git a/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts b/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts index ff043c961d75..60ddaf98401b 100644 --- a/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts +++ b/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts @@ -14,6 +14,12 @@ aliases { serial5 = &uart5; + gpio0 = &gpioa; + gpio1 = &gpiob; + gpio2 = &gpioc; + gpio3 = &gpiod; + gpio4 = &gpioe; + gpio5 = &gpiof; }; chosen { diff --git a/arch/arm64/boot/dts/actions/s900.dtsi b/arch/arm64/boot/dts/actions/s900.dtsi index 0156483f0f4d..9c7843045850 100644 --- a/arch/arm64/boot/dts/actions/s900.dtsi +++ b/arch/arm64/boot/dts/actions/s900.dtsi @@ -180,6 +180,54 @@ clocks = <&cmu CLK_GPIO>; }; + gpioa: gpioa@e01b0000 { + compatible = "actions,s900-gpio"; + reg = <0x0 0xe01b0000 0x0 0x1000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 0 32>; + }; + + gpiob: gpiob@e01b0000 { + compatible = "actions,s900-gpio"; + reg = <0x0 0xe01b0000 0x0 0x1000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 32 32>; + }; + + gpioc: gpioc@e01b0000 { + compatible = "actions,s900-gpio"; + reg = <0x0 0xe01b0000 0x0 0x1000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 64 12>; + }; + + gpiod: gpiod@e01b0000 { + compatible = "actions,s900-gpio"; + reg = <0x0 0xe01b0000 0x0 0x1000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 76 30>; + }; + + gpioe: gpioe@e01b0000 { + compatible = "actions,s900-gpio"; + reg = <0x0 0xe01b0000 0x0 0x1000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 106 32>; + }; + + gpiof: gpiof@e01b0000 { + compatible = "actions,s900-gpio"; + reg = <0x0 0xe01b0000 0x0 0x1000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 138 8>; + }; + timer: timer@e0228000 { compatible = "actions,s900-timer"; reg = <0x0 0xe0228000 0x0 0x8000>;