Skip to content

Commit 2add2c4

Browse files
authored
Merge pull request torvalds#192 from nascs/Radxa_cm3_rpi_cm4_io_i2c0_emc2301
Changes: * Radxa CM3 + RPI CM4 IO: add PWM fan support Signed-off-by: Stephen Chen <stephen@radxa.com>
2 parents 22d04b0 + e7d2437 commit 2add2c4

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3-rpi-cm4-io.dts

+44
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,50 @@
112112
status = "okay";
113113
};
114114

115+
&i2c0 {
116+
status = "okay";
117+
pinctrl-name = "default";
118+
pinctrl-0 = <&i2c0_xfer>;
119+
#address-cells = <1>;
120+
#size-cells = <0>;
121+
122+
emc2301: emc2301@2f {
123+
status = "okay";
124+
compatible = "microchip,emc2301";
125+
reg = <0x2f>;
126+
#address-cells = <1>;
127+
#size-cells = <0>;
128+
microchip,pwm-separate;
129+
microchip,cooling-levels = <10>;
130+
channel@0 {
131+
reg = <0>;
132+
pwm-min = <0>;
133+
};
134+
};
135+
};
136+
137+
&threshold {
138+
temperature = <60000>;
139+
};
140+
141+
&soc_thermal {
142+
cooling-maps {
143+
sustainable-power = <5000>; /* milliwatts */
144+
map2 {
145+
trip = <&target>;
146+
cooling-device =
147+
<&emc2301 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
148+
contribution = <8192>;
149+
};
150+
map3 {
151+
trip = <&threshold>;
152+
cooling-device =
153+
<&emc2301 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
154+
contribution = <8192>;
155+
};
156+
};
157+
};
158+
115159
&pinctrl {
116160
leds {
117161
pi_led: pi-led {

0 commit comments

Comments
 (0)