mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
ODROID-C5: dtbo: Add spi overlays
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com> Change-Id: I1f412c41be48b3e2ad92d2ba862adc5be9818051
This commit is contained in:
@@ -7,6 +7,7 @@ dtb-y += i2c0.dtbo \
|
||||
pwm_c.dtbo \
|
||||
pwm_f.dtbo \
|
||||
spdif_a.dtbo \
|
||||
spi0.dtbo \
|
||||
uart1.dtbo \
|
||||
uart1-with-ctsrts.dtbo \
|
||||
uart2.dtbo \
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/gpio/meson-s7d-gpio.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&spicc0>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
num_chipselect = <1>;
|
||||
cs-gpios = <&gpio GPIOX_10 GPIO_ACTIVE_LOW>;
|
||||
|
||||
spidev0: spidev@0 {
|
||||
status = "okay";
|
||||
compatible = "linux,spidev";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <80000000>; // 80MHz
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user