Skip to content

Commit

Permalink
arm64: rockchip: add rock 5d overlays
Browse files Browse the repository at this point in the history
Signed-off-by: Feng Zhang <[email protected]>
  • Loading branch information
vamrs-feng committed Jun 25, 2024
1 parent 06a6e33 commit 92846fd
Show file tree
Hide file tree
Showing 55 changed files with 1,572 additions and 44 deletions.
16 changes: 14 additions & 2 deletions arch/arm64/boot/dts/rockchip/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,18 @@ dtb-$(CONFIG_CLK_RK3588) += \
rock-5b-radxa-display-10hd.dtbo \
rock-5b-radxa-display-8hd.dtbo \
rock-5b-rpi-camera-v2.dtbo \
rock-5b-sata.dtbo
rock-5b-sata.dtbo \
rock-5d-rpi-camera-v1p3.dtbo \
rock-5d-rpi-camera-v2.dtbo \
rock-5d-okdo-camera-5mp.dtbo \
rock-5d-okdo-camera-5mp-mipi-rx0.dtbo \
rock-5d-okdo-camera-5mp-mipi-rx1.dtbo \
rock-5d-radxa-camera-8mp-mipi-rx0.dtbo \
rock-5d-radxa-camera-8mp-mipi-rx1.dtbo \
rock-5d-rpi-camera-v1p3-mipi-rx0.dtbo \
rock-5d-rpi-camera-v1p3-mipi-rx1.dtbo \
rock-5d-rpi-camera-v2-mipi-rx0.dtbo \
rock-5d-rpi-camera-v2-mipi-rx1.dtbo

dtb-$(CONFIG_CPU_RK3588) += \
radxa-cm5-io-okdo-5mp.dtbo \
Expand Down Expand Up @@ -509,7 +520,8 @@ dtb-$(CONFIG_CPU_RK3588) += \
rock-5b-plus-hdmi1-8k.dtbo \
rock-5b-plus-radxa-display-8hd.dtbo \
rock-5b-plus-radxa-display-10fhd.dtbo \
rock-5b-plus-radxa-display-10hd.dtbo
rock-5b-plus-radxa-display-10hd.dtbo \
rock-5d-radxa-camera-4k.dtbo

dtb-$(CONFIG_ARCH_ROCKCHIP) += rockchip-watchdog.dtbo

