Skip to content

Commit 8aacd24

Browse files
Josh-TsaiJohnAZoidberg
authored andcommitted
fwk: sunflower: add the isl9241 temperature devicetree
This change add the isl9241 temperature devicetree in sunflower project to support reading the isl9241 temperature. BRANCH=fwk-sunflower-26784 BUG=https://app.clickup.com/t/86et2rz87 TEST=use the console command "temps" to check the charger temperature TEST=use the console command "memmap get 0x00" to check the charger temperature returns to host Signed-off-by: Josh Tsai <Josh_Tsai@compal.com>
1 parent b326391 commit 8aacd24

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

zephyr/program/framework/sunflower/i2c.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@
132132
compatible = "cros-ec,temp-sensor-battery";
133133
reg = <0xb>;
134134
};
135+
136+
charger_temp: charger_temp@9 {
137+
compatible = "cros-ec,temp-sensor-isl9241";
138+
reg = <0x9>;
139+
};
135140
};
136141

137142
&i2c_ctrl3 {

zephyr/program/framework/sunflower/overlay.dtsi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@
6262
power-good-pin = <&gpio_slp_s3_l>;
6363
sensor = <&peci_temp>;
6464
};
65+
temp_sensor_charger: charger-temp {
66+
sensor = <&charger_temp>;
67+
};
6568
};
6669

6770
peci_temp: peci-temp {

0 commit comments

Comments
 (0)