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

Change-Id: Id193255239af6dbe0b8e7a80779ea5f3cfee2e6b
This commit is contained in:
Hyeonki Hong
2020-05-29 11:58:47 +09:00
committed by Luke Go
parent fdd34d52cc
commit 2e46251b42
6 changed files with 50 additions and 18 deletions

View File

@@ -902,14 +902,6 @@
cs-gpios = <&gpio GPIOX_10 GPIO_ACTIVE_LOW>,
<&gpio GPIOH_6 GPIO_ACTIVE_LOW>;
can0: can@0 {
compatible = "microchip,mcp2515";
reg = <0>;
spi-max-frequency = <10000000>;
status = "disabled";
gpio-irq = <&gpio GPIOX_3 GPIO_ACTIVE_LOW>;
};
};
&i2c2 {

View File

@@ -498,12 +498,4 @@
cs-gpios = <&gpio GPIOX_10 GPIO_ACTIVE_LOW>,
<&gpio GPIOA_4 GPIO_ACTIVE_LOW>;
can0: can@0 {
compatible = "microchip,mcp2515";
reg = <0>;
spi-max-frequency = <10000000>;
status = "disabled";
gpio-irq = <&gpio GPIOX_3 GPIO_ACTIVE_LOW>;
};
};

View File

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

View File

@@ -0,0 +1,23 @@
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/meson-g12a-gpio.h>
#include <dt-bindings/gpio/gpio.h>
/ {
fragment@0 {
target = <&spicc0>;
__overlay__ {
status = "okay";
can0: can@0 {
compatible = "microchip,mcp2515";
gpio-irq = <&gpio GPIOX_3 GPIO_ACTIVE_LOW>;
reg = <0>;
spi-max-frequency = <10000000>;
status = "okay";
};
};
};
};

View File

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

View File

@@ -0,0 +1,23 @@
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/meson-g12a-gpio.h>
#include <dt-bindings/gpio/gpio.h>
/ {
fragment@0 {
target = <&spicc0>;
__overlay__ {
status = "okay";
can0: can@0 {
compatible = "microchip,mcp2515";
gpio-irq = <&gpio GPIOX_3 GPIO_ACTIVE_LOW>;
reg = <0>;
spi-max-frequency = <10000000>;
status = "okay";
};
};
};
};