From: xuwei9 Date: Thu, 27 Sep 2018 06:31:08 +0000 (+0800) Subject: kernel/config:enable external ntc thermistor at samsung X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2cbd9e0795ad9a6a7ccd5d35de613b27413ea5ae;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git kernel/config:enable external ntc thermistor at samsung enable external ntc thmistor at sasmung platform Change-Id: Ib50790d81c9b89ee8790689cf0b1963a646e644d Signed-off-by: xuwei9 Reviewed-on: https://gerrit.mot.com/1247473 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- diff --git a/arch/arm64/boot/dts/exynos/exynos9609-wing.dts b/arch/arm64/boot/dts/exynos/exynos9609-wing.dts index e19cf49d17ee..c99ec1fc47bf 100755 --- a/arch/arm64/boot/dts/exynos/exynos9609-wing.dts +++ b/arch/arm64/boot/dts/exynos/exynos9609-wing.dts @@ -1830,6 +1830,55 @@ }; }; +&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>; diff --git a/arch/arm64/configs/ext_config/moto-erd9610-kane.config b/arch/arm64/configs/ext_config/moto-erd9610-kane.config index 7a3427dfa1c2..99afbf726f23 100644 --- a/arch/arm64/configs/ext_config/moto-erd9610-kane.config +++ b/arch/arm64/configs/ext_config/moto-erd9610-kane.config @@ -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