1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * FriendlyElec NanoPC-T4 board device tree source 4 * 5 * Copyright (c) 2018 FriendlyElec Computer Tech. Co., Ltd. 6 * (http://www.friendlyarm.com) 7 * 8 * Copyright (c) 2018 Collabora Ltd. 9 */ 10 11/dts-v1/; 12#include "rk3399-nanopi4.dtsi" 13 14/ { 15 model = "FriendlyElec NanoPC-T4"; 16 compatible = "friendlyarm,nanopc-t4", "rockchip,rk3399"; 17 18 vcc12v0_sys: vcc12v0-sys { 19 compatible = "regulator-fixed"; 20 regulator-always-on; 21 regulator-boot-on; 22 regulator-max-microvolt = <12000000>; 23 regulator-min-microvolt = <12000000>; 24 regulator-name = "vcc12v0_sys"; 25 }; 26 27 vcc5v0_host0: vcc5v0-host0 { 28 compatible = "regulator-fixed"; 29 regulator-always-on; 30 regulator-boot-on; 31 regulator-name = "vcc5v0_host0"; 32 vin-supply = <&vcc5v0_sys>; 33 }; 34 35 adc-keys { 36 compatible = "adc-keys"; 37 io-channels = <&saradc 1>; 38 io-channel-names = "buttons"; 39 keyup-threshold-microvolt = <1800000>; 40 poll-interval = <100>; 41 42 recovery { 43 label = "Recovery"; 44 linux,code = <KEY_VENDOR>; 45 press-threshold-microvolt = <18000>; 46 }; 47 }; 48 49 ir-receiver { 50 compatible = "gpio-ir-receiver"; 51 gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>; 52 pinctrl-names = "default"; 53 pinctrl-0 = <&ir_rx>; 54 }; 55}; 56 57&pinctrl { 58 ir { 59 ir_rx: ir-rx { 60 /* external pullup to VCC3V3_SYS, despite being 1.8V :/ */ 61 rockchip,pins = <0 RK_PA6 RK_FUNC_1 &pcfg_pull_none>; 62 }; 63 }; 64}; 65 66&sdhci { 67 mmc-hs400-1_8v; 68 mmc-hs400-enhanced-strobe; 69}; 70 71&u2phy0_host { 72 phy-supply = <&vcc5v0_host0>; 73}; 74 75&u2phy1_host { 76 phy-supply = <&vcc5v0_host0>; 77}; 78 79&vcc5v0_sys { 80 vin-supply = <&vcc12v0_sys>; 81}; 82 83&vcc3v3_sys { 84 vin-supply = <&vcc12v0_sys>; 85}; 86 87&vbus_typec { 88 enable-active-high; 89 gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; 90 vin-supply = <&vcc5v0_sys>; 91}; 92