1 // SPDX-License-Identifier: GPL-2.0+ 2 /* 3 * Copyright (C) 2023 Josua Mayer <josua@solid- 4 * 5 * DTS for SolidRun AM642 HummingBoard-T, 6 * running on Cortex A53. 7 * 8 */ 9 10 /dts-v1/; 11 12 #include <dt-bindings/leds/common.h> 13 #include <dt-bindings/phy/phy.h> 14 15 #include "k3-am642.dtsi" 16 #include "k3-am642-sr-som.dtsi" 17 18 / { 19 model = "SolidRun AM642 HummingBoard-T 20 compatible = "solidrun,am642-hummingbo 21 22 aliases { 23 serial5 = &main_uart3; 24 }; 25 26 leds { 27 compatible = "gpio-leds"; 28 pinctrl-names = "default"; 29 pinctrl-0 = <&leds_default_pin 30 31 /* D24 */ 32 led1: led-1 { 33 label = "led1"; 34 gpios = <&main_gpio0 2 35 color = <LED_COLOR_ID_ 36 }; 37 38 /* D25 */ 39 led2: led-2 { 40 label = "led2"; 41 gpios = <&main_gpio0 3 42 color = <LED_COLOR_ID_ 43 }; 44 45 /* D26 */ 46 led3: led-3 { 47 label = "led3"; 48 gpios = <&main_gpio0 3 49 color = <LED_COLOR_ID_ 50 }; 51 }; 52 53 regulator-m2-3v3 { 54 compatible = "regulator-fixed" 55 pinctrl-names = "default"; 56 pinctrl-0 = <®ulator_pcie_3 57 regulator-name = "m2-3v3"; 58 regulator-min-microvolt = <330 59 regulator-max-microvolt = <330 60 gpio = <&main_gpio1 17 GPIO_AC 61 enable-active-high; 62 regulator-always-on; 63 }; 64 65 regulator-vpp-1v8 { 66 compatible = "regulator-fixed" 67 pinctrl-names = "default"; 68 pinctrl-0 = <®ulator_vpp_1v 69 regulator-name = "vpp-1v8"; 70 regulator-min-microvolt = <180 71 regulator-max-microvolt = <180 72 gpio = <&main_gpio1 78 GPIO_AC 73 enable-active-high; 74 }; 75 76 serdes_mux: mux-controller { 77 compatible = "gpio-mux"; 78 pinctrl-names = "default"; 79 pinctrl-0 = <&serdes_mux_defau 80 #mux-control-cells = <0>; 81 /* 82 * Mux has 2 IOs: 83 * - select: 0 = USB-3 (M2); 1 84 * - shutdown: 0 = active; 1 = 85 */ 86 mux-gpios = <&main_gpio1 40 GP 87 /* default disabled */ 88 idle-state = <2>; 89 }; 90 }; 91 92 &main_gpio0 { 93 m2-reset-hog { 94 gpio-hog; 95 gpios = <12 GPIO_ACTIVE_LOW>; 96 output-low; /* deasserted */ 97 line-name = "m2-reset"; 98 }; 99 100 m1-m2-w-disable1-hog { 101 gpio-hog; 102 gpios = <32 GPIO_ACTIVE_LOW>; 103 output-low; /* deasserted */ 104 line-name = "m1-m2-pcie-w-disa 105 }; 106 107 m1-m2-w-disable2-hog { 108 gpio-hog; 109 gpios = <34 GPIO_ACTIVE_LOW>; 110 output-low; /* deasserted */ 111 line-name = "m1-m2-pcie-w-disa 112 }; 113 }; 114 115 &main_gpio1 { 116 m1-pcie-clkreq0-hog { 117 gpio-hog; 118 gpios = <11 GPIO_ACTIVE_LOW>; 119 input; 120 line-name = "m1-pcie-clkreq0"; 121 }; 122 123 m2-pcie-clkreq-hog { 124 gpio-hog; 125 gpios = <35 GPIO_ACTIVE_LOW>; 126 input; 127 line-name = "m2-pcie-clkreq"; 128 }; 129 }; 130 131 &main_i2c0 { 132 pinctrl-0 = <&main_i2c0_default_pins>, 133 134 humidity-sensor@41 { 135 compatible = "ti,hdc2010"; 136 reg = <0x41>; 137 interrupt-parent = <&main_gpio 138 interrupts = <37 IRQ_TYPE_EDGE 139 }; 140 141 light-sensor@44 { 142 compatible = "ti,opt3001"; 143 reg = <0x44>; 144 interrupt-parent = <&main_gpio 145 interrupts = <37 IRQ_TYPE_EDGE 146 }; 147 148 /* charger@6a */ 149 }; 150 151 &main_i2c1 { 152 pinctrl-names = "default"; 153 pinctrl-0 = <&main_i2c1_default_pins>; 154 status = "okay"; 155 156 rtc@69 { 157 compatible = "abracon,abx80x"; 158 reg = <0x69>; 159 pinctrl-names = "default"; 160 pinctrl-0 = <&rtc_int_default_ 161 abracon,tc-diode = "schottky"; 162 abracon,tc-resistor = <3>; 163 interrupt-parent = <&main_gpio 164 interrupts = <44 IRQ_TYPE_EDGE 165 }; 166 }; 167 168 &main_mcan0 { 169 pinctrl-names = "default"; 170 pinctrl-0 = <&main_mcan0_default_pins> 171 status = "okay"; 172 173 can-transceiver { 174 max-bitrate = <8000000>; 175 }; 176 }; 177 178 &main_mcan1 { 179 pinctrl-names = "default"; 180 pinctrl-0 = <&main_mcan1_default_pins> 181 status = "okay"; 182 183 can-transceiver { 184 max-bitrate = <8000000>; 185 }; 186 }; 187 188 &main_pmx0 { 189 leds_default_pins: leds-default-pins { 190 pinctrl-single,pins = < 191 AM64X_IOPAD(0x0074, PI 192 AM64X_IOPAD(0x0078, PI 193 AM64X_IOPAD(0x0088, PI 194 >; 195 }; 196 197 main_i2c0_int_default_pins: main-i2c0- 198 pinctrl-single,pins = < 199 /* external pull-up on 200 AM64X_IOPAD(0x0098, PI 201 >; 202 }; 203 204 main_i2c1_default_pins: main-i2c1-defa 205 pinctrl-single,pins = < 206 /* external pull-up on 207 AM64X_IOPAD(0x0268, PI 208 AM64X_IOPAD(0x026c, PI 209 >; 210 }; 211 212 main_mcan0_default_pins: main-mcan0-de 213 pinctrl-single,pins = < 214 AM64X_IOPAD(0x0254, PI 215 AM64X_IOPAD(0x0250, PI 216 >; 217 }; 218 219 main_mcan1_default_pins: main-mcan1-de 220 pinctrl-single,pins = < 221 AM64X_IOPAD(0x025c, PI 222 AM64X_IOPAD(0x0258, PI 223 >; 224 }; 225 226 main_uart3_default_pins: main-uart3-de 227 pinctrl-single,pins = < 228 AM64X_IOPAD(0x016c, PI 229 AM64X_IOPAD(0x0170, PI 230 AM64X_IOPAD(0x0174, PI 231 AM64X_IOPAD(0x01ac, PI 232 >; 233 }; 234 235 pcie0_default_pins: pcie0-default-pins 236 pinctrl-single,pins = < 237 /* connector M2 RESET 238 AM64X_IOPAD(0x0030, PI 239 /* connectors M1 & M2 240 AM64X_IOPAD(0x0084, PI 241 /* connectors M1 & M2 242 AM64X_IOPAD(0x008c, PI 243 /* connectors M1 & M2 244 AM64X_IOPAD(0x019c, PI 245 /* connector M1 CLKREQ 246 AM64X_IOPAD(0x018c, PI 247 /* connector M2 CLKREQ 248 AM64X_IOPAD(0x01ec, PI 249 >; 250 }; 251 252 regulator_pcie_3v3_default_pins: regul 253 pinctrl-single,pins = < 254 AM64X_IOPAD(0x01a4, PI 255 >; 256 }; 257 258 regulator_vpp_1v8_default_pins: regula 259 pinctrl-single,pins = < 260 AM64X_IOPAD(0x029c, PI 261 >; 262 }; 263 264 rtc_int_default_pins: rtc-int-default- 265 pinctrl-single,pins = < 266 /* external pull-up on 267 AM64X_IOPAD(0x00b4, PI 268 >; 269 }; 270 271 serdes_mux_default_pins: serdes-mux-de 272 pinctrl-single,pins = < 273 /* SEL, 10k pull-down 274 AM64X_IOPAD(0x0200, PI 275 /* EN */ 276 AM64X_IOPAD(0x0204, PI 277 >; 278 }; 279 }; 280 281 &main_uart3 { 282 pinctrl-names = "default"; 283 pinctrl-0 = <&main_uart3_default_pins> 284 uart-has-rtscts; 285 linux,rs485-enabled-at-boot-time; 286 status = "okay"; 287 }; 288 289 &usb0 { 290 dr_mode = "host"; 291 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.