ODROID-COMMON: arm64/dts: move onewire node to each overlay directory

Change-Id: Id0262986d0faceba5997e8bff9d89833aff8f5a0
This commit is contained in:
Hyeonki Hong
2020-05-25 17:22:45 +09:00
committed by Luke Go
parent 00d1524031
commit 64a1d4e9d2
4 changed files with 42 additions and 2 deletions

View File

@@ -10,7 +10,8 @@ dtbo-$(CONFIG_ARCH_MESON64_ODROIDC4) += spi0.dtbo \
hktft35.dtbo \
ads7846.dtbo \
sx865x-i2c1.dtbo \
pcf8563.dtbo
pcf8563.dtbo \
onewire.dtbo
targets += $(dtbo-y)
always := $(dtbo-y)

View File

@@ -0,0 +1,19 @@
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/meson-g12a-gpio.h>
#include <dt-bindings/gpio/gpio.h>
/ {
fragment@0 {
target-path = "/";
__overlay__ {
onewire:onewire {
compatible = "w1-gpio";
gpios = <&gpio GPIOX_7 GPIO_ACTIVE_HIGH>;
status = "okay";
};
};
};
};

View File

@@ -11,7 +11,8 @@ dtbo-$(CONFIG_ARCH_MESON64_ODROIDN2) += spi0.dtbo \
sx865x-i2c1.dtbo \
saradc.dtbo \
irblaster.dtbo \
odroidn2-opp.dtbo
odroidn2-opp.dtbo \
onewire.dtbo
targets += $(dtbo-y)
always := $(dtbo-y)

View File

@@ -0,0 +1,19 @@
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/meson-g12a-gpio.h>
#include <dt-bindings/gpio/gpio.h>
/ {
fragment@0 {
target-path = "/";
__overlay__ {
onewire:onewire {
compatible = "w1-gpio";
gpios = <&gpio GPIOX_7 GPIO_ACTIVE_HIGH>;
status = "okay";
};
};
};
};