Skip to content

Commit

Permalink
Merge pull request torvalds#194 from vamrs-feng/linux-5.10-gen-rkr4.1
Browse files Browse the repository at this point in the history
Changes:
  * Radxa CM3 IO: add PWM fan
  * Radxa CM3 IO: add RTC device

Signed-off-by: Stephen Chen <stephen@radxa.com>
  • Loading branch information
RadxaStephen authored Aug 29, 2023
2 parents 2add2c4 + cb53472 commit 4e3a81e
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3-io.dts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@
press-threshold-microvolt = <2000>;
};
};

fan0: pwm-fan {
compatible = "pwm-fan";
#cooling-cells = <2>;
cooling-levels = <0 64 128 192 255>;
pwms = <&pwm0 0 10000 0>;
};
};

&gpio_leds {
Expand Down Expand Up @@ -172,6 +179,45 @@
status = "okay";
};

&pwm0 {
pinctrl-0 = <&pwm0m1_pins>;
status = "okay";
};

&i2c2 {
status = "okay";
hym8563: hym8563@51 {
compatible = "haoyu,hym8563";
status = "okay";
reg = <0x51>;
#clock-cells = <0>;
clock-frequency = <32768>;
clock-output-names = "hym8563";
};
};

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

&threshold {
temperature = <60000>;
};

&pinctrl {
headphone {
hp_det: hp-det {
Expand Down

0 comments on commit 4e3a81e

Please sign in to comment.