ODROID-M2: dtb/dtbo: Add gpio alt function overlays

Signed-off-by: Steve Jeong <steve@how2flow.net>
Change-Id: I853cdb308affad904cf6b1191b25cff004c67436
This commit is contained in:
Steve Jeong
2024-03-07 03:15:27 +00:00
committed by codewalkerster
parent af3a523eb6
commit 0ba8830e85
12 changed files with 158 additions and 0 deletions

View File

@@ -1,7 +1,18 @@
# Overlays for the Odroid platform
dtbo-y += \
can0.dtbo \
display_vu8s.dtbo \
i2c0.dtbo \
i2c1.dtbo \
pwm15.dtbo \
pwm3.dtbo \
pwm7.dtbo \
pwm8.dtbo \
spi0.dtbo \
uart0-with-ctsrts.dtbo \
uart0.dtbo \
uart1.dtbo
targets += $(dtbo-y)
always-y := $(dtbo-y)

View File

@@ -0,0 +1,12 @@
/dts-v1/;
/plugin/;
/ {
fragment@0 {
target = <&can2>;
__overlay__ {
status = "okay";
};
};
};

View File

@@ -0,0 +1,12 @@
/dts-v1/;
/plugin/;
/ {
fragment@0 {
target = <&i2c5>;
__overlay__ {
status = "okay";
};
};
};

View File

@@ -0,0 +1,12 @@
/dts-v1/;
/plugin/;
/ {
fragment@0 {
target = <&i2c6>;
__overlay__ {
status = "okay";
};
};
};

View File

@@ -0,0 +1,12 @@
/dts-v1/;
/plugin/;
/ {
fragment@0 {
target = <&pwm15>;
__overlay__ {
status = "okay";
};
};
};

View File

@@ -0,0 +1,12 @@
/dts-v1/;
/plugin/;
/ {
fragment@0 {
target = <&pwm3>;
__overlay__ {
status = "okay";
};
};
};

View File

@@ -0,0 +1,12 @@
/dts-v1/;
/plugin/;
/ {
fragment@0 {
target = <&pwm7>;
__overlay__ {
status = "okay";
};
};
};

View File

@@ -0,0 +1,12 @@
/dts-v1/;
/plugin/;
/ {
fragment@0 {
target = <&pwm8>;
__overlay__ {
status = "okay";
};
};
};

View File

@@ -0,0 +1,22 @@
/dts-v1/;
/plugin/;
/ {
fragment@0 {
target = <&spi0>;
__overlay__ {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
spidev: spidev@0 {
status = "okay";
compatible = "rockchip,spidev";
reg = <0>;
/* spi default max clock 100Mhz */
spi-max-frequency = <100000000>;
};
};
};
};

View File

@@ -0,0 +1,17 @@
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>
/ {
fragment@0 {
target = <&uart7>;
__overlay__ {
cts-gpios = <&gpio1 RK_PB7 GPIO_ACTIVE_LOW>;
rts-gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_LOW>;
status = "okay";
};
};
};

View File

@@ -0,0 +1,12 @@
/dts-v1/;
/plugin/;
/ {
fragment@0 {
target = <&uart7>;
__overlay__ {
status = "okay";
};
};
};

View File

@@ -0,0 +1,12 @@
/dts-v1/;
/plugin/;
/ {
fragment@0 {
target = <&uart9>;
__overlay__ {
status = "okay";
};
};
};