Add 1wire supports
authoryan <yan-wyb@foxmail.com>
Fri, 17 Jul 2020 09:24:46 +0000 (17:24 +0800)
committeryan <yan-wyb@foxmail.com>
Fri, 17 Jul 2020 09:24:46 +0000 (17:24 +0800)
Signed-off-by: yan <yan-wyb@foxmail.com>
arch/arm64/boot/dts/amlogic/kvim2_linux.dts
arch/arm64/boot/dts/amlogic/kvim3_linux.dts
arch/arm64/boot/dts/amlogic/kvim_linux.dts
arch/arm64/configs/kvims_defconfig

index 5416b08..40cb1d2 100644 (file)
                        key-permit = "read","write","del";
                };
        };//End unifykey
+
+    onewire:onewire {
+        compatible = "w1-gpio";
+        gpios = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_HIGH>;
+        status = "disable";
+    };
 };
 
 &pinctrl_periphs{
index 8959ee4..08e8457 100644 (file)
                status = "okay";
        };
 
+    onewire:onewire {
+               compatible = "w1-gpio";
+               gpios = <&gpio GPIOH_6 GPIO_ACTIVE_HIGH>;
+               status = "disable";
+       };
+
        sensor: sensor {
                compatible = "soc, sensor";
                status = "okay";
index 937c3cc..87d1849 100644 (file)
                        key-permit = "read","write","del";
                };
        };//End unifykey
+
+    onewire:onewire {
+        compatible = "w1-gpio";
+        gpios = <&gpio_ao GPIOAO_1 GPIO_ACTIVE_HIGH>;
+        status = "disable";
+    };
+
 };
 
 &pinctrl_periphs{
index 76c24d1..4000184 100644 (file)
@@ -503,6 +503,9 @@ CONFIG_SPI_MESON_SPICC=y
 CONFIG_SPI_SPIDEV=y
 CONFIG_GPIO_SYSFS=y
 CONFIG_GPIO_PCA953X=y
+CONFIG_W1=y
+CONFIG_W1_MASTER_GPIO=y
+CONFIG_W1_SLAVE_THERM=y
 CONFIG_THERMAL=y
 CONFIG_THERMAL_WRITABLE_TRIPS=y
 CONFIG_THERMAL_DEFAULT_GOV_POWER_ALLOCATOR=y