Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3304978ybp; Sun, 13 Oct 2019 04:42:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyM6iwY/MxdvN75tLwLSCDlEcwY/sJ81rnOI6gxZtuma+UtGFeq6u0OD32tDWFMM+kTCDB X-Received: by 2002:a05:6402:74b:: with SMTP id p11mr23101916edy.84.1570966956911; Sun, 13 Oct 2019 04:42:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570966956; cv=none; d=google.com; s=arc-20160816; b=mcpewAoL2tn+c8cd4ynRWID0Onq1DFdrdnVcJ8vOdDoZV2KFRFMNOi7q+DuWZTuYtf tgVNLaLf0nMVw3upbUgGOG3hMoLW9G7dhdLbrrBR2pQNuljeokwuW12TMrpjrhxMBDnx hHvy3wixurotif+R0FFV3J9GaroDxGce2grKAdi/nhq57HcJwkfM1leh3Rq+5SFrwxqB LoucLQr95GU92y13O2+hfpvqNrdsJpdYEkgdDwK/osj+aTLMqAI/04vYXDncI+rmuesV RcVsIKkoW3SweR9Wl/2TTmHbRzqBIlKRvOSLqeARUjPW/3cVa+Pq9YiTXD8ZAi3qVqJh eXDQ== 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; bh=y09+A5UHDqq1M123Rs3HINM2fRslFLIQNP0UXzIqt20=; b=ZFLJpr9MSbpe6rpQ3JArea+HxVgjUL4BKSXWcB02Pes92qzRVX7wAxkjqfVYQCJEuw nIq5vbW6lWcRX5lgIDVOujrwPZjOVnbFU9d5FvLeuHOR5cnlAcmOurwlj5/UCQKEJQ9S UjmW/hvMW/47UKA6FDWGRevFG71n9SMJPr824mqUgxB2xknr9WtxpMop+1cku/CYNaoW xMZL89WUfQuTvM+0gOXXMlm5x2jp+ulvJ6VwmOUDxm7akIAK2mbA4oQYH6/5GUgp5EDK zLuEyhnvgzjptN0VxDQVY9D0za3IQ/wb8BXlPEXU8hNWyIlnc+Rx6l40A538xAK8bIdE Gn8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="gqSE/9m1"; 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 i55si10396392eda.88.2019.10.13.04.42.13; Sun, 13 Oct 2019 04:42:36 -0700 (PDT) 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="gqSE/9m1"; 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 S1729082AbfJMLlG (ORCPT + 99 others); Sun, 13 Oct 2019 07:41:06 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:42159 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729032AbfJMLlF (ORCPT ); Sun, 13 Oct 2019 07:41:05 -0400 Received: by mail-pl1-f195.google.com with SMTP id e5so6694072pls.9 for ; Sun, 13 Oct 2019 04:41:04 -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=y09+A5UHDqq1M123Rs3HINM2fRslFLIQNP0UXzIqt20=; b=gqSE/9m1WqiSfPyiKe+uvZTMgyIT5zlJH42apXag/biHxc9GIV81bnsZ3Fr8lz7Wsx xd5JIWwp1jilXTBbCipYBf7D/W6o55IbdGPZavbhPIsfGpcYPMBMs+aHJECVP4kALRDN DVIpLQZoBLwwXx/8NUmpJIbSNfMTxmh43tmIyUKgUM8obNRiG1VvDt7bGaQWilaLR4q8 5U7on+Ggi6Nv1E5TkIFQUo9yNGCoxrz4SkuJcP3UQC6zXcdbVci/TYDfBkjOPRGQHthx O7AO93ORY4+tHliWnzDgGVqmwz/6FqKAH2XRnwGq6/J4Ch5mLjCFiFutT6vmzgNMsV6s e6Bw== 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=y09+A5UHDqq1M123Rs3HINM2fRslFLIQNP0UXzIqt20=; b=EfVX7eF4Grt4kGqDnMc/7wZZaoVKdADRNzcD5bX8pZeqUn098f5s8p3VyjXT0u+GLP u6R2AOn7XtXEnJr66+g9Ydc+lYdEkpsjnl0HskfCEsAoU9lixGzQcXupeThhl9hKvJhM aR510+E6f0gj1nX2xVWVqEWxsVMzZIDQDLRmPXW8+CqQXz2zyS3Yr+SkfmwR08fMakgL kjWfCvyt8A5uCG6xfJr1LQmkg/JuXCgeLr78Li+4gwxPkPxy2Gzn/BSY3xvRcds+6p01 HSsXGvpOkHo6v+MMinIHh55UnZPsfKmvPJ8izxwOQpZsCmVI+vHpI6bS+2DmYZY0/PBJ HLLw== X-Gm-Message-State: APjAAAWOBC8oEB5iKjRE2q3CnlLCcfJrfYjrXhd/d3XfwMTbUpRmeq0I X+HSYf+aoSPXoAPrrW7MdY9a X-Received: by 2002:a17:902:aa91:: with SMTP id d17mr24312402plr.69.1570966863648; Sun, 13 Oct 2019 04:41:03 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:8e:4f53:b957:652b:7622:f311]) by smtp.gmail.com with ESMTPSA id g12sm23165736pfb.97.2019.10.13.04.40.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Oct 2019 04:41:03 -0700 (PDT) From: Manivannan Sadhasivam To: linus.walleij@linaro.org, bgolaszewski@baylibre.com Cc: linux-arm-kernel@lists.infradead.org, linux-unisoc@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, orsonzhai@gmail.com, Manivannan Sadhasivam Subject: [PATCH 3/4] ARM: dts: Add RDA8810PL GPIO controllers Date: Sun, 13 Oct 2019 17:10:36 +0530 Message-Id: <20191013114037.9845-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191013114037.9845-1-manivannan.sadhasivam@linaro.org> References: <20191013114037.9845-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 controllers for RDA8810PL SoC. There are 4 GPIO controllers in this SoC with maximum of 32 gpios. Except GPIOC, all controllers are capable of generating edge/level interrupts from first 8 lines. Signed-off-by: Manivannan Sadhasivam --- arch/arm/boot/dts/rda8810pl.dtsi | 48 ++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm/boot/dts/rda8810pl.dtsi b/arch/arm/boot/dts/rda8810pl.dtsi index 19cde895bf65..f30d6ece49fb 100644 --- a/arch/arm/boot/dts/rda8810pl.dtsi +++ b/arch/arm/boot/dts/rda8810pl.dtsi @@ -33,6 +33,21 @@ ranges; }; + modem@10000000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x10000000 0xfffffff>; + + gpioc@1a08000 { + compatible = "rda,8810pl-gpio"; + reg = <0x1a08000 0x1000>; + gpio-controller; + #gpio-cells = <2>; + ngpios = <32>; + }; + }; + apb@20800000 { compatible = "simple-bus"; #address-cells = <1>; @@ -60,6 +75,39 @@ <17 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "hwtimer", "ostimer"; }; + + gpioa@30000 { + compatible = "rda,8810pl-gpio"; + reg = <0x30000 0x1000>; + gpio-controller; + #gpio-cells = <2>; + ngpios = <32>; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = <12 IRQ_TYPE_LEVEL_HIGH>; + }; + + gpiob@31000 { + compatible = "rda,8810pl-gpio"; + reg = <0x31000 0x1000>; + gpio-controller; + #gpio-cells = <2>; + ngpios = <32>; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = <13 IRQ_TYPE_LEVEL_HIGH>; + }; + + gpiod@32000 { + compatible = "rda,8810pl-gpio"; + reg = <0x32000 0x1000>; + gpio-controller; + #gpio-cells = <2>; + ngpios = <32>; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = <14 IRQ_TYPE_LEVEL_HIGH>; + }; }; apb@20a00000 { -- 2.17.1