1*833e5d42SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2*833e5d42SEmmanuel Vadot 3*833e5d42SEmmanuel Vadot/dts-v1/; 4*833e5d42SEmmanuel Vadot 5*833e5d42SEmmanuel Vadot#include "rk3588-rock-5b-5bp-5t.dtsi" 6*833e5d42SEmmanuel Vadot 7*833e5d42SEmmanuel Vadot/ { 8*833e5d42SEmmanuel Vadot model = "Radxa ROCK 5T"; 9*833e5d42SEmmanuel Vadot compatible = "radxa,rock-5t", "rockchip,rk3588"; 10*833e5d42SEmmanuel Vadot 11*833e5d42SEmmanuel Vadot analog-sound { 12*833e5d42SEmmanuel Vadot compatible = "audio-graph-card"; 13*833e5d42SEmmanuel Vadot label = "rk3588-es8316"; 14*833e5d42SEmmanuel Vadot 15*833e5d42SEmmanuel Vadot widgets = "Microphone", "Mic Jack", 16*833e5d42SEmmanuel Vadot "Headphone", "Headphones"; 17*833e5d42SEmmanuel Vadot 18*833e5d42SEmmanuel Vadot routing = "MIC2", "Mic Jack", 19*833e5d42SEmmanuel Vadot "Headphones", "HPOL", 20*833e5d42SEmmanuel Vadot "Headphones", "HPOR"; 21*833e5d42SEmmanuel Vadot 22*833e5d42SEmmanuel Vadot dais = <&i2s0_8ch_p0>; 23*833e5d42SEmmanuel Vadot hp-det-gpios = <&gpio4 RK_PC3 GPIO_ACTIVE_HIGH>; 24*833e5d42SEmmanuel Vadot pinctrl-names = "default"; 25*833e5d42SEmmanuel Vadot pinctrl-0 = <&hp_detect>; 26*833e5d42SEmmanuel Vadot }; 27*833e5d42SEmmanuel Vadot 28*833e5d42SEmmanuel Vadot leds { 29*833e5d42SEmmanuel Vadot compatible = "gpio-leds"; 30*833e5d42SEmmanuel Vadot pinctrl-names = "default"; 31*833e5d42SEmmanuel Vadot pinctrl-0 = <&led_rgb_b>; 32*833e5d42SEmmanuel Vadot 33*833e5d42SEmmanuel Vadot led_rgb_b { 34*833e5d42SEmmanuel Vadot function = LED_FUNCTION_STATUS; 35*833e5d42SEmmanuel Vadot color = <LED_COLOR_ID_BLUE>; 36*833e5d42SEmmanuel Vadot gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>; 37*833e5d42SEmmanuel Vadot linux,default-trigger = "heartbeat"; 38*833e5d42SEmmanuel Vadot }; 39*833e5d42SEmmanuel Vadot }; 40*833e5d42SEmmanuel Vadot 41*833e5d42SEmmanuel Vadot rfkill { 42*833e5d42SEmmanuel Vadot compatible = "rfkill-gpio"; 43*833e5d42SEmmanuel Vadot label = "rfkill-m2-wlan"; 44*833e5d42SEmmanuel Vadot radio-type = "wlan"; 45*833e5d42SEmmanuel Vadot shutdown-gpios = <&gpio1 RK_PB0 GPIO_ACTIVE_HIGH>; 46*833e5d42SEmmanuel Vadot }; 47*833e5d42SEmmanuel Vadot 48*833e5d42SEmmanuel Vadot vcc3v3_pcie2x1l1: regulator-vcc3v3-pcie2x1l2 { 49*833e5d42SEmmanuel Vadot compatible = "regulator-fixed"; 50*833e5d42SEmmanuel Vadot regulator-name = "vcc3v3_pcie2x1l1"; 51*833e5d42SEmmanuel Vadot regulator-min-microvolt = <3300000>; 52*833e5d42SEmmanuel Vadot regulator-max-microvolt = <3300000>; 53*833e5d42SEmmanuel Vadot startup-delay-us = <5000>; 54*833e5d42SEmmanuel Vadot vin-supply = <&vcc_3v3_s3>; 55*833e5d42SEmmanuel Vadot }; 56*833e5d42SEmmanuel Vadot}; 57*833e5d42SEmmanuel Vadot 58*833e5d42SEmmanuel Vadot&hdmi_receiver { 59*833e5d42SEmmanuel Vadot hpd-gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_LOW>; 60*833e5d42SEmmanuel Vadot status = "okay"; 61*833e5d42SEmmanuel Vadot}; 62*833e5d42SEmmanuel Vadot 63*833e5d42SEmmanuel Vadot&pcie2x1l1 { 64*833e5d42SEmmanuel Vadot pinctrl-names = "default"; 65*833e5d42SEmmanuel Vadot pinctrl-0 = <&pcie2_1_rst>; 66*833e5d42SEmmanuel Vadot reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>; 67*833e5d42SEmmanuel Vadot vpcie3v3-supply = <&vcc3v3_pcie2x1l1>; 68*833e5d42SEmmanuel Vadot status = "okay"; 69*833e5d42SEmmanuel Vadot}; 70*833e5d42SEmmanuel Vadot 71*833e5d42SEmmanuel Vadot&pcie30phy { 72*833e5d42SEmmanuel Vadot data-lanes = <1 1 2 2>; 73*833e5d42SEmmanuel Vadot}; 74*833e5d42SEmmanuel Vadot 75*833e5d42SEmmanuel Vadot&pcie3x2 { 76*833e5d42SEmmanuel Vadot pinctrl-names = "default"; 77*833e5d42SEmmanuel Vadot pinctrl-0 = <&pcie3x2_rst>; 78*833e5d42SEmmanuel Vadot reset-gpios = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>; 79*833e5d42SEmmanuel Vadot vpcie3v3-supply = <&vcc3v3_pcie30>; 80*833e5d42SEmmanuel Vadot status = "okay"; 81*833e5d42SEmmanuel Vadot}; 82*833e5d42SEmmanuel Vadot 83*833e5d42SEmmanuel Vadot&pcie3x4 { 84*833e5d42SEmmanuel Vadot num-lanes = <2>; 85*833e5d42SEmmanuel Vadot}; 86*833e5d42SEmmanuel Vadot 87*833e5d42SEmmanuel Vadot&pinctrl { 88*833e5d42SEmmanuel Vadot hdmirx { 89*833e5d42SEmmanuel Vadot hdmirx_hpd: hdmirx-5v-detection { 90*833e5d42SEmmanuel Vadot rockchip,pins = <2 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; 91*833e5d42SEmmanuel Vadot }; 92*833e5d42SEmmanuel Vadot }; 93*833e5d42SEmmanuel Vadot 94*833e5d42SEmmanuel Vadot leds { 95*833e5d42SEmmanuel Vadot led_rgb_b: led-rgb-b { 96*833e5d42SEmmanuel Vadot rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; 97*833e5d42SEmmanuel Vadot }; 98*833e5d42SEmmanuel Vadot }; 99*833e5d42SEmmanuel Vadot 100*833e5d42SEmmanuel Vadot pcie2 { 101*833e5d42SEmmanuel Vadot pcie2_1_rst: pcie2-1-rst { 102*833e5d42SEmmanuel Vadot rockchip,pins = <4 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; 103*833e5d42SEmmanuel Vadot }; 104*833e5d42SEmmanuel Vadot pcie2_0_vcc3v3_en: pcie2-0-vcc-en { 105*833e5d42SEmmanuel Vadot rockchip,pins = <2 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>; 106*833e5d42SEmmanuel Vadot }; 107*833e5d42SEmmanuel Vadot }; 108*833e5d42SEmmanuel Vadot 109*833e5d42SEmmanuel Vadot pcie3 { 110*833e5d42SEmmanuel Vadot pcie3x2_rst: pcie3x2-rst { 111*833e5d42SEmmanuel Vadot rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; 112*833e5d42SEmmanuel Vadot }; 113*833e5d42SEmmanuel Vadot }; 114*833e5d42SEmmanuel Vadot 115*833e5d42SEmmanuel Vadot sound { 116*833e5d42SEmmanuel Vadot hp_detect: hp-detect { 117*833e5d42SEmmanuel Vadot rockchip,pins = <4 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>; 118*833e5d42SEmmanuel Vadot }; 119*833e5d42SEmmanuel Vadot }; 120*833e5d42SEmmanuel Vadot 121*833e5d42SEmmanuel Vadot usb { 122*833e5d42SEmmanuel Vadot vcc5v0_host_en: vcc5v0-host-en { 123*833e5d42SEmmanuel Vadot rockchip,pins = <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>; 124*833e5d42SEmmanuel Vadot }; 125*833e5d42SEmmanuel Vadot }; 126*833e5d42SEmmanuel Vadot}; 127*833e5d42SEmmanuel Vadot 128*833e5d42SEmmanuel Vadot&vcc3v3_pcie2x1l0 { 129*833e5d42SEmmanuel Vadot gpios = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>; 130*833e5d42SEmmanuel Vadot pinctrl-names = "default"; 131*833e5d42SEmmanuel Vadot pinctrl-0 = <&pcie2_0_vcc3v3_en>; 132*833e5d42SEmmanuel Vadot status = "okay"; 133*833e5d42SEmmanuel Vadot}; 134*833e5d42SEmmanuel Vadot 135*833e5d42SEmmanuel Vadot&vcc5v0_host { 136*833e5d42SEmmanuel Vadot enable-active-high; 137*833e5d42SEmmanuel Vadot gpio = <&gpio1 RK_PA1 GPIO_ACTIVE_HIGH>; 138*833e5d42SEmmanuel Vadot pinctrl-names = "default"; 139*833e5d42SEmmanuel Vadot pinctrl-0 = <&vcc5v0_host_en>; 140*833e5d42SEmmanuel Vadot}; 141