Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1123381pxf; Thu, 18 Mar 2021 22:21:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCV6uCWS095JgOpN2IqzHKEztMUn+pv+toT+zu7QeJtGUK/PazZheFaUWn4FFfBAHK9WwZ X-Received: by 2002:a05:6402:b70:: with SMTP id cb16mr7584105edb.11.1616131304369; Thu, 18 Mar 2021 22:21:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616131304; cv=none; d=google.com; s=arc-20160816; b=M2ZTYTjD17LdZY3sMMULxco1640CzoZpIoe0Ed64g4RJLYGHmuPSX0aW2p61LZp4e5 3Rhr1Rv/dM4C050qrZHgaiOnDq0P34AF4dhVVVG84SwWocJul7CwKtCym9cU4/gyw8nk 7tZcUz5k7mJ5L0DYAn57/zBK6iF0VfNlz4zCJJ1cc81DLBCv8zeO5B8JKlpzJRFC/Ki8 Wh1x32GkQ5Hh0L43OZq6U8NuImFbHRMmw1C+KAdFKKSr3GAJUHjIAXBvccZu01J9z4Bk p8277psysPeWBoPwQo7DMjJv6oFonX5zpHeavGJoVmeyH7sP3uo3TnWJ2vCzQHnSmfao Z9JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:mime-version:references:in-reply-to :message-id:date:subject:cc:from:dkim-signature; bh=NJcx+bkr3QUnRA7nhTjRkkGYKzPKzmFbhQmfkIOo9Sc=; b=GtFrhhhYzwPCeTbEY8AwjWZG9YUPyRoXduKjwZ3Pbg4oPMCB4SNq+sXE7dLeHm+CPo svl5x5Ob2wO/oZAhHnLLFaElAmw8OqVXFDd+TVD7NYO2DdrpspQSbLXJheJfWQk0d6uF YB3MCDMjDwghofIyi1RwRq1dSJbDofSTsmCJWoIcnU9dG5r7WXqFP6twftl4hjoT+H/d kw9Io/ld+MBtWgZR/Yi2mFapo1c8K7/U+OQswXrvhtjkhCF0YYnZjIi3vGgDd+fktzfI xyrMv6MwMuRoK9FJsTm6TS9VANC3kkz8xOzxWiz2F91TxB/Ik1zaGpv7Ea0Tvb/4AriO M7WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ti.com header.s=ti-com-17Q1 header.b=hGIbuk5y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h6si3240149edw.354.2021.03.18.22.21.21; Thu, 18 Mar 2021 22:21:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@ti.com header.s=ti-com-17Q1 header.b=hGIbuk5y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233814AbhCSFUP (ORCPT + 99 others); Fri, 19 Mar 2021 01:20:15 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:59752 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231787AbhCSFUG (ORCPT ); Fri, 19 Mar 2021 01:20:06 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 12J5K0n8074882; Fri, 19 Mar 2021 00:20:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1616131200; bh=NJcx+bkr3QUnRA7nhTjRkkGYKzPKzmFbhQmfkIOo9Sc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=hGIbuk5yOOppCK7eUN+jEAFQ+iqOFGVsLwoZl6bdJmbSNeP1/zJx9szuECVscz/EL sSvht+wj7S1Uh/00XT6JdjJz4NBl0bXXKXxbhDbSC4hnQZT8gjkbGEduXeuRffvwG/ +z0IA8BXlsq7hrPIsnOblHDstbvGiGsQpZA96/Cc= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 12J5K0UZ043814 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 19 Mar 2021 00:20:00 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Fri, 19 Mar 2021 00:20:00 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Fri, 19 Mar 2021 00:20:00 -0500 Received: from gsaswath-HP-ProBook-640-G5.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 12J5JqE1079026; Fri, 19 Mar 2021 00:19:57 -0500 From: Aswath Govindraju CC: Vignesh Raghavendra , Lokesh Vutla , Grygorii Strashko , Aswath Govindraju , Nishanth Menon , Tero Kristo , Rob Herring , , , Subject: [PATCH v3 1/2] arm64: dts: ti: k3-am64: Add GPIO DT nodes Date: Fri, 19 Mar 2021 10:49:49 +0530 Message-ID: <20210319051950.17549-2-a-govindraju@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210319051950.17549-1-a-govindraju@ti.com> References: <20210319051950.17549-1-a-govindraju@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add device tree nodes for GPIO modules and interrupt controller in main and mcu domains. Signed-off-by: Aswath Govindraju --- arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 45 ++++++++++++++++++++++++ arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi | 27 ++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi index a03b66456062..b997d13f9ec5 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi @@ -373,6 +373,51 @@ clocks = <&k3_clks 145 0>; }; + main_gpio_intr: interrupt-controller0 { + compatible = "ti,sci-intr"; + ti,intr-trigger-type = <1>; + interrupt-controller; + interrupt-parent = <&gic500>; + #interrupt-cells = <1>; + ti,sci = <&dmsc>; + ti,sci-dev-id = <3>; + ti,interrupt-ranges = <0 32 16>; + }; + + main_gpio0: gpio@600000 { + compatible = "ti,am64-gpio", "ti,keystone-gpio"; + reg = <0x0 0x00600000 0x0 0x100>; + gpio-controller; + #gpio-cells = <2>; + interrupt-parent = <&main_gpio_intr>; + interrupts = <190>, <191>, <192>, + <193>, <194>, <195>; + interrupt-controller; + #interrupt-cells = <2>; + ti,ngpio = <87>; + ti,davinci-gpio-unbanked = <0>; + power-domains = <&k3_pds 77 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 77 0>; + clock-names = "gpio"; + }; + + main_gpio1: gpio@601000 { + compatible = "ti,am64-gpio", "ti,keystone-gpio"; + reg = <0x0 0x00601000 0x0 0x100>; + gpio-controller; + #gpio-cells = <2>; + interrupt-parent = <&main_gpio_intr>; + interrupts = <180>, <181>, <182>, + <183>, <184>, <185>; + interrupt-controller; + #interrupt-cells = <2>; + ti,ngpio = <88>; + ti,davinci-gpio-unbanked = <0>; + power-domains = <&k3_pds 78 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 78 0>; + clock-names = "gpio"; + }; + sdhci0: mmc@fa10000 { compatible = "ti,am64-sdhci-8bit"; reg = <0x00 0xfa10000 0x00 0x260>, <0x00 0xfa18000 0x00 0x134>; diff --git a/arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi b/arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi index 1d2be485a669..99e94dee1bd4 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi @@ -73,4 +73,31 @@ power-domains = <&k3_pds 148 TI_SCI_PD_EXCLUSIVE>; clocks = <&k3_clks 148 0>; }; + + mcu_gpio_intr: interrupt-controller1 { + compatible = "ti,sci-intr"; + ti,intr-trigger-type = <1>; + interrupt-controller; + interrupt-parent = <&gic500>; + #interrupt-cells = <1>; + ti,sci = <&dmsc>; + ti,sci-dev-id = <5>; + ti,interrupt-ranges = <0 104 4>; + }; + + mcu_gpio0: gpio@4201000 { + compatible = "ti,am64-gpio", "keystone-gpio"; + reg = <0x0 0x4201000 0x0 0x100>; + gpio-controller; + #gpio-cells = <2>; + interrupt-parent = <&mcu_gpio_intr>; + interrupts = <30>, <31>; + interrupt-controller; + #interrupt-cells = <2>; + ti,ngpio = <23>; + ti,davinci-gpio-unbanked = <0>; + power-domains = <&k3_pds 79 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 79 0>; + clock-names = "gpio"; + }; }; -- 2.17.1