From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 28499C52D6F for ; Sat, 24 Aug 2024 18:13:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:CC:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=srFzPKyucUigymcchRICNA874/Q4EM6tG+X3LAoo3RU=; b=G08SNozy9cioABWPzH8+w30Kov fHNlFIlcOvke3ByX/1QM03lCJsLriQtVwX5nWwXeT2P4H4U+Y4H98tXyWZ1Xak52D4j9oK0uXzzKN xl+QzvxFd/Nh2Y/VXd+M8UwnOLaM57rdMaGGdTI+FXHYQwU266s8BXX2MISkX78gOkFNiHPzGSzo/ cs1/JcABVpsa8YFMbipU4fDeT3OHwHQEXpF6PSIn9oG9h9k549cnQJrtATzZftr5TmhB7fu4yq9eY 4Wy5GDO0kYfdhNDUBSjBpg2W00QpOtgxZkfYxsqc0v48ziusMG+70aa3y6SorAddW79VhdKoXWlQ/ ++baQgCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1shvGB-00000002frX-1WQB; Sat, 24 Aug 2024 18:13:11 +0000 Received: from lelv0142.ext.ti.com ([198.47.23.249]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1shvFO-00000002fjY-07Mx for linux-arm-kernel@lists.infradead.org; Sat, 24 Aug 2024 18:12:23 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 47OICI0p045112; Sat, 24 Aug 2024 13:12:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1724523138; bh=srFzPKyucUigymcchRICNA874/Q4EM6tG+X3LAoo3RU=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=TodmO/HtR7yvf52AtEP4aM5Bt9wNsgaZJ5LZdbHYs+BNFpPOeRkJp2mouLSjCiwOk NwY0ruzsyIpFUWIVGh5iWfty3VfM2+ByQD4UfbJ+JKZCjkey/HIuRXGOxdBjvS26v6 ndxPLw5kgsjoIekYs5VaUj5uqwiire+LmjFSkPVU= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 47OICICY117081 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 24 Aug 2024 13:12:18 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) 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; Sat, 24 Aug 2024 13:12:18 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE102.ent.ti.com (157.170.170.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; Sat, 24 Aug 2024 13:12:18 -0500 Received: from localhost (uda0133052.dhcp.ti.com [128.247.81.232]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 47OICI2o049097; Sat, 24 Aug 2024 13:12:18 -0500 Date: Sat, 24 Aug 2024 13:12:18 -0500 From: Nishanth Menon To: Bhavya Kapoor CC: , , , , , , , Subject: Re: [PATCH] arm64: dts: ti: Add PWM and ECAP overlay for J722S-EVM Message-ID: <20240824181218.zvymim3jonknmvm2@rearrange> References: <20240820070607.30628-1-b-kapoor@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20240820070607.30628-1-b-kapoor@ti.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240824_111222_185447_B5D37E6F X-CRM114-Status: GOOD ( 20.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 12:36-20240820, Bhavya Kapoor wrote: > The J722S-EVM has 3 PWM outputs and 1 ECAP output routed > to the J28 connector. This overlay will set the appropriate > pinmux and enable PWM and ECAP on the pins. So, change the base evm default. do you have a daughter card that this overlay represents? Then name this as the daughter card, provide a link etc. If we start accepting ever pin mux combination, there is no end to configurations we will get. Sorry. > > Currently enabled PWM output on J28: 29, 31, 33 pins > and ECAP output on J28: 32 pin > > Signed-off-by: Bhavya Kapoor > --- > arch/arm64/boot/dts/ti/Makefile | 1 + > arch/arm64/boot/dts/ti/k3-j722s-evm-pwm.dtso | 53 ++++++++++++++++++++ > 2 files changed, 54 insertions(+) > create mode 100644 arch/arm64/boot/dts/ti/k3-j722s-evm-pwm.dtso > > diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile > index e20b27ddf901..61d51284dcba 100644 > --- a/arch/arm64/boot/dts/ti/Makefile > +++ b/arch/arm64/boot/dts/ti/Makefile > @@ -111,6 +111,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-j721s2-evm-pcie1-ep.dtbo > > # Boards with J722s SoC > dtb-$(CONFIG_ARCH_K3) += k3-j722s-evm.dtb > +dtb-$(CONFIG_ARCH_K3) += k3-j722s-evm-pwm.dtbo > > # Boards with J784s4 SoC > dtb-$(CONFIG_ARCH_K3) += k3-am69-sk.dtb > diff --git a/arch/arm64/boot/dts/ti/k3-j722s-evm-pwm.dtso b/arch/arm64/boot/dts/ti/k3-j722s-evm-pwm.dtso > new file mode 100644 > index 000000000000..f6d1f072b140 > --- /dev/null > +++ b/arch/arm64/boot/dts/ti/k3-j722s-evm-pwm.dtso > @@ -0,0 +1,53 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/** > + * DT Overlay for enabling PWM output on User Expansion header on J722S-EVM > + * > + * Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/ > + */ > + > +/dts-v1/; > +/plugin/; > + > +#include > +#include "k3-pinctrl.h" > + > +&main_pmx0 { > + > + main_epwm0_pins_default: main-epwm0-default-pins { > + pinctrl-single,pins = < > + J722S_IOPAD(0x01b4, PIN_OUTPUT, 2) /* (B20) EHRPWM0_A */ > + >; > + }; > + > + main_epwm1_pins_default: main-epwm1-default-pins { > + pinctrl-single,pins = < > + J722S_IOPAD(0x01bc, PIN_OUTPUT, 2) /* (D20) EHRPWM1_A */ > + J722S_IOPAD(0x01c0, PIN_OUTPUT, 2) /* (E19) EHRPWM1_B */ > + >; > + }; > + > + main_ecap0_pins_default: main-ecap0-default-pins { > + pinctrl-single,pins = < > + J722S_IOPAD(0x01b8, PIN_OUTPUT, 3) /* (C20) ECAP0_IN_APWM_OUT */ > + >; > + }; > +}; > + > +&epwm0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&main_epwm0_pins_default>; > + status = "okay"; > +}; > + > +&epwm1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&main_epwm1_pins_default>; > + status = "okay"; > +}; > + > +&ecap0 { > + /* ECAP in APWM mode */ > + pinctrl-names = "default"; > + pinctrl-0 = <&main_ecap0_pins_default>; > + status = "okay"; > +}; > -- > 2.34.1 > -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D