Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
d85eb9f
Revert "FROMLIST: dt-bindings: clock: qcom: Add bindings for PDM GP_M…
taniyadas20 Nov 24, 2026
33a811a
Revert "FROMLIST: clk: qcom: Add a driver for PDM GP_MN fractional cl…
taniyadas20 Nov 24, 2026
11e4a4f
FROMLIST: dt-bindings: clock: qcom: Add bindings for PDM GP_MN clock …
taniyadas20 Nov 23, 2026
9223795
FROMLIST: dt-bindings: clock: qcom: Add PDM XO4 divider clock IDs
taniyadas20 Nov 23, 2026
b096e4c
FROMLIST: clk: qcom: Add a driver for PDM GP_MN fractional clock divider
taniyadas20 Nov 23, 2026
77f1e12
FROMLIST: clk: qcom: gcc: Add configurable PDM XO4 div clocks across …
taniyadas20 Nov 23, 2026
1510f1e
FROMLIST: dt-bindings: clock: qcom: add Shikra PWM XO512 source clock
taniyadas20 Nov 16, 2026
b38e39c
FROMLIST: clk: qcom: gcc-shikra: add PWM XO512 source clock
taniyadas20 Nov 16, 2026
45c0119
FROMLIST: dt-bindings: pwm: qcom: add Shikra PWM controller
taniyadas20 Nov 16, 2026
a55d574
FROMLIST: pwm: qcom: add Shikra PWM controller support
taniyadas20 Nov 16, 2026
01bfedb
FROMLIST: dt-bindings: pinctrl: qcom: qcs8300: add gp_mn function
taniyadas20 Nov 18, 2026
58c67da
FROMLIST: dt-bindings: pinctrl: qcom: sa8775p: add gp_mn function
taniyadas20 Nov 18, 2026
ba89fe3
FROMLIST: dt-bindings: pinctrl: qcom: sc7280: add gp_mn function
taniyadas20 Nov 18, 2026
cc9d1dc
FROMLIST: dt-bindings: pinctrl: qcom: qcs615: add gp_mn function
taniyadas20 Nov 18, 2026
c7d0f8c
FROMLIST: pinctrl: qcom: qcs615: Add gp_mn mux function
taniyadas20 Nov 18, 2026
38bb5af
FROMLIST: dt-bindings: pinctrl: qcom: sm8750: add gp_mn function
taniyadas20 Nov 18, 2026
5123c73
FROMLIST: pinctrl: qcom: sm8750: Add gp_mn mux function
taniyadas20 Nov 18, 2026
b3b719d
FROMLIST: dt-bindings: pinctrl: qcom: kaanapali: add gp_mn function
taniyadas20 Nov 18, 2026
80fa0ea
FROMLIST: pinctrl: qcom: kaanapali: Add gp_mn mux function
taniyadas20 Nov 18, 2026
4d312fb
FROMLIST: dt-bindings: pinctrl: qcom: glymur: add gp_mn function
taniyadas20 Nov 18, 2026
e7a9582
FROMLIST: pinctrl: qcom: glymur: Add gp_mn mux function
taniyadas20 Nov 18, 2026
a5b8a3e
FROMLIST: dt-bindings: pinctrl: qcom: shikra: add gp_mn function
taniyadas20 Nov 18, 2026
a0bfc89
FROMLIST: pinctrl: qcom: shikra: Add gp_mn mux function
taniyadas20 Nov 18, 2026
35b7086
FROMLIST: arm64: dts: qcom: sc7280: Add GP M/N clock controller
taniyadas20 Nov 23, 2026
4440cf9
FROMLIST: arm64: dts: qcom: sm8750: Add GP M/N clock controller
taniyadas20 Nov 24, 2026
b4c2983
FROMLIST: arm64: dts: qcom: sa8775p: Add GP M/N clock controller
taniyadas20 Nov 24, 2026
3b645d6
FROMLIST: arm64: dts: qcom: qcs8300: Add GP M/N clock controller
taniyadas20 Nov 23, 2026
9ee1022
FROMLIST: arm64: dts: qcom: qcs615: Add GP M/N clock controller
taniyadas20 Nov 23, 2026
da60926
FROMLIST: arm64: dts: qcom: add Shikra PWM controller
taniyadas20 Nov 16, 2026
2c9a610
FROMLIST: arm64: dts: qcom: shikra: Add GP M/N clock controller
taniyadas20 Nov 24, 2026
d437ccc
QCLINUX: qcom.config: Enable PWM and GP_MND drivers
taniyadas20 Nov 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/clock/qcom,clk-gp-mnd.yaml#
$id: http://devicetree.org/schemas/clock/qcom,sc7280-gp-mnd.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Qualcomm Peripheral Web's PDM GP_MN Clock Divider
Expand Down Expand Up @@ -35,70 +35,57 @@ description: |

