Skip to content

Commit c547946

Browse files
hurrianrobimarko
authored andcommitted
qualcommbe: add pwm support
This adds the pending upstream patches for platform PWM support for qualcommbe Signed-off-by: Kenneth Kasilag <kenneth@kasilag.me> Link: openwrt/openwrt#21727 Signed-off-by: Robert Marko <robimarko@gmail.com>
1 parent 92a94dc commit c547946

4 files changed

Lines changed: 854 additions & 0 deletions

File tree

target/linux/qualcommbe/config-6.12

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ CONFIG_POWER_RESET=y
397397
CONFIG_POWER_SUPPLY=y
398398
CONFIG_PRINTK_TIME=y
399399
CONFIG_PTP_1588_CLOCK_OPTIONAL=y
400+
CONFIG_PWM_IPQ=y
400401
CONFIG_QCA807X_PHY=y
401402
CONFIG_QCA808X_PHY=y
402403
# CONFIG_QCM_DISPCC_2290 is not set
Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
From patchwork Fri Nov 28 10:29:13 2025
2+
Content-Type: text/plain; charset="utf-8"
3+
MIME-Version: 1.0
4+
Content-Transfer-Encoding: 7bit
5+
X-Patchwork-Submitter: George Moussalem via B4 Relay
6+
<devnull+george.moussalem.outlook.com@kernel.org>
7+
X-Patchwork-Id: 2169931
8+
Return-Path:
9+
<linux-pwm+bounces-7721-incoming=patchwork.ozlabs.org@vger.kernel.org>
10+
X-Original-To: incoming@patchwork.ozlabs.org
11+
Delivered-To: patchwork-incoming@legolas.ozlabs.org
12+
Authentication-Results: legolas.ozlabs.org;
13+
dkim=pass (2048-bit key;
14+
unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256
15+
header.s=k20201202 header.b=qU845OFh;
16+
dkim-atps=neutral
17+
Authentication-Results: legolas.ozlabs.org;
18+
spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org
19+
(client-ip=213.196.21.55; helo=ams.mirrors.kernel.org;
20+
envelope-from=linux-pwm+bounces-7721-incoming=patchwork.ozlabs.org@vger.kernel.org;
21+
receiver=patchwork.ozlabs.org)
22+
Received: from ams.mirrors.kernel.org (ams.mirrors.kernel.org [213.196.21.55])
23+
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
24+
key-exchange X25519 server-signature ECDSA (secp384r1))
25+
(No client certificate requested)
26+
by legolas.ozlabs.org (Postfix) with ESMTPS id 4dHqMJ5gXFz1yDj
27+
for <incoming@patchwork.ozlabs.org>; Fri, 28 Nov 2025 21:30:52 +1100 (AEDT)
28+
Received: from smtp.subspace.kernel.org (relay.kernel.org [52.25.139.140])
29+
(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))
30+
(No client certificate requested)
31+
by ams.mirrors.kernel.org (Postfix) with ESMTPS id 0783B352ED3
32+
for <incoming@patchwork.ozlabs.org>; Fri, 28 Nov 2025 10:29:38 +0000 (UTC)
33+
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
34+
by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B94630C370;
35+
Fri, 28 Nov 2025 10:29:23 +0000 (UTC)
36+
Authentication-Results: smtp.subspace.kernel.org;
37+
dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org
38+
header.b="qU845OFh"
39+
X-Original-To: linux-pwm@vger.kernel.org
40+
Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org
41+
[10.30.226.201])
42+
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
43+
(No client certificate requested)
44+
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 27F7930B525;
45+
Fri, 28 Nov 2025 10:29:22 +0000 (UTC)
46+
Authentication-Results: smtp.subspace.kernel.org;
47+
arc=none smtp.client-ip=10.30.226.201
48+
ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
49+
t=1764325763; cv=none;
50+
b=EZdjLPtvTBCzr24d6uks1u6xas9FiqaXRtClecDuZQfT8aKQnU9LDJSaswvWaMHcpRkbBujRZFntPyNohlI+P0vj+Zlmof30QOr4Cw61jr3wGlfQNPsH0ib1AuyADzOHFj1W0c+mfqIs2onOC15OGkIc+DWrCsNXePSM/0/0XQM=
51+
ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
52+
s=arc-20240116; t=1764325763; c=relaxed/simple;
53+
bh=fNS3C2NaCK+go2nQNBlkD9EyrNNHIb0CZcl2LNOQBmE=;
54+
h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:
55+
In-Reply-To:To:Cc;
56+
b=iRh98acHGzMCOeqCHb4A30mpdpFjHp96ccf65E1oF0kaAGzHdhWM7H56NI22q+0GXrY7o91H7F+x1Dz1spr6OZc6bMG4DuV8oap/vEdtyjApt+7zNFUl0PcrMSLSe2YVFaWgVvk7/IenJxJhEqcPWhsFZR+HGM4iuhv2lP3w32c=
57+
ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
58+
dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org
59+
header.b=qU845OFh; arc=none smtp.client-ip=10.30.226.201
60+
Received: by smtp.kernel.org (Postfix) with ESMTPS id BDCD9C113D0;
61+
Fri, 28 Nov 2025 10:29:22 +0000 (UTC)
62+
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;
63+
s=k20201202; t=1764325762;
64+
bh=fNS3C2NaCK+go2nQNBlkD9EyrNNHIb0CZcl2LNOQBmE=;
65+
h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From;
66+
b=qU845OFhU3cciT1imeWuTMro85tXusIJt99AroBlTX9t+aY8oZwFPjd4KhPNki2mi
67+
gK5GyKlndlusCuuiAqnaaQahXFM6I16gAWHOaCMORh1VJ0Vdli6WOo66C/KlZBrRPN
68+
4x/+oieXIooU174yYf8PhFevu9NVbs1arlck6sgsyyW7HB0WwedreqFH2qfmTO4NyF
69+
zDymUL0G9Og8hd89PsEyZkkDLVroKnvjU7POud+8el6a6PvDYUOmCTM/rsu2gJX64s
70+
k9Nm5ZJmRWfQvaku8McARECvY/QLX3P+pweAuDyazDxpGgTTxPqMbyywNEBjfVYu+o
71+
ksKwowwfTPqHg==
72+
Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org
73+
(localhost.localdomain [127.0.0.1])
74+
by smtp.lore.kernel.org (Postfix) with ESMTP id A0784D116EA;
75+
Fri, 28 Nov 2025 10:29:22 +0000 (UTC)
76+
From: George Moussalem via B4 Relay
77+
<devnull+george.moussalem.outlook.com@kernel.org>
78+
Date: Fri, 28 Nov 2025 14:29:13 +0400
79+
Subject: [PATCH v19 1/6] dt-bindings: pwm: add IPQ6018 binding
80+
Precedence: bulk
81+
X-Mailing-List: linux-pwm@vger.kernel.org
82+
List-Id: <linux-pwm.vger.kernel.org>
83+
List-Subscribe: <mailto:linux-pwm+subscribe@vger.kernel.org>
84+
List-Unsubscribe: <mailto:linux-pwm+unsubscribe@vger.kernel.org>
85+
MIME-Version: 1.0
86+
Message-Id: <20251128-ipq-pwm-v19-1-13bc704cc6a5@outlook.com>
87+
References: <20251128-ipq-pwm-v19-0-13bc704cc6a5@outlook.com>
88+
In-Reply-To: <20251128-ipq-pwm-v19-0-13bc704cc6a5@outlook.com>
89+
To: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= <ukleinek@kernel.org>,
90+
Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>,
91+
Conor Dooley <conor+dt@kernel.org>, Baruch Siach <baruch@tkos.co.il>,
92+
Bjorn Andersson <andersson@kernel.org>,
93+
Konrad Dybcio <konradybcio@kernel.org>
94+
Cc: linux-arm-msm@vger.kernel.org, linux-pwm@vger.kernel.org,
95+
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
96+
George Moussalem <george.moussalem@outlook.com>,
97+
Devi Priya <quic_devipriy@quicinc.com>,
98+
Baruch Siach <baruch.siach@siklu.com>,
99+
Bjorn Andersson <andersson@kernel.org>,
100+
Krzysztof Kozlowski <krzk@kernel.org>
101+
X-Mailer: b4 0.14.2
102+
X-Developer-Signature: v=1; a=ed25519-sha256; t=1764325760; l=2042;
103+
i=george.moussalem@outlook.com; s=20250321; h=from:subject:message-id;
104+
bh=8ayVJ9z0kZoRdShrug1dJ1pjUonk4k9SO1yJzG93fMg=;
105+
b=o0lsJw1oX/jEPu9xLh+Ovt+AbJGXh3X8na0H8Ko0Vcl7PFsYQQEOP9HhJAp8Y5XyBFBcroa6x
106+
AHFNonYE7aVArYgsi5KqkDnui4xwpKQpD5RwWJ3JFA96K5IALoApziu
107+
X-Developer-Key: i=george.moussalem@outlook.com; a=ed25519;
108+
pk=/PuRTSI9iYiHwcc6Nrde8qF4ZDhJBlUgpHdhsIjnqIk=
109+
X-Endpoint-Received: by B4 Relay for george.moussalem@outlook.com/20250321
110+
with auth_id=364
111+
X-Original-From: George Moussalem <george.moussalem@outlook.com>
112+
Reply-To: george.moussalem@outlook.com
113+
114+
From: Devi Priya <quic_devipriy@quicinc.com>
115+
116+
DT binding for the PWM block in Qualcomm IPQ6018 SoC.
117+
118+
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
119+
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
120+
Co-developed-by: Baruch Siach <baruch.siach@siklu.com>
121+
Signed-off-by: Baruch Siach <baruch.siach@siklu.com>
122+
Signed-off-by: Devi Priya <quic_devipriy@quicinc.com>
123+
Signed-off-by: George Moussalem <george.moussalem@outlook.com>
124+
---
125+
.../devicetree/bindings/pwm/qcom,ipq6018-pwm.yaml | 51 ++++++++++++++++++++++
126+
1 file changed, 51 insertions(+)
127+
128+
diff --git a/Documentation/devicetree/bindings/pwm/qcom,ipq6018-pwm.yaml b/Documentation/devicetree/bindings/pwm/qcom,ipq6018-pwm.yaml
129+
new file mode 100644
130+
index 0000000000000000000000000000000000000000..f9f1f652e7527bc8fb3d5fad51b0057ea53b3766
131+
--- /dev/null
132+
+++ b/Documentation/devicetree/bindings/pwm/qcom,ipq6018-pwm.yaml
133+
@@ -0,0 +1,51 @@
134+
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
135+
+%YAML 1.2
136+
+---
137+
+$id: http://devicetree.org/schemas/pwm/qcom,ipq6018-pwm.yaml#
138+
+$schema: http://devicetree.org/meta-schemas/core.yaml#
139+
+
140+
+title: Qualcomm IPQ6018 PWM controller
141+
+
142+
+maintainers:
143+
+ - George Moussalem <george.moussalem@outlook.com>
144+
+
145+
+properties:
146+
+ compatible:
147+
+ oneOf:
148+
+ - items:
149+
+ - enum:
150+
+ - qcom,ipq5018-pwm
151+
+ - qcom,ipq5332-pwm
152+
+ - qcom,ipq9574-pwm
153+
+ - const: qcom,ipq6018-pwm
154+
+ - const: qcom,ipq6018-pwm
155+
+
156+
+ reg:
157+
+ maxItems: 1
158+
+
159+
+ clocks:
160+
+ maxItems: 1
161+
+
162+
+ "#pwm-cells":
163+
+ const: 3
164+
+
165+
+required:
166+
+ - compatible
167+
+ - reg
168+
+ - clocks
169+
+ - "#pwm-cells"
170+
+
171+
+additionalProperties: false
172+
+
173+
+examples:
174+
+ - |
175+
+ #include <dt-bindings/clock/qcom,gcc-ipq6018.h>
176+
+
177+
+ pwm: pwm@1941010 {
178+
+ compatible = "qcom,ipq6018-pwm";
179+
+ reg = <0x01941010 0x20>;
180+
+ clocks = <&gcc GCC_ADSS_PWM_CLK>;
181+
+ assigned-clocks = <&gcc GCC_ADSS_PWM_CLK>;
182+
+ assigned-clock-rates = <100000000>;
183+
+ #pwm-cells = <3>;
184+
+ };

0 commit comments

Comments
 (0)