[PATCH 3/3] riscv: dts: sophgo: cv180x: add PWM controller nodes

From: Hiago De Franco

Date: Tue Nov 17 2026 - 07:57:53 EST


The CV180x/CV181x/SG200x SoCs provide four PWM controller instances at
0x03060000, 0x03061000, 0x03062000 and 0x03063000.

Add the corresponding nodes to the shared cv180x.dtsi, so that they are
available to every SoC including it, and keep them disabled by default
since the boards still need to describe how the outputs are wired.

Signed-off-by: Hiago De Franco <hfranco@xxxxxxxxxxxx>
---
arch/riscv/boot/dts/sophgo/cv180x.dtsi | 40 ++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)

diff --git a/arch/riscv/boot/dts/sophgo/cv180x.dtsi b/arch/riscv/boot/dts/sophgo/cv180x.dtsi
index d2ec70fd515e..c478e7eb549f 100644
--- a/arch/riscv/boot/dts/sophgo/cv180x.dtsi
+++ b/arch/riscv/boot/dts/sophgo/cv180x.dtsi
@@ -160,6 +160,46 @@ portd: gpio-controller@0 {
};
};

+ pwm0: pwm@3060000 {
+ compatible = "sophgo,cv1800b-pwm";
+ reg = <0x3060000 0x1000>;
+ #pwm-cells = <3>;
+ clocks = <&clk CLK_PWM>;
+ clock-names = "apb";
+ resets = <&rst RST_PWM0>;
+ status = "disabled";
+ };
+
+ pwm1: pwm@3061000 {
+ compatible = "sophgo,cv1800b-pwm";
+ reg = <0x3061000 0x1000>;
+ #pwm-cells = <3>;
+ clocks = <&clk CLK_PWM>;
+ clock-names = "apb";
+ resets = <&rst RST_PWM1>;
+ status = "disabled";
+ };
+
+ pwm2: pwm@3062000 {
+ compatible = "sophgo,cv1800b-pwm";
+ reg = <0x3062000 0x1000>;
+ #pwm-cells = <3>;
+ clocks = <&clk CLK_PWM>;
+ clock-names = "apb";
+ resets = <&rst RST_PWM2>;
+ status = "disabled";
+ };
+
+ pwm3: pwm@3063000 {
+ compatible = "sophgo,cv1800b-pwm";
+ reg = <0x3063000 0x1000>;
+ #pwm-cells = <3>;
+ clocks = <&clk CLK_PWM>;
+ clock-names = "apb";
+ resets = <&rst RST_PWM3>;
+ status = "disabled";
+ };
+
saradc: adc@30f0000 {
compatible = "sophgo,cv1800b-saradc";
reg = <0x030f0000 0x1000>;

--
2.53.0