Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Radxa Zero 3W overlays support #136

Merged
merged 3 commits into from
Jul 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/rockchip/overlays/rk3568-i2c3-m0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
/ {
metadata {
title = "Enable I2C3-M0";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,rock-3c";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,rock-3c", "radxa,zero-3w";
category = "misc";
exclusive = "GPIO1_A0", "GPIO1_A1";
description = "Enable I2C3-M0.\nOn Radxa ROCK 3A >= 1.3 this is SDA pin 3 and SCL pin 5.\nOn Radxa ROCK 3B this is SDA pin 3 and SCL pin 5.\nOn ROCK 3C this is SDA pin 3 and SCL pin 5.";
description = "Enable I2C3-M0.\nOn Radxa ROCK 3A >= 1.3 this is SDA pin 3 and SCL pin 5.\nOn Radxa ROCK 3B this is SDA pin 3 and SCL pin 5.\nOn Radxa ROCK 3C this is SDA pin 3 and SCL pin 5.\nOn Radxa ZERO 3W this is SDA pin 3 and SCL pin 5.";
};

fragment@0 {
Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/rockchip/overlays/rk3568-i2c4-m0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
/ {
metadata {
title = "Enable I2C4-M0";
compatible = "radxa,rock-3c", "radxa,cm3-io", "radxa,cm3-rpi-cm4-io", "radxa,cm3s-io", "radxa,radxa-cm3-sodimm-io", "radxa,e23";
compatible = "radxa,rock-3c", "radxa,cm3-io", "radxa,cm3-rpi-cm4-io", "radxa,cm3s-io", "radxa,radxa-cm3-sodimm-io", "radxa,e23", "radxa,zero-3w";
category = "misc";
exclusive = "GPIO4_B2", "GPIO4_B3";
description = "Enable I2C4-M0.\nOn Radxa ROCK 3C this is SDA pin 27 and SCL pin 28.\nOn Radxa CM3 IO this is SDA pin 19 and SCL pin 23.\nOn Radxa CM3 RPI CM4 IO this SDA pin 19 and SCL pin 23.\nOn Radxa CM3S IO this is SDA pin 19 and SCL pin 23.\nOn Radxa E23 this is SDA pin 19 and SCL pin 23.";
description = "Enable I2C4-M0.\nOn Radxa ROCK 3C this is SDA pin 27 and SCL pin 28.\nOn Radxa CM3 IO this is SDA pin 19 and SCL pin 23.\nOn Radxa CM3 RPI CM4 IO this SDA pin 19 and SCL pin 23.\nOn Radxa CM3S IO this is SDA pin 19 and SCL pin 23.\nOn Radxa E23 this is SDA pin 19 and SCL pin 23..\nOn Radxa ZERO 3W this is SDA pin 27 and SCL pin 28";
};

fragment@0 {
Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/rockchip/overlays/rk3568-pwm12-m1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
/ {
metadata {
title = "Enable PWM12-M1";
compatible = "radxa,rock-3a", "radxa,rock-3c", "radxa,rock-3b";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,rock-3c", "radxa,zero-3w";
category = "misc";
exclusive = "GPIO4_C5";
description = "Enable PWM12-M1.\nOn Radxa ROCK 3A <= v1.2 this is pin 21.\nOn Radxa ROCK 3A >= v1.3 this is pin 21.\nOn Radxa ROCK 3B this is pin 21.\nOn Radxa ROCK 3C this is pin 21.";
description = "Enable PWM12-M1.\nOn Radxa ROCK 3A <= v1.2 this is pin 21.\nOn Radxa ROCK 3A >= v1.3 this is pin 21.\nOn Radxa ROCK 3B this is pin 21.\nOn Radxa ROCK 3C this is pin 21.\nOn Radxa ZERO 3W this is pin 21.";
};

fragment@0 {
Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/rockchip/overlays/rk3568-pwm13-m1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
/ {
metadata {
title = "Enable PWM13-M1";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,rock-3c";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,rock-3c", "radxa,zero-3w";
category = "misc";
exclusive = "GPIO4_C6";
description = "Enable PWM13-M1.\nOn Radxa ROCK 3A <= v1.2 this is pin 24.\nOn Radxa ROCK 3A >= v1.3 this is pin 24.\nOn Radxa ROCK 3B this is pin 24.\nOn Radxa ROCK 3C this is pin 24.";
description = "Enable PWM13-M1.\nOn Radxa ROCK 3A <= v1.2 this is pin 24.\nOn Radxa ROCK 3A >= v1.3 this is pin 24.\nOn Radxa ROCK 3B this is pin 24.\nOn Radxa ROCK 3C this is pin 24.\nOn Radxa ZERO 3W this is pin 24.";
};

fragment@0 {
Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/rockchip/overlays/rk3568-pwm14-m0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
/ {
metadata {
title = "Enable PWM14-M0";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,rock-3c";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,rock-3c", "radxa,zero-3w";
category = "misc";
exclusive = "GPIO3_C4";
description = "Enable PWM14-M0.\nOn Radxa ROCK 3A <= v1.2 this is pin 11.\nOn Radxa ROCK 3A >= v1.3 this is pin 11.\nOn Radxa ROCK 3B this is pin 11.\nOn Radxa ROCK 3C this is pin 7.";
description = "Enable PWM14-M0.\nOn Radxa ROCK 3A <= v1.2 this is pin 11.\nOn Radxa ROCK 3A >= v1.3 this is pin 11.\nOn Radxa ROCK 3B this is pin 11.\nOn Radxa ROCK 3C this is pin 7.\nOn Radxa ZERO 3W this is pin 7.";
};

fragment@0 {
Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/rockchip/overlays/rk3568-pwm14-m1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
/ {
metadata {
title = "Enable PWM14-M1";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,rock-3c";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,rock-3c", "radxa,zero-3w";
category = "misc";
exclusive = "GPIO4_C2";
description = "Enable PWM14-M1.\nOn Radxa ROCK 3A <= v1.2 this is pin 23.\nOn Radxa ROCK 3A >= v1.3 this is pin 23.\nOn Radxa ROCK 3B this is pin 23.\nOn Radxa ROCK 3C this is pin 23.";
description = "Enable PWM14-M1.\nOn Radxa ROCK 3A <= v1.2 this is pin 23.\nOn Radxa ROCK 3A >= v1.3 this is pin 23.\nOn Radxa ROCK 3B this is pin 23.\nOn Radxa ROCK 3C this is pin 23.\nOn Radxa ZERO 3W this is pin 23.";
};

fragment@0 {
Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/rockchip/overlays/rk3568-pwm15-m1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
/ {
metadata {
title = "Enable PWM15-M1";
compatible = "radxa,rock-3a", "radxa,rock-3b";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,zero-3w";
category = "misc";
exclusive = "GPIO4_C3";
description = "Enable PWM15-M1.\nOn Radxa ROCK 3A <= v1.2 this is pin 19.\nOn Radxa ROCK 3A >= v1.3 this is pin 19.\nOn Radxa ROCK 3B this is pin 19.";
description = "Enable PWM15-M1.\nOn Radxa ROCK 3A <= v1.2 this is pin 19.\nOn Radxa ROCK 3A >= v1.3 this is pin 19.\nOn Radxa ROCK 3B this is pin 19.\nOn Radxa ZERO 3W this is pin 19.";
};

fragment@0 {
Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/rockchip/overlays/rk3568-pwm8-m0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
/ {
metadata {
title = "Enable PWM8-M0";
compatible = "radxa,rock-3c";
compatible = "radxa,rock-3c", "radxa,zero-3w";
category = "misc";
exclusive = "GPIO3_B1";
description = "Enable PWM8-M0.\nOn Radxa ROCK 3C this is pin 16.";
description = "Enable PWM8-M0.\nOn Radxa ROCK 3C this is pin 16.\nOn Radxa ZERO 3W this is pin 16.";
};

fragment@0 {
Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/rockchip/overlays/rk3568-pwm9-m0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
/ {
metadata {
title = "Enable PWM9-M0";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,rock-3c";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,rock-3c", "radxa,zero-3w";
category = "misc";
exclusive = "GPIO3_B2";
description = "Enable PWM9-M0.\nOn Radxa ROCK 3A <= v1.2 this is pin 18.\nOn Radxa ROCK 3A >= v1.3 this is pin 18.\nOn Radxa ROCK 3B this is pin 18.\nOn Radxa ROCK 3C this is pin 18.";
description = "Enable PWM9-M0.\nOn Radxa ROCK 3A <= v1.2 this is pin 18.\nOn Radxa ROCK 3A >= v1.3 this is pin 18.\nOn Radxa ROCK 3B this is pin 18.\nOn Radxa ROCK 3C this is pin 18.\nOn Radxa ZERO 3W this is pin 18.";
};

fragment@0 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/ {
metadata {
title = "Enable ENC28J60 on SPI3-M1 CS0";
compatible = "unknown";
compatible = "radxa,rock-3c", "radxa,zero-3w";
category = "misc";
exclusive = "GPIO4_C2", "GPIO4_C3", "GPIO4_C5", "GPIO4_C6", "GPIO3_C1";
description = "Enable Microchip ENC28J60 SPI Ethernet controller on SPI3-M1 CS0.\nINT=22";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

metadata {
title = "Enable MCP2515 on SPI3-M1 CS0";
compatible = "radxa,rock-3c";
compatible = "radxa,rock-3c", "radxa,zero-3w";
category = "misc";
exclusive = "GPIO4_C2", "GPIO4_C3", "GPIO4_C5", "GPIO4_C6", "GPIO3_C1";
description = "Enable MCP2515 on SPI3-M1 CS0 with 12 MHz Crystal Oscillator.\nINT=22";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/ {
metadata {
title = "Enable spidev on SPI3-M1 over CS0";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,rock-3c";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,rock-3c", "radxa,zero-3w";
category = "misc";
exclusive = "GPIO4_C2", "GPIO4_C3", "GPIO4_C5", "GPIO4_C6";
description = "Enable spidev on SPI3-M1 over CS0.";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/ {
metadata {
title = "Enable UART2-M0";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,rock-3c", "radxa,cm3-io", "radxa,cm3s-io", "radxa,radxa-cm3-sodimm-io", "radxa,e23";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,rock-3c", "radxa,cm3-io", "radxa,cm3s-io", "radxa,radxa-cm3-sodimm-io", "radxa,e23", "radxa,zero-3w";
category = "misc";
exclusive = "GPIO0_D1", "GPIO0_D0";
description = "Enable UART2-M0.";
Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/rockchip/overlays/rk3568-uart3-m0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
/ {
metadata {
title = "Enable UART3-M0";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,rock-3c";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,rock-3c", "radxa,zero-3w";
category = "misc";
exclusive = "GPIO1_A0", "GPIO1_A1";
description = "Enable UART3-M0.\nOn Radxa ROCK 3A <= v1.2 this RX pin 3 and this TX pin 5.\nOn Radxa ROCK 3A >= v1.3 this RX pin 3 and this TX pin 5.\nOn Radxa ROCK 3B this RX pin 3 and this TX pin 5.\nOn Radxa ROCK 3C this is RX pin 3 and this is TX pin 5.";
description = "Enable UART3-M0.\nOn Radxa ROCK 3A <= v1.2 this RX pin 3 and this TX pin 5.\nOn Radxa ROCK 3A >= v1.3 this RX pin 3 and this TX pin 5.\nOn Radxa ROCK 3B this RX pin 3 and this TX pin 5.\nOn Radxa ROCK 3C this is RX pin 3 and this is TX pin 5.\nRadxa ZERO 3W this is RX pin 3 and this is TX pin 5.";
};

fragment@0 {
Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/rockchip/overlays/rk3568-uart4-m1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
/ {
metadata {
title = "Enable UART4-M1";
compatible = "radxa,rock-3c";
compatible = "radxa,rock-3c", "radxa,zero-3w";
category = "misc";
exclusive = "GPIO3_B1", "GPIO3_B2";
description = "Enable UART4-M1.\nOn Radxa ROCK 3C this is RX pin 16 and this is TX pin 18.";
description = "Enable UART4-M1.\nOn Radxa ROCK 3C this is RX pin 16 and this is TX pin 18.\nOn Radxa ZERO 3W this is RX pin 16 and this is TX pin 18.";
};

fragment@0 {
Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/rockchip/overlays/rk3568-uart5-m1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
/ {
metadata {
title = "Enable UART5-M1";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,rock-3c", "radxa,cm3s-io", "radxa,radxa-cm3-sodimm-io", "radxa,e25";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,rock-3c", "radxa,cm3s-io", "radxa,radxa-cm3-sodimm-io", "radxa,e25", "radxa,zero-3w";
category = "misc";
exclusive = "GPIO3_C2", "GPIO3_C3";
description = "Enable UART5-M1.\nOn Radxa ROCK 3A <= v1.2 this is TX pin 32 and RX pin 33.\nOn Radxa ROCK 3A >= v1.3 this is TX pin 32 and RX pin 33.\nOn Radxa ROCK 3B this is TX pin 32 and RX pin 33.\nOn Radxa ROCK 3C this is TX pin 32 and RX pin 33.\nOn Radxa CM3S IO this is TX pin 35 and RX pin 40.\nOn Radxa E25 hardware V1.3 this is TX pin 2 and RX pin 3.\nOn Radxa E25 hardware V1.4 this is TX pin 8 and RX pin 10.";
description = "Enable UART5-M1.\nOn Radxa ROCK 3A <= v1.2 this is TX pin 32 and RX pin 33.\nOn Radxa ROCK 3A >= v1.3 this is TX pin 32 and RX pin 33.\nOn Radxa ROCK 3B this is TX pin 32 and RX pin 33.\nOn Radxa ROCK 3C this is TX pin 32 and RX pin 33.\nOn Radxa CM3S IO this is TX pin 35 and RX pin 40.\nOn Radxa E25 hardware V1.3 this is TX pin 2 and RX pin 3.\nOn Radxa E25 hardware V1.4 this is TX pin 8 and RX pin 10.\nOn Radxa ZERO 3W this is TX pin 32 and RX pin 33.";
};

fragment@0 {
Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/rockchip/overlays/rk3568-uart9-m1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
/ {
metadata {
title = "Enable UART9-M1";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,rock-3c";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,rock-3c", "radxa,zero-3w";
category = "misc";
exclusive = "GPIO4_C5", "GPIO4_C6";
description = "Enable UART9-M1.\nOn Radxa ROCK 3A <= v1.2 this is TX pin 21 and this is RX pin 24.\nOn Radxa ROCK 3A >= v1.3 this is TX pin 21 and this is RX pin 24.\nOn Radxa ROCK 3B this is TX pin 21 and this is RX pin 24.\nOn Radxa ROCK 3C this is TX pin 21 and this is RX pin 24.";
description = "Enable UART9-M1.\nOn Radxa ROCK 3A <= v1.2 this is TX pin 21 and this is RX pin 24.\nOn Radxa ROCK 3A >= v1.3 this is TX pin 21 and this is RX pin 24.\nOn Radxa ROCK 3B this is TX pin 21 and this is RX pin 24.\nOn Radxa ROCK 3C this is TX pin 21 and this is RX pin 24.\nOn Radxa ZERO 3W this is TX pin 21 and this is RX pin 24.";
};

fragment@0 {
Expand Down