Skip to content

Commit cd44d98

Browse files
committed
FROMLIST: arm64: dts: qcom: Add GP M/N clock controller node for SA8775P and QCS8300
Add the GP M/N divider clock controller node at 0x088d3000 to the SA8775P (sc7280, lemans) and QCS8300 (monaco) SoC device trees. The node uses the qcom,clk-gp-mnd compatible, is clocked by the PDM XO4 and AHB clocks from GCC, and exposes a single clock output (gp_mn_clk) on the dedicated gp_mn pin mux function. The XO4 clock is pre-assigned to 4.8 MHz (XO/4). Link: https://lore.kernel.org/r/20260602-pdm_clk_gp_mnd_v1-v1-5-1522662b6c53@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com>
1 parent 9b5461d commit cd44d98

3 files changed

Lines changed: 42 additions & 0 deletions

File tree

arch/arm64/boot/dts/qcom/lemans.dtsi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4045,6 +4045,20 @@
40454045
};
40464046
};
40474047

4048+
gp_mn: clock-controller@88d3000 {
4049+
compatible = "qcom,clk-gp-mnd";
4050+
reg = <0x0 0x088d3000 0x0 0xc>;
4051+
clocks = <&gcc GCC_PDM_XO4_CLK>,
4052+
<&gcc GCC_PDM_AHB_CLK>;
4053+
clock-names = "pdm_clk", "ahb_clk";
4054+
clock-output-names = "gp_mn_clk";
4055+
#clock-cells = <0>;
4056+
pinctrl-names = "active";
4057+
pinctrl-0 = <&gp_mn_active>;
4058+
assigned-clocks = <&gcc GCC_PDM_XO4_CLK>;
4059+
assigned-clock-rates = <4800000>;
4060+
};
4061+
40484062
usb_0_hsphy: phy@88e4000 {
40494063
compatible = "qcom,sa8775p-usb-hs-phy",
40504064
"qcom,usb-snps-hs-5nm-phy";

arch/arm64/boot/dts/qcom/monaco.dtsi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4803,6 +4803,20 @@
48034803
};
48044804
};
48054805

4806+
gp_mn: clock-controller@88d3000 {
4807+
compatible = "qcom,clk-gp-mnd";
4808+
reg = <0x0 0x088d3000 0x0 0xc>;
4809+
clocks = <&gcc GCC_PDM_XO4_CLK>,
4810+
<&gcc GCC_PDM_AHB_CLK>;
4811+
clock-names = "pdm_clk", "ahb_clk";
4812+
clock-output-names = "gp_mn_clk";
4813+
#clock-cells = <0>;
4814+
pinctrl-names = "active";
4815+
pinctrl-0 = <&gp_mn_active>;
4816+
assigned-clocks = <&gcc GCC_PDM_XO4_CLK>;
4817+
assigned-clock-rates = <4800000>;
4818+
};
4819+
48064820
usb_1_hsphy: phy@8904000 {
48074821
compatible = "qcom,qcs8300-usb-hs-phy",
48084822
"qcom,usb-snps-hs-7nm-phy";

arch/arm64/boot/dts/qcom/sc7280.dtsi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4347,6 +4347,20 @@
43474347
usb-role-switch;
43484348
};
43494349

4350+
gp_mn: clock-controller@88d3000 {
4351+
compatible = "qcom,clk-gp-mnd";
4352+
reg = <0x0 0x088d3000 0x0 0xc>;
4353+
clocks = <&gcc GCC_PDM_XO4_CLK>,
4354+
<&gcc GCC_PDM_AHB_CLK>;
4355+
clock-names = "pdm_clk", "ahb_clk";
4356+
clock-output-names = "gp_mn_clk";
4357+
#clock-cells = <0>;
4358+
pinctrl-names = "active";
4359+
pinctrl-0 = <&gp_mn_active>;
4360+
assigned-clocks = <&gcc GCC_PDM_XO4_CLK>;
4361+
assigned-clock-rates = <4800000>;
4362+
};
4363+
43504364
qspi: spi@88dc000 {
43514365
compatible = "qcom,sc7280-qspi", "qcom,qspi-v1";
43524366
reg = <0 0x088dc000 0 0x1000>;

0 commit comments

Comments
 (0)