From patchwork Wed Oct 30 10:11:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 11219397 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0D82F139A for ; Wed, 30 Oct 2019 10:12:09 +0000 (UTC) Received: from web01.groups.io (web01.groups.io [66.175.222.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DAA7D208E3 for ; Wed, 30 Oct 2019 10:12:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=linux.kernel.org header.i=@linux.kernel.org header.b="DCVysRsr" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DAA7D208E3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+26986+751+1554929+3438807@linux.kernel.org X-Received: by 127.0.0.2 with SMTP id dSmhYY1556264xDIHfxe2nwE; Wed, 30 Oct 2019 03:12:08 -0700 X-Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by mx.groups.io with SMTP id smtpd.web11.2570.1572430328263468859 for ; Wed, 30 Oct 2019 03:12:08 -0700 X-Received: by mail.kernel.org (Postfix) id 115DF208C0; Wed, 30 Oct 2019 10:12:08 +0000 (UTC) X-Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E2DC12054F for ; Wed, 30 Oct 2019 10:12:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E2DC12054F X-Received: by mail-pl1-f193.google.com with SMTP id y8so789449plk.0 for ; Wed, 30 Oct 2019 03:12:07 -0700 (PDT) X-Gm-Message-State: 7vUttkCzcHasyCFj2ZUg2Gmjx1554929AA= X-Google-Smtp-Source: APXvYqxV2Mc1csiY8Bpox9lzpL1PF3IEc9F42+WlRSAlUPS4AxkalopAG/izrT9gzJDK9roRT0yqSA== X-Received: by 2002:a17:902:8509:: with SMTP id bj9mr3797271plb.328.1572430327070; Wed, 30 Oct 2019 03:12:07 -0700 (PDT) X-Received: from localhost.localdomain ([2409:4072:618e:77d9:c9fa:423a:3851:8df4]) by smtp.gmail.com with ESMTPSA id x4sm2217141pfi.22.2019.10.30.03.12.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2019 03:12:06 -0700 (PDT) From: Manivannan Sadhasivam To: Linuxkernel+Patchwork-Soc via Email Integration Cc: olof@lixom.net, arnd@arndb.de, linus.walleij@linaro.org, linux-unisoc@lists.infradead.org, Manivannan Sadhasivam Subject: [PATCH 1/1] ARM: dts: Add RDA8810PL GPIO controllers Date: Wed, 30 Oct 2019 15:41:54 +0530 Message-Id: <20191030101154.6312-2-manivannan.sadhasivam@linaro.org> In-Reply-To: <20191030101154.6312-1-manivannan.sadhasivam@linaro.org> References: <20191030101154.6312-1-manivannan.sadhasivam@linaro.org> Precedence: Bulk List-Unsubscribe: Sender: patchwork-soc@linux.kernel.org List-Id: Mailing-List: list patchwork-soc@linux.kernel.org; contact patchwork-soc+owner@linux.kernel.org Delivered-To: mailing list patchwork-soc@linux.kernel.org Reply-To: patchwork-soc+owner@linux.kernel.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux.kernel.org; q=dns/txt; s=20140610; t=1572430328; bh=iGqmF0Hp1ZoW0AuwsWB/64y0TLFsVE7i3vCpQEka29Q=; h=Cc:Date:From:Reply-To:Subject:To; b=DCVysRsr1RfshPMxakESgxGpC+LBEvJSMngyoPWUp9wXwrPOl29izONW/1Nrt0/Jpro iEyNzxMmDUhI13ALFHKvmgLcKdc2a05QTQ0MIyQHkrHFX/uWgsEnTrnebeUhLwte498c9 3XXoeiCJmBS+tgVT0u9+Q5eVGBSynqMpXNs= 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 Reviewed-by: Linus Walleij --- 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 {