1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 3 * Copyright (c) 2017 T-Chip Intelligent Techn 4 */ 5 6 /dts-v1/; 7 #include "rk3399-roc-pc.dtsi" 8 9 /* 10 * Notice: 11 * 1. rk3399-roc-pc-plus is powered by dc_12v 12 * 2. rk3399-roc-pc-plus has only vcc_bus_type 13 * to vcc_vbus_typec1 in rk3399-roc-pc. 14 * For simplicity, reserve the node name of 15 * 3. vcc5v0_host is actually 2 regulators (ho 16 */ 17 18 /delete-node/ &fusb1; 19 /delete-node/ &hub_rst; 20 /delete-node/ &mp8859; 21 /delete-node/ &vcc_sys_en; 22 /delete-node/ &vcc_vbus_typec0; 23 /delete-node/ &yellow_led; 24 25 / { 26 model = "Firefly ROC-RK3399-PC-PLUS Bo 27 compatible = "firefly,roc-rk3399-pc-pl 28 29 dc_12v: dc-12v { 30 compatible = "regulator-fixed" 31 regulator-name = "dc_12v"; 32 regulator-always-on; 33 regulator-boot-on; 34 regulator-min-microvolt = <120 35 regulator-max-microvolt = <120 36 }; 37 38 es8388-sound { 39 compatible = "simple-audio-car 40 pinctrl-names = "default"; 41 pinctrl-0 = <&hp_det_pin>; 42 simple-audio-card,name = "rock 43 simple-audio-card,format = "i2 44 simple-audio-card,mclk-fs = <2 45 simple-audio-card,widgets = 46 "Microphone", "Mic Jac 47 "Headphone", "Headphon 48 simple-audio-card,routing = 49 "LINPUT1", "Mic Jack", 50 "Headphone Amp INL", " 51 "Headphone Amp INR", " 52 "Headphones", "Headpho 53 "Headphones", "Headpho 54 simple-audio-card,hp-det-gpio 55 simple-audio-card,aux-devs = < 56 simple-audio-card,pin-switches 57 58 simple-audio-card,codec { 59 sound-dai = <&es8388>; 60 }; 61 62 simple-audio-card,cpu { 63 sound-dai = <&i2s1>; 64 }; 65 }; 66 67 gpio-fan { 68 #cooling-cells = <2>; 69 compatible = "gpio-fan"; 70 gpio-fan,speed-map = <0 0 3000 71 gpios = <&gpio1 RK_PA1 GPIO_AC 72 }; 73 74 /delete-node/ gpio-keys; 75 76 /* not amplifier, used as switcher onl 77 headphones_amp: headphones-amp { 78 compatible = "simple-audio-amp 79 pinctrl-names = "default"; 80 pinctrl-0 = <&ear_ctl_pin>; 81 enable-gpios = <&gpio0 RK_PA2 82 sound-name-prefix = "Headphone 83 VCC-supply = <&vcca3v0_codec>; 84 }; 85 86 ir-receiver { 87 linux,rc-map-name = "rc-khadas 88 }; 89 90 leds { 91 pinctrl-names = "default"; 92 pinctrl-0 = <&work_led_pin>, < 93 }; 94 }; 95 96 &fusb0 { 97 vbus-supply = <&vcc_vbus_typec1>; 98 }; 99 100 &i2c0 { 101 hym8563: rtc@51 { 102 compatible = "haoyu,hym8563"; 103 reg = <0x51>; 104 interrupt-parent = <&gpio0>; 105 interrupts = <RK_PA5 IRQ_TYPE_ 106 #clock-cells = <0>; 107 clock-output-names = "xin32k"; 108 pinctrl-names = "default"; 109 pinctrl-0 = <&hym8563_int>; 110 }; 111 }; 112 113 &i2c1 { 114 es8388: es8388@11 { 115 compatible = "everest,es8388"; 116 reg = <0x11>; 117 clock-names = "mclk"; 118 clocks = <&cru SCLK_I2S_8CH_OU 119 #sound-dai-cells = <0>; 120 }; 121 }; 122 123 /* <4 RK_PA0 1 &pcfg_pull_none> is used as i2s 124 &i2s0_8ch_bus { 125 rockchip,pins = 126 <3 RK_PD0 1 &pcfg_pull_none>, 127 <3 RK_PD1 1 &pcfg_pull_none>, 128 <3 RK_PD2 1 &pcfg_pull_none>, 129 <3 RK_PD3 1 &pcfg_pull_none>, 130 <3 RK_PD4 1 &pcfg_pull_none>, 131 <3 RK_PD5 1 &pcfg_pull_none>, 132 <3 RK_PD6 1 &pcfg_pull_none>, 133 <3 RK_PD7 1 &pcfg_pull_none>; 134 }; 135 136 &i2s1 { 137 pinctrl-names = "default"; 138 pinctrl-0 = <&i2s_8ch_mclk_pin>, <&i2s 139 rockchip,playback-channels = <2>; 140 rockchip,capture-channels = <2>; 141 status = "okay"; 142 }; 143 144 &pinctrl { 145 es8388 { 146 ear_ctl_pin: ear-ctl-pin { 147 rockchip,pins = <0 RK_ 148 }; 149 150 hp_det_pin: hp-det-pin { 151 rockchip,pins = <2 RK_ 152 }; 153 }; 154 155 hym8563 { 156 hym8563_int: hym8563-int { 157 rockchip,pins = <0 RK_ 158 }; 159 }; 160 161 i2s1 { 162 i2s_8ch_mclk_pin: i2s-8ch-mclk 163 rockchip,pins = <4 RK_ 164 }; 165 }; 166 }; 167 168 &u2phy0 { 169 status = "okay"; 170 171 u2phy0_otg: otg-port { 172 phy-supply = <&vcc_vbus_typec1 173 status = "okay"; 174 }; 175 176 u2phy0_host: host-port { 177 phy-supply = <&vcc5v0_host>; 178 status = "okay"; 179 }; 180 }; 181 182 &u2phy1 { 183 status = "okay"; 184 185 u2phy1_otg: otg-port { 186 phy-supply = <&vcc5v0_host>; 187 status = "okay"; 188 }; 189 190 u2phy1_host: host-port { 191 phy-supply = <&vcc5v0_host>; 192 status = "okay"; 193 }; 194 }; 195 196 &uart0 { 197 pinctrl-names = "default"; 198 pinctrl-0 = <&uart0_xfer &uart0_cts &u 199 status = "okay"; 200 }; 201 202 &usbdrd_dwc3_0 { 203 dr_mode = "host"; 204 status = "okay"; 205 }; 206 207 &vcc_sys { 208 /* vcc_sys is fixed, not controlled by 209 /delete-property/ gpio; 210 /delete-property/ pinctrl-names; 211 /delete-property/ pinctrl-0; 212 }; 213 214 &vcc5v0_host { 215 pinctrl-names = "default"; 216 pinctrl-0 = <&vcc5v0_host_en>; 217 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.