Skip to content

Commit a8eddbe

Browse files
committed
Merge tag 'v6.7-rockchip-dts32-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into soc/dt
Someone resurrected a rk3128 board and provided actual SMP support for it. Of course firmware for that SoC does not come with TF-A so it's the old-style SMP the older arm32 Rockchip SoCs use. And additionally the rv1126 got pwm support. * tag 'v6.7-rockchip-dts32-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip: ARM: dts: rockchip: Switch to operating-points-v2 for RK3128's CPU ARM: dts: rockchip: Enable SMP bring-up for RK3128 ARM: dts: rockchip: Add CPU resets for RK3128 ARM: dts: rockchip: Add SRAM node for RK3128 ARM: dts: rockchip: Enable pwm fan for edgeble-neu2 ARM: dts: rockchip: Add pwm11 node to rv1126 ARM: dts: rockchip: Add pwm11m0 pins to rv1126 ARM: dts: rockchip: Add pwm2 node to rv1126 ARM: dts: rockchip: Add pwm2m0 pins to rv1126 dt-bindings: pwm: rockchip: Document rv1126-pwm Link: https://lore.kernel.org/r/2167992.Mh6RI2rZIc@phil Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 70ea4e9 + c96b13d commit a8eddbe

5 files changed

Lines changed: 100 additions & 4 deletions

File tree

Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ properties:
3232
- rockchip,rk3308-pwm
3333
- rockchip,rk3568-pwm
3434
- rockchip,rk3588-pwm
35+
- rockchip,rv1126-pwm
3536
- const: rockchip,rk3328-pwm
3637

3738
reg:

arch/arm/boot/dts/rockchip/rk3128.dtsi

Lines changed: 57 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,36 +27,76 @@
2727
cpus {
2828
#address-cells = <1>;
2929
#size-cells = <0>;
30+
enable-method = "rockchip,rk3036-smp";
3031

3132
cpu0: cpu@f00 {
3233
device_type = "cpu";
3334
compatible = "arm,cortex-a7";
3435
reg = <0xf00>;
3536
clock-latency = <40000>;
3637
clocks = <&cru ARMCLK>;
37-
operating-points = <
38-
/* KHz uV */
39-
816000 1000000
40-
>;
38+
resets = <&cru SRST_CORE0>;
39+
operating-points-v2 = <&cpu_opp_table>;
4140
#cooling-cells = <2>; /* min followed by max */
4241
};
4342

4443
cpu1: cpu@f01 {
4544
device_type = "cpu";
4645
compatible = "arm,cortex-a7";
4746
reg = <0xf01>;
47+
resets = <&cru SRST_CORE1>;
48+
operating-points-v2 = <&cpu_opp_table>;
4849
};
4950

5051
cpu2: cpu@f02 {
5152
device_type = "cpu";
5253
compatible = "arm,cortex-a7";
5354
reg = <0xf02>;
55+
resets = <&cru SRST_CORE2>;
56+
operating-points-v2 = <&cpu_opp_table>;
5457
};
5558

5659
cpu3: cpu@f03 {
5760
device_type = "cpu";
5861
compatible = "arm,cortex-a7";
5962
reg = <0xf03>;
63+
resets = <&cru SRST_CORE3>;
64+
operating-points-v2 = <&cpu_opp_table>;
65+
};
66+
};
67+
68+
cpu_opp_table: opp-table-0 {
69+
compatible = "operating-points-v2";
70+
opp-shared;
71+
72+
opp-216000000 {
73+
opp-hz = /bits/ 64 <216000000>;
74+
opp-microvolt = <950000 950000 1325000>;
75+
};
76+
opp-408000000 {
77+
opp-hz = /bits/ 64 <408000000>;
78+
opp-microvolt = <950000 950000 1325000>;
79+
};
80+
opp-600000000 {
81+
opp-hz = /bits/ 64 <600000000>;
82+
opp-microvolt = <950000 950000 1325000>;
83+
};
84+
opp-696000000 {
85+
opp-hz = /bits/ 64 <696000000>;
86+
opp-microvolt = <975000 975000 1325000>;
87+
};
88+
opp-816000000 {
89+
opp-hz = /bits/ 64 <816000000>;
90+
opp-microvolt = <1075000 1075000 1325000>;
91+
opp-suspend;
92+
};
93+
opp-1008000000 {
94+
opp-hz = /bits/ 64 <1008000000>;
95+
opp-microvolt = <1200000 1200000 1325000>;
96+
};
97+
opp-1200000000 {
98+
opp-hz = /bits/ 64 <1200000000>;
99+
opp-microvolt = <1325000 1325000 1325000>;
60100
};
61101
};
62102