Expand Down
3 changes: 2 additions & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3588-can1-m1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
/ {
metadata {
title = "Enable CAN1-M1";
compatible = "radxa,rock-5a", "radxa,rock-5b", "radxa,rock-5b-plus", "radxa,rock-5c";
compatible = "radxa,rock-5a", "radxa,rock-5b", "radxa,rock-5b-plus", "radxa,rock-5c", "radxa,rock-5d";
category = "misc";
exclusive = "GPIO4_B2", "GPIO4_B3";
description = "Enable CAN1-M0.
On Radxa ROCK 5A this is RX pin 13 & TX pin 11.
On Radxa ROCK 5B this is RX pin 5 & TX pin 3.
On Radxa ROCK 5C this is RX pin 13 & TX pin 11.
On Radxa ROCK 5D this is RX pin 13 & TX pin 11.
";
};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/ {
metadata {
title = "Disable FIQ Debugger";
compatible = "radxa,rock-5a", "radxa,rock-5b", "radxa,rock-5b-plus", "radxa,rock-5c", "radxa,nx5-io", "radxa,cm5-io", "radxa,cm5-rpi-cm4-io";
compatible = "radxa,rock-5a", "radxa,rock-5b", "radxa,rock-5b-plus", "radxa,rock-5c", "radxa,rock-5d", "radxa,nx5-io", "radxa,cm5-io", "radxa,cm5-rpi-cm4-io";
category = "misc";
exclusive = "GPIO0_B5", "GPIO0_B6", "fiq_debugger";
description = "Disable FIQ Debugger.";
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3588-dwc3-host.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/ {
metadata {
title = "Set OTG port 0 to Host mode";
compatible = "radxa,rock-5a", "radxa,rock-5b", "radxa,rock-5c", "radxa,nx5-io";
compatible = "radxa,rock-5a", "radxa,rock-5b", "radxa,rock-5c", "radxa,rock-5d", "radxa,nx5-io";
category = "misc";
exclusive = "usbdrd_dwc3-dr_mode";
description = "Set OTG port 0 to Host mode.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/ {
metadata {
title = "Set OTG port 0 to Peripheral mode";
compatible = "radxa,rock-5a", "radxa,rock-5b", "radxa,rock-5c", "radxa,nx5-io";
compatible = "radxa,rock-5a", "radxa,rock-5b", "radxa,rock-5c", "radxa,rock-5d", "radxa,nx5-io";
category = "misc";
exclusive = "usbdrd_dwc3-dr_mode";
description = "Set OTG port 0 to Peripheral mode.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
/ {
metadata {
title = "Enable FIQ Debugger on UART4-M2";
compatible = "radxa,rock-5a", "radxa,rock-5c";
compatible = "radxa,rock-5a", "radxa,rock-5c", "radxa,rock-5d";
category = "misc";
exclusive = "GPIO1_B3", "GPIO1_B2";
description = "Enable FIQ Debugger on UART4-M2.
On Radxa ROCK 5A this is TX pin 7 and RX pin 29.
On Radxa ROCK 5B this is TX pin 7 & RX pin 29.
On Radxa ROCK 5C this is TX pin 7 and RX pin 29.
On Radxa ROCK 5D this is TX pin 7 and RX pin 29.
";
};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
/ {
metadata {
title = "Enable FIQ Debugger on UART6-M1";
compatible = "radxa,rock-5a", "radxa,rock-5c";
compatible = "radxa,rock-5a", "radxa,rock-5c", "radxa,rock-5d";
category = "misc";
exclusive = "GPIO1_A1", "GPIO1_A0";
description = "Enable FIQ Debugger on UART6-M1.
On Radxa ROCK 5A this is TX pin 19 and RX pin 21.
On Radxa ROCK 5C this is TX pin 19 and RX pin 21.
On Radxa ROCK 5D this is TX pin 19 and RX pin 21.
";
};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
/ {
metadata {
title = "Enable FIQ Debugger on UART7-M2";
compatible = "radxa,rock-5a", "radxa,rock-5c";
compatible = "radxa,rock-5a", "radxa,rock-5c", "radxa,rock-5d";
category = "misc";
exclusive = "GPIO1_B5", "GPIO1_B4";
description = "Enable FIQ Debugger on UART7-M2.
On Radxa ROCK 5A this is TX pin 22 and RX pin 33.
On Radxa ROCK 5B this is TX pin 26 & RX pin 24.
On Radxa ROCK 5B+ this is TX pin 26 & RX pin 24.
On Radxa ROCK 5C this is TX pin 22 and RX pin 33.
On Radxa ROCK 5D this is TX pin 22 and RX pin 33.
";
};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/ {
metadata {
title = "Enable FIQ Debugger on UART8-M0";
compatible = "radxa,rock-5a", "radxa,rock-5c";
compatible = "radxa,rock-5a", "radxa,rock-5c", "radxa,rock-5d";
category = "misc";
exclusive = "GPIO4_B0", "GPIO4_B1";
description = "Enable FIQ Debugger on UART8-M0.
Expand Down
3 changes: 2 additions & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3588-i2c1-m0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
/ {
metadata {
title = "Enable I2C1-M0";
compatible = "radxa,rock-5a", "radxa,rock-5b", "radxa,rock-5b-plus", "radxa,rock-5c", "radxa,nx5-io", "radxa,cm5-io", "radxa,cm5-rpi-cm4-io";
compatible = "radxa,rock-5a", "radxa,rock-5b", "radxa,rock-5b-plus", "radxa,rock-5c", "radxa,rock-5d", "radxa,nx5-io", "radxa,cm5-io", "radxa,cm5-rpi-cm4-io";
category = "misc";
exclusive = "GPIO0_B5", "GPIO0_B6";
description = "Enable I2C1-M0.
On Radxa ROCK 5A this is SDA pin 10 & SCL pin 8.
On Radxa ROCK 5B this is SDA pin 10 & SCL pin 8.
On Radxa ROCK 5B+ this is SDA pin 10 & SCL pin 8.
On Radxa ROCK 5C this is SDA pin 10 & SCL pin 8.
On Radxa ROCK 5D this is SDA pin 10 & SCL pin 8.
On Radxa NX5 IO this is SDA pin 10 & SCL pin 8.
On Radxa CM5 IO this is SDA pin 10 & SCL pin 8.
On Radxa CM5 IO this is SDA pin 10 & SCL pin 8.
Expand Down
3 changes: 2 additions & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3588-i2c2-m4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
/ {
metadata {
title = "Enable I2C2-M4";
compatible = "radxa,rock-5a", "radxa,rock-5c";
compatible = "radxa,rock-5a", "radxa,rock-5c", "radxa,rock-5d";
category = "misc";
exclusive = "GPIO1_A0", "GPIO1_A1";
description = "Enable I2C2-M4.
On Radxa ROCK 5A this is SDA pin 21 and SCL pin 19.
On Radxa ROCK 5C this is SDA pin 21 and SCL pin 19.
On Radxa ROCK 5D this is SDA pin 21 and SCL pin 19.
";
};
};
Expand Down
3 changes: 2 additions & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3588-i2c4-m3.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
/ {
metadata {
title = "Enable I2C4-M3";
compatible = "radxa,rock-5a", "radxa,rock-5b-plus", "radxa,rock-5c", "radxa,cm5-rpi-cm4-io";
compatible = "radxa,rock-5a", "radxa,rock-5b-plus", "radxa,rock-5c", "radxa,rock-5d", "radxa,cm5-rpi-cm4-io";
category = "misc";
exclusive = "GPIO1_A2", "GPIO1_A3";
description = "Enable I2C4-M3.
On Radxa ROCK 5A this is SDA pin 23 and SCL pin 24.
On Radxa ROCK 5B+ this is SDA pin 31 and SCL pin 29.
On Radxa ROCK 5C this is SDA pin 23 and SCL pin 24.
On Radxa ROCK 5D this is SDA pin 23 and SCL pin 24.
On Radxa CM5-RPI-CM4-IO this is SDA pin 40 and SCL pin 12.
";
};
Expand Down
3 changes: 2 additions & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3588-i2c6-m0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
/ {
metadata {
title = "Enable I2C6-M0";
compatible = "radxa,rock-5a", "radxa,rock-5c", "radxa,cm5-rpi-cm4-io";
compatible = "radxa,rock-5a", "radxa,rock-5c", "radxa,rock-5d", "radxa,cm5-rpi-cm4-io";
category = "misc";
exclusive = "GPIO0_C7", "GPIO0_D0";
description = "Enable I2C6-M0.
On Radxa ROCK 5A this is SDA pin 27 and SCL pin 28.
On Radxa ROCK 5C this is SDA pin 27 and SCL pin 28.
On Radxa ROCK 5D this is SDA pin 27 and SCL pin 28.
On Radxa CM5-RPI-CM4-IO this is SDA pin 3 and SCL pin 5.
";
};
Expand Down
3 changes: 2 additions & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3588-i2c6-m3.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
/ {
metadata {
title = "Enable I2C6-M3";
compatible = "radxa,rock-5a", "radxa,rock-5c";
compatible = "radxa,rock-5a", "radxa,rock-5c", "radxa,rock-5d";
category = "misc";
exclusive = "GPIO4_B0", "GPIO4_B1";
description = "Enable I2C6-M3.
On Radxa ROCK 5A this is SDA pin 32 and SCL pin 40.
On Radxa ROCK 5C this is SDA pin 32 and SCL pin 40.
On Radxa ROCK 5D this is SDA pin 32 and SCL pin 40.
";
};
};
Expand Down
3 changes: 2 additions & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3588-i2c8-m2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
/ {
metadata {
title = "Enable I2C8-M2";
compatible = "radxa,rock-5a", "radxa,rock-5c";
compatible = "radxa,rock-5a", "radxa,rock-5c", "radxa,rock-5d";
category = "misc";
exclusive = "GPIO1_D6", "GPIO1_D7";
description = "Enable I2C8-M2.
On Radxa ROCK 5A this is SDA pin 3 and SCL pin 5.
On Radxa ROCK 5C this is SDA pin 3 and SCL pin 5.
On Radxa ROCK 5D this is SDA pin 3 and SCL pin 5.
";
};
};
Expand Down
3 changes: 2 additions & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3588-pwm0-m2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
/ {
metadata {
title = "Enable PWM0-M2";
compatible = "radxa,rock-5a", "radxa,rock-5b-plus", "radxa,rock-5c", "radxa,cm5-rpi-cm4-io";
compatible = "radxa,rock-5a", "radxa,rock-5b-plus", "radxa,rock-5c", "radxa,rock-5d", "radxa,cm5-rpi-cm4-io";
category = "misc";
exclusive = "GPIO1_A2";
description = "Enable PWM0-M2.
On Radxa ROCK 5A this is pin 23.
On Radxa ROCK 5B+ this is pin 31.
On Radxa ROCK 5C this is pin 23.
On Radxa ROCK 5D this is pin 23.
On Radxa CM5-RPI-CM4-IO this is pin 40.
";
};
Expand Down
3 changes: 2 additions & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3588-pwm1-m2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
/ {
metadata {
title = "Enable PWM1-M2";
compatible = "radxa,rock-5a", "radxa,rock-5c";
compatible = "radxa,rock-5a", "radxa,rock-5c", "radxa,rock-5d";
category = "misc";
exclusive = "GPIO1_A3";
description = "Enable PWM1-M2.
On Radxa ROCK 5A this is pin 24.
On Radxa ROCK 5C this is pin 24.
On Radxa ROCK 5D this is pin 24.
";
};
};
Expand Down
3 changes: 2 additions & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3588-pwm11-m1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
/ {
metadata {
title = "Enable PWM11-M1";
compatible = "radxa,rock-5a", "radxa,rock-5c";
compatible = "radxa,rock-5a", "radxa,rock-5c", "radxa,rock-5d";
category = "misc";
exclusive = "GPIO4_B4";
description = "Enable PWM11-M1.
On Radxa ROCK 5A this is pin 15.
On Radxa ROCK 5C this is pin 15.
On Radxa ROCK 5D this is pin 15.
";
};
};
Expand Down
3 changes: 2 additions & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3588-pwm14-m1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
/ {
metadata {
title = "Enable PWM14-M1";
compatible = "radxa,rock-5a", "radxa,rock-5b", "radxa,rock-5b-plus", "radxa,rock-5c", "radxa,cm5-io", "radxa,cm5-rpi-cm4-io";
compatible = "radxa,rock-5a", "radxa,rock-5b", "radxa,rock-5b-plus", "radxa,rock-5c", "radxa,rock-5d", "radxa,cm5-io", "radxa,cm5-rpi-cm4-io";
category = "misc";
exclusive = "GPIO4_B2";
description = "Enable PWM14-M1.
On Radxa ROCK 5A this is pin 13.
On Radxa ROCK 5B this is pin 5.
On Radxa ROCK 5B+ this is pin 5.
On Radxa ROCK 5C this is pin 13.
On Radxa ROCK 5D this is pin 13.
On Radxa CM5 IO this is pin 24.
On Radxa CM5 RPI CM4 IO this is pin 32.
";
Expand Down
3 changes: 2 additions & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3588-pwm14-m2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
/ {
metadata {
title = "Enable PWM14-M2";
compatible = "radxa,rock-5a", "radxa,rock-5c";
compatible = "radxa,rock-5a", "radxa,rock-5c", "radxa,rock-5d";
category = "misc";
exclusive = "GPIO1_D6";
description = "Enable PWM14-M2.
On Radxa ROCK 5A this is pin 5.
On Radxa ROCK 5C this is pin 5.
On Radxa ROCK 5D this is pin 5.
";
};
};
Expand Down
3 changes: 2 additions & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3588-pwm15-m1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
/ {
metadata {
title = "Enable PWM15-M1";
compatible = "radxa,rock-5a", "radxa,rock-5b", "radxa,rock-5b-plus", "radxa,rock-5c", "radxa,nx5-io";
compatible = "radxa,rock-5a", "radxa,rock-5b", "radxa,rock-5b-plus", "radxa,rock-5c", "radxa,rock-5d", "radxa,nx5-io";
category = "misc";
exclusive = "GPIO4_B3";
description = "Enable PWM15-M1.
On Radxa ROCK 5A this is pin 11.
On Radxa ROCK 5B this is pin 3.
On Radxa ROCK 5B+ this is pin 3.
On Radxa ROCK 5C this is pin 11.
On Radxa ROCK 5D this is pin 11.
On Radxa NX5 IO this is pin 32.
";
};
Expand Down
3 changes: 2 additions & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3588-pwm15-m3.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
/ {
metadata {
title = "Enable PWM15-M3";
compatible = "radxa,rock-5a", "radxa,rock-5b", "radxa,rock-5c", "radxa,cm5-rpi-cm4-io";
compatible = "radxa,rock-5a", "radxa,rock-5b", "radxa,rock-5c", "radxa,rock-5d", "radxa,cm5-rpi-cm4-io";
category = "misc";
exclusive = "GPIO1_D7";
description = "Enable PWM15-M3.
On Radxa ROCK 5A this is pin 3.
On Radxa ROCK 5B this is pin 29.
On Radxa ROCK 5C this is pin 3.
On Radxa ROCK 5D this is pin 3.
On Radxa CM5-RPI-CM4-IO this is pin 27.
";
};
Expand Down
3 changes: 2 additions & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3588-pwm6-m0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
/ {
metadata {
title = "Enable PWM6-M0";
compatible = "radxa,rock-5a", "radxa,rock-5c", "radxa,cm5-io", "radxa,cm5-rpi-cm4-io";
compatible = "radxa,rock-5a", "radxa,rock-5c", "radxa,rock-5d", "radxa,cm5-io", "radxa,cm5-rpi-cm4-io";
category = "misc";
exclusive = "GPIO0_C7";
description = "Enable PWM6-M0.
On Radxa ROCK 5A this is pin 27.
On Radxa ROCK 5C this is pin 27.
On Radxa ROCK 5D this is pin 27.
On Radxa CM5 IO this is pin 31.
On Radxa CM5 RPI CM4 IO this is pin 5.
";
Expand Down
3 changes: 2 additions & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3588-pwm7-m0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
/ {
metadata {
title = "Enable PWM7-M0";
compatible = "radxa,rock-5a", "radxa,rock-5c", "radxa,cm5-io", "radxa,cm5-rpi-cm4-io";
compatible = "radxa,rock-5a", "radxa,rock-5c", "radxa,rock-5d", "radxa,cm5-io", "radxa,cm5-rpi-cm4-io";
category = "misc";
exclusive = "GPIO0_D0";
description = "Enable PWM7-M0.
On Radxa ROCK 5A this is pin 28.
On Radxa ROCK 5C this is pin 28.
On Radxa ROCK 5D this is pin 28.
On Radxa CM5 IO this is pin 29.
On Radxa CM5 RPI CM4 IO this is pin 3.
";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
/ {
metadata {
title = "Enable MCP2515 with 8MHz external clock on SPI0-M1 over CS0";
compatible = "radxa,rock-5a", "radxa,rock-5c", "radxa,cm5-io";
compatible = "radxa,rock-5a", "radxa,rock-5c", "radxa,rock-5d", "radxa,cm5-io";
exclusive = "GPIO4_A2", "GPIO4_A1", "GPIO4_A0", "GPIO4_B2", "GPIO0_C7";
description = "Enable MCP2515 with 8MHz external clock on SPI0-M1 over CS0.
MCP2515 is a SPI CAN controller from Microchip.
On Radxa CM5 IO, the interrupt pin is pin 31.
On Radxa ROCK 5A, the interrupt pin is pin 27.
On Radxa ROCK 5C, the interrupt pin is pin 27.
On Radxa ROCK 5D, the interrupt pin is pin 27.
";
};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/ {
metadata {
title = "Enable spidev on SPI0-M1 over CS0";
compatible = "radxa,rock-5a", "radxa,rock-5c", "radxa,cm5-io";
compatible = "radxa,rock-5a", "radxa,rock-5c", "radxa,rock-5d", "radxa,cm5-io";
category = "misc";
exclusive = "GPIO4_A2", "GPIO4_A1", "GPIO4_A0", "GPIO4_B2";
description = "Enable spidev on SPI0-M1 over CS0.";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/ {
metadata {
title = "Enable spidev on SPI0-M1 over CS1";
compatible = "radxa,rock-5a", "radxa,rock-5c";
compatible = "radxa,rock-5a", "radxa,rock-5c", "radxa,rock-5d";
category = "misc";
exclusive = "GPIO4_A2", "GPIO4_A1", "GPIO4_A0", "GPIO4_B1";
description = "Enable spidev on SPI0-M1 over CS1.";
Expand Down
Loading

0 comments on commit 92846fd

Please sign in to comment.