From patchwork Fri Jun 7 16:27:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Judith Mendez X-Patchwork-Id: 13690504 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 352E819AA5D; Fri, 7 Jun 2024 16:28:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717777736; cv=none; b=u8uNxsZu6OxNN/TJRbtG2feaUmzjrMtfW1oBRogQ/oC0T7knMnIUc24Vk+ng0BtRTXOsCJA+ewfjB16YN5I8vGeLmO+MmCVr2cdihtHpeBgB5ixpAVwuCZbrBc9AQg0JuP970L06G2aoZrxJDzQuoSnmwd1iBpLZ/2X9C1Sn874= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717777736; c=relaxed/simple; bh=v13/ViOAboDk7RvPyzOME/dPjIqeJIbFVdZVlzMR8m4=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Gzt10d5bnPyL5WDchOPwRKBxx2YKvFd39JvZfd1y9I2D7UShjWgQIm/otnko/bjt8lVDCSwfJ865dV3lJheRcbADzdCaaGwz2wdg4X2tCNwcDtRee5c7utJdhqb5AfJIjqQMkWmW4ad99i8WYTFEK/RK6x+ygjR/urlGYQmGnUc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=krdDZZk+; arc=none smtp.client-ip=198.47.19.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="krdDZZk+" Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 457GRuwJ022356; Fri, 7 Jun 2024 11:27:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1717777676; bh=bGY7Zuuv3RGwnT4Hrp+s+EvgozmstE7An3C3nxYuYHY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=krdDZZk+c0PM7FsTuaby3E9dulrWlwF2K8vtZlA0183V6n4K8kM6uYwbyQw43R/HM YSolA9h/DO4WcrhjlaKaWl1aiv/b9fYhl6cmR1LYLrDNpG7UVZnBFo5vgZ/68o6BPd gQFBhuoG1SaKi3oS76RtVpm4+kJk72M0YvtzIJB0= Received: from DFLE101.ent.ti.com (dfle101.ent.ti.com [10.64.6.22]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 457GRuEG096165 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 7 Jun 2024 11:27:56 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) 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.2507.23; Fri, 7 Jun 2024 11:27:55 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 7 Jun 2024 11:27:55 -0500 Received: from judy-hp.dhcp.ti.com (judy-hp.dhcp.ti.com [128.247.81.105]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 457GRt1h068019; Fri, 7 Jun 2024 11:27:55 -0500 From: Judith Mendez To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , William Breathitt Gray CC: David Lechner , , , , , Nishanth Menon , Vignesh Raghavendra Subject: [PATCH v3 1/8] dt-bindings: counter: Add new ti,am62-eqep compatible Date: Fri, 7 Jun 2024 11:27:48 -0500 Message-ID: <20240607162755.366144-2-jm@ti.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240607162755.366144-1-jm@ti.com> References: <20240607162755.366144-1-jm@ti.com> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Add new compatible ti,am62-eqep for TI K3 devices. If a device uses this compatible, require power-domains property. Since there is only one functional and interface clock for eqep, clock-names is not really required, so removed from required section, make it optional for ti,am3352-eqep compatible, and update the example. The clock-name also changed for TI K3 SoCs so do not allow clock-names property for the new compatible. While we are here, add an example using ti,am62-eqep compatible. Signed-off-by: Judith Mendez Acked-by: Conor Dooley Reviewed-by: David Lechner --- Changes since v2: - Make clock-name optional for ti,am3352-eqep compatible and do not allow for ti,am62-eqep compatible --- .../devicetree/bindings/counter/ti-eqep.yaml | 44 ++++++++++++++++--- 1 file changed, 39 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/counter/ti-eqep.yaml b/Documentation/devicetree/bindings/counter/ti-eqep.yaml index 85f1ff83afe72..54611e06064a2 100644 --- a/Documentation/devicetree/bindings/counter/ti-eqep.yaml +++ b/Documentation/devicetree/bindings/counter/ti-eqep.yaml @@ -11,7 +11,9 @@ maintainers: properties: compatible: - const: ti,am3352-eqep + enum: + - ti,am3352-eqep + - ti,am62-eqep reg: maxItems: 1 @@ -21,19 +23,35 @@ properties: maxItems: 1 clocks: - description: The clock that determines the SYSCLKOUT rate for the eQEP - peripheral. + description: The functional and interface clock that determines the clock + rate for the eQEP peripheral. maxItems: 1 clock-names: const: sysclkout + power-domains: + maxItems: 1 + +allOf: + - if: + properties: + compatible: + contains: + enum: + - ti,am62-eqep + then: + properties: + clock-names: false + + required: + - power-domains + required: - compatible - reg - interrupts - clocks - - clock-names additionalProperties: false @@ -43,8 +61,24 @@ examples: compatible = "ti,am3352-eqep"; reg = <0x180 0x80>; clocks = <&l4ls_gclk>; - clock-names = "sysclkout"; interrupts = <79>; }; + - | + #include + #include + #include + + bus { + #address-cells = <2>; + #size-cells = <2>; + eqep1: counter@23210000 { + compatible = "ti,am62-eqep"; + reg = <0x00 0x23210000 0x00 0x100>; + power-domains = <&k3_pds 60 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 60 0>; + interrupts = ; + status = "disabled"; + }; + }; ... From patchwork Fri Jun 7 16:27:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Judith Mendez X-Patchwork-Id: 13690502 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 26B2219AA46; Fri, 7 Jun 2024 16:28:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717777736; cv=none; b=FBKt5iVFDgyrzHqm/BTHX7zSeVsWHtTV3SJC6iLFPsc83NYXUXp1IFlhzkRVPc4LeuvtIqHQvOrBhXxSUFb/AzPUoVXfJdesqF3TmfIKb77Rrkf2qUToJXsF9/fVhCGAHrWbxXLxmxd5Vpz31/IKqkwrTLd+2Z/Bd0gIxn/9McA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717777736; c=relaxed/simple; bh=XTWHkqWIyDe91hgNfhXt2jRfvS33k3nyN4qbDENL2hc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=GXitSfSYrT7KRsCBOQDmLRlkDk5A0L9GxkGwoBU7Jcf6Vf7kYddE8nUstB3aPOTvOxbI5WiPHJ2vO24TeuJ267Q1LZOKMWVZ3ml78iY+Pa8yw8FrH74MjbWeUv98N4InXHjFGFtjs6X6pqpscuHr5drdSVLfMsUCnw98QX1dyS4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=QPEqrBqc; arc=none smtp.client-ip=198.47.23.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="QPEqrBqc" Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 457GRupJ025665; Fri, 7 Jun 2024 11:27:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1717777676; bh=qq+KuYT7G30cKRziBmhag3H0joWnmY4ry28xoGzNFIg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=QPEqrBqcX8t0tmEq6PXPjXU2d+tAkDhfBDw3gFj9Gx+KSy4lT+XmPU2n3XGvGDKpr w4xULJxiUdDVUSSTFGInCEU/C3DglkKXaUCFvvW9wbcjoxGXOWqognstXVsK508E8a 374Swl9ruQaUazHcA7VzZZSdyp3V8/D+jhnZ3viQ= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 457GRuRH058789 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 7 Jun 2024 11:27:56 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 7 Jun 2024 11:27:56 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 7 Jun 2024 11:27:56 -0500 Received: from judy-hp.dhcp.ti.com (judy-hp.dhcp.ti.com [128.247.81.105]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 457GRt1i068019; Fri, 7 Jun 2024 11:27:55 -0500 From: Judith Mendez To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , William Breathitt Gray CC: David Lechner , , , , , Nishanth Menon , Vignesh Raghavendra Subject: [PATCH v3 2/8] counter/ti-eqep: Add new ti-am62-eqep compatible Date: Fri, 7 Jun 2024 11:27:49 -0500 Message-ID: <20240607162755.366144-3-jm@ti.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240607162755.366144-1-jm@ti.com> References: <20240607162755.366144-1-jm@ti.com> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Add new compatible for ti-am62-eqep for TI K3 SoC's. Signed-off-by: Judith Mendez Reviewed-by: David Lechner --- Changes since v2: - No change --- drivers/counter/ti-eqep.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/counter/ti-eqep.c b/drivers/counter/ti-eqep.c index b0f24cf3e891d..f6850e142ddff 100644 --- a/drivers/counter/ti-eqep.c +++ b/drivers/counter/ti-eqep.c @@ -439,6 +439,7 @@ static int ti_eqep_remove(struct platform_device *pdev) static const struct of_device_id ti_eqep_of_match[] = { { .compatible = "ti,am3352-eqep", }, + { .compatible = "ti,am62-eqep", }, { }, }; MODULE_DEVICE_TABLE(of, ti_eqep_of_match); From patchwork Fri Jun 7 16:27:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Judith Mendez X-Patchwork-Id: 13690507 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BA39219ADB5; Fri, 7 Jun 2024 16:28:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717777738; cv=none; b=VprMjvaVyrD5Nvwof0P6eYe9QU3EgY0qNTvdzrDY2PNyFALhDs7OZ/x3axlqpR8wRTP9EYzeCUgy5TzyjeEMQA6ICobjN0fPiAOF/OP04ScHHhVgVAFDfHn2kkAJEt1KTdbR2T0MiaNRQbp44xEZ3W4eKK3g5FLGvRb4ytgfOhM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717777738; c=relaxed/simple; bh=3fNO7fR9QHWxcUIzj+apTvOCR5kSi8Czm2ADMw+DNgY=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=LGWkcIhYoU1GWiYBt4Dlm3l7wVtUCEoUR7UKSqUjnc7d/75FzI29EPeES8J617bk1PPL0wrZuUiDhuG72T++FPbbJPt0YneQM/CSGtmo4OniZWK+N/D/vAJG3erkHTMYOsC8ZrQ/lIB1CgP8HW/cgnUm4wBFccOErJEPAvCYsU8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=BTytCPAk; arc=none smtp.client-ip=198.47.23.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="BTytCPAk" Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 457GRu0s075999; Fri, 7 Jun 2024 11:27:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1717777676; bh=EKBWuR1UaHdFxu+o/O4nrcmHpVme6R+uRpKI29qLw6E=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=BTytCPAkr/JJnzsE2jzEgUkQze76/oKV57V7sWxIQrxMpe/k2mWu/I/CXU48aGD4y 1n8eRxUhZkOcpS5Wcb9lspjUgVmZn9QfoqnONpLKtiQ1Ghybs14IVfDOAqWGTJ2ZiS My9pWjD3VJ7ZKj092cjekUNbEvqFUWLFCjU1PPxs= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 457GRuZJ016629 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 7 Jun 2024 11:27:56 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) 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.2507.23; Fri, 7 Jun 2024 11:27:56 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 7 Jun 2024 11:27:56 -0500 Received: from judy-hp.dhcp.ti.com (judy-hp.dhcp.ti.com [128.247.81.105]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 457GRt1j068019; Fri, 7 Jun 2024 11:27:56 -0500 From: Judith Mendez To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , William Breathitt Gray CC: David Lechner , , , , , Nishanth Menon , Vignesh Raghavendra Subject: [PATCH v3 3/8] arm64: dts: ti: k3-am62-main: Add eQEP nodes Date: Fri, 7 Jun 2024 11:27:50 -0500 Message-ID: <20240607162755.366144-4-jm@ti.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240607162755.366144-1-jm@ti.com> References: <20240607162755.366144-1-jm@ti.com> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Add eQEP device tree nodes 0-2 for AM625 SoC. Signed-off-by: Judith Mendez --- Changes since v2: - No change --- arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 27 ++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi index 448a59dc53a77..525997456adaa 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi @@ -846,6 +846,33 @@ ecap2: pwm@23120000 { status = "disabled"; }; + eqep0: counter@23200000 { + compatible = "ti,am62-eqep"; + reg = <0x00 0x23200000 0x00 0x100>; + power-domains = <&k3_pds 59 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 59 0>; + interrupts = ; + status = "disabled"; + }; + + eqep1: counter@23210000 { + compatible = "ti,am62-eqep"; + reg = <0x00 0x23210000 0x00 0x100>; + power-domains = <&k3_pds 60 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 60 0>; + interrupts = ; + status = "disabled"; + }; + + eqep2: counter@23220000 { + compatible = "ti,am62-eqep"; + reg = <0x00 0x23220000 0x00 0x100>; + power-domains = <&k3_pds 62 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 62 0>; + interrupts = ; + status = "disabled"; + }; + main_mcan0: can@20701000 { compatible = "bosch,m_can"; reg = <0x00 0x20701000 0x00 0x200>, From patchwork Fri Jun 7 16:27:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Judith Mendez X-Patchwork-Id: 13690500 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2A0319AA43; Fri, 7 Jun 2024 16:28:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717777736; cv=none; b=VVUbpr95kCMTU+js6Ig4/HsNMo+TscWV1uAsmxWEII850ONWweB+GN46ANrnb0NNnEq2A+Jm4mFej11dUKOSqQ9N/wREscj69CdUGmEcFZkk4sBYTfU5/gVpUo6Hec0M5UGsfxVyMMDngs8WZFwtG34DS13wSj7Aa1JqlZSPp9E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717777736; c=relaxed/simple; bh=e4xsNXR4aHH3g6X+txeZJmzYbuKxtsIVX51XJHns80w=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=eOJoW/3FRGgj4kTQO7w845rSc9XlXz0vZJaEV0mghWQqVvQ/MshbyFy7evkEsa+lvLXxKpzNgG4rOoS2RCTUkWXCDv+erAgMX7SPqdOSzzjsrkibYT5fR71y3NPrPYZo2UnM4zLp5jZrxundXs1OTFBgB5HSmiLtiCZtBFD8wrc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=wCji74A8; arc=none smtp.client-ip=198.47.23.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="wCji74A8" Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 457GRuGB076001; Fri, 7 Jun 2024 11:27:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1717777676; bh=TQlEO9JyMzOGTNPEo9rGMr5dxmRC3ta0Lj34G6EI/Xo=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=wCji74A8GW1R1nRJF86gYl2IQVN6ttxh/5RC3WcbBJvB2G+C/YmkpNIk+oJByYghc d5nv2QXu++juG8dgR48Tn4cnh6/k/aFCE95gXrVkzsmujPP28/NRJ5pH7hOoMbsMD0 OCFw0IGtGEnbDw+czLtUSQCaYMhb9WTsuMWXMAmg= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 457GRuD3096174 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 7 Jun 2024 11:27:56 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 7 Jun 2024 11:27:55 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 7 Jun 2024 11:27:56 -0500 Received: from judy-hp.dhcp.ti.com (judy-hp.dhcp.ti.com [128.247.81.105]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 457GRt1k068019; Fri, 7 Jun 2024 11:27:56 -0500 From: Judith Mendez To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , William Breathitt Gray CC: David Lechner , , , , , Nishanth Menon , Vignesh Raghavendra Subject: [PATCH v3 4/8] arm64: dts: ti: k3-am62a-main: Add eQEP nodes Date: Fri, 7 Jun 2024 11:27:51 -0500 Message-ID: <20240607162755.366144-5-jm@ti.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240607162755.366144-1-jm@ti.com> References: <20240607162755.366144-1-jm@ti.com> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Add eQEP device tree nodes 0-2 for AM62A7 SoC. Signed-off-by: Judith Mendez --- Changes since v2: - No change --- arch/arm64/boot/dts/ti/k3-am62a-main.dtsi | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi index bf9c2d9c6439a..6c32c0c0d8dcc 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi @@ -909,6 +909,33 @@ ecap2: pwm@23120000 { status = "disabled"; }; + eqep0: counter@23200000 { + compatible = "ti,am62-eqep"; + reg = <0x00 0x23200000 0x00 0x100>; + power-domains = <&k3_pds 59 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 59 0>; + interrupts = ; + status = "disabled"; + }; + + eqep1: counter@23210000 { + compatible = "ti,am62-eqep"; + reg = <0x00 0x23210000 0x00 0x100>; + power-domains = <&k3_pds 60 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 60 0>; + interrupts = ; + status = "disabled"; + }; + + eqep2: counter@23220000 { + compatible = "ti,am62-eqep"; + reg = <0x00 0x23220000 0x00 0x100>; + power-domains = <&k3_pds 62 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 62 0>; + interrupts = ; + status = "disabled"; + }; + mcasp0: audio-controller@2b00000 { compatible = "ti,am33xx-mcasp-audio"; reg = <0x00 0x02b00000 0x00 0x2000>, From patchwork Fri Jun 7 16:27:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Judith Mendez X-Patchwork-Id: 13690503 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3529B19AA5B; Fri, 7 Jun 2024 16:28:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717777736; cv=none; b=VuE1y4V35gBpLhoFS3FFzTzkeJcQXV+6apG5f7NTFlOb1e5h3rSvs2i95ewDbGLEdS/mnfM4jBuU2Qd4r8MAUVlyXOWKBOTqAnhXZ114D8/9c7JnwkwLbpQmSyn2/inLnb+p3VHILMQF2BkFmC4+0h0B/GJIYNw9btGCHGJJzxw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717777736; c=relaxed/simple; bh=66EwmEl8N1vQXPnw8sFKudLyMSAZH41/d0KRiOFu1HI=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=BdlDOuV//HggMsJ2Sah8tYzJcwKF/1Hqzop9AK3d6bbF7e6C+sxNz1JOaDjEd5pq3RLH6rkIEVCOPrZp3rFhH91czjJ5S+8Fq8jLgzksQykmiCvtG+Q7OpRXQTt1VrzdgdAfhmoPQjJAhHiiJs/lwh+LRy1qf5ouYtYZ2mq82qE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=Ykj3DDuz; arc=none smtp.client-ip=198.47.19.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="Ykj3DDuz" Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 457GRvQq022372; Fri, 7 Jun 2024 11:27:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1717777677; bh=934tl+R2JmbRnA+7qbRrM2PO/44qyY/m89geSw9STHI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Ykj3DDuzMQNRF8gRHTZYx7UEjX4mLXZEghsjcK2TTEQol8kHaubYH+tKbf3iXEEsy vgN/LI4zeG4xB790hKbuDZ45FMdDYm4sCnFBzm6JLiwXYLkKcZiPuSK/rf1lT5tLHX 7IUUHjtUmCicsNlraRSasfj6jNvUlQpcyPFWVREQ= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 457GRv2k016636 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 7 Jun 2024 11:27:57 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 7 Jun 2024 11:27:56 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 7 Jun 2024 11:27:56 -0500 Received: from judy-hp.dhcp.ti.com (judy-hp.dhcp.ti.com [128.247.81.105]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 457GRt1l068019; Fri, 7 Jun 2024 11:27:56 -0500 From: Judith Mendez To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , William Breathitt Gray CC: David Lechner , , , , , Nishanth Menon , Vignesh Raghavendra Subject: [PATCH v3 5/8] arm64: dts: ti: k3-am62p-main: Add eQEP nodes Date: Fri, 7 Jun 2024 11:27:52 -0500 Message-ID: <20240607162755.366144-6-jm@ti.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240607162755.366144-1-jm@ti.com> References: <20240607162755.366144-1-jm@ti.com> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Add eQEP device tree nodes 0-2 for AM62P5 SoC. Signed-off-by: Judith Mendez --- Changes since v2: - No change --- arch/arm64/boot/dts/ti/k3-am62p-main.dtsi | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi index 900d1f9530a2a..ede7351a4d864 100644 --- a/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi @@ -857,6 +857,33 @@ ecap2: pwm@23120000 { status = "disabled"; }; + eqep0: counter@23200000 { + compatible = "ti,am62-eqep"; + reg = <0x00 0x23200000 0x00 0x100>; + power-domains = <&k3_pds 59 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 59 0>; + interrupts = ; + status = "disabled"; + }; + + eqep1: counter@23210000 { + compatible = "ti,am62-eqep"; + reg = <0x00 0x23210000 0x00 0x100>; + power-domains = <&k3_pds 60 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 60 0>; + interrupts = ; + status = "disabled"; + }; + + eqep2: counter@23220000 { + compatible = "ti,am62-eqep"; + reg = <0x00 0x23220000 0x00 0x100>; + power-domains = <&k3_pds 62 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 62 0>; + interrupts = ; + status = "disabled"; + }; + main_mcan0: can@20701000 { compatible = "bosch,m_can"; reg = <0x00 0x20701000 0x00 0x200>, From patchwork Fri Jun 7 16:27:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Judith Mendez X-Patchwork-Id: 13690499 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B333A19AA40; Fri, 7 Jun 2024 16:28:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717777735; cv=none; b=ub5LVt/YsanNqlkNwTrXMobRso2Ul+iJwhFcd7d4kc3SGE0JrXcij2SY76EuXVE9qkafY4Lv6FynJpYHxmXfIHzEo4HmrdN2VqQRtYK6SlLOHKeZ8++7UycZD1ainxEzBrXwJC/mNHqtnrz2l8I5CuN+gdU3y/0XcW2IlQvPeJs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717777735; c=relaxed/simple; bh=v5vfruB7l2v9qAe9ilwgL7QaEEjs5wPBoQ/14S5UB2g=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=lPcFL1L2G0Io34sG3xdvFoyVRRj8fJG5zMzcRCoULFUgfdDQ90x6Oupq1WV8Oo4NPidJwqMskKfqE19Xk2ViesC99HMaEokPhWLZcz4SpoIz9tKFSXo0nOhhSeGQj/7yBud7nNljVax84QH+wPpeU98zlERcjBcJpNPv7eQ3yNo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=nPvAcsM1; arc=none smtp.client-ip=198.47.23.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="nPvAcsM1" Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 457GRvan025670; Fri, 7 Jun 2024 11:27:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1717777677; bh=YFHPQL/G/uN01yS9rCCVaqefgaP5S3kCIPvNr4BAafA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=nPvAcsM1TDHINr9dQGeBJV+5uvitTio0lQAnknK6xkjujpY+XQK5KBu1FX49uycNR pZNSM06NTm7HUGgegj0vjb4zIrNjCTVspJdoFgvLvBzmSIqDQLLSnz1103hqWU6p4u a7MfnIbKwQOdQ12PxJRQKPf3gH1Olkolbx8AK0Co= 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 457GRvDq096187 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 7 Jun 2024 11:27:57 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) 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.2507.23; Fri, 7 Jun 2024 11:27:56 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 7 Jun 2024 11:27:56 -0500 Received: from judy-hp.dhcp.ti.com (judy-hp.dhcp.ti.com [128.247.81.105]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 457GRt1m068019; Fri, 7 Jun 2024 11:27:56 -0500 From: Judith Mendez To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , William Breathitt Gray CC: David Lechner , , , , , Nishanth Menon , Vignesh Raghavendra Subject: [PATCH v3 6/8] arm64: dts: ti: k3-am64-main: Add eQEP nodes Date: Fri, 7 Jun 2024 11:27:53 -0500 Message-ID: <20240607162755.366144-7-jm@ti.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240607162755.366144-1-jm@ti.com> References: <20240607162755.366144-1-jm@ti.com> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Add eQEP device tree nodes 0-2 for AM642 SoC. Signed-off-by: Judith Mendez --- Changes since v2: - No change --- arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 27 ++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi index 6f9aa5e02138f..6be710138dded 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi @@ -1171,6 +1171,33 @@ ecap2: pwm@23120000 { status = "disabled"; }; + eqep0: counter@23200000 { + compatible = "ti,am62-eqep"; + reg = <0x00 0x23200000 0x00 0x100>; + power-domains = <&k3_pds 59 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 59 0>; + interrupts = ; + status = "disabled"; + }; + + eqep1: counter@23210000 { + compatible = "ti,am62-eqep"; + reg = <0x00 0x23210000 0x00 0x100>; + power-domains = <&k3_pds 60 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 60 0>; + interrupts = ; + status = "disabled"; + }; + + eqep2: counter@23220000 { + compatible = "ti,am62-eqep"; + reg = <0x00 0x23220000 0x00 0x100>; + power-domains = <&k3_pds 62 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 62 0>; + interrupts = ; + status = "disabled"; + }; + main_rti0: watchdog@e000000 { compatible = "ti,j7-rti-wdt"; reg = <0x00 0xe000000 0x00 0x100>; From patchwork Fri Jun 7 16:27:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Judith Mendez X-Patchwork-Id: 13690501 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9D4E943AA1; Fri, 7 Jun 2024 16:28:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717777736; cv=none; b=bCr96jayjloixkyV9IvUR+bEsisYZ0qlg30rgKVcA6WAr8MhnsmRFKW8Dl+1GQmo2GfM/FwWX282DyYSd2aFCpjqRWdvAeXVC4zN9+414hcZ1lbgJ7SjHHfSHQRYQkOSuxHVO07I24tUbjJNFCMioviWy/Ruw5SN/HfQUv1URDk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717777736; c=relaxed/simple; bh=MEasLV+/E7mjn9Yx2J7UaBnX7TW0OsQRjgP21ugEnAY=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=N/j6kXclGs/mIko1opy+Kyp6nNA6l70c9twtF4OS/CbIy95aWyGb74/57y/fnpuxEkfACmuf8IsdN4QjOyu9CyPNlB3UDDK/v+gqsKUO3zMCfe2YYUbiuXk70XbyFQ3mzJjoQrDaBoul7d8eJjH4yG01jtTMs9GgXUdiy6IpuGc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=k/hr2GX+; arc=none smtp.client-ip=198.47.23.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="k/hr2GX+" Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 457GRvBw076008; Fri, 7 Jun 2024 11:27:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1717777677; bh=j5iV2dg8nzrCJJLdyYys3qP0vGgUbyu9YRqCtbbAz4M=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=k/hr2GX+FnPYmGucAicSC4r4y9KYqn3IJ0Yp5DFKjAWo8F5ahds0Xkcjf6n59Pjwf b3xPqrtPA0SKkV1qHT4tu6/mdzV76yjNPvvUt90Qv1cZG+nhRC8LjhRpzOCCkw5dlO RP5BLq8MqLJnNnXPwnTHGSlu5B6hcd9aUKWz6YiY= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 457GRvVU058836 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 7 Jun 2024 11:27:57 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 7 Jun 2024 11:27:56 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 7 Jun 2024 11:27:56 -0500 Received: from judy-hp.dhcp.ti.com (judy-hp.dhcp.ti.com [128.247.81.105]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 457GRt1n068019; Fri, 7 Jun 2024 11:27:56 -0500 From: Judith Mendez To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , William Breathitt Gray CC: David Lechner , , , , , Nishanth Menon , Vignesh Raghavendra Subject: [PATCH v3 7/8] arm64: dts: ti: k3-am64x-sk: Enable eQEP Date: Fri, 7 Jun 2024 11:27:54 -0500 Message-ID: <20240607162755.366144-8-jm@ti.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240607162755.366144-1-jm@ti.com> References: <20240607162755.366144-1-jm@ti.com> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 There are 3 instances of eQEP on AM64x. Only EQEP0 signals can be routed to the user expansion so enable only EQEP0 in k3-am642-sk.dts. Signed-off-by: Judith Mendez --- Changes since v2: - Enable eQEP0 in k3-am64 SK board --- arch/arm64/boot/dts/ti/k3-am642-sk.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am642-sk.dts b/arch/arm64/boot/dts/ti/k3-am642-sk.dts index 5b028b3a3192f..1987da60672a2 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-sk.dts @@ -357,6 +357,16 @@ main_ecap0_pins_default: main-ecap0-default-pins { AM64X_IOPAD(0x0270, PIN_INPUT, 0) /* (D18) ECAP0_IN_APWM_OUT */ >; }; + + main_eqep0_pins_default: main-eqep0-pins-default { + pinctrl-single,pins = < + AM64X_IOPAD(0x00a0, PIN_INPUT, 3) /* (N16) GPMC0_WPn.EQEP0_A */ + AM64X_IOPAD(0x00a4, PIN_INPUT, 3) /* (N17) GPMC0_DIR.EQEP0_B */ + AM64X_IOPAD(0x00ac, PIN_INPUT, 3) /* (R20) GPMC0_CSn1.EQEP0_I */ + AM64X_IOPAD(0x00a8, PIN_INPUT, 3) /* (R19) GPMC0_CSn0.EQEP0_S */ + >; + }; + main_wlan_en_pins_default: main-wlan-en-default-pins { pinctrl-single,pins = < AM64X_IOPAD(0x00c4, PIN_OUTPUT_PULLUP, 7) /* (V8) GPIO0_48 */ @@ -672,3 +682,11 @@ &ecap0 { pinctrl-names = "default"; pinctrl-0 = <&main_ecap0_pins_default>; }; + +&eqep0 { + /* EQEP0_A is available on Pin 18 of header J4 */ + /* EQEP0_B is available on Pin 22 of header J4 */ + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&main_eqep0_pins_default>; +}; From patchwork Fri Jun 7 16:27:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Judith Mendez X-Patchwork-Id: 13690506 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0919119AD5F; Fri, 7 Jun 2024 16:28:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717777737; cv=none; b=LEba6nUrLwQnSNOo0LjFud0E2PX7X3PAEB0pgPpabY3waZNuSMHPHv9DqOHnTXt7JXu5uA0LVwYlUrTXmTp4MVY/6bZ41G6PhvorqJWs9LZ+ZHdBsEu5AKuQFW95iTWjJ3GEBAQw0dO7v2KeY8ejFgRczcWBPZSKbX1DMRbrYa8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717777737; c=relaxed/simple; bh=LGYcD/GKncMY5oK8Nz3hBIpZWTX1l7ulfUh1j09n7V4=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=QGqlkPx5d4DDsAz4PQubsyhlcfNVzw2hE3fiQJ8PopNUaP1sWeLwQzqnHtEIPHvYYX/aeeko8GFukCiQRO0GKQC34RLsTH9htstcxxTABuWQqWarWooDLU90YvgqzJ2o+QpueTTOoLIcGOfFTTFayRwKWtCgOzK+jGYMlIXAXsQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=e/Jzn+6V; arc=none smtp.client-ip=198.47.23.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="e/Jzn+6V" Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 457GRvjc025672; Fri, 7 Jun 2024 11:27:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1717777677; bh=eCMwvUXMlOHh+kQoB/O+Bk+VnI6B6QKbo0H+hfHKoZo=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=e/Jzn+6V6xPwJeK5wOiesxtGjkeWs3YVDrLXmvPkYXTUPZZaxgtpSWrdra8awMKzp D0UtDKY3J2qvuDu0oinCei2aQRNBqExm+jIVxdwasAtpTUJMMfgF1Gwfh+uTfvNEyR SSsHPOabO9CtzGJpw8lxnTX6Tx8W5i4j0VQ6KXgE= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 457GRv5g096188 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 7 Jun 2024 11:27:57 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 7 Jun 2024 11:27:56 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 7 Jun 2024 11:27:56 -0500 Received: from judy-hp.dhcp.ti.com (judy-hp.dhcp.ti.com [128.247.81.105]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 457GRt1o068019; Fri, 7 Jun 2024 11:27:56 -0500 From: Judith Mendez To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , William Breathitt Gray CC: David Lechner , , , , , Nishanth Menon , Vignesh Raghavendra Subject: [PATCH v3 8/8] counter: ti-eqep: Allow eQEP driver to be built for K3 devices Date: Fri, 7 Jun 2024 11:27:55 -0500 Message-ID: <20240607162755.366144-9-jm@ti.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240607162755.366144-1-jm@ti.com> References: <20240607162755.366144-1-jm@ti.com> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 TI K3 SoC's support eQEP hardware, so add ARCH_K3 to the depends so the TI eQEP driver can be built for K3 devices. Signed-off-by: Judith Mendez Reviewed-by: David Lechner --- Changes since v2: - No change --- drivers/counter/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/counter/Kconfig b/drivers/counter/Kconfig index 497bc05dca4df..d30d22dfe5774 100644 --- a/drivers/counter/Kconfig +++ b/drivers/counter/Kconfig @@ -138,7 +138,7 @@ config TI_ECAP_CAPTURE config TI_EQEP tristate "TI eQEP counter driver" - depends on (SOC_AM33XX || COMPILE_TEST) + depends on SOC_AM33XX || ARCH_K3 || COMPILE_TEST select REGMAP_MMIO help Select this option to enable the Texas Instruments Enhanced Quadrature