From fb3bca12f2cc288b8c7a0e6d55b3cdbd4bea6314 Mon Sep 17 00:00:00 2001 From: Kevin Kim Date: Tue, 8 Jan 2019 14:47:43 +0900 Subject: [PATCH] ODROID-COMMON:Add support Dallas 1-wire for odroid Change-Id: I85055b83cffbfbfb0886b93d5bdc5b6152b986cb --- .../dts/amlogic/mesong12_odroid_common.dtsi | 6 ++++ arch/arm64/configs/odroidn2_defconfig | 28 ++++++++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/amlogic/mesong12_odroid_common.dtsi b/arch/arm64/boot/dts/amlogic/mesong12_odroid_common.dtsi index 4f26951dae8a..3b79244e29b9 100644 --- a/arch/arm64/boot/dts/amlogic/mesong12_odroid_common.dtsi +++ b/arch/arm64/boot/dts/amlogic/mesong12_odroid_common.dtsi @@ -214,6 +214,12 @@ size = <32>; }; };//End efusekey + + onewire:onewire { + compatible = "w1-gpio"; + gpios = <&gpio GPIOA_13 GPIO_ACTIVE_HIGH>; + status = "disabled"; + }; }; ðmac { diff --git a/arch/arm64/configs/odroidn2_defconfig b/arch/arm64/configs/odroidn2_defconfig index 692196763c70..d60c080756bd 100644 --- a/arch/arm64/configs/odroidn2_defconfig +++ b/arch/arm64/configs/odroidn2_defconfig @@ -2592,7 +2592,33 @@ CONFIG_GPIO_PCA953X=y # # USB GPIO expanders # -# CONFIG_W1 is not set +CONFIG_W1=m +CONFIG_W1_CON=y + +# +# 1-wire Bus Masters +# +# CONFIG_W1_MASTER_DS2490 is not set +# CONFIG_W1_MASTER_DS2482 is not set +# CONFIG_W1_MASTER_DS1WM is not set +CONFIG_W1_MASTER_GPIO=m + +# +# 1-wire Slaves +# +CONFIG_W1_SLAVE_THERM=m +# CONFIG_W1_SLAVE_SMEM is not set +# CONFIG_W1_SLAVE_DS2408 is not set +# CONFIG_W1_SLAVE_DS2413 is not set +# CONFIG_W1_SLAVE_DS2406 is not set +# CONFIG_W1_SLAVE_DS2423 is not set +# CONFIG_W1_SLAVE_DS2431 is not set +# CONFIG_W1_SLAVE_DS2433 is not set +# CONFIG_W1_SLAVE_DS2760 is not set +# CONFIG_W1_SLAVE_DS2780 is not set +# CONFIG_W1_SLAVE_DS2781 is not set +# CONFIG_W1_SLAVE_DS28E04 is not set +# CONFIG_W1_SLAVE_BQ27000 is not set # CONFIG_POWER_AVS is not set CONFIG_POWER_RESET=y # CONFIG_POWER_RESET_GPIO is not set