From patchwork Tue Oct 15 17:30:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 176391 Delivered-To: patch@linaro.org Received: by 2002:ac9:3c86:0:0:0:0:0 with SMTP id w6csp6077412ocf; Tue, 15 Oct 2019 10:30:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3utrdWVBK150r+NyzKXbQMz9CSHx4JbIHV0Y2V5s6M/nzzIv8nmuSBDKibq+yPRc6Aei1 X-Received: by 2002:a17:906:300a:: with SMTP id 10mr35660214ejz.104.1571160656614; Tue, 15 Oct 2019 10:30:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571160656; cv=none; d=google.com; s=arc-20160816; b=iLgXOxD/f4JxXXL4BuXX5aWBADBTC4LQJY26HEmvaX7zOg/adiu29O6f1OBzyAU7OA 3EFiSxC1WjHbw4RDneiW1t5c/loQcq0wwfyS64R/sKHc6bJMU9Vv7yD2B2WgkqFdNM0+ Ru79lXjFtC6CoXXAV9N0IElcF3Gnuh1IUjU8A5ABQspJOJT6DkVEFL6ptOEqWXa5km9z nbs5XdgxXAWWrk3bV1/EgdSMGjvRG/i7ue0UJ9IVPwXCgj18JJDa/G1tJiM1T+QkeCkW UbZUh8qRfIrLFnKh+ypjByonKQzs/qVGbyOzs9GNSCSP4yPUgsi0O3zdQlTMpP4cdOgg wCNQ== 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=K0GpCMSxffrq4TfFiaO5XJAYqBPdFCN0Mn0478aG8TUATg+wG7jDxRKUkQ1zqy8neb V+t72+eojAlfJQhSHJE356j9VIt4X8AjjcNW6JxfzshSC6uXUBSW7xSpwGaYcp9CXCF2 DlibucRYedv++vwLHFHt15GAUZmUfoWdJIifAwWQwWVjHhb8S+YWTDwqmO/JdVUN5Phg hAcaEUAe1fm8D/je9Hab6IjdsbODVzT3RVliyGlVg6v877cDwNq5SWoB9UdU75NZ2Vj5 Led1sx7cwEPJSrT9benewdKl2r/Lj1HJ4taSZBJUpcTzendEn+OGCvWNZ5ZBICTnkm7v T+lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eZ82Yhwt; 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 g37si15745289edg.59.2019.10.15.10.30.56; Tue, 15 Oct 2019 10:30:56 -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=eZ82Yhwt; 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 S2388794AbfJORaw (ORCPT + 23 others); Tue, 15 Oct 2019 13:30:52 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:33533 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729632AbfJORau (ORCPT ); Tue, 15 Oct 2019 13:30:50 -0400 Received: by mail-pl1-f195.google.com with SMTP id d22so9928973pls.0 for ; Tue, 15 Oct 2019 10:30: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=y09+A5UHDqq1M123Rs3HINM2fRslFLIQNP0UXzIqt20=; b=eZ82YhwtUAOVg9G2zs0bTyLwRz0ch+7l+1a7/7Qr+2qWB2PvexBHVq2rpE2mMUHlE8 69cksLWwsICq8VYOOQVEcdkVSUZEj4lz/IJvdKN457KBXh3QXdfO3GrvWb1TJLALJOr7 Ti6ewei0hf0hy8j0YxESEUn/79rKNQhTOW3CIQqgecONAFnQi8Ca93kMujRzNa5FRabu VmGvXYPdukV8FLvCNlhMf6xWyncyMH3VzgfomB4vjvpoljfVhoaKenw9WH6NVry7t6gv 11DUYl30BqMBJnyqE933rTCr2o40uTZdERufP80A3wjxXssozn3ngkvUuHnXlmWDteTd bqcg== 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=tYOKxeeDiucmr9+sb27loYOLuIOIYwvJ6Yworqxksdm255fMqveCkxwzSvxMYqQmyc Af0xNdbQyvLgH21JtfTTn8Epxy66QU7AsaHpOpA42ijZMA4EayL1gGqqe5EumuIN88t6 CdveAweRIuAQqqZQdiHxCWcDtx2N5bendjX9/hyT0dHYa1PeXRVuv3zuzj0+5umBNuP4 XJWOHCvWkm+UvIpZ1JOIOPP1599yNQVTtVvixGBiGmsqV5bBNWk6Z0LAaRtZFFfuwm9E Zz0PrIlafiI/Bc36AlORx4OU7eLPJwZWGKXGawbJn6xrHFcAN5vB0s20oF/oZ0f2qM6O 5eaw== X-Gm-Message-State: APjAAAXcj92Qw6PJzlIo52qpIaHAFaoq01qhmsmEbjlUf9QZ9sxnwHtz wuLDjB0GauWbMCn4gg/FQnAv X-Received: by 2002:a17:902:d698:: with SMTP id v24mr36554507ply.89.1571160649769; Tue, 15 Oct 2019 10:30:49 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:6003:7cb8:25e8:2c45:fab2:b0c7]) by smtp.gmail.com with ESMTPSA id w11sm28033563pfd.116.2019.10.15.10.30.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 10:30:49 -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 v2 2/4] ARM: dts: Add RDA8810PL GPIO controllers Date: Tue, 15 Oct 2019 23:00:24 +0530 Message-Id: <20191015173026.9962-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191015173026.9962-1-manivannan.sadhasivam@linaro.org> References: <20191015173026.9962-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(+) -- 2.17.1 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 {