1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2021 Rockchip Electronics Co., Ltd. 4 * 5 */ 6#include "dt-bindings/usb/pd.h" 7#include "rk3588-nvr-demo.dtsi" 8 9 10/ { 11 ite_pwr_en: ite-pwr-en { 12 compatible = "regulator-fixed"; 13 regulator-name = "ITE-PWR_EN"; 14 regulator-min-microvolt = <1200000>; 15 regulator-max-microvolt = <1200000>; 16 regulator-boot-on; 17 regulator-always-on; 18 enable-active-high; 19 gpio = <&gpio3 RK_PB2 GPIO_ACTIVE_HIGH>; 20 }; 21}; 22 23&dp0 { 24 /delete-property/ pinctrl-0; 25 /delete-property/ pinctrl-names; 26 status = "okay"; 27}; 28 29&dp0_sound { 30 status = "okay"; 31}; 32 33&dp1 { 34 pinctrl-0 = <&dp1m2_pins &dp1_hdmi_reset>; 35 pinctrl-names = "default"; 36 status = "okay"; 37}; 38 39&dsi1 { 40 status = "okay"; 41 42 ports { 43 #address-cells = <1>; 44 #size-cells = <0>; 45 46 port@1 { 47 reg = <1>; 48 dsi1_out_panel: endpoint { 49 remote-endpoint = <&panel_in_dsi1>; 50 }; 51 }; 52 }; 53}; 54 55&dsi1_in_vp2 { 56 status = "okay"; 57}; 58 59&dsi1_in_vp3 { 60 status = "okay"; 61}; 62 63&i2c6 { 64 status = "okay"; 65 66 it6161: it6161@6c { 67 status = "okay"; 68 compatible = "ite,it6161"; 69 #sound-dai-cells = <0>; 70 reg = <0x6c>; 71 it6161-addr-hdmi-tx = <0x4C>; 72 it6161-addr-cec = <0x4E>; 73 interrupt-parent = <&gpio0>; 74 interrupts = <RK_PC4 IRQ_TYPE_LEVEL_HIGH>; 75 enable-gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>; 76 77 ports { 78 #address-cells = <1>; 79 #size-cells = <0>; 80 port@0 { 81 reg = <0>; 82 panel_in_dsi1: endpoint { 83 remote-endpoint = <&dsi1_out_panel>; 84 }; 85 }; 86 }; 87 }; 88 89 usbc0: fusb302@22 { 90 compatible = "fcs,fusb302"; 91 reg = <0x22>; 92 interrupt-parent = <&gpio1>; 93 interrupts = <RK_PA0 IRQ_TYPE_LEVEL_LOW>; 94 pinctrl-names = "default"; 95 pinctrl-0 = <&usbc0_int>; 96 vbus-supply = <&vcc5v0_otg>; 97 status = "okay"; 98 99 ports { 100 #address-cells = <1>; 101 #size-cells = <0>; 102 103 port@0 { 104 reg = <0>; 105 usbc0_role_sw: endpoint@0 { 106 remote-endpoint = <&dwc3_0_role_switch>; 107 }; 108 }; 109 }; 110 111 usb_con: connector { 112 compatible = "usb-c-connector"; 113 label = "USB-C"; 114 data-role = "dual"; 115 power-role = "dual"; 116 try-power-role = "sink"; 117 op-sink-microwatt = <1000000>; 118 sink-pdos = 119 <PDO_FIXED(5000, 1000, PDO_FIXED_USB_COMM)>; 120 source-pdos = 121 <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>; 122 123 altmodes { 124 #address-cells = <1>; 125 #size-cells = <0>; 126 127 altmode@0 { 128 reg = <0>; 129 svid = <0xff01>; 130 vdo = <0xffffffff>; 131 }; 132 }; 133 134 ports { 135 #address-cells = <1>; 136 #size-cells = <0>; 137 138 port@0 { 139 reg = <0>; 140 usbc0_orien_sw: endpoint { 141 remote-endpoint = <&usbdp_phy0_orientation_switch>; 142 }; 143 }; 144 145 port@1 { 146 reg = <1>; 147 dp_altmode_mux: endpoint { 148 remote-endpoint = <&usbdp_phy0_dp_altmode_mux>; 149 }; 150 }; 151 }; 152 }; 153 }; 154}; 155 156&mipi_dcphy1 { 157 status = "okay"; 158}; 159 160&route_dp0 { 161 status = "disabled"; 162}; 163 164&usbdp_phy0 { 165 status = "okay"; 166 orientation-switch; 167 svid = <0xff01>; 168 sbu1-dc-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>; 169 sbu2-dc-gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>; 170 171 port { 172 #address-cells = <1>; 173 #size-cells = <0>; 174 usbdp_phy0_orientation_switch: endpoint@0 { 175 reg = <0>; 176 remote-endpoint = <&usbc0_orien_sw>; 177 }; 178 179 usbdp_phy0_dp_altmode_mux: endpoint@1 { 180 reg = <1>; 181 remote-endpoint = <&dp_altmode_mux>; 182 }; 183 }; 184}; 185 186&usbdrd_dwc3_0 { 187 dr_mode = "otg"; 188 usb-role-switch; 189 port { 190 #address-cells = <1>; 191 #size-cells = <0>; 192 dwc3_0_role_switch: endpoint@0 { 193 reg = <0>; 194 remote-endpoint = <&usbc0_role_sw>; 195 }; 196 }; 197}; 198 199&spdif_tx2 { 200 status = "okay"; 201}; 202 203&pinctrl { 204 dp { 205 dp1_hdmi_reset: dp-hdmi-reset { 206 rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>; 207 }; 208 }; 209 210 usb-typec { 211 usbc0_int: usbc0-int { 212 rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>; 213 }; 214 }; 215}; 216