3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-07 14:54:17 +00:00
Brooklyn/arch/arm/boot/dts/overlays/i2c-fan-overlay.dts
2022-09-07 22:30:50 +05:00

109 lines
2.1 KiB
Plaintext

// Definitions for I2C based sensors using the Industrial IO or HWMON interface.
/dts-v1/;
/plugin/;
#include <dt-bindings/thermal/thermal.h>
/ {
compatible = "brcm,bcm2835";
fragment@0 {
target = <&i2cbus>;
__dormant__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
emc2301: emc2301@2f {
compatible = "microchip,emc2301";
reg = <0x2f>;
status = "okay";
#cooling-cells = <0x02>;
};
};
};
frag100: fragment@100 {
target = <&i2c_arm>;
i2cbus: __overlay__ {
status = "okay";
};
};
fragment@101 {
target = <&i2c0if>;
__dormant__ {
status = "okay";
};
};
fragment@102 {
target = <&i2c0mux>;
__dormant__ {
status = "okay";
};
};
fragment@103 {
target = <&cpu_thermal>;
__overlay__ {
polling-delay = <2000>; /* milliseconds */
};
};
fragment@104 {
target = <&thermal_trips>;
__overlay__ {
fanmid0: fanmid0 {
temperature = <50000>;
hysteresis = <2000>;
type = "active";
};
fanmax0: fanmax0 {
temperature = <75000>;
hysteresis = <2000>;
type = "active";
};
};
};
fragment@105 {
target = <&cooling_maps>;
__overlay__ {
map0: map0 {
trip = <&fanmid0>;
cooling-device = <&emc2301 2 6>;
};
map1: map1 {
trip = <&fanmax0>;
cooling-device = <&emc2301 7 THERMAL_NO_LIMIT>;
};
};
};
__overrides__ {
i2c0 = <&frag100>,"target:0=",<&i2c0>;
i2c_csi_dsi = <&frag100>,"target:0=",<&i2c_csi_dsi>,
<0>,"+101+102";
i2c3 = <&frag100>, "target?=0",
<&frag100>, "target-path=i2c3";
i2c4 = <&frag100>, "target?=0",
<&frag100>, "target-path=i2c4";
i2c5 = <&frag100>, "target?=0",
<&frag100>, "target-path=i2c5";
i2c6 = <&frag100>, "target?=0",
<&frag100>, "target-path=i2c6";
addr = <&emc2301>,"reg:0";
minpwm = <&emc2301>,"emc2305,pwm-min;0";
maxpwm = <&emc2301>,"emc2305,pwm-max;0";
midtemp = <&fanmid0>,"temperature:0";
midtemp_hyst = <&fanmid0>,"hysteresis:0";
maxtemp = <&fanmax0>,"temperature:0";
maxtemp_hyst = <&fanmax0>,"hysteresis:0";
emc2301 = <0>,"+0",
<&map0>,"cooling-device:0=",<&emc2301>,
<&map1>,"cooling-device:0=",<&emc2301>;
};
};