Signed-off-by: Nick Xie <nick@khadas.com>
12 files changed:
onewire:onewire {
compatible = "w1-gpio";
- gpios = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_HIGH>;
- status = "disable";
+ gpios = <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>;
+ status = "disabled";
};
};
onewire:onewire {
compatible = "w1-gpio";
gpios = <&gpio GPIOH_6 GPIO_ACTIVE_HIGH>;
- status = "disable";
+ status = "disabled";
};
sensor: sensor {
status = "okay";
};
+ onewire:onewire {
+ compatible = "w1-gpio";
+ gpios = <&gpio GPIOH_6 GPIO_ACTIVE_HIGH>;
+ status = "disabled";
+ };
}; /* end of / */
&meson_fb {
onewire:onewire {
compatible = "w1-gpio";
- gpios = <&gpio_ao GPIOAO_1 GPIO_ACTIVE_HIGH>;
- status = "disable";
+ gpios = <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>;
+ status = "disabled";
};
};
-dtbo-y += uart4.dtbo
+dtbo-y += uart4.dtbo \
+ onewire.dtbo
targets += $(dtbo-y)
always := $(dtbo-y)
--- /dev/null
+/dts-v1/;
+/plugin/;
+
+/ {
+ // onewire using GPIOH_5
+ fragment@0 {
+ target = <&onewire>;
+
+ __overlay__ {
+ status = "okay";
+ };
+ };
+};
-dtbo-y += uart4.dtbo
+dtbo-y += uart4.dtbo \
+ onewire.dtbo
targets += $(dtbo-y)
always := $(dtbo-y)
--- /dev/null
+/dts-v1/;
+/plugin/;
+
+/ {
+ // onewire using GPIOH_5
+ fragment@0 {
+ target = <&onewire>;
+
+ __overlay__ {
+ status = "okay";
+ };
+ };
+};
dtbo-y += uart3.dtbo \
pwm_f.dtbo \
i2c3.dtbo \
- spi1.dtbo
+ spi1.dtbo \
+ onewire.dtbo
targets += $(dtbo-y)
always := $(dtbo-y)
--- /dev/null
+/dts-v1/;
+/plugin/;
+
+/ {
+ // onewire using GPIOH_6, so we have to disable pwm_f & uart_C
+ // which share the same pins
+ fragment@0 {
+ target = <&onewire>;
+
+ __overlay__ {
+ status = "okay";
+ };
+ };
+
+ fragment@1 {
+ target = <&spicc1>;
+
+ __overlay__ {
+ status = "disabled";
+ };
+ };
+
+ fragment@2 {
+ target = <&uart_C>;
+
+ __overlay__ {
+ status = "disabled";
+ };
+ };
+};
dtbo-y += uart3.dtbo \
pwm_f.dtbo \
i2c3.dtbo \
- spi1.dtbo
+ spi1.dtbo \
+ onewire.dtbo
targets += $(dtbo-y)
always := $(dtbo-y)
--- /dev/null
+/dts-v1/;
+/plugin/;
+
+/ {
+ // onewire using GPIOH_6, so we have to disable pwm_f & uart_C
+ // which share the same pins
+ fragment@0 {
+ target = <&onewire>;
+
+ __overlay__ {
+ status = "okay";
+ };
+ };
+
+ fragment@1 {
+ target = <&spicc1>;
+
+ __overlay__ {
+ status = "disabled";
+ };
+ };
+
+ fragment@2 {
+ target = <&uart_C>;
+
+ __overlay__ {
+ status = "disabled";
+ };
+ };
+};