arm64: dts: rockchip: Add Youyeetoo YY3588 board support

Add device tree for Youyeetoo YY3588 SBC based on Rockchip RK3588.

Hardware features:
- RK806 PMIC via SPI2
- Dual Gigabit Ethernet:
  - GMAC1 with RTL8211F PHY (rgmii-rxid mode, tx_delay=0x43)
  - RTL8125 2.5GbE via PCIe 2.0 x1
- Display outputs:
  - HDMI 2.1 via hdmi0
  - DisplayPort 1.4 via dp0
  - HDMI input via hdmirx
- Storage:
  - eMMC via sdhci
  - SD card via sdmmc
  - SPI NOR flash via sfc (should be soldered)
  - SATA via combphy
- USB:
  - USB 2.0 host ports (ehci/ohci)
  - USB 3.0 via usbdrd3_0 and usbdrd3_1
  - Type-C with DP alt mode via usbdp_phy
- PCIe:
  - PCIe 3.0 x4 slot
  - PCIe 2.0 x1 for RTL8125
- Audio:
  - ES8388 codec (uses ES8323 driver)
  - SPDIF TX
  - I2S interfaces (i2s0, i2s5, i2s7)
- Serial: UART1, UART6, UART7
- I2C: i2c0, i2c1, i2c6, i2c7
- PWM, SARADC, TSADC
- ADC buttons and GPIO LEDs
- NPU, GPU, VPU (encode/decode), RGA
This commit is contained in:
SuperKali
2025-11-25 23:16:33 +01:00
parent 59912a6e5c
commit 0282e54a74
6 changed files with 1776 additions and 0 deletions

View File

@@ -425,6 +425,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-evb3-lp4x-v10-sii9022-bt1120-to-hdmi.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-evb4-lp4x-v10.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-evb4-lp4x-v10-linux.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-evb8-lp4x-v10.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-youyeetoo-yy3588.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-youyeetoo-r1.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-9tripod-linux.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-khadas-edge2.dtb

View File

@@ -86,6 +86,9 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
yy3568-sata2.dtbo \
youyeetoo-r1-display-dsi0.dtbo \
youyeetoo-r1-display-dsi1.dtbo \
youyeetoo-yy3588-camera0-gc8034.dtbo \
youyeetoo-yy3588-camera1-gc8034.dtbo \
youyeetoo-yy3588-display-dsi1.dtbo \
khadas-edge2-display-dsi0.dtbo \
khadas-edge2-display-dsi1.dtbo \
khadas-edge2-cam1.dtbo \

View File

