kernel/config:enable external ntc thermistor at samsung
authorxuwei9 <xuwei9@lenovo.com>
Thu, 27 Sep 2018 06:31:08 +0000 (14:31 +0800)
committerlingsen1 <lingsen1@lenovo.com>
Sun, 7 Feb 2021 09:36:47 +0000 (17:36 +0800)
enable external ntc thmistor
at sasmung platform

Change-Id: Ib50790d81c9b89ee8790689cf0b1963a646e644d
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/1247473
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

arch/arm64/boot/dts/exynos/exynos9609-wing.dts
arch/arm64/configs/ext_config/moto-erd9610-kane.config

index e19cf49d17ee7b74f1f2e70e845969956121edb8..c99ec1fc47bf792657f44ce1fd80054aa7459b9d 100755 (executable)
        };
 };
 
+&exynos_adc {
+       status = "okay";
+       cpu_thermistor {
+               compatible = "murata,ncp03wf104";
+               status = "okay";
+               pullup-uv = <1800000>;
+               pullup-ohm = <100000>;
+               pulldown-ohm = <0>;
+               io-channels = <&exynos_adc 0>;
+               io-channel-names = "cpu_therm";
+       };
+       chg_thermistor {
+               compatible = "murata,ncp03wf104";
+               status = "okay";
+               pullup-uv = <1800000>;
+               pullup-ohm = <100000>;
+               pulldown-ohm = <0>;
+               io-channels = <&exynos_adc 1>;
+               io-channel-names = "chg_therm";
+       };
+       pa_thermistor {
+               compatible = "murata,ncp03wf104";
+               status = "okay";
+               pullup-uv = <1800000>;
+               pullup-ohm = <100000>;
+               pulldown-ohm = <0>;
+               io-channels = <&exynos_adc 4>;
+               io-channel-names = "pa_therm";
+       };
+       board_thermistor {
+               compatible = "murata,ncp03wf104";
+               status = "okay";
+               pullup-uv = <1800000>;
+               pullup-ohm = <100000>;
+               pulldown-ohm = <0>;
+               io-channels = <&exynos_adc 7>;
+               io-channel-names = "board_therm";
+       };
+       battery_thermistor {
+               compatible = "murata,ncp03wf104";
+               status = "okay";
+               pullup-uv = <1800000>;
+               pullup-ohm = <100000>;
+               pulldown-ohm = <0>;
+               io-channels = <&exynos_adc 8>;
+               io-channel-names = "batt_therm";
+       };
+};
+
 &i2c_2 {
        #address-cells = <1>;
        #size-cells = <0>;
index 7a3427dfa1c27860fc27993977bec6931a79efd1..99afbf726f23d6cab667d50b34539e5053d78ff8 100644 (file)
@@ -8,3 +8,5 @@ CONFIG_MMI_STORAGE_INFO=y
 CONFIG_MMI_UNIT_INFO=y
 CONFIG_SOFTLOCKUP_WATCHDOG_TEST=y
 CONFIG_MOT_UTAG=y
+CONFIG_HWMON=y
+CONFIG_SENSORS_NTC_THERMISTOR=y