Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I2ceb31b971970b96e0113e528b4c174d81d35258
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 {
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 {
__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>;
+ };
};
};
};
/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>;
+ };
};
};
};