1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 3 * Copyright (C) 2024 Arm Ltd. 4 */ 5 6 /dts-v1/; 7 8 #include "sun50i-h616.dtsi" 9 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/interrupt-controller/arm 12 #include <dt-bindings/input/linux-event-codes. 13 #include <dt-bindings/leds/common.h> 14 15 / { 16 model = "Tanix TX1"; 17 compatible = "oranth,tanix-tx1", "allw 18 19 aliases { 20 serial0 = &uart0; 21 ethernet0 = &sdio_wifi; 22 }; 23 24 chosen { 25 stdout-path = "serial0:115200n 26 }; 27 28 gpio-keys { 29 compatible = "gpio-keys"; 30 31 key { 32 label = "hidden"; 33 linux,code = <BTN_0>; 34 gpios = <&pio 7 9 GPIO 35 }; 36 }; 37 38 leds { 39 compatible = "gpio-leds"; 40 41 led-0 { 42 function = LED_FUNCTIO 43 color = <LED_COLOR_ID_ 44 gpios = <&pio 7 6 GPIO 45 default-state = "on"; 46 }; 47 }; 48 49 wifi_pwrseq: pwrseq { 50 compatible = "mmc-pwrseq-simpl 51 clocks = <&rtc CLK_OSC32K_FANO 52 clock-names = "ext_clock"; 53 pinctrl-0 = <&x32clk_fanout_pi 54 pinctrl-names = "default"; 55 reset-gpios = <&pio 6 18 GPIO_ 56 }; 57 58 reg_vcc5v: vcc5v { 59 /* board wide 5V supply direct 60 compatible = "regulator-fixed" 61 regulator-name = "vcc-5v"; 62 regulator-min-microvolt = <500 63 regulator-max-microvolt = <500 64 regulator-always-on; 65 }; 66 }; 67 68 &cpu0 { 69 cpu-supply = <®_dcdc2>; 70 }; 71 72 &ehci0 { 73 status = "okay"; 74 }; 75 76 &ir { 77 status = "okay"; 78 }; 79 80 &mmc1 { 81 vmmc-supply = <®_dldo1>; 82 vqmmc-supply = <®_aldo1>; 83 mmc-pwrseq = <&wifi_pwrseq>; 84 bus-width = <4>; 85 non-removable; 86 status = "okay"; 87 88 sdio_wifi: wifi@1 { 89 reg = <1>; 90 }; 91 }; 92 93 &mmc2 { 94 vmmc-supply = <®_dldo1>; 95 vqmmc-supply = <®_aldo1>; 96 bus-width = <8>; 97 non-removable; 98 max-frequency = <100000000>; 99 cap-mmc-hw-reset; 100 mmc-ddr-1_8v; 101 status = "okay"; 102 }; 103 104 &ohci0 { 105 status = "okay"; 106 }; 107 108 &pio { 109 vcc-pc-supply = <®_aldo1>; 110 vcc-pf-supply = <®_dldo1>; 111 vcc-pg-supply = <®_aldo1>; 112 vcc-ph-supply = <®_dldo1>; 113 vcc-pi-supply = <®_dldo1>; 114 }; 115 116 &r_i2c { 117 status = "okay"; 118 119 axp313: pmic@36 { 120 compatible = "x-powers,axp313a 121 reg = <0x36>; 122 #interrupt-cells = <1>; 123 interrupt-controller; 124 125 vin1-supply = <®_vcc5v>; 126 vin2-supply = <®_vcc5v>; 127 vin3-supply = <®_vcc5v>; 128 129 regulators { 130 /* Supplies VCC-PLL, s 131 reg_aldo1: aldo1 { 132 regulator-alwa 133 regulator-min- 134 regulator-max- 135 regulator-name 136 }; 137 138 /* Supplies VCC-IO, so 139 reg_dldo1: dldo1 { 140 regulator-alwa 141 regulator-min- 142 regulator-max- 143 regulator-name 144 }; 145 146 reg_dcdc1: dcdc1 { 147 regulator-alwa 148 regulator-min- 149 regulator-max- 150 regulator-name 151 }; 152 153 reg_dcdc2: dcdc2 { 154 regulator-alwa 155 regulator-min- 156 regulator-max- 157 regulator-name 158 }; 159 160 reg_dcdc3: dcdc3 { 161 regulator-alwa 162 regulator-min- 163 regulator-max- 164 regulator-name 165 }; 166 }; 167 }; 168 }; 169 170 &uart0 { 171 pinctrl-names = "default"; 172 pinctrl-0 = <&uart0_ph_pins>; 173 status = "okay"; 174 }; 175 176 &usbotg { 177 dr_mode = "host"; /* USB A type 178 status = "okay"; 179 }; 180 181 &usbphy { 182 status = "okay"; 183 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.