properties:
compatible:
const: qcom,clk-gp-mnd
oneOf:
- const: qcom,sc7280-gp-mnd
- items:
- enum:
- qcom,qcs615-gp-mnd
- qcom,qcs8300-gp-mnd
- qcom,sa8775p-gp-mnd
- qcom,shikra-gp-mnd
- qcom,sm8750-gp-mnd
- const: qcom,sc7280-gp-mnd

reg:
maxItems: 1

clocks:
items:
- description: PDM XO4 source clock
- description: |
PDM XO4 source clock. It is derived from the 19.2 MHz TCXO by an
integer divider of 1 to 16 programmed on the parent clock (for
example via assigned-clock-rates), giving supported input rates
from 19200000 Hz (divide by 1) down to 1200000 Hz (divide by 16).
- description: PDM AHB bus clock for register access

clock-names:
items:
- const: pdm_clk
- const: ahb_clk
- const: pdm
- const: ahb

'#clock-cells':
const: 0

clock-output-names:
maxItems: 1

pinctrl-0:
description: Pin configuration for the GP_MN output in the active state.

pinctrl-names:
items:
- const: active

assigned-clocks:
maxItems: 1
description: Parent clock phandle used to set the input frequency.

assigned-clock-rates:
maxItems: 1
description: |
Rate for the parent clock in Hz.
Supported rates: 19200000, 9600000, 6400000, 4800000.

required:
- compatible
- reg
- clocks
- clock-names
- '#clock-cells'
- clock-output-names
- pinctrl-0
- pinctrl-names
- assigned-clocks
- assigned-clock-rates

additionalProperties: false