@@ -0,0 +1,227 @@
/dts-v1/;
/plugin/;
#include <dt-bindings/clock/rk3588-cru.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/power/rk3588-power.h>
/ {
metadata {
title = "Enable GC8034 Camera 0 on Youyeetoo YY3588";
compatible = "youyeetoo,yy3588";
category = "camera";
description = "Enable GC8034 8MP camera sensor on CSI0 (front camera)";
};
fragment@0 {
target = <&i2c2>;
__overlay__ {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&i2c2m4_xfer>;
#address-cells = <1>;
#size-cells = <0>;
gc8034_0: gc8034@37 {
status = "okay";
compatible = "galaxycore,gc8034";
reg = <0x37>;
clocks = <&cru CLK_MIPI_CAMARAOUT_M1>;
clock-names = "xvclk";
power-domains = <&power RK3588_PD_VI>;
pinctrl-names = "default";
pinctrl-0 = <&mipim0_camera1_clk>;
rockchip,grf = <&sys_grf>;
reset-gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>;
pwdn-gpios = <&gpio1 RK_PB1 GPIO_ACTIVE_LOW>;
power-gpios = <&gpio1 RK_PB0 GPIO_ACTIVE_HIGH>;
rockchip,camera-module-index = <0>;
rockchip,camera-module-facing = "front";
rockchip,camera-module-name = "RK-CMK-8M-2-v1";
rockchip,camera-module-lens-name = "CK8401";
port {
gc8034_0_out: endpoint {
remote-endpoint = <&mipi_in_dcphy0>;
data-lanes = <1 2 3 4>;
};
};
};
};
};
fragment@1 {
target = <&mipi_dcphy0>;
__overlay__ {
status = "okay";
};
};
fragment@2 {
target = <&csi2_dcphy0>;
__overlay__ {
status = "okay";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
mipi_in_dcphy0: endpoint@1 {
reg = <1>;
remote-endpoint = <&gc8034_0_out>;
data-lanes = <1 2 3 4>;
};
};
port@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
csidcphy0_out: endpoint@0 {
reg = <0>;
remote-endpoint = <&mipi0_csi2_input>;
};
};
};
};
};
fragment@3 {
target = <&mipi0_csi2>;
__overlay__ {
status = "okay";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
mipi0_csi2_input: endpoint@1 {
reg = <1>;
remote-endpoint = <&csidcphy0_out>;
};
};
port@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
mipi0_csi2_output: endpoint@0 {
reg = <0>;
remote-endpoint = <&cif_mipi_in0>;
};
};
};
};
};
fragment@4 {
target = <&rkcif_mipi_lvds>;
__overlay__ {
status = "okay";
port {
cif_mipi_in0: endpoint {
remote-endpoint = <&mipi0_csi2_output>;
};
};
};
};
fragment@5 {
target = <&rkcif_mipi_lvds_sditf>;
__overlay__ {
status = "okay";
port {
mipi_lvds_sditf: endpoint {
remote-endpoint = <&isp0_vir0_in>;
};
};
};
};
fragment@6 {
target = <&rkcif>;
__overlay__ {
status = "okay";
};
};
fragment@7 {
target = <&rkcif_mmu>;
__overlay__ {
status = "okay";
};
};
fragment@8 {
target = <&rkisp0>;
__overlay__ {
status = "okay";
};
};
fragment@9 {
target = <&isp0_mmu>;
__overlay__ {
status = "okay";
};
};
fragment@10 {
target = <&rkisp0_vir0>;
__overlay__ {
status = "okay";
port {
#address-cells = <1>;
#size-cells = <0>;
isp0_vir0_in: endpoint@0 {
reg = <0>;
remote-endpoint = <&mipi_lvds_sditf>;
};
};
};
};
fragment@11 {
target = <&pinctrl>;
__overlay__ {
camera {
camera0_ctl: camera0-ctl {
rockchip,pins =
<0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>,
<1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>,
<1 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};
};
};

View File

@@ -0,0 +1,227 @@
/dts-v1/;
/plugin/;
#include <dt-bindings/clock/rk3588-cru.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/power/rk3588-power.h>
/ {
metadata {
title = "Enable GC8034 Camera 1 on Youyeetoo YY3588";
compatible = "youyeetoo,yy3588";
category = "camera";
description = "Enable GC8034 8MP camera sensor on CSI1 (back camera)";
};
fragment@0 {
target = <&i2c4>;
__overlay__ {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&i2c4m3_xfer>;
#address-cells = <1>;
#size-cells = <0>;
gc8034_1: gc8034@37 {
status = "okay";
compatible = "galaxycore,gc8034";
reg = <0x37>;
clocks = <&cru CLK_MIPI_CAMARAOUT_M2>;
clock-names = "xvclk";
power-domains = <&power RK3588_PD_VI>;
pinctrl-names = "default";
pinctrl-0 = <&mipim0_camera2_clk>;
rockchip,grf = <&sys_grf>;
reset-gpios = <&gpio1 RK_PA6 GPIO_ACTIVE_LOW>;
pwdn-gpios = <&gpio1 RK_PA7 GPIO_ACTIVE_LOW>;
power-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>;
rockchip,camera-module-index = <1>;
rockchip,camera-module-facing = "back";
rockchip,camera-module-name = "RK-CMK-8M-2-v1";
rockchip,camera-module-lens-name = "CK8401";
port {
gc8034_1_out: endpoint {
remote-endpoint = <&mipi_in_dcphy1>;
data-lanes = <1 2 3 4>;
};
};
};
};
};
fragment@1 {
target = <&mipi_dcphy1>;
__overlay__ {
status = "okay";
};
};
fragment@2 {
target = <&csi2_dcphy1>;
__overlay__ {
status = "okay";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
mipi_in_dcphy1: endpoint@1 {
reg = <1>;
remote-endpoint = <&gc8034_1_out>;
data-lanes = <1 2 3 4>;
};
};
port@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
csidcphy1_out: endpoint@0 {
reg = <0>;
remote-endpoint = <&mipi1_csi2_input>;
};
};
};
};
};
fragment@3 {
target = <&mipi1_csi2>;
__overlay__ {
status = "okay";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
mipi1_csi2_input: endpoint@1 {
reg = <1>;
remote-endpoint = <&csidcphy1_out>;
};
};
port@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
mipi1_csi2_output: endpoint@0 {
reg = <0>;
remote-endpoint = <&cif_mipi_in1>;
};
};
};
};
};
fragment@4 {
target = <&rkcif_mipi_lvds1>;
__overlay__ {
status = "okay";
port {
cif_mipi_in1: endpoint {
remote-endpoint = <&mipi1_csi2_output>;
};
};
};
};
fragment@5 {
target = <&rkcif_mipi_lvds1_sditf>;
__overlay__ {
status = "okay";
port {
mipi1_lvds_sditf: endpoint {
remote-endpoint = <&isp1_vir0_in>;
};
};
};
};
fragment@6 {
target = <&rkcif>;
__overlay__ {
status = "okay";
};
};
fragment@7 {
target = <&rkcif_mmu>;
__overlay__ {
status = "okay";
};
};
fragment@8 {
target = <&rkisp1>;
__overlay__ {
status = "okay";
};
};
fragment@9 {
target = <&isp1_mmu>;
__overlay__ {
status = "okay";
};
};
fragment@10 {
target = <&rkisp1_vir0>;
__overlay__ {
status = "okay";
port {
#address-cells = <1>;
#size-cells = <0>;
isp1_vir0_in: endpoint@0 {
reg = <0>;
remote-endpoint = <&mipi1_lvds_sditf>;
};
};
};
};
fragment@11 {
target = <&pinctrl>;
__overlay__ {
camera {
camera1_ctl: camera1-ctl {
rockchip,pins =
<1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>,
<1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>,
<1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};
};
};

View File

@@ -0,0 +1,172 @@
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/pinctrl/rockchip.h>
/ {
metadata {
title = "Enable DSI1 Display on Youyeetoo YY3588";
compatible = "youyeetoo,yy3588";
category = "display";
description = "Enable MIPI DSI1 display with Goodix GT9271 touchscreen";
};
fragment@0 {
target-path = "/";
__overlay__ {
backlight: backlight {
compatible = "pwm-backlight";
pwms = <&pwm2 0 25000 0>;
brightness-levels = <
0 20 20 21 21 22 22 23
23 24 24 25 25 26 26 27
27 28 28 29 29 30 30 31
31 32 32 33 33 34 34 35
35 36 36 37 37 38 38 39
40 41 42 43 44 45 46 47
48 49 50 51 52 53 54 55
56 57 58 59 60 61 62 63
64 65 66 67 68 69 70 71
72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87
88 89 90 91 92 93 94 95
96 97 98 99 100 101 102 103
104 105 106 107 108 109 110 111
112 113 114 115 116 117 118 119
120 121 122 123 124 125 126 127
128 129 130 131 132 133 134 135
136 137 138 139 140 141 142 143
144 145 146 147 148 149 150 151
152 153 154 155 156 157 158 159
160 161 162 163 164 165 166 167
168 169 170 171 172 173 174 175
176 177 178 179 180 181 182 183
184 185 186 187 188 189 190 191
192 193 194 195 196 197 198 199
200 201 202 203 204 205 206 207
208 209 210 211 212 213 214 215
216 217 218 219 220 221 222 223
224 225 226 227 228 229 230 231
232 233 234 235 236 237 238 239
240 241 242 243 244 245 246 247
248 249 250 251 252 253 254 255
>;
default-brightness-level = <200>;
status = "okay";
};
};
};
fragment@1 {
target = <&mipi_dcphy1>;
__overlay__ {
status = "okay";
};
};
fragment@2 {
target = <&dsi1>;
__overlay__ {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&mipi_te1>;
dsi1_panel: panel@0 {
status = "okay";
compatible = "innolux,afj101-ba2131";
reg = <0>;
backlight = <&backlight>;
reset-gpios = <&gpio2 RK_PC1 GPIO_ACTIVE_LOW>;
enable-gpios = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&lcd_rst_gpio>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
panel_in_dsi1: endpoint {
remote-endpoint = <&dsi1_out_panel>;
};
};
};
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@1 {
reg = <1>;
dsi1_out_panel: endpoint {
remote-endpoint = <&panel_in_dsi1>;
};
};
};
};
};
fragment@3 {
target = <&dsi1_in_vp2>;
__overlay__ {
status = "disabled";
};
};
fragment@4 {
target = <&dsi1_in_vp3>;
__overlay__ {
status = "okay";
};
};
fragment@5 {
target = <&route_dsi1>;
__overlay__ {
status = "okay";
connect = <&vp3_out_dsi1>;
};
};
fragment@6 {
target = <&i2c7>;
__overlay__ {
status = "okay";
gt9xx_0: touchscreen@14 {
compatible = "goodix,gt9271";
reg = <0x14>;
interrupt-parent = <&gpio2>;
interrupts = <RK_PB2 IRQ_TYPE_LEVEL_LOW>;
irq-gpios = <&gpio2 RK_PB2 GPIO_ACTIVE_LOW>;
reset-gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_HIGH>;
touchscreen-size-x = <1080>;
touchscreen-size-y = <1920>;
status = "okay";
};
};
};
fragment@7 {
target = <&pinctrl>;
__overlay__ {
lcd {
lcd_rst_gpio: lcd-rst-gpio {
rockchip,pins = <2 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};
};
};

File diff suppressed because it is too large Load Diff