From patchwork Wed Oct 16 15:11:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ayush Singh X-Patchwork-Id: 13838582 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 8D1DCD2A520 for ; Wed, 16 Oct 2024 15:13:34 +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=hEOEoYJF2/Ff1J+c4cDFgOoOmZPcjeqN5UTMVGgmwos=; b=1Oxj1DghWjz3U6yGpL+Bb/xLdA e+fNuOZ9HYiGMWP8ofwgp8kS5bzly9Pjm9cItKQ3e4Tzc5pm+bV1aeditA1Zo6YOn8EOk/cnaIXP3 keR3jMHb4Vg6TA6p6Ct72qB3yA2jygjZG8Q0PFvsM8fvOaUP8YBzIFg7dXPCpHX17QmzyU+8uRo4h SSb0qE8AuPDpM4sWimnFshW3RUaUdq00IB2N14zbdefflN+1fqqO+fUj7QteCK7t0Zssp4BPm9X1r DY2S/ci5AbEc8WQoljBAD81TzKOPf0gXiS7hXoOG+gJSw72dBqrne6TV4FzC0oEEtO+UTaVR/2r6k x3G4rEsQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t15iC-0000000CCek-1WW1; Wed, 16 Oct 2024 15:13:20 +0000 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t15gk-0000000CCNe-0EEl for linux-arm-kernel@lists.infradead.org; Wed, 16 Oct 2024 15:11:51 +0000 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-20c8b557f91so56929585ad.2 for ; Wed, 16 Oct 2024 08:11:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beagleboard-org.20230601.gappssmtp.com; s=20230601; t=1729091508; x=1729696308; 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=hEOEoYJF2/Ff1J+c4cDFgOoOmZPcjeqN5UTMVGgmwos=; b=zqWPzHV/eVwQvoEwtqYQR401Hb0fowo0xLpmxouWpqK/MC8ExNcWpIbcqg6lDAWk2D nD/qX9JuBdjxVQc0SuTjr0sjW5uKghKMNJVVNms1u5yJIWEjEafAVv1umB4hKPXczGui PtfDJbSHiREz2k0W3NGBhmDHtdH8qPh70RmazC/9rRT/Zykm1z+JNsg2U8PplN2aRIn0 d+64dPYB0cxAVE/uwDLn2/LDiJ8vuCWzDRRMhCSk+WXqSXcboU/qzTK/H6NKAttn+09L xGkbfepPt/p5+wienSBzlm+fk3NGtrTVhfDnBcE80cPvhmau5fMK7I+e6j0sCRbmSamH U9MQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729091508; x=1729696308; 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=hEOEoYJF2/Ff1J+c4cDFgOoOmZPcjeqN5UTMVGgmwos=; b=WnN+Vy8cGsXz/p+Wo/hJkG/SN/QNChP1/PfuzCx/iuPn1r/8SS5t/0Jph1RMNTsmpQ 4qArTfYMGaz25iRRuSK4pIYGDRtvLQKAznge2ALdl1RLJNdmZMhODXBsNmPQC3GB5sss Pg3pLrQnYFxXYQV5tmXMdYEcigTh/AAn0AP9dJuUy0O5buRhPuBxSO6rPHiR92c9Z2Vh Q8InaTO0Aja5okt1d8FDF55BKFCeOm0ZNineAx92JW7LYYUtqzU6QllcTb63eaZk+yNn h05Iw5JzGEJqRrQwOvRj0FYg11F0b2LeWEkkk045rGIWz3GGN2NwKBIJ/cw+5gs8Io20 W4AQ== X-Gm-Message-State: AOJu0YwwA2YeQJdg5c1+IaCMIjbqDEkGwoy4jf8hXk1E8SBBQtiFBVJE U6Wt65fOPxtE1W0DtSwxuoeoKih66GNuTh+QcEHXh5OskdQ0kvhlIcqLSGzK8w== X-Google-Smtp-Source: AGHT+IHNFfZ8Imho4YOAv0s3tUMWoLPXD/ZhUSm7DPCRIhLtXTaXR3/u1W15BCKmwDmXqQPINHdiXw== X-Received: by 2002:a17:902:e752:b0:20c:a7d8:e428 with SMTP id d9443c01a7336-20d27e59bebmr66237125ad.7.1729091508137; Wed, 16 Oct 2024 08:11:48 -0700 (PDT) Received: from [172.16.118.100] ([103.15.228.94]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20d1805d070sm29583625ad.282.2024.10.16.08.11.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2024 08:11:47 -0700 (PDT) From: Ayush Singh Date: Wed, 16 Oct 2024 20:41:15 +0530 Subject: [PATCH RESEND] arm64: dts: ti: k3-am625-beagleplay: Enable MikroBUS PWM MIME-Version: 1.0 Message-Id: <20241016-beagleplay-pwm-v1-1-245ae88859bc@beagleboard.org> 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.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1499; i=ayush@beagleboard.org; h=from:subject:message-id; bh=ckxdzGByTXJUietXC5uAvZOJ6fBo9bKDj5epsvwfcw8=; b=owEBbQKS/ZANAwAIAQXO9ceJ5Vp0AcsmYgBnD9etsj1ViSMU4ImyLpm/OOwYvVrE1H+1dt1X+ yROjMz+FHyJAjMEAAEIAB0WIQTfzBMe8k8tZW+lBNYFzvXHieVadAUCZw/XrQAKCRAFzvXHieVa dMhiD/9DfQbiuPmywZaAmQZQhL+/sx6A8UMRKa+bo/73/SBfvdL0XYvP7x2B9bbTel3Bwu5uo/c Guc6WLjRozoux9uz4gT12khIEAYEAqoVrTwbKH4vssOoWDlRYDfZ2jJg1l94aQ/fbe7RSafDGv+ cM57MI2R6cO1PYkU9+pVcrCPe4IDrKJjaZW6LTn/EQM0sSCVlDVUUHhYwT0JtVo3vJlK2BFEGGw QHC3UPD+At1Q3MNqsfM46L4P2O+Jc7Tn7F/qvBjF696dt469glm0WTqLQgtGzLsZHXgvLk3l3ny G79vXl9B4qtVdRWTHujZfiIDLMZEnkIhelG8rIbFMcHtjBTK8L0NgrhOXyVjXYtdj0u91Jk0IUf 23oSkHBhT1xylSVZxXhnLx3eKWWoYW/vtn5Qs1l7GkCNEE5p95XzSongYjD0bAv+rRxBG5BY63x ZmWWXcaPT1ug72GzonpRLo7GOHxsczm6qJ+FGtoyHhXDvy2Cqo56JDvdEGidSV4jsuOtCInByFY jlIDPHLTasSfLVIBnU3itDlz5AjIEhNfscxmAc4toYSiMfiHbmV0VSs35SeX5nAe215sTOKuspb fvTT35aKQ72FfBEka3xDxynXIHu+Ld+V5nsnWgEcDA8Ynqj+6IkGTXJyA+BORl0LWezAboThC8v NwVuE/jYdrsvfjQ== 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-20241016_081150_326167_56D82878 X-CRM114-Status: UNSURE ( 9.85 ) X-CRM114-Notice: Please train this message. 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 70de288d728e447d5053eab3c1417f23212a66e4..2dbb8930be3f2ea72f1c502233f303934c83c46c 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>; +};