@@ -76,6 +116,19 @@
76116
#clock-cells = <0>;
77117
};
78118

119+
imem: sram@10080000 {
120+
compatible = "mmio-sram";
121+
reg = <0x10080000 0x2000>;
122+
#address-cells = <1>;
123+
#size-cells = <1>;
124+
ranges = <0 0x10080000 0x2000>;
125+
126+
smp-sram@0 {
127+
compatible = "rockchip,rk3066-smp-sram";
128+
reg = <0x00 0x10>;
129+
};
130+
};
131+
79132
pmu: syscon@100a0000 {
80133
compatible = "rockchip,rk3128-pmu", "syscon", "simple-mfd";
81134
reg = <0x100a0000 0x1000>;

arch/arm/boot/dts/rockchip/rv1126-edgeble-neu2-io.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@
8888
};
8989
};
9090

91+
&pwm11 {
92+
status = "okay";
93+
};
94+
9195
&sdmmc {
9296
bus-width = <4>;
9397
cap-mmc-highspeed;

arch/arm/boot/dts/rockchip/rv1126-pinctrl.dtsi

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,22 @@
8787
<0 RK_PB5 1 &pcfg_pull_none_drv_level_0_smt>;
8888
};
8989
};
90+
pwm2 {
91+
/omit-if-no-ref/
92+
pwm2m0_pins: pwm2m0-pins {
93+
rockchip,pins =
94+
/* pwm2_pin_m0 */
95+
<0 RK_PC0 3 &pcfg_pull_none>;
96+
};
97+
};
98+
pwm11 {
99+
/omit-if-no-ref/
100+
pwm11m0_pins: pwm11m0-pins {
101+
rockchip,pins =
102+
/* pwm11_pin_m0 */
103+
<3 RK_PA7 6 &pcfg_pull_none>;
104+
};
105+
};
90106
rgmii {
91107
/omit-if-no-ref/
92108
rgmiim1_pins: rgmiim1-pins {

arch/arm/boot/dts/rockchip/rv1126.dtsi

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,17 @@
247247
status = "disabled";
248248
};
249249

250+
pwm2: pwm@ff430020 {
251+
compatible = "rockchip,rv1126-pwm", "rockchip,rk3328-pwm";
252+
reg = <0xff430020 0x10>;
253+
clock-names = "pwm", "pclk";
254+
clocks = <&pmucru CLK_PWM0>, <&pmucru PCLK_PWM0>;
255+
pinctrl-names = "default";
256+
pinctrl-0 = <&pwm2m0_pins>;
257+
#pwm-cells = <3>;
258+
status = "disabled";
259+
};
260+
250261
pmucru: clock-controller@ff480000 {
251262
compatible = "rockchip,rv1126-pmucru";
252263
reg = <0xff480000 0x1000>;
@@ -276,6 +287,17 @@
276287
clock-names = "apb_pclk";
277288
};
278289

290+
pwm11: pwm@ff550030 {
291+
compatible = "rockchip,rv1126-pwm", "rockchip,rk3328-pwm";
292+
reg = <0xff550030 0x10>;
293+
clock-names = "pwm", "pclk";
294+
clocks = <&cru CLK_PWM2>, <&cru PCLK_PWM2>;
295+
pinctrl-0 = <&pwm11m0_pins>;
296+
pinctrl-names = "default";
297+
#pwm-cells = <3>;
298+
status = "disabled";
299+
};
300+
279301
uart0: serial@ff560000 {
280302
compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
281303
reg = <0xff560000 0x100>;

0 commit comments

Comments
 (0)