1 // SPDX-License-Identifier: (GPL-2.0-only OR M 2 // Copyright (c) 2017-2019 Arm Ltd. 3 4 /dts-v1/; 5 #include "rk3328.dtsi" 6 7 / { 8 model = "Beelink A1"; 9 compatible = "azw,beelink-a1", "rockch 10 11 aliases { 12 ethernet0 = &gmac2io; 13 mmc0 = &sdmmc; 14 mmc1 = &emmc; 15 }; 16 17 /* 18 * UART pins, as viewed with bottom of 19 * 20 * Front 21 * /------- 22 * L / o <- Gnd 23 * e / o <-- Rx 24 * f / o <--- Tx 25 * t / o <---- +3.3v 26 * | 27 */ 28 chosen { 29 stdout-path = "serial2:1500000 30 }; 31 32 gmac_clkin: external-gmac-clock { 33 compatible = "fixed-clock"; 34 clock-frequency = <125000000>; 35 clock-output-names = "gmac_clk 36 #clock-cells = <0>; 37 }; 38 39 vcc_host_5v: usb3-current-switch { 40 compatible = "regulator-fixed" 41 enable-active-high; 42 gpio = <&gpio0 RK_PA0 GPIO_ACT 43 pinctrl-names = "default"; 44 pinctrl-0 = <&usb30_host_drv>; 45 regulator-name = "vcc_host_5v" 46 vin-supply = <&vcc_sys>; 47 }; 48 49 vcc_sys: vcc-sys { 50 compatible = "regulator-fixed" 51 regulator-name = "vcc_sys"; 52 regulator-min-microvolt = <500 53 regulator-max-microvolt = <500 54 }; 55 56 ir-receiver { 57 compatible = "gpio-ir-receiver 58 gpios = <&gpio2 RK_PA2 GPIO_AC 59 linux,rc-map-name = "rc-beelin 60 }; 61 }; 62 63 &analog_sound { 64 simple-audio-card,name = "Analog A/V"; 65 status = "okay"; 66 }; 67 68 &codec { 69 mute-gpios = <&grf_gpio 0 GPIO_ACTIVE_ 70 status = "okay"; 71 }; 72 73 &cpu0 { 74 cpu-supply = <&vdd_arm>; 75 }; 76 77 &cpu1 { 78 cpu-supply = <&vdd_arm>; 79 }; 80 81 &cpu2 { 82 cpu-supply = <&vdd_arm>; 83 }; 84 85 &cpu3 { 86 cpu-supply = <&vdd_arm>; 87 }; 88 89 &emmc { 90 bus-width = <8>; 91 cap-mmc-highspeed; 92 mmc-ddr-1_8v; 93 mmc-hs200-1_8v; 94 no-sd; 95 no-sdio; 96 non-removable; 97 pinctrl-names = "default"; 98 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc 99 vmmc-supply = <&vcc_io>; 100 vqmmc-supply = <&vcc18_emmc>; 101 status = "okay"; 102 }; 103 104 &gmac2io { 105 assigned-clocks = <&cru SCLK_MAC2IO>, 106 assigned-clock-parents = <&gmac_clkin> 107 clock_in_out = "input"; 108 phy-handle = <&rtl8211f>; 109 phy-mode = "rgmii"; 110 phy-supply = <&vcc_io>; 111 pinctrl-names = "default"; 112 pinctrl-0 = <&rgmiim1_pins>; 113 snps,aal; 114 snps,pbl = <0x4>; 115 tx_delay = <0x26>; 116 rx_delay = <0x11>; 117 status = "okay"; 118 119 mdio { 120 compatible = "snps,dwmac-mdio" 121 #address-cells = <1>; 122 #size-cells = <0>; 123 124 rtl8211f: ethernet-phy@0 { 125 reg = <0>; 126 reset-assert-us = <100 127 reset-deassert-us = <3 128 reset-gpios = <&gpio2 129 }; 130 }; 131 }; 132 133 &gpu { 134 mali-supply = <&vdd_logic>; 135 }; 136 137 &hdmi { 138 status = "okay"; 139 }; 140 141 &hdmiphy { 142 status = "okay"; 143 }; 144 145 &hdmi_sound { 146 status = "okay"; 147 }; 148 149 &i2c1 { 150 clock-frequency = <1000000>; 151 i2c-scl-falling-time-ns = <5>; 152 i2c-scl-rising-time-ns = <83>; 153 status = "okay"; 154 155 pmic@18 { 156 compatible = "rockchip,rk805"; 157 reg = <0x18>; 158 interrupt-parent = <&gpio2>; 159 interrupts = <RK_PA6 IRQ_TYPE_ 160 pinctrl-names = "default"; 161 pinctrl-0 = <&pmic_int_l>; 162 rockchip,system-power-controll 163 wakeup-source; 164 #clock-cells = <0>; 165 166 vcc1-supply = <&vcc_sys>; 167 vcc2-supply = <&vcc_sys>; 168 vcc3-supply = <&vcc_sys>; 169 vcc4-supply = <&vcc_sys>; 170 vcc5-supply = <&vcc_io>; 171 vcc6-supply = <&vcc_io>; 172 173 regulators { 174 vdd_logic: DCDC_REG1 { 175 regulator-name 176 regulator-min- 177 regulator-max- 178 regulator-alwa 179 regulator-boot 180 regulator-stat 181 regula 182 regula 183 }; 184 }; 185 186 vdd_arm: DCDC_REG2 { 187 regulator-name 188 regulator-min- 189 regulator-max- 190 regulator-alwa 191 regulator-boot 192 regulator-stat 193 regula 194 regula 195 }; 196 }; 197 198 vcc_ddr: DCDC_REG3 { 199 regulator-name 200 regulator-alwa 201 regulator-boot 202 regulator-stat 203 regula 204 }; 205 }; 206 207 vcc_io: DCDC_REG4 { 208 regulator-name 209 regulator-min- 210 regulator-max- 211 regulator-alwa 212 regulator-boot 213 regulator-stat 214 regula 215 regula 216 }; 217 }; 218 219 vdd_18: LDO_REG1 { 220 regulator-name 221 regulator-min- 222 regulator-max- 223 regulator-alwa 224 regulator-boot 225 regulator-stat 226 regula 227 regula 228 }; 229 }; 230 231 vcc18_emmc: LDO_REG2 { 232 regulator-name 233 regulator-min- 234 regulator-max- 235 regulator-alwa 236 regulator-boot 237 regulator-stat 238 regula 239 regula 240 }; 241 }; 242 243 vdd_11: LDO_REG3 { 244 regulator-name 245 regulator-min- 246 regulator-max- 247 regulator-alwa 248 regulator-boot 249 regulator-stat 250 regula 251 regula 252 }; 253 }; 254 }; 255 }; 256 }; 257 258 &i2s0 { 259 status = "okay"; 260 }; 261 262 &i2s1 { 263 status = "okay"; 264 }; 265 266 &io_domains { 267 vccio1-supply = <&vcc_io>; 268 vccio2-supply = <&vcc18_emmc>; 269 vccio3-supply = <&vcc_io>; 270 vccio4-supply = <&vdd_18>; 271 vccio5-supply = <&vcc_io>; 272 vccio6-supply = <&vdd_18>; 273 pmuio-supply = <&vcc_io>; 274 status = "okay"; 275 }; 276 277 &pinctrl { 278 pmic { 279 pmic_int_l: pmic-int-l { 280 rockchip,pins = <2 RK_ 281 }; 282 }; 283 284 usb3 { 285 usb30_host_drv: usb30-host-drv 286 rockchip,pins = <0 RK_ 287 }; 288 }; 289 290 wifi { 291 bt_dis: bt-dis { 292 rockchip,pins = <2 RK_ 293 }; 294 295 bt_wake_host: bt-wake-host { 296 rockchip,pins = <2 RK_ 297 }; 298 299 chip_en: chip-en { 300 rockchip,pins = <2 RK_ 301 }; 302 303 host_wake_bt: host-wake-bt { 304 rockchip,pins = <2 RK_ 305 }; 306 307 wl_dis: wl-dis { 308 rockchip,pins = <3 RK_ 309 }; 310 311 wl_wake_host: wl-wake-host { 312 rockchip,pins = <3 RK_ 313 }; 314 }; 315 }; 316 317 &sdmmc { 318 bus-width = <4>; 319 cap-mmc-highspeed; 320 cap-sd-highspeed; 321 disable-wp; 322 pinctrl-names = "default"; 323 pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd & 324 vmmc-supply = <&vcc_io>; 325 vqmmc-supply = <&vcc_io>; 326 status = "okay"; 327 }; 328 329 &tsadc { 330 rockchip,hw-tshut-mode = <0>; 331 rockchip,hw-tshut-polarity = <0>; 332 status = "okay"; 333 }; 334 335 &uart2 { 336 status = "okay"; 337 }; 338 339 &u2phy { 340 status = "okay"; 341 }; 342 343 &u2phy_host { 344 status = "okay"; 345 }; 346 347 &u2phy_otg { 348 status = "okay"; 349 }; 350 351 &usb20_otg { 352 dr_mode = "host"; 353 status = "okay"; 354 }; 355 356 &usb_host0_ehci { 357 pinctrl-names = "default"; 358 pinctrl-0 = <&bt_dis &bt_wake_host &ch 359 status = "okay"; 360 }; 361 362 &vop { 363 status = "okay"; 364 }; 365 366 &vop_mmu { 367 status = "okay"; 368 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.