1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 3 * Copyright (c) 2017 Fuzhou Rockchip Electron 4 */ 5 6 /dts-v1/; 7 #include "rk3399-sapphire.dtsi" 8 9 / { 10 model = "Excavator-RK3399 Board"; 11 compatible = "rockchip,rk3399-sapphire 12 13 aliases { 14 mmc2 = &sdio0; 15 }; 16 17 adc-keys { 18 compatible = "adc-keys"; 19 io-channels = <&saradc 1>; 20 io-channel-names = "buttons"; 21 keyup-threshold-microvolt = <1 22 poll-interval = <100>; 23 24 button-up { 25 label = "Volume Up"; 26 linux,code = <KEY_VOLU 27 press-threshold-microv 28 }; 29 30 button-down { 31 label = "Volume Down"; 32 linux,code = <KEY_VOLU 33 press-threshold-microv 34 }; 35 36 button-back { 37 label = "Back"; 38 linux,code = <KEY_BACK 39 press-threshold-microv 40 }; 41 42 button-menu { 43 label = "Menu"; 44 linux,code = <KEY_MENU 45 press-threshold-microv 46 }; 47 }; 48 49 backlight: backlight { 50 compatible = "pwm-backlight"; 51 brightness-levels = < 52 0 1 2 3 4 53 8 9 10 11 12 1 54 16 17 18 19 20 2 55 24 25 26 27 28 2 56 32 33 34 35 36 3 57 40 41 42 43 44 4 58 48 49 50 51 52 5 59 56 57 58 59 60 6 60 64 65 66 67 68 6 61 72 73 74 75 76 7 62 80 81 82 83 84 8 63 88 89 90 91 92 9 64 96 97 98 99 100 10 65 104 105 106 107 108 10 66 112 113 114 115 116 11 67 120 121 122 123 124 12 68 128 129 130 131 132 13 69 136 137 138 139 140 14 70 144 145 146 147 148 14 71 152 153 154 155 156 15 72 160 161 162 163 164 16 73 168 169 170 171 172 17 74 176 177 178 179 180 18 75 184 185 186 187 188 18 76 192 193 194 195 196 19 77 200 201 202 203 204 20 78 208 209 210 211 212 21 79 216 217 218 219 220 22 80 224 225 226 227 228 22 81 232 233 234 235 236 23 82 240 241 242 243 244 24 83 248 249 250 251 252 25 84 default-brightness-level = <20 85 enable-gpios = <&gpio1 RK_PB5 86 pwms = <&pwm0 0 25000 0>; 87 status = "okay"; 88 }; 89 90 edp_panel: edp-panel { 91 compatible = "lg,lp079qx1-sp0v 92 backlight = <&backlight>; 93 enable-gpios = <&gpio4 RK_PC6 94 pinctrl-names = "default"; 95 pinctrl-0 = <&lcd_panel_reset> 96 power-supply = <&vcc3v3_s0>; 97 98 port { 99 panel_in_edp: endpoint 100 remote-endpoin 101 }; 102 }; 103 }; 104 105 rt5651-sound { 106 compatible = "simple-audio-car 107 simple-audio-card,name = "real 108 simple-audio-card,format = "i2 109 simple-audio-card,mclk-fs = <2 110 simple-audio-card,widgets = 111 "Microphone", "Mic Jac 112 "Headphone", "Headphon 113 simple-audio-card,routing = 114 "Mic Jack", "MICBIAS1" 115 "IN1P", "Mic Jack", 116 "Headphone Jack", "HPO 117 "Headphone Jack", "HPO 118 simple-audio-card,cpu { 119 sound-dai = <&i2s0>; 120 }; 121 simple-audio-card,codec { 122 sound-dai = <&rt5651>; 123 }; 124 }; 125 126 sdio_pwrseq: sdio-pwrseq { 127 compatible = "mmc-pwrseq-simpl 128 clocks = <&rk808 1>; 129 clock-names = "ext_clock"; 130 pinctrl-names = "default"; 131 pinctrl-0 = <&wifi_enable_h>; 132 133 /* 134 * On the module itself this i 135 * on the actual card populate 136 * - SDIO_RESET_L_WL_REG_ON 137 * - PDN (power down when low) 138 */ 139 reset-gpios = <&gpio0 RK_PB2 G 140 }; 141 }; 142 143 &edp { 144 status = "okay"; 145 146 ports { 147 edp_out: port@1 { 148 reg = <1>; 149 #address-cells = <1>; 150 #size-cells = <0>; 151 152 edp_out_panel: endpoin 153 reg = <0>; 154 remote-endpoin 155 }; 156 }; 157 }; 158 }; 159 160 &i2c1 { 161 i2c-scl-rising-time-ns = <300>; 162 i2c-scl-falling-time-ns = <15>; 163 status = "okay"; 164 165 rt5651: rt5651@1a { 166 compatible = "rockchip,rt5651" 167 reg = <0x1a>; 168 clocks = <&cru SCLK_I2S_8CH_OU 169 clock-names = "mclk"; 170 hp-det-gpio = <&gpio4 RK_PC4 G 171 spk-con-gpio = <&gpio0 RK_PB3 172 #sound-dai-cells = <0>; 173 }; 174 }; 175 176 &i2c4 { 177 i2c-scl-rising-time-ns = <600>; 178 i2c-scl-falling-time-ns = <20>; 179 status = "okay"; 180 181 accelerometer@68 { 182 compatible = "invensense,mpu65 183 reg = <0x68>; 184 interrupt-parent = <&gpio1>; 185 interrupts = <RK_PC6 IRQ_TYPE_ 186 }; 187 }; 188 189 &i2s0 { 190 rockchip,playback-channels = <8>; 191 rockchip,capture-channels = <8>; 192 status = "okay"; 193 }; 194 195 &pcie_phy { 196 status = "okay"; 197 }; 198 199 &pcie0 { 200 ep-gpios = <&gpio2 RK_PA4 GPIO_ACTIVE_ 201 num-lanes = <4>; 202 pinctrl-names = "default"; 203 pinctrl-0 = <&pcie_clkreqn_cpm>; 204 status = "okay"; 205 }; 206 207 &pinctrl { 208 sdio-pwrseq { 209 wifi_enable_h: wifi-enable-h { 210 rockchip,pins = <0 RK_ 211 }; 212 }; 213 214 lcd-panel { 215 lcd_panel_reset: lcd-panel-res 216 rockchip,pins = <4 RK_ 217 }; 218 }; 219 }; 220 221 &sdio0 { 222 bus-width = <4>; 223 cap-sd-highspeed; 224 cap-sdio-irq; 225 clock-frequency = <50000000>; 226 keep-power-in-suspend; 227 max-frequency = <50000000>; 228 mmc-pwrseq = <&sdio_pwrseq>; 229 non-removable; 230 pinctrl-names = "default"; 231 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &s 232 sd-uhs-sdr104; 233 status = "okay"; 234 }; 235 236 &spdif { 237 status = "okay"; 238 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.