From patchwork Mon Jun 10 14:46:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Judith Mendez X-Patchwork-Id: 13692159 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 4D6AB7440B; Mon, 10 Jun 2024 14:47:26 +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=1718030848; cv=none; b=evz5tKK5kzYg2Is+v1+8rSLSQu01VT40T35vY+tvAEHos0Jmj80bnqSXPkDgKKl0rb1J63CWEr0IKYCtyy4g3uG8XazJx/iE/OZ7Qz/mMgPm+V96MlS8vqMe7Cj8yBezbXDqEaS01IEwr+n3Md4ah5ous/y/zURKn9QB9j+ibog= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718030848; c=relaxed/simple; bh=OMs5HIO9iMwqvjCnkpK7JpkCnz4FYRqCknG4vhvfXxI=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=oMv2ChoagivEtw7rdcG9QjavSIJE1XUBndmchINN/gIrTOayOCi+COOy5UJIpZ3U0iKYo1AqTHjICuPLh8O6oERfj0TRu01Vdg8boRQbMsHbxEKP8Ya3emIzLBRM+Zn73cUISuPI9j7hr2GeUxBSwluaLFPBWk6LtMGEdNwk35w= 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=n3aPCcTR; 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="n3aPCcTR" Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45AEkbJj096192; Mon, 10 Jun 2024 09:46:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1718030797; bh=ULYcdEgvqixrq+r3kLkXHhlKiFvqSQXsJbA+0Kdbv7g=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=n3aPCcTRhIPWbHuDuWUV2JoGRmoxPi8000nlmHRmJiOe02+PrHQgPrmW9w/Vy+Tzg fvON8BbLVa5bP27RWaDqI+a8XZOX/eBfvSSFiVI0lUKWp7Fw1AMMpYhAVBIafds7Hx S7OYv8LZnwLCyk7k1yUfhQkTr4sQUnG6QTxrFJG0= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 45AEkbxv013133 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 10 Jun 2024 09:46:37 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 10 Jun 2024 09:46:37 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE107.ent.ti.com (10.64.6.28) 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; Mon, 10 Jun 2024 09:46:37 -0500 Received: from judy-hp.dhcp.ti.com (judy-hp.dhcp.ti.com [128.247.81.105]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 45AEkbZo096515; Mon, 10 Jun 2024 09:46:37 -0500 From: Judith Mendez To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Breathitt Gray , Nishanth Menon CC: , , , Vignesh Raghavendra , Tero Kristo , , David Lechner Subject: [PATCH v4 1/8] dt-bindings: counter: Add new ti,am62-eqep compatible Date: Mon, 10 Jun 2024 09:46:30 -0500 Message-ID: <20240610144637.477954-2-jm@ti.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240610144637.477954-1-jm@ti.com> References: <20240610144637.477954-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 v3: - No change --- .../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 Mon Jun 10 14:46:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Judith Mendez X-Patchwork-Id: 13692163 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (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 D0925135A6E; Mon, 10 Jun 2024 14:47:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.142 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718030850; cv=none; b=l9C8DE6i0UDN+nC37azAoplYETRps1r4VxauyhBa57kvMpv94dEhHVHDclig6CqnlWCkXTdg4innkEtA3THU1JCIS3CBNEV8m8TMiqs9BH+vuOehSwMtD0ylo9S2zIe1hBfXuoe419l0TOh8SZFRNNHdPIZmFLN16Zs9JB08HXQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718030850; c=relaxed/simple; bh=uNnDgO5xLq51LKRnelJAsvnC4MM5syjGqt6BU4XLpT0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gaH44DcW2iRyXVzC33z4SdkQoE+2dR2JQ7TYgQ3Y9yDV6kOfcnJOPmZtQpWab7VZoWwnf9Hi76MelsB7YD0YrRYY805BGDGkqPN9KLn1h+CecIE50p0vHs7nshxkJW46g/ULq5AD4BtvtxzeB0/eVa3YZnDEqolA2sPa073+Bco= 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=tKvpp2Xw; arc=none smtp.client-ip=198.47.19.142 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="tKvpp2Xw" Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45AEkbmY004256; Mon, 10 Jun 2024 09:46:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1718030797; bh=XmOWBSSAoFFFH7KsCf/zF8wl2rZPgic4q0jLDBGONrM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=tKvpp2XwAwBkV7PpM2fEb6mAnxzAYqo4yif49c5fyy+/35gjCaUYq2P3mRskrgz9J DVhyL2WjexCV0tB8pTmK77RUJ6ZB/fhOJOiVNHHc0B8t2DexeMS5AdCeevsC1ISEeC WchvwezHA5PkEIknDnufy0vfFpaAVl67+eCfqyis= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 45AEkbT9125165 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 10 Jun 2024 09:46:37 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 10 Jun 2024 09:46:37 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE110.ent.ti.com (10.64.6.31) 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; Mon, 10 Jun 2024 09:46:37 -0500 Received: from judy-hp.dhcp.ti.com (judy-hp.dhcp.ti.com [128.247.81.105]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 45AEkbZp096515; Mon, 10 Jun 2024 09:46:37 -0500 From: Judith Mendez To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Breathitt Gray , Nishanth Menon CC: , , , Vignesh Raghavendra , Tero Kristo , , David Lechner Subject: [PATCH v4 2/8] counter/ti-eqep: Add new ti-am62-eqep compatible Date: Mon, 10 Jun 2024 09:46:31 -0500 Message-ID: <20240610144637.477954-3-jm@ti.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240610144637.477954-1-jm@ti.com> References: <20240610144637.477954-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 v3: - 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 Mon Jun 10 14:46:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Judith Mendez X-Patchwork-Id: 13692158 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (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 030BC74048; Mon, 10 Jun 2024 14:47:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.142 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718030848; cv=none; b=qLDw4I5j0BZY5glc+3YF+cldwSRpzAM2YOoXaYHAzyXYOtfqLgqCdUsfxuK2as9/9PeCr1EqkCem5k4NH2le9ju/+SvxnVfXIsg1ldArQS0STAr0EF1ChMyTzZZH4x5YoqW79kP1HA0SIej2VWr9mZVQqD0dDvvHA2M84eTa01E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718030848; c=relaxed/simple; bh=zclKDXKmqpihjpLggvVucJyI/sMbYof0y0689Mn9spc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=h7DO6DYUw79elbHP67W8C3oNd7JfgtWasbK3odFHqomgJCZYr87QCiM88Jj1xNQxal3os+yKGSeYrGleOMGT35ti8dNn3ZqwyFBuEaDi8152mhgyZAfEcRkKQyvSww4hgr5sDJEXlDmzob16OoeK7jTHdatP2y7buaGoauMoPio= 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=Gl6VzwUN; arc=none smtp.client-ip=198.47.19.142 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="Gl6VzwUN" Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45AEkbbs004260; Mon, 10 Jun 2024 09:46:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1718030797; bh=rjsl1mSO4i10ZZJ4Zc1DWqWaVhu4R3sJghs6mFPoqpM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Gl6VzwUN2UcHMYtwL69qvy8PgefGcpQPjh6itLsTB7GgWGcZS3C80AnnBTqVDD/+A 61tOeI8Piw/sJrOFa1U+WgE9ad3fpjWH++V6aWLoJ1lfvoX1lSKu7MPNoDWLX7K+8t pFUGsjingr3T3kcno4irVO9X3LiLj71EfGTmdW9w= 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 45AEkbvf125169 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 10 Jun 2024 09:46:37 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) 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; Mon, 10 Jun 2024 09:46:37 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) 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.2507.23 via Frontend Transport; Mon, 10 Jun 2024 09:46:37 -0500 Received: from judy-hp.dhcp.ti.com (judy-hp.dhcp.ti.com [128.247.81.105]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 45AEkbZq096515; Mon, 10 Jun 2024 09:46:37 -0500 From: Judith Mendez To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Breathitt Gray , Nishanth Menon CC: , , , Vignesh Raghavendra , Tero Kristo , , David Lechner Subject: [PATCH v4 3/8] arm64: dts: ti: k3-am62-main: Add eQEP nodes Date: Mon, 10 Jun 2024 09:46:32 -0500 Message-ID: <20240610144637.477954-4-jm@ti.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240610144637.477954-1-jm@ti.com> References: <20240610144637.477954-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 v3: - 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 Mon Jun 10 14:46:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Judith Mendez X-Patchwork-Id: 13692157 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 27B96A953; Mon, 10 Jun 2024 14:47:25 +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=1718030847; cv=none; b=qa82G/SvLDBWmZ87yshbkhuD6+QW3CQBewDygmoZBveS/C+T4S45UGcQSSXLdoUECXsZkIKT9qQgrMNjWg+8xrkYQfOf99moEVjIkPFEw1QlRMZhTa/eszAKiN28vN1GAjIvNIIXKeP3geiftIs3tH1EJDfuRgMYTsrCTF3l7lY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718030847; c=relaxed/simple; bh=savASX9krbdDWsldxthP0eUUegYq6s4DY3/7CIgzPz0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Dro5Y1FCStIFM0yVbJbvFr9ki03l1HY7wjSF0J0qLVJUueiMwVO0YwnPkSkMAX9mJjQ1z7FORuYvuhH84ui9uHKNMA+1J5f0ZP6jLV2YojEmKCFWEbt9TmMXwvXMqbQFggR23Vo+kDuA3hIzOnZJ6Rk7LuAsVishxMusB9VdtkI= 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=muDUc2uh; 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="muDUc2uh" Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45AEkbXY096196; Mon, 10 Jun 2024 09:46:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1718030797; bh=dOMVCinKr+d7nFiGsfWsLz7Cj138WGSpeJQxWmfSrQY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=muDUc2uh1y24bcNcWqk4AztPkUGUr6St1Y6k7RW1cFRXRdlbdwTER27ub0RSN5vsR g/70vAeKeBXLeuHklz45tuy6QU1lMBTdj9HIkVyTdiq7eKdcD1zi8vrbZBrZdax0lU kofx78mOQy/LTX9L1aN+V9yCSJzOmUMBEBPt4TJo= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 45AEkb1a008174 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 10 Jun 2024 09:46:37 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 10 Jun 2024 09:46:37 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE114.ent.ti.com (10.64.6.35) 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; Mon, 10 Jun 2024 09:46:37 -0500 Received: from judy-hp.dhcp.ti.com (judy-hp.dhcp.ti.com [128.247.81.105]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 45AEkbZr096515; Mon, 10 Jun 2024 09:46:37 -0500 From: Judith Mendez To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Breathitt Gray , Nishanth Menon CC: , , , Vignesh Raghavendra , Tero Kristo , , David Lechner Subject: [PATCH v4 4/8] arm64: dts: ti: k3-am62a-main: Add eQEP nodes Date: Mon, 10 Jun 2024 09:46:33 -0500 Message-ID: <20240610144637.477954-5-jm@ti.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240610144637.477954-1-jm@ti.com> References: <20240610144637.477954-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 v3: - 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 Mon Jun 10 14:46:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Judith Mendez X-Patchwork-Id: 13692164 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 66A1513212D; Mon, 10 Jun 2024 14:47:28 +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=1718030851; cv=none; b=U6nyncrBjggbSxxyX0vA1Ifrgvq9oz5b7WwXguzArHjfxA11Dpp4sLtmXaJ412d+nd4PJDn+uVKK0FLK/3ni/o8qGe1IL8jFJfo5CL5oonKZ01v38SWZ3Lqs4WArodPw0d8tMPkrNFtQlLuFRX6V0wk202gerdukkmqaZ+/NBWE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718030851; c=relaxed/simple; bh=/fvA4q1gYPxwvRpX+HStyoSe4So/ohn2By/pFIxnqLQ=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=PRFoHLNEQYD8VaEVzCyy0rBvjJkay0MQat+VUlR+hfys+zEYFc0ZY9/EtJwJTddt6v9h/QHuvQqxXlFJPLhZldd19gh9ASvnAEIzrjBMdbLV+LpI5GSWVqoYptaylbuQJl4hX5bYJcWIOoRw+5aXQojrMBS9GOEzJVmiVt2Yfgk= 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=kPAG7Bto; 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="kPAG7Bto" Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45AEkbWA128815; Mon, 10 Jun 2024 09:46:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1718030797; bh=eBL0IXHtF9fMKgSYGl669W/7kluNheoRjFnd2NDt4Kg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=kPAG7Bto/jtaAbT+JvtQN1nJ+pzOjSmurkhAU7sjoK0xY6bwQLYMvidppvpL+C/2X ip8UqSLuvJlh7hxVP7Zt5QT4S83vTHTaCqXNGLxXcGgNDBU/uwNugjWseQUZWargID U7WRLowQl8vTMNAD0rFcmRmxLYiZorWZBovQTwN4= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 45AEkbus125170 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 10 Jun 2024 09:46:37 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 10 Jun 2024 09:46:37 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) 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; Mon, 10 Jun 2024 09:46:37 -0500 Received: from judy-hp.dhcp.ti.com (judy-hp.dhcp.ti.com [128.247.81.105]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 45AEkbZs096515; Mon, 10 Jun 2024 09:46:37 -0500 From: Judith Mendez To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Breathitt Gray , Nishanth Menon CC: , , , Vignesh Raghavendra , Tero Kristo , , David Lechner Subject: [PATCH v4 5/8] arm64: dts: ti: k3-am62p-main: Add eQEP nodes Date: Mon, 10 Jun 2024 09:46:34 -0500 Message-ID: <20240610144637.477954-6-jm@ti.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240610144637.477954-1-jm@ti.com> References: <20240610144637.477954-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 v3: - 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 Mon Jun 10 14:46:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Judith Mendez X-Patchwork-Id: 13692162 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 9398C132137; Mon, 10 Jun 2024 14:47:28 +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=1718030850; cv=none; b=gwMUaKYaqVhTcHWhPJbeoebu3P2kNTwCTGeuhFe+OfuuLvqeGk4jQXRvc6ijaKr/FMtpNKnPD/XQ3eiQOffzX4HxAfDKUpV2IndNzt8i6uPnVLnRvMWivA0VcTIvu+sJ41h2CbvYiNZ/CpoTqkgDeAxV1wX1MESs4x9tjJKi38U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718030850; c=relaxed/simple; bh=MFn5+nZNf4VlsVjTbBEMzwBay5ma4Kqwcj4mqUKUzlQ=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=YjKSkJWao2Hh8EKxX2CVfCH3DYNPrlzZU823QIKi3VEFuLTkrJRuf9POA0ghZm/IqX5MrQoOm2c4uixam9LgbJmrT+nXxG+TG7CGE9T+dB7koRkhouE91yssCskGv5T87sklD/w1H6vHhbMfp9j3g3vwsJ4kZoovc0/ZKiGJ8i4= 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=YGq6/yP3; 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="YGq6/yP3" Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45AEkb5C106717; Mon, 10 Jun 2024 09:46:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1718030798; bh=5Icy+diqCppjZ7P3N5MC5iPrEzWGK8IFXOYUvDDtU0Q=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=YGq6/yP3ySPqrYZ6EwboMashDQ0zM+zhrY3tM6B391Ax+dO8Q9ZQQ8F7SLZVYFBbh 94MmcBHID/muco4lb7SlNAuP60dUeYbFE3SC2xh3b7+U7z7HGQBKbcpWzs88Hpwvpn rofXYTn0RcZ7Dsa2WWcQWuyxJFgBTuC+XrTjjc/0= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 45AEkboM022696 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 10 Jun 2024 09:46:37 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 10 Jun 2024 09:46:37 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) 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.2507.23 via Frontend Transport; Mon, 10 Jun 2024 09:46:37 -0500 Received: from judy-hp.dhcp.ti.com (judy-hp.dhcp.ti.com [128.247.81.105]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 45AEkbZt096515; Mon, 10 Jun 2024 09:46:37 -0500 From: Judith Mendez To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Breathitt Gray , Nishanth Menon CC: , , , Vignesh Raghavendra , Tero Kristo , , David Lechner Subject: [PATCH v4 6/8] arm64: dts: ti: k3-am64-main: Add eQEP nodes Date: Mon, 10 Jun 2024 09:46:35 -0500 Message-ID: <20240610144637.477954-7-jm@ti.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240610144637.477954-1-jm@ti.com> References: <20240610144637.477954-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 v3: - 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 Mon Jun 10 14:46:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Judith Mendez X-Patchwork-Id: 13692160 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 50D3C13212C; Mon, 10 Jun 2024 14:47:28 +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=1718030849; cv=none; b=mZ/2VGEzerFzhqSSkQ81pAXl4cpjZIqqJiqN0zM4u3kUua+mTsxgUaPGynQ/IirkxYotHqc/ofMntyeBMHdCzSifF9g9MfhhLGuUsob3+e1TaRj+gIdyLV1krqjDq6elvo0k/XLexhm7KpBDr9kCcwzWdXuZl6pK2ImDOhxeDWA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718030849; c=relaxed/simple; bh=hWhqPeI83ll668C6diA9vxPkyoEe2TIimgWzyqt7eCo=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=a1xwwUMxbQrameBcHYlGL7wjCUGedo/t5NIKokVlHM1bEe1lVTJujjO/03dsled8js3y9uHHPCH8XHJ7SibNoTPN8DWa5ZR4NMaawLYhEYTKGBIQCRYk4So+M9n6kwmWftYae0+Zf4jIOTPRLkmxiTxtlm2bPg9x6O0IJowf/fI= 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=jBmwMcZk; 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="jBmwMcZk" Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45AEkcC2096200; Mon, 10 Jun 2024 09:46:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1718030798; bh=/9Vg0psZYqvNaVCVsyz9sQm9tkFR2sfzuZKiSToTa8w=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=jBmwMcZkZxtutF43ZaMQGOUSGLQxVMul1ZxIZcE6eXqCkfnUs8IjtC8dKtOg3r0oD kUNngGT3VkDWoniLnHM4ZkTFVb/Wty1EILf4HgiomRAbM7S+Jhllwt2JCvDiAjs/7f TvPUdMj5IvUloLU9BiFmx5648PtuWRKDT+ZsuxIA= Received: from DLEE101.ent.ti.com (dlee101.ent.ti.com [157.170.170.31]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 45AEkc1t008180 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 10 Jun 2024 09:46:38 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 10 Jun 2024 09:46:37 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE103.ent.ti.com (157.170.170.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; Mon, 10 Jun 2024 09:46:37 -0500 Received: from judy-hp.dhcp.ti.com (judy-hp.dhcp.ti.com [128.247.81.105]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 45AEkbZu096515; Mon, 10 Jun 2024 09:46:37 -0500 From: Judith Mendez To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Breathitt Gray , Nishanth Menon CC: , , , Vignesh Raghavendra , Tero Kristo , , David Lechner Subject: [PATCH v4 7/8] arm64: dts: ti: k3-am64x-sk: Enable eQEP Date: Mon, 10 Jun 2024 09:46:36 -0500 Message-ID: <20240610144637.477954-8-jm@ti.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240610144637.477954-1-jm@ti.com> References: <20240610144637.477954-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 v3: - Fix pinmux label name - Fix eQEP node comment --- arch/arm64/boot/dts/ti/k3-am642-sk.dts | 17 +++++++++++++++++ 1 file changed, 17 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..1992444953745 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-default-pins { + 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,10 @@ &ecap0 { pinctrl-names = "default"; pinctrl-0 = <&main_ecap0_pins_default>; }; + +&eqep0 { + status = "okay"; + /* EQEP0 A & B available on pins 18 & 22 of J4 header */ + pinctrl-names = "default"; + pinctrl-0 = <&main_eqep0_pins_default>; +}; From patchwork Mon Jun 10 14:46:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Judith Mendez X-Patchwork-Id: 13692161 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 939D7132138; Mon, 10 Jun 2024 14:47:28 +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=1718030850; cv=none; b=lomiCe/xP2GDvo+hvM6RdYS8NcP9EeIgv3EPt32NZ9VTQrYmngC2iiBZCRRd/a1RFAeUnxKetLOQYZdmoHYfJkAFCEE/nhEVAV31kDFKmuH/Q3aadFh4xs2X0okaFq4ydLswrThi6UBedvL8JYC3I0T4+5U9sTt8/iBio4mu9sU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718030850; c=relaxed/simple; bh=INvt5l95qumTkI/F8SMugFIWy6fo69X/mHJg2UAp33Y=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=OUlJiCcCwlg10YByRzGJGWWu1hDjtyfvoffXq7zN9sJ+Zwwjr2wJXgDuaxPJ8OGRqkS1+RRQLnMGIRqNspMABH+QMWE1z3LI+BR8xIfrB4L39RCgvRlhtRnz9aBOTQQMIFLgyaBAnonvqDqCWK+BsJdRkQ5v3Bui3iSJNjxpdLY= 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=kkBqWBCb; 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="kkBqWBCb" Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45AEkcUr106721; Mon, 10 Jun 2024 09:46:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1718030798; bh=DpD2/zDPTilNgEBMr9afh35OQ1ozwEcy36ZHdGX4oNs=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=kkBqWBCb8yOLKgD+HOmLqYRtT/F98uRxRlmhxE4UCxUNt0hO7zJ0Y7VBtI3JtrmkJ mN04pepsPiaXqKachIVOUMeVotZtA+LBJZw0D9FiG7jt5ZMgc4Vg5vRpiFcA8lDVR/ ScJVz8mxdIn3oNBSQXivwjUdr2uwM2YpTZissZeA= Received: from DLEE101.ent.ti.com (dlee101.ent.ti.com [157.170.170.31]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 45AEkc1u008180 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 10 Jun 2024 09:46:38 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 10 Jun 2024 09:46:37 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE106.ent.ti.com (157.170.170.36) 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; Mon, 10 Jun 2024 09:46:37 -0500 Received: from judy-hp.dhcp.ti.com (judy-hp.dhcp.ti.com [128.247.81.105]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 45AEkbZv096515; Mon, 10 Jun 2024 09:46:37 -0500 From: Judith Mendez To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Breathitt Gray , Nishanth Menon CC: , , , Vignesh Raghavendra , Tero Kristo , , David Lechner Subject: [PATCH v4 8/8] counter: ti-eqep: Allow eQEP driver to be built for K3 devices Date: Mon, 10 Jun 2024 09:46:37 -0500 Message-ID: <20240610144637.477954-9-jm@ti.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240610144637.477954-1-jm@ti.com> References: <20240610144637.477954-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 v3: - 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