add meson-w1-gpio to NanoPiK2
This commit is contained in:
parent
40ab5ee22b
commit
ba97edfd2b
@ -2667,12 +2667,12 @@ CONFIG_W1_CON=y
|
||||
# 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 is not set
|
||||
CONFIG_W1_MASTER_GPIO=m
|
||||
|
||||
#
|
||||
# 1-wire Slaves
|
||||
#
|
||||
# CONFIG_W1_SLAVE_THERM is not set
|
||||
CONFIG_W1_SLAVE_THERM=m
|
||||
# CONFIG_W1_SLAVE_SMEM is not set
|
||||
# CONFIG_W1_SLAVE_DS2405 is not set
|
||||
# CONFIG_W1_SLAVE_DS2408 is not set
|
||||
|
||||
@ -12,12 +12,13 @@ diff --git a/arch/arm64/boot/dts/amlogic/overlay/Makefile b/arch/arm64/boot/dts/
|
||||
index e69de29..576e190 100644
|
||||
--- /dev/null
|
||||
+++ b/arch/arm64/boot/dts/amlogic/overlay/Makefile
|
||||
@@ -0,0 +1,18 @@
|
||||
@@ -0,0 +1,19 @@
|
||||
+# SPDX-License-Identifier: GPL-2.0
|
||||
+dtbo-$(CONFIG_ARCH_MESON) += \
|
||||
+ meson-i2cA.dtbo \
|
||||
+ meson-i2cB.dtbo \
|
||||
+ meson-uartC.dtbo
|
||||
+ meson-uartC.dtbo \
|
||||
+ meson-w1-gpio.dtbo
|
||||
+
|
||||
+scr-$(CONFIG_ARCH_MESON) += \
|
||||
+ meson-fixup.scr
|
||||
@ -129,6 +130,32 @@ index 0000000..2b40ee4
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
diff --git a/arch/arm64/boot/dts/amlogic/overlay/meson-w1-gpio.dts b/arch/arm64/boot/dts/amlogic/overlay/meson-w1-gpio.dts
|
||||
new file mode 100644
|
||||
index 0000000..ac76a4f
|
||||
--- /dev/null
|
||||
+++ b/arch/arm64/boot/dts/amlogic/overlay/meson-w1-gpio.dts
|
||||
@@ -0,0 +1,20 @@
|
||||
+// Definitions for w1-gpio module (without external pullup)
|
||||
+/dts-v1/;
|
||||
+/plugin/;
|
||||
+
|
||||
+/ {
|
||||
+ compatible = "amlogic,meson-gxbb";
|
||||
+
|
||||
+ fragment@0 {
|
||||
+ target-path = "/";
|
||||
+ __overlay__ {
|
||||
+
|
||||
+ w1: onewire@0 {
|
||||
+ compatible = "w1-gpio";
|
||||
+ pinctrl-names = "default";
|
||||
+ gpios = <&gpio 91 6>; // GPIOY_16
|
||||
+ status = "okay";
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
|
||||
index 26e6af4..65b9435 100644
|
||||
--- a/scripts/Makefile.lib
|
||||
|
||||
Loading…
Reference in New Issue
Block a user