Skip to content

Commit

Permalink
Merge pull request torvalds#192 from nascs/Radxa_cm3_rpi_cm4_io_i2c0_…
Browse files Browse the repository at this point in the history
…emc2301

Changes:
  * Radxa CM3 + RPI CM4 IO: add PWM fan support

Signed-off-by: Stephen Chen <stephen@radxa.com>
  • Loading branch information
RadxaStephen authored Aug 25, 2023
2 parents 22d04b0 + e7d2437 commit 2add2c4
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3-rpi-cm4-io.dts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,50 @@
status = "okay";
};

&i2c0 {
status = "okay";
pinctrl-name = "default";
pinctrl-0 = <&i2c0_xfer>;
#address-cells = <1>;
#size-cells = <0>;

emc2301: emc2301@2f {
status = "okay";
compatible = "microchip,emc2301";
reg = <0x2f>;
#address-cells = <1>;
#size-cells = <0>;
microchip,pwm-separate;
microchip,cooling-levels = <10>;
channel@0 {
reg = <0>;
pwm-min = <0>;
};
};
};

&threshold {
temperature = <60000>;
};

&soc_thermal {
cooling-maps {
sustainable-power = <5000>; /* milliwatts */
map2 {
trip = <&target>;
cooling-device =
<&emc2301 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
contribution = <8192>;
};
map3 {
trip = <&threshold>;
cooling-device =
<&emc2301 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
contribution = <8192>;
};
};
};

&pinctrl {
leds {
pi_led: pi-led {
Expand Down

0 comments on commit 2add2c4

Please sign in to comment.