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 Dongjin Kim
parent 417b4ec804
commit 1ccf10d7d5
6 changed files with 42 additions and 13 deletions

View File

@@ -766,11 +766,6 @@
gpio-reset {
/delete-node/ usb_hub_en;
};
onewire:onewire {
compatible = "w1-gpio";
gpios = <&gpio GPIOX_5 GPIO_ACTIVE_HIGH>;
status = "disabled";
};
}; /* end of / */
&audiobus {

View File

@@ -460,12 +460,6 @@
status = "ok";
};
onewire:onewire {
compatible = "w1-gpio";
gpios = <&gpio GPIOA_13 GPIO_ACTIVE_HIGH>;
status = "disabled";
};
pwmgpio:pwmgpio {
compatible = "pwm-gpio";
#pwm-cells = <3>;

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

@@ -10,7 +10,8 @@ dtbo-$(CONFIG_ARCH_MESON64_ODROIDN2) += spi0.dtbo \
ads7846.dtbo \
sx865x-i2c1.dtbo \
saradc.dtbo \
irblaster.dtbo
irblaster.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";
};
};
};
};