1 // SPDX-License-Identifier: GPL-2.0-or-later O 2 /* 3 * Copyright 2023 Toradex 4 * 5 * Common dtsi for Verdin AM62 SoM on Dahlia c 6 * 7 * https://www.toradex.com/computer-on-modules 8 * https://www.toradex.com/products/carrier-bo 9 */ 10 11 / { 12 reg_1v8_sw: regulator-1v8-sw { 13 compatible = "regulator-fixed" 14 regulator-max-microvolt = <180 15 regulator-min-microvolt = <180 16 regulator-name = "On-carrier + 17 }; 18 19 sound { 20 compatible = "simple-audio-car 21 simple-audio-card,bitclock-mas 22 simple-audio-card,format = "i2 23 simple-audio-card,frame-master 24 simple-audio-card,name = "verd 25 simple-audio-card,mclk-fs = <2 26 simple-audio-card,routing = 27 "Headphone Jack", "HPO 28 "Headphone Jack", "HPO 29 "IN2L", "Line In Jack" 30 "IN2R", "Line In Jack" 31 "Headphone Jack", "MIC 32 "IN1L", "Headphone Jac 33 simple-audio-card,widgets = 34 "Microphone", "Headpho 35 "Headphone", "Headphon 36 "Line", "Line In Jack" 37 38 codec_dai: simple-audio-card,c 39 sound-dai = <&wm8904_1 40 }; 41 42 simple-audio-card,cpu { 43 sound-dai = <&mcasp0>; 44 }; 45 }; 46 }; 47 48 /* Verdin ETHs */ 49 &cpsw3g { 50 status = "okay"; 51 }; 52 53 /* MDIO, shared by Verdin ETH_1 (On-module PHY 54 &cpsw3g_mdio { 55 status = "okay"; 56 }; 57 58 /* Verdin ETH_1 (On-module PHY) */ 59 &cpsw_port1 { 60 status = "okay"; 61 }; 62 63 /* Verdin PWM_1, PWM_2 */ 64 &epwm0 { 65 status = "okay"; 66 }; 67 68 /* Verdin PWM_3_DSI */ 69 &epwm1 { 70 status = "okay"; 71 }; 72 73 &main_gpio0 { 74 pinctrl-names = "default"; 75 pinctrl-0 = <&pinctrl_ctrl_sleep_moci> 76 <&pinctrl_gpio_5>, 77 <&pinctrl_gpio_6>, 78 <&pinctrl_gpio_7>, 79 <&pinctrl_gpio_8>; 80 }; 81 82 /* Verdin I2C_1 */ 83 &main_i2c1 { 84 status = "okay"; 85 86 /* Audio Codec */ 87 wm8904_1a: audio-codec@1a { 88 compatible = "wlf,wm8904"; 89 reg = <0x1a>; 90 pinctrl-names = "default"; 91 pinctrl-0 = <&pinctrl_i2s1_mcl 92 #sound-dai-cells = <0>; 93 clocks = <&audio_refclk1>; 94 clock-names = "mclk"; 95 AVDD-supply = <®_1v8_sw>; 96 CPVDD-supply = <®_1v8_sw>; 97 DBVDD-supply = <®_1v8_sw>; 98 DCVDD-supply = <®_1v8_sw>; 99 MICVDD-supply = <®_1v8_sw>; 100 }; 101 102 /* Current measurement into module VCC 103 hwmon@40 { 104 compatible = "ti,ina219"; 105 reg = <0x40>; 106 shunt-resistor = <10000>; 107 }; 108 109 /* Temperature sensor */ 110 sensor@4f { 111 compatible = "ti,tmp75c"; 112 reg = <0x4f>; 113 }; 114 115 /* EEPROM */ 116 eeprom@57 { 117 compatible = "st,24c02"; 118 reg = <0x57>; 119 pagesize = <16>; 120 }; 121 }; 122 123 /* Verdin I2C_2_DSI */ 124 &main_i2c2 { 125 status = "okay"; 126 }; 127 128 /* Verdin I2C_4_CSI */ 129 &main_i2c3 { 130 status = "okay"; 131 }; 132 133 /* Verdin CAN_1 */ 134 &main_mcan0 { 135 status = "okay"; 136 }; 137 138 /* Verdin SPI_1 */ 139 &main_spi1 { 140 status = "okay"; 141 }; 142 143 /* Verdin UART_3 */ 144 &main_uart0 { 145 status = "okay"; 146 }; 147 148 /* Verdin UART_1 */ 149 &main_uart1 { 150 status = "okay"; 151 }; 152 153 /* Verdin I2S_1 */ 154 &mcasp0 { 155 status = "okay"; 156 }; 157 158 &mcu_gpio0 { 159 pinctrl-names = "default"; 160 pinctrl-0 = <&pinctrl_gpio_1>, 161 <&pinctrl_gpio_2>, 162 <&pinctrl_gpio_3>, 163 <&pinctrl_gpio_4>, 164 <&pinctrl_pcie_1_reset>; 165 }; 166 167 /* Verdin I2C_3_HDMI */ 168 &mcu_i2c0 { 169 status = "okay"; 170 }; 171 172 /* Verdin CAN_2 */ 173 &mcu_mcan0 { 174 status = "okay"; 175 }; 176 177 /* Verdin UART_4 */ 178 &mcu_uart0 { 179 status = "okay"; 180 }; 181 182 /* Verdin QSPI_1 */ 183 &ospi0 { 184 status = "okay"; 185 }; 186 187 /* Verdin SD_1 */ 188 &sdhci1 { 189 status = "okay"; 190 }; 191 192 /* Verdin USB_1 */ 193 &usbss0 { 194 status = "okay"; 195 }; 196 197 &usb0 { 198 status = "okay"; 199 }; 200 201 /* Verdin USB_2 */ 202 &usbss1 { 203 status = "okay"; 204 }; 205 206 &usb1 { 207 status = "okay"; 208 }; 209 210 /* Verdin CTRL_WAKE1_MICO# */ 211 &verdin_gpio_keys { 212 status = "okay"; 213 }; 214 215 /* Verdin PCIE_1_RESET# */ 216 &verdin_pcie_1_reset_hog { 217 status = "okay"; 218 }; 219 220 /* Verdin UART_2 */ 221 &wkup_uart0 { 222 status = "okay"; 223 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.