Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5406398pxv; Wed, 21 Jul 2021 04:50:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTYG6hdD2W2Bw0HTWx6VaLUisXLmwx0t8iVG1etATv1wePjR8kAEGbCAgLVrED+12rBGst X-Received: by 2002:a05:6e02:1c02:: with SMTP id l2mr24100264ilh.9.1626868238986; Wed, 21 Jul 2021 04:50:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626868238; cv=none; d=google.com; s=arc-20160816; b=yXtkoUECQ+EEloMVGe4unyZYWWT6kQ9BsY/N7bLMb/ixbkVQoWV+CK5QOYba3pAPma w8EXOdONwYnTXIHc7UG51Mgsp+xP02/g3tTcbzjQzkKk7n4GB6h2eajbaD9QxqUkrJKG MP9rbcVJIqrGA5+SSprtYVJg5UIBuXnOTsCyNmxX78VHOzBtRimB6MbhwO9eTpDAH9Lq QnKUtFVjfXfsJjsXXuM9/9vw6E0YpLR/zn73DRhqxrD3Z2L5jFHY9uOXTdNABQz7Uib8 AQBoVlslNQCVHJO2lIogekFY6vGU2hig3KPrdoHIaf04JV+tMeGJ7H+kCK2WoBeMdm8K PULQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BrYp/NL15Aj44S8+xgk5v85ywLu8jggNxu+gcJm/iQo=; b=EtE0Cf3abVZkrK5QP3PZNNyAlutVD+Ur6rlKp/ciPxhXLtYWQtwtvDHhOJj9c9xOFI rrTB3lQWMkFzk44TLJwXmjtTh4liEB3A3VhD27nlgz+mATuHZ277/ttsGbZ41kUfFBNu BDTb6iRuT4WjJQ1mHbg55Uf9mZ3Q4LdB5QwUQPaQqDxn1j6CMQMgs2eVUGDoKGqFp0rr LIwH1mrV5Xp39jUHNhvJ+UIBzNHT8bi7qSz1nhScYQsTq5oovIZtb+cGncIOiDDInFVT 4QnVy+p9aqKnVVkFlG20xQTCl9HNKjTUHlH01m5HRHoCLbIg2dQUZu9RwT5aMQ/38JUE +4oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=n5eEDfBM; 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=pass (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 z15si16406405ilh.22.2021.07.21.04.50.27; Wed, 21 Jul 2021 04:50:38 -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=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=n5eEDfBM; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236550AbhGULIM (ORCPT + 99 others); Wed, 21 Jul 2021 07:08:12 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:34386 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237773AbhGUK4E (ORCPT ); Wed, 21 Jul 2021 06:56:04 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 16LBaXeC058743; Wed, 21 Jul 2021 06:36:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1626867393; bh=BrYp/NL15Aj44S8+xgk5v85ywLu8jggNxu+gcJm/iQo=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=n5eEDfBMxKR89V+AnTJYYLFFM6dOj8xIxmJysAva5rpefoqmtfgmlbTZAvOOVwh6P 8q9luuFkq5IXGNf9Nk/z2XqrYZC+ejqOU778poBZzgKHHcuckq1HbaCN6hOx5ADybR 8WeOYwYcbFzYlfaKGAOWQ3AnMA8A/Z1O9oqRSheU= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 16LBaXtx076824 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 21 Jul 2021 06:36:33 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 21 Jul 2021 06:36:33 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE101.ent.ti.com (10.64.6.22) 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; Wed, 21 Jul 2021 06:36:33 -0500 Received: from lokesh-ssd.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 16LBaQBm115096; Wed, 21 Jul 2021 06:36:30 -0500 From: Lokesh Vutla To: Nishanth Menon , CC: Device Tree Mailing List , Rob Herring , Linux ARM Mailing List , , Vignesh R , Lokesh Vutla Subject: [PATCH v2 1/4] arm64: dts: ti: k3-am64-main: Add epwm nodes Date: Wed, 21 Jul 2021 17:06:22 +0530 Message-ID: <20210721113625.17299-2-lokeshvutla@ti.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210721113625.17299-1-lokeshvutla@ti.com> References: <20210721113625.17299-1-lokeshvutla@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add DT nodes for all epwm instances present in AM64 SoC. Signed-off-by: Lokesh Vutla --- arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 87 ++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi index 02c3fdf9cc46..9e762f64b631 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi @@ -217,6 +217,12 @@ phy_gmii_sel: phy@4044 { reg = <0x4044 0x8>; #phy-cells = <1>; }; + + epwm_tbclk: clock@4140 { + compatible = "ti,am64-epwm-tbclk", "syscon"; + reg = <0x4130 0x4>; + #clock-cells = <1>; + }; }; main_uart0: serial@2800000 { @@ -859,4 +865,85 @@ pcie0_ep: pcie-ep@f102000 { clock-names = "fck"; max-functions = /bits/ 8 <1>; }; + + epwm0: pwm@23000000 { + compatible = "ti,am64-epwm", "ti,am3352-ehrpwm"; + #pwm-cells = <3>; + reg = <0x0 0x23000000 0x0 0x100>; + power-domains = <&k3_pds 86 TI_SCI_PD_EXCLUSIVE>; + clocks = <&epwm_tbclk 0>, <&k3_clks 86 0>; + clock-names = "tbclk", "fck"; + }; + + epwm1: pwm@23010000 { + compatible = "ti,am64-epwm", "ti,am3352-ehrpwm"; + #pwm-cells = <3>; + reg = <0x0 0x23010000 0x0 0x100>; + power-domains = <&k3_pds 87 TI_SCI_PD_EXCLUSIVE>; + clocks = <&epwm_tbclk 1>, <&k3_clks 87 0>; + clock-names = "tbclk", "fck"; + }; + + epwm2: pwm@23020000 { + compatible = "ti,am64-epwm", "ti,am3352-ehrpwm"; + #pwm-cells = <3>; + reg = <0x0 0x23020000 0x0 0x100>; + power-domains = <&k3_pds 88 TI_SCI_PD_EXCLUSIVE>; + clocks = <&epwm_tbclk 2>, <&k3_clks 88 0>; + clock-names = "tbclk", "fck"; + }; + + epwm3: pwm@23030000 { + compatible = "ti,am64-epwm", "ti,am3352-ehrpwm"; + #pwm-cells = <3>; + reg = <0x0 0x23030000 0x0 0x100>; + power-domains = <&k3_pds 89 TI_SCI_PD_EXCLUSIVE>; + clocks = <&epwm_tbclk 3>, <&k3_clks 89 0>; + clock-names = "tbclk", "fck"; + }; + + epwm4: pwm@23040000 { + compatible = "ti,am64-epwm", "ti,am3352-ehrpwm"; + #pwm-cells = <3>; + reg = <0x0 0x23040000 0x0 0x100>; + power-domains = <&k3_pds 90 TI_SCI_PD_EXCLUSIVE>; + clocks = <&epwm_tbclk 4>, <&k3_clks 90 0>; + clock-names = "tbclk", "fck"; + }; + + epwm5: pwm@23050000 { + compatible = "ti,am64-epwm", "ti,am3352-ehrpwm"; + #pwm-cells = <3>; + reg = <0x0 0x23050000 0x0 0x100>; + power-domains = <&k3_pds 91 TI_SCI_PD_EXCLUSIVE>; + clocks = <&epwm_tbclk 5>, <&k3_clks 91 0>; + clock-names = "tbclk", "fck"; + }; + + epwm6: pwm@23060000 { + compatible = "ti,am64-epwm", "ti,am3352-ehrpwm"; + #pwm-cells = <3>; + reg = <0x0 0x23060000 0x0 0x100>; + power-domains = <&k3_pds 92 TI_SCI_PD_EXCLUSIVE>; + clocks = <&epwm_tbclk 6>, <&k3_clks 92 0>; + clock-names = "tbclk", "fck"; + }; + + epwm7: pwm@23070000 { + compatible = "ti,am64-epwm", "ti,am3352-ehrpwm"; + #pwm-cells = <3>; + reg = <0x0 0x23070000 0x0 0x100>; + power-domains = <&k3_pds 93 TI_SCI_PD_EXCLUSIVE>; + clocks = <&epwm_tbclk 7>, <&k3_clks 93 0>; + clock-names = "tbclk", "fck"; + }; + + epwm8: pwm@23080000 { + compatible = "ti,am64-epwm", "ti,am3352-ehrpwm"; + #pwm-cells = <3>; + reg = <0x0 0x23080000 0x0 0x100>; + power-domains = <&k3_pds 94 TI_SCI_PD_EXCLUSIVE>; + clocks = <&epwm_tbclk 8>, <&k3_clks 94 0>; + clock-names = "tbclk", "fck"; + }; }; -- 2.31.1