From patchwork Mon Oct 21 06:44:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 177033 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3000566ill; Sun, 20 Oct 2019 23:44:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSOcb4XMdq1yszv3nJoUAQUARqbKs9qJq/vKo4y8UjLhf54UGykXxEXlK+f57UjSoHRhaC X-Received: by 2002:a17:907:429d:: with SMTP id ny21mr21130760ejb.176.1571640279369; Sun, 20 Oct 2019 23:44:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571640279; cv=none; d=google.com; s=arc-20160816; b=YYlva6V8XjvdO5WY8Ova6TyaZAE2+1GLl4HDHdtZUAt6iw56s+oNCT8g58ZKmkyNsq 2uJUgEmb/jU8v3dWt5Cs1cUslNIpt2tjkTwPEldrS+4XynJBgwx7pgt3ILM7FHLjVC2E 1kWBg1/lhxy7z9gmjiQQbvCnEIJC/1VlCJUSmJifFHzhu4fi6qDgwDJiC7XeiAaXOI0v KBaJXEpCwqce/UpF0XnexysaYb8fLVXJjXEE02fR5ft7FomwQgJnvGa80IUeLU4K5GWN 6suQmsqjH72GuWok4EKOd77l8lZCNUzjqPt59ry+CVNnuTycnI0SCU3kYe73rE9Tu00R HShQ== 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=ap7emuH0OXRvA+QVMv4fixrEBUJ+mGjuNlSPY7y3ZSWwDl9aYJSS3y4VEpl2LppE6J Awiq/QuRtOtzL+Ie4dWWJG710HvPCDaRUEhTDBqY+1TTY9NTy6pzMsMDrLc3P/vUaZEP XZDxcDogz3ytNwMQe0MgJn+vw8R2wPDdvLZluo8hvAGITHjimQc93/Ls3sdjWL71CCw8 i3ZwSkeC40D9Amo2wjnwgrtZF+THUOtkQFs9WllBDlhLpBZ84WWuX2kKoibfrBCEK0TI /NSUb96USlVw1C32hfJS6ENUaIfBcV8DHhQTDLkf9aKMMYzEa+TakB23CAWrGuOXKN1p 5/qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="sH0DWc/9"; 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 m21si9479066edc.153.2019.10.20.23.44.39; Sun, 20 Oct 2019 23:44:39 -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="sH0DWc/9"; 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 S1727237AbfJUGoi (ORCPT + 26 others); Mon, 21 Oct 2019 02:44:38 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:33175 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726039AbfJUGoh (ORCPT ); Mon, 21 Oct 2019 02:44:37 -0400 Received: by mail-pl1-f195.google.com with SMTP id d22so6143051pls.0 for ; Sun, 20 Oct 2019 23:44:35 -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=sH0DWc/9J+xztx+v2+sYpW4kmEmR2Klhj5Gi0lkv9oWDCKWpeN4HReH5VgoPdMnqPk owKBe9GYpPO6zuCw0HbO2cstyfFua0nPZyKeiJcr5+bgkHCpnLzL/cmInNJhuY1SD6F1 EHRH+YFFpf9yiDZDGNwTsaMZhMhaS9d6gwL3rQKMBBww/9Xx/tlXLCAJAM0CbVVC8h4Y w12LPhCvOssAhXfSsFjQB7R1ppj2HWxmq3x3uiXEbZEB3vKbtgHIuGumpEC1XhwxMEwR qR5hI4rcnEtBxoha6aA7PKICz1cGMmtsXOiEgrSi0DlAyG7Ai1Px1V9zaMlIfLJppcPr eKvw== 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=E+BvldLWPzCSet+HhEiaKLcwuKQL2wFXqn3o5Ju2+RBA4FbnVRTBauo7UNEwe3xZpx hGsMmxFgdbtdhjYSeNA/Ze5kVA949tiHZ0d9HBcF0iJHjE67nIPT6L4hJhUMFcF12X9z yy6a3GvKcN+gIKZbbl9T9AneCvS6c5SC2WG7RR96sS2J40yx+4RRQ1UXcFmIJ4OQvuNg Ftkgq0ePAhNgifb+qDZAtEd+mcT0pjlegvk4xbhsoOW1kQpPo5EAXgpjIjLc0uUm/D6j euiH9dve34c0THrFxKTEF3P6ao/Q3BBJ+u4yPlzUseHT1SwHhne2dRawLsEbp/xNj1ym q21g== X-Gm-Message-State: APjAAAVvpjiIf6nYimQVKiwt5L8E9RqbHM+Uoa2cMhsSBHcV+Z7tPR4I JoCbnh8Ph6KXnqt5+mQ+1ewv X-Received: by 2002:a17:902:8505:: with SMTP id bj5mr13002459plb.296.1571640275358; Sun, 20 Oct 2019 23:44:35 -0700 (PDT) Received: from localhost.localdomain ([2405:204:700f:8db6:2442:890f:ac37:8127]) by smtp.gmail.com with ESMTPSA id d4sm13156624pjs.9.2019.10.20.23.44.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Oct 2019 23:44:33 -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 v3 2/4] ARM: dts: Add RDA8810PL GPIO controllers Date: Mon, 21 Oct 2019 12:14:11 +0530 Message-Id: <20191021064413.19840-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191021064413.19840-1-manivannan.sadhasivam@linaro.org> References: <20191021064413.19840-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 Reviewed-by: Linus Walleij 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 {