From patchwork Fri Sep 13 10:06:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ayush Singh X-Patchwork-Id: 13803225 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 60E4AFA373B for ; Fri, 13 Sep 2024 10:08:44 +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:Cc:To:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=mebWSTRXrpHOd1Ov9TjvCQ1BH1A/L8W/aymjC8YjMyA=; b=N21S9u5Q7y8oFRpNj730MPIrkn uhhDzE759HJ5keGTI0plg8kmQYhhQR9JZQgFdhOBrXIqYBeC0MZ8dt3ReiqUSo0tmV9zi5ClS9B3W WOh+LljMaotToJ1g6OxsqnofA4sKfIvuHbqACJHcnwruabIp0UkDnioGkaqm2CwBfSdNrnjZfEfor 5xCPDivGqrYahZa1+M/WTf27krnMqE8cmZSRNngOYHz/N+RvdY2ISe4nHBIe+jjGLE7xARdnyi78E RGdKaB75MdEdYERTWwb6OuNeeUH7xIz5GsLwN0CarrmCUU0PfPnXZfjcqq216iOxG0FHrsktDpHnX M8u1cdfg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sp3E8-0000000FZQ9-3ImV; Fri, 13 Sep 2024 10:08:32 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sp3C3-0000000FZ5Q-42mK for linux-arm-kernel@lists.infradead.org; Fri, 13 Sep 2024 10:06:25 +0000 Received: by mail-pg1-x542.google.com with SMTP id 41be03b00d2f7-7db1f0e1641so762916a12.1 for ; Fri, 13 Sep 2024 03:06:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beagleboard-org.20230601.gappssmtp.com; s=20230601; t=1726221983; x=1726826783; darn=lists.infradead.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=mebWSTRXrpHOd1Ov9TjvCQ1BH1A/L8W/aymjC8YjMyA=; b=QKg4Ctplt3RtN69jrUx2LsmYKaCh5PVEtcG+g4L+cKlALvTBXZZAB515auSvuzFK1p gFSTfmcoMZdwoeKp+69+5leOHZLykuby1L0dyBEHRN9h3N/3O+iqFRX18zYGw6BEsEtT kSOFb5h8dudwLiD5euZ8L5+nnKzAOTTr+U8zIcCDXMaFLfvMbKa4Ne0JNqgtJwcwca6w +qlKLqUiD4w2IN2RxuhNNBx8kkFbZn8t27CrxpNvW6guzLbvf7zMxzm6PveFV5V9P2B5 i8TFznPYRt3+iw5/76ho9vnYVxctEdv00D8lJPne1klcuJhrJkumvwjxAkaxsbyogkQ3 EukQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726221983; x=1726826783; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mebWSTRXrpHOd1Ov9TjvCQ1BH1A/L8W/aymjC8YjMyA=; b=GRVEl2g22uoQCM0SObvc0JijBcMN4ZoY+SC93M/wIaEBubfp9+PNVyvk4o8AKQBcJw 0DjWmGq75YuQqhMW9PyHDyQMnZ9Hk+/paThVO8wxSsy5x1GeyhE4skdJrGHsF5H+U27L 3qm20ULGxhx3gAhCu2n/1adEl1cO38ajx2bxZhP5UjcHmk5DZnP/EcVauXU/oSwvOYf3 yU/+xG40pZMcJJJofHKQ0eqD+AszWJ7/sN0g9D4qS1PQiIHZjGPUihJF4egFtqb4BsQ9 eiz8lLQ5bwZncgwvHVP5FBAd7p0NKd2BSRbiZH6KKf3OsXbf4pp2Z17QICVXmOwb+MNA 9r6Q== X-Gm-Message-State: AOJu0YxYsWkcqLuUPygA4Tb1P9sBcqJ6AxHfrcucyj+Y945ZuDNei1t1 +G+QJpVhJupmJaGmG7xCwntHfVmWpyySAnoJhYvMxo5kj30QJiIsR50ZIyQt4A== X-Google-Smtp-Source: AGHT+IGLF8zeCK3gH9gqiVNfJYO+Cu9SMZiiwsrMlizscSm85IPSqVB6yJRnzNjrd0cry5ZoLKZYdQ== X-Received: by 2002:a17:90b:238a:b0:2d8:8fe9:b00f with SMTP id 98e67ed59e1d1-2db9ffbeec2mr6810986a91.13.1726221982859; Fri, 13 Sep 2024 03:06:22 -0700 (PDT) Received: from [172.16.118.100] ([103.15.228.94]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2dbb9cd2debsm1308113a91.33.2024.09.13.03.06.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 03:06:22 -0700 (PDT) From: Ayush Singh Date: Fri, 13 Sep 2024 15:36:06 +0530 Subject: [PATCH] arm64: dts: ti: k3-am625-beagleplay: Enable MikroBUS PWM MIME-Version: 1.0 Message-Id: <20240913-beagleplay-pwm-v1-1-d38ee5b36d8c@beagleboard.org> X-B4-Tracking: v=1; b=H4sIAI0O5GYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDS0Nj3aTUxPSc1IKcxErdgvJc3SQLU8uUJENLY0OLFCWgpoKi1LTMCrC B0bG1tQB9SXGEYAAAAA== To: d-gole@ti.com, lorforlinux@beagleboard.org, jkridner@beagleboard.org, robertcnelson@beagleboard.org, Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ayush Singh X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1443; i=ayush@beagleboard.org; h=from:subject:message-id; bh=ma3gih4QZb3W22XO1BUgS2TgaOmdM7cLRLgQ6YOHH+0=; b=owEBbQKS/ZANAwAIAQXO9ceJ5Vp0AcsmYgBm5A6Zx6uuVBdo3ha/5xti0lllZFtl8lR1cNRX2 Yx244On5EOJAjMEAAEIAB0WIQTfzBMe8k8tZW+lBNYFzvXHieVadAUCZuQOmQAKCRAFzvXHieVa dInaD/9Pmkto8ZWDHi68ML9FmaWdEtTeFO/ldoi3zNJVP1yWscyJL+64k9mbUgBWtRFcgkY55en FVeoKby3zVuKwpexAtk3iWqqkcRHcb2QTeEG7vD5Vdx/uh8N4hOFlSXksFWq0mEiSaw55isJMsh PYZq3Ni9YIutSxD/ChCuUsUw8kwkhRkCc4kmZlnm4g70YpM/CcjngrKJ6//bzdIthiTr4cK2r1I ZejdKGLIAoN52aT3GQJWKDcOmYhobdgCQK9kwr1UjDVvZpquj9zqYqF1UWFmdh4DxsL5xe7VJYy 0GdacoRnwBtUxCdntoPefkWWzZnafpeEsEKAINH+pAcMr6DXdA9jVj4jAAWANqWzkIh7Pl4Z911 WFSX+dfVjavT4lKlR4JCguiVvcQpJTIIh7FPLEjmfTyela88RE+E4zgHQHzS8mttVBcSdrQBrcs B6EQ78FA+AkM5s3bpKXi7qKBpt4o3JsWSjlzFP6GSjswfmuBQLZquQhSHJmstQ/m76J2lgGK1/I sSjhTst/is7qnvehmrHmrpjEpz0j6qp8l2z8sQ7rmacptSRpBPHqzkY9DMNmd6NyEvPRCTAqRbw Yy9WdtKWmee+GRJymhoclrzgEAVJiPmehtkWQ2W0QZwXooAvWMGlXfjP5DnhdDfmIqljeAo0t6n ZyGkzoWCBemeBjA== X-Developer-Key: i=ayush@beagleboard.org; a=openpgp; fpr=DFCC131EF24F2D656FA504D605CEF5C789E55A74 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240913_030624_131642_F3C38990 X-CRM114-Status: GOOD ( 10.21 ) 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 Add pinmux for PWM functionality of MikroBUS PWM pin and enable the pwm controller. Signed-off-by: Ayush Singh --- Add pinmux for MikroBUS port PWM pin. Also enable the pwm controller. Tested with the sysfs interface [0]. [0]: https://docs.kernel.org/driver-api/pwm.html#using-pwms-with-the-sysfs-interface --- arch/arm64/boot/dts/ti/k3-am625-beagleplay.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) --- base-commit: 57f962b956f1d116cd64d5c406776c4975de549d change-id: 20240913-beagleplay-pwm-b859db19318d Best regards, diff --git a/arch/arm64/boot/dts/ti/k3-am625-beagleplay.dts b/arch/arm64/boot/dts/ti/k3-am625-beagleplay.dts index 70de288d728e..2dbb8930be3f 100644 --- a/arch/arm64/boot/dts/ti/k3-am625-beagleplay.dts +++ b/arch/arm64/boot/dts/ti/k3-am625-beagleplay.dts @@ -419,6 +419,12 @@ AM62X_IOPAD(0x01a8, PIN_INPUT, 7) /* (D20) MCASP0_AFSX.GPIO1_12 */ >; }; + mikrobus_pwm_pins_default: mikrobus-pwm-default-pins { + pinctrl-single,pins = < + AM62X_IOPAD(0x01a4, PIN_INPUT, 2) /* (B20) MCASP0_ACLKX.ECAP2_IN_APWM_OUT */ + >; + }; + main_uart0_pins_default: main-uart0-default-pins { bootph-all; pinctrl-single,pins = < @@ -925,3 +931,9 @@ &mcasp1 { 0 0 0 0 >; }; + +&ecap2 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&mikrobus_pwm_pins_default>; +};