examples:
- |
#include <dt-bindings/clock/qcom,gcc-sdm845.h>
gp_mn: clock-controller@88d3000 {
compatible = "qcom,clk-gp-mnd";
reg = <0x88d3000 0xc>;
#include <dt-bindings/clock/qcom,gcc-sc7280.h>
clock-controller@88d3000 {
compatible = "qcom,sc7280-gp-mnd";
reg = <0x88d3000 0x1000>;
clocks = <&gcc GCC_PDM_XO4_CLK>,
<&gcc GCC_PDM_AHB_CLK>;
clock-names = "pdm_clk", "ahb_clk";
clock-output-names = "gp_mn_clk";
clock-names = "pdm", "ahb";
pinctrl-0 = <&gp_mn_pin_active>;
pinctrl-names = "active";
pinctrl-names = "default";
assigned-clocks = <&gcc GCC_PDM_XO4_CLK>;
assigned-clock-rates = <4800000>;
#clock-cells = <0>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ $defs:
ddr_bist_fail, ddr_bist_start, ddr_bist_stop, ddr_pxi,
edp0_hot, edp0_lcd, edp1_lcd, egpio, eusb0_ac_en, eusb1_ac_en,
eusb2_ac_en, eusb3_ac_en, eusb5_ac_en, eusb6_ac_en, gcc_gp1,
gcc_gp2, gcc_gp3, host2wlan_sol, i2c0_s_scl, i2c0_s_sda,
gcc_gp2, gcc_gp3, gp_mn, host2wlan_sol, i2c0_s_scl, i2c0_s_sda,
i2s0_data, i2s0_sck, i2s0_ws, i2s1_data, i2s1_sck, i2s1_ws,
ibi_i3c, jitter_bist, mdp_vsync_out, mdp_vsync_e, mdp_vsync_p,
mdp_vsync_s, pcie3a_clk, pcie3a_rst_n, pcie3b_clk,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ $defs:
coex_uart2_tx, dbg_out_clk, ddr_bist_complete, ddr_bist_fail,
ddr_bist_start, ddr_bist_stop, ddr_pxi0, ddr_pxi1, ddr_pxi2,
ddr_pxi3, dp_hot, egpio, gcc_gp1, gcc_gp2, gcc_gp3, gnss_adc0,
gnss_adc1, i2chub0_se0, i2chub0_se1, i2chub0_se2, i2chub0_se3,
gnss_adc1, gp_mn, i2chub0_se0, i2chub0_se1, i2chub0_se2,
i2chub0_se3,
i2chub0_se4, i2s0_data0, i2s0_data1, i2s0_sck, i2s0_ws,
i2s1_data0, i2s1_data1, i2s1_sck, i2s1_ws, ibi_i3c, jitter_bist,
mdp_esync0_out, mdp_esync1_out, mdp_vsync, mdp_vsync0_out,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ $defs:
atest_usb, cam_mclk, cci_async, cci_i2c, cci_timer, copy_gp,
copy_phase, cri_trng, dbg_out_clk, ddr_bist, ddr_pxi, dp_hot,
edp_hot, edp_lcd, emac_gcc, emac_phy_intr, forced_usb, gcc_gp,
gp_pdm, gps_tx, hs0_mi2s, hs1_mi2s, jitter_bist, ldo_en,
gp_mn, gp_pdm, gps_tx, hs0_mi2s, hs1_mi2s, jitter_bist, ldo_en,
ldo_update, m_voc, mclk1, mclk2, mdp_vsync, mdp_vsync0_out,
mdp_vsync1_out, mdp_vsync2_out, mdp_vsync3_out, mdp_vsync4_out,
mdp_vsync5_out, mi2s_1, mss_lte, nav_pps_in, nav_pps_out,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ $defs:
edp0_hot, edp0_lcd, edp1_lcd, egpio, emac0_mcg0, emac0_mcg1,
emac0_mcg2, emac0_mcg3, emac0_mdc, emac0_mdio, emac0_ptp_aux,
emac0_ptp_pps, gcc_gp1, gcc_gp2, gcc_gp3, gcc_gp4, gcc_gp5,
gpio, hs0_mi2s, hs1_mi2s, hs2_mi2s, ibi_i3c, jitter_bist,
gp_mn, gpio, hs0_mi2s, hs1_mi2s, hs2_mi2s, ibi_i3c, jitter_bist,
mdp0_vsync0, mdp0_vsync1, mdp0_vsync3, mdp0_vsync6, mdp0_vsync7,
mdp_vsync, mi2s1_data0, mi2s1_data1, mi2s1_sck, mi2s1_ws,
mi2s2_data0, mi2s2_data1, mi2s2_sck, mi2s2_ws, mi2s_mclk0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ $defs:
emac0_mdc, emac0_mdio, emac0_ptp_aux, emac0_ptp_pps, emac1_mcg0,
emac1_mcg1, emac1_mcg2, emac1_mcg3, emac1_mdc, emac1_mdio,
emac1_ptp_aux, emac1_ptp_pps, gcc_gp1, gcc_gp2, gcc_gp3,
gcc_gp4, gcc_gp5, gpio, hs0_mi2s, hs1_mi2s, hs2_mi2s, ibi_i3c,
gcc_gp4, gcc_gp5, gp_mn, gpio, hs0_mi2s, hs1_mi2s, hs2_mi2s,
ibi_i3c,
jitter_bist, mdp0_vsync0, mdp0_vsync1, mdp0_vsync2, mdp0_vsync3,
mdp0_vsync4, mdp0_vsync5, mdp0_vsync6, mdp0_vsync7, mdp0_vsync8,
mdp1_vsync0, mdp1_vsync1, mdp1_vsync2, mdp1_vsync3, mdp1_vsync4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ $defs:
cmu_rng2, cmu_rng3, coex_uart1, cri_trng, cri_trng0,
cri_trng1, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1, dp_hot,
dp_lcd, edp_hot, edp_lcd, gcc_gp1, gcc_gp2, gcc_gp3,
gpio, host2wlan_sol, ibi_i3c, jitter_bist, lpass_slimbus,
gp_mn, gpio, host2wlan_sol, ibi_i3c, jitter_bist, lpass_slimbus,
mdp_vsync, mdp_vsync0, mdp_vsync1, mdp_vsync2, mdp_vsync3,
mdp_vsync4, mdp_vsync5, mi2s0_data0, mi2s0_data1, mi2s0_sck,
mi2s0_ws, mi2s1_data0, mi2s1_data1, mi2s1_sck, mi2s1_ws,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ $defs:
cci_i2c1, cci_timer, char_exec, cri_trng, dac_calib,
dbg_out_clk, ddr_bist, ddr_pxi, dmic, emac_dll, emac_mcg,
emac_phy, emac0_ptp_aux, emac0_ptp_pps, emac1_ptp_aux,
emac1_ptp_pps, ext_mclk, gcc_gp, gsm0_tx, i2s0, i2s1,
emac1_ptp_pps, ext_mclk, gcc_gp, gp_mn, gsm0_tx, i2s0, i2s1,
i2s2, i2s3, jitter_bist, m_voc, mdp_vsync_e, mdp_vsync_out0,
mdp_vsync_out1, mdp_vsync_p, mdp_vsync_s, mpm_pwr, mss_lte,
nav_gpio, pa_indicator_or, pbs_in, pbs_out, pcie0_clk_req_n,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ $defs:
coex_uart2_tx, dbg_out_clk, ddr_bist_complete, ddr_bist_fail,
ddr_bist_start, ddr_bist_stop, ddr_pxi0, ddr_pxi1, ddr_pxi2,
ddr_pxi3, dp_hot, egpio, gcc_gp1, gcc_gp2, gcc_gp3, gnss_adc0,
gnss_adc1, i2chub0_se0, i2chub0_se1, i2chub0_se2, i2chub0_se3,
gnss_adc1, gp_mn, i2chub0_se0, i2chub0_se1, i2chub0_se2,
i2chub0_se3,
i2chub0_se4, i2chub0_se5, i2chub0_se6, i2chub0_se7, i2chub0_se8,
i2chub0_se9, i2s0_data0, i2s0_data1, i2s0_sck, i2s0_ws,
i2s1_data0, i2s1_data1, i2s1_sck, i2s1_ws, ibi_i3c, jitter_bist,
Expand Down
127 changes: 127 additions & 0 deletions Documentation/devicetree/bindings/pwm/qcom,shikra-pwm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/pwm/qcom,shikra-pwm.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Qualcomm Shikra PWM controller

maintainers:
- Taniya Das <taniya.das@oss.qualcomm.com>

description: |
The Qualcomm PWM (Pulse Width Modulation) block on Shikra contains
up to 10 independent PWM frame channels. Each frame is a child node of
the PWM controller node and owns its own register range. All frames
share a single PWM core clock owned by the parent node. Child frame reg
properties use the parent SoC address space through an empty identity
ranges mapping.

The PWM source input clock, pwm_core, is given by:

F_PWM_CLK = 19.2 MHz / N

where N is an integer from 1 through 512. The output frequency range
for a given PWM source clock is:

f_out(max) = F_PWM_CLK / 2
f_out(min) = F_PWM_CLK / 65536

allOf:
- $ref: pwm.yaml#

properties:
compatible:
const: qcom,shikra-pwm

reg:
maxItems: 1

clocks:
items:
- description: AHB bus clock for the PWM block.
- description: Gate clock shared by every frame (pwm_core).

clock-names:
items:
- const: ahb
- const: core

"#pwm-cells":
const: 3

"#address-cells":
const: 2

"#size-cells":
const: 2

ranges: true

patternProperties:
"^pwm@[0-9a-f]+$":
type: object
description: Per-frame PWM channel sub-node.

properties:
reg:
maxItems: 1
description: This frame's own absolute register range.

qcom,frame-index:
$ref: /schemas/types.yaml#/definitions/uint32
description:
Hardware frame index within the PWM block. It is the PWM index
used in the first cell of a consumer PWM specifier and selects
the corresponding enable bit in PWM_TOPCTL0.
maximum: 9

required:
- reg
- qcom,frame-index

additionalProperties: false

required:
- compatible
- reg
- clocks
- clock-names
- "#pwm-cells"
- "#address-cells"
- "#size-cells"
- ranges

unevaluatedProperties: false

examples:
- |
#include <dt-bindings/clock/qcom,shikra-gcc.h>

/ {
#address-cells = <2>;
#size-cells = <2>;

pwm: pwm@4700000 {
compatible = "qcom,shikra-pwm";
reg = <0x0 0x04700000 0x0 0x10>;
clocks = <&gcc GCC_PDM_AHB_CLK>, <&gcc GCC_PWM0_XO512_CLK>;
clock-names = "ahb", "core";
assigned-clocks = <&gcc GCC_PWM0_XO512_CLK>;
assigned-clock-rates = <9600000>;
#pwm-cells = <3>;
#address-cells = <2>;
#size-cells = <2>;
ranges;

pwm@4701000 {
reg = <0x0 0x04701000 0x0 0x1c>;
qcom,frame-index = <0>;
};

pwm@4702000 {
reg = <0x0 0x04702000 0x0 0x1c>;
qcom,frame-index = <1>;
};
};
};
12 changes: 6 additions & 6 deletions arch/arm64/boot/dts/qcom/lemans.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -4208,17 +4208,17 @@
};

gp_mn: clock-controller@88d3000 {
compatible = "qcom,clk-gp-mnd";
reg = <0x0 0x088d3000 0x0 0xc>;
compatible = "qcom,sa8775p-gp-mnd", "qcom,sc7280-gp-mnd";
reg = <0x0 0x088d3000 0x0 0x1000>;
clocks = <&gcc GCC_PDM_XO4_CLK>,
<&gcc GCC_PDM_AHB_CLK>;
clock-names = "pdm_clk", "ahb_clk";
clock-output-names = "gp_mn_clk";
clock-names = "pdm", "ahb";
#clock-cells = <0>;
pinctrl-names = "active";
pinctrl-0 = <&gp_mn_active>;
pinctrl-names = "default";
assigned-clocks = <&gcc GCC_PDM_XO4_CLK>;
assigned-clock-rates = <4800000>;
status = "disabled";
};

usb_0_hsphy: phy@88e4000 {
Expand Down Expand Up @@ -5846,7 +5846,7 @@
bias-disable;
};

gp_mn_active: gp_mn_active-state {
gp_mn_active: gp-mn-active-state {
pins = "gpio35";
function = "gp_mn";
drive-strength = <2>;
Expand Down
12 changes: 6 additions & 6 deletions arch/arm64/boot/dts/qcom/monaco.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -5037,17 +5037,17 @@
};

gp_mn: clock-controller@88d3000 {
compatible = "qcom,clk-gp-mnd";
reg = <0x0 0x088d3000 0x0 0xc>;
compatible = "qcom,qcs8300-gp-mnd", "qcom,sc7280-gp-mnd";
reg = <0x0 0x088d3000 0x0 0x1000>;
clocks = <&gcc GCC_PDM_XO4_CLK>,
<&gcc GCC_PDM_AHB_CLK>;
clock-names = "pdm_clk", "ahb_clk";
clock-output-names = "gp_mn_clk";
clock-names = "pdm", "ahb";
#clock-cells = <0>;
pinctrl-names = "active";
pinctrl-0 = <&gp_mn_active>;
pinctrl-names = "default";
assigned-clocks = <&gcc GCC_PDM_XO4_CLK>;
assigned-clock-rates = <4800000>;
status = "disabled";
};

usb_1_hsphy: phy@8904000 {
Expand Down Expand Up @@ -6589,7 +6589,7 @@
bias-disable;
};

gp_mn_active: gp_mn_active-state {
gp_mn_active: gp-mn-active-state {
pins = "gpio32";
function = "gp_mn";
drive-strength = <2>;
Expand Down
Loading
Loading