mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
ODROID-COMMON: arm64/dts: move can0 node to each overlay directory
Change-Id: Id193255239af6dbe0b8e7a80779ea5f3cfee2e6b
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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>;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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)
|
||||
|
||||
23
arch/arm64/boot/dts/amlogic/overlays/odroidc4/can0.dts
Normal file
23
arch/arm64/boot/dts/amlogic/overlays/odroidc4/can0.dts
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -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)
|
||||
|
||||
23
arch/arm64/boot/dts/amlogic/overlays/odroidn2/can0.dts
Normal file
23
arch/arm64/boot/dts/amlogic/overlays/odroidn2/can0.dts
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user