mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
add support for odroid-c4 mapped to i2c-1
updates after review of initial PR #7622
This commit is contained in:
@@ -31,7 +31,8 @@ dtbo-$(CONFIG_ARCH_MESON) += \
|
||||
meson-sm1-bananapi-uartA.dtbo \
|
||||
meson-sm1-bananapi-uartA_cts_rts.dtbo \
|
||||
meson-sm1-bananapi-uartAO_B.dtbo \
|
||||
meson-sm1-odroid-c4-i2c-ee-m2-gpiox-17-gpiox-18.dtbo
|
||||
meson-sm1-odroid-c4-i2c0.dtbo \
|
||||
meson-sm1-odroid-c4-i2c1.dtbo
|
||||
|
||||
scr-$(CONFIG_ARCH_MESON) += \
|
||||
meson-fixup.scr
|
||||
|
||||
@@ -9,7 +9,7 @@ meson (Amlogic)
|
||||
### Provided overlays:
|
||||
|
||||
- i2c8
|
||||
- meson-sm1-odroid-c4-i2c-ee-m2-gpiox-17-gpiox-18
|
||||
- meson-sm1-odroid-c4-i2c0
|
||||
|
||||
### Overlay details:
|
||||
|
||||
@@ -19,7 +19,12 @@ Activates TWI/I2C bus 8
|
||||
|
||||
I2C8 pins (SCL, SDA): GPIO1-C4, GPIO1-C5
|
||||
|
||||
### meson-sm1-odroid-c4-i2c-ee-m2-gpiox-17-gpiox-18
|
||||
### meson-sm1-odroid-c4-i2c0
|
||||
|
||||
Activates i2c2 bus over GPIOX-17(SDA) and GPIOX-18(SCL)
|
||||
Aliased to i2c0 on odroid-c4
|
||||
Activates i2c2 bus over GPIOX-17(D3/SDA) and GPIOX-18(D5/SCL)
|
||||
Aliased to i2c0 for hardkernel odroid-c4 compatibility
|
||||
|
||||
### meson-sm1-odroid-c4-i2c1
|
||||
|
||||
Activates i2c3 bus over GPIOA-14(D27/SDA) and GPIOA-15(D28/SCL)
|
||||
Aliased to i2c1 for hardkernel odroid-c4 compatibility
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "radxa,zero", "amlogic,g12a";
|
||||
|
||||
fragment@0 {
|
||||
target = <&i2c2>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&i2c2_sck_x_pins &i2c2_sda_x_pins>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,24 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "hardkernel,odroid-c4", "amlogic,sm1";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
i2c0 = "/soc/bus@ffd00000/i2c@1d000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&i2c2>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
clock-frequency = <100000>;
|
||||
pinctrl-0 = <&i2c2_sck_x_pins &i2c2_sda_x_pins>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
@@ -0,0 +1,24 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "hardkernel,odroid-c4", "amlogic,sm1";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
i2c1 = "/soc/bus@ffd00000/i2c@1c000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&i2c3>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
clock-frequency = <100000>;
|
||||
pinctrl-0 = <&i2c3_sck_a_pins &i2c3_sda_a_pins>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user