ODROID-COMMON: arm64/dts: Extract spidev node from main dts to spi0 dtbo

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I2ceb31b971970b96e0113e528b4c174d81d35258
This commit is contained in:
Deokgyu Yang
2020-05-29 12:23:26 +09:00
committed by Dongjin Kim
parent 9b5af4049f
commit b15333e5d1
4 changed files with 18 additions and 32 deletions

View File

@@ -975,15 +975,6 @@
cs-gpios = <&gpio GPIOX_10 GPIO_ACTIVE_LOW>,
<&gpio GPIOH_6 GPIO_ACTIVE_LOW>;
spidev: spidev@0 {
status = "disabled";
compatible = "linux,spidev";
/* spi default max clock 100Mhz */
spi-max-frequency = <100000000>;
reg = <0>;
};
};
&i2c2 {

View File

@@ -740,14 +740,6 @@
cs-gpios = <&gpio GPIOX_10 GPIO_ACTIVE_LOW>,
<&gpio GPIOA_4 GPIO_ACTIVE_LOW>;
spidev: spidev@0 {
status = "disabled";
compatible = "linux,spidev";
reg = <0>;
/* spi default max clock 100Mhz */
spi-max-frequency = <100000000>;
};
};
&spifc {

View File

@@ -7,14 +7,17 @@
__overlay__ {
status = "okay";
};
};
fragment@1 {
target = <&spidev>;
#address-cells = <1>;
#size-cells = <0>;
__overlay__ {
status = "okay";
spidev: spidev@0 {
status = "okay";
compatible = "linux,spidev";
reg = <0>;
/* spi default max clock 100Mhz */
spi-max-frequency = <100000000>;
};
};
};
};

View File

@@ -1,23 +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";
};
};
fragment@1 {
target = <&spidev>;
#address-cells = <1>;
#size-cells = <0>;
__overlay__ {
status = "okay";
spidev: spidev@0 {
status = "okay";
compatible = "linux,spidev";
reg = <0>;
/* spi default max clock 100Mhz */
spi-max-frequency = <100000000>;
};
};
};
};