~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/scripts/dtc/include-prefixes/arm64/ti/k3-am62x-phyboard-lyra.dtsi

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: GPL-2.0-only OR MIT
  2 /*
  3  * Copyright (C) 2022-2024 PHYTEC Messtechnik GmbH
  4  * Author: Wadim Egorov <w.egorov@phytec.de>
  5  *
  6  */
  7 
  8 #include <dt-bindings/gpio/gpio.h>
  9 #include <dt-bindings/input/input.h>
 10 #include <dt-bindings/leds/common.h>
 11 #include <dt-bindings/net/ti-dp83867.h>
 12 
 13 / {
 14         aliases {
 15                 serial2 = &main_uart0;
 16                 serial3 = &main_uart1;
 17                 mmc1 = &sdhci1;
 18                 usb0 = &usb0;
 19                 usb1 = &usb1;
 20                 ethernet1 = &cpsw_port2;
 21         };
 22 
 23         can_tc1: can-phy0 {
 24                 compatible = "ti,tcan1042";
 25                 #phy-cells = <0>;
 26                 max-bitrate = <8000000>;
 27                 standby-gpios = <&gpio_exp 1 GPIO_ACTIVE_HIGH>;
 28         };
 29 
 30         hdmi0: connector-hdmi {
 31                 compatible = "hdmi-connector";
 32                 label = "hdmi";
 33                 type = "a";
 34 
 35                 port {
 36                         hdmi_connector_in: endpoint {
 37                                 remote-endpoint = <&sii9022_out>;
 38                         };
 39                 };
 40         };
 41 
 42         keys {
 43                 compatible = "gpio-keys";
 44                 autorepeat;
 45                 pinctrl-names = "default";
 46                 pinctrl-0 = <&gpio_keys_pins_default>;
 47 
 48                 key-home {
 49                         label = "home";
 50                         linux,code = <KEY_HOME>;
 51                         gpios = <&main_gpio1 23 GPIO_ACTIVE_HIGH>;
 52                 };
 53 
 54                 key-menu {
 55                         label = "menu";
 56                         linux,code = <KEY_MENU>;
 57                         gpios = <&gpio_exp 4 GPIO_ACTIVE_HIGH>;
 58                 };
 59         };
 60 
 61         sound {
 62                 compatible = "simple-audio-card";
 63                 simple-audio-card,name = "phyBOARD-Lyra";
 64                 simple-audio-card,widgets =
 65                         "Microphone",           "Mic Jack",
 66                         "Headphone",            "Headphone Jack",
 67                         "Speaker",              "External Speaker";
 68                 simple-audio-card,routing =
 69                         "MIC3R",                "Mic Jack",
 70                         "Mic Jack",             "Mic Bias",
 71                         "Headphone Jack",       "HPLOUT",
 72                         "Headphone Jack",       "HPROUT",
 73                         "External Speaker",     "SPOP",
 74                         "External Speaker",     "SPOM";
 75                 simple-audio-card,format = "dsp_b";
 76                 simple-audio-card,bitclock-master = <&sound_master>;
 77                 simple-audio-card,frame-master = <&sound_master>;
 78                 simple-audio-card,bitclock-inversion;
 79 
 80                 simple-audio-card,cpu {
 81                         sound-dai = <&mcasp2>;
 82                 };
 83 
 84                 sound_master: simple-audio-card,codec {
 85                                 sound-dai = <&audio_codec>;
 86                                 clocks = <&audio_refclk1>;
 87                 };
 88         };
 89 
 90         leds {
 91                 compatible = "gpio-leds";
 92                 pinctrl-names = "default";
 93                 pinctrl-0 = <&leds_pins_default>, <&user_leds_pins_default>;
 94 
 95                 led-1 {
 96                         gpios = <&main_gpio0 32 GPIO_ACTIVE_HIGH>;
 97                         linux,default-trigger = "mmc0";
 98                 };
 99 
100                 led-2 {
101                         gpios = <&gpio_exp 2 GPIO_ACTIVE_HIGH>;
102                         linux,default-trigger = "mmc1";
103                 };
104         };
105 
106         vcc_1v8: regulator-vcc-1v8 {
107                 compatible = "regulator-fixed";
108                 regulator-name = "VCC_1V8";
109                 regulator-min-microvolt = <1800000>;
110                 regulator-max-microvolt = <1800000>;
111                 regulator-always-on;
112                 regulator-boot-on;
113         };
114 
115         vcc_3v3_mmc: regulator-vcc-3v3-mmc {
116                 compatible = "regulator-fixed";
117                 regulator-name = "VCC_3V3_MMC";
118                 regulator-min-microvolt = <3300000>;
119                 regulator-max-microvolt = <3300000>;
120                 regulator-always-on;
121                 regulator-boot-on;
122         };
123 
124         vcc_3v3_sw: regulator-vcc-3v3-sw {
125                 compatible = "regulator-fixed";
126                 regulator-name = "VCC_3V3_SW";
127                 regulator-min-microvolt = <3300000>;
128                 regulator-max-microvolt = <3300000>;
129                 regulator-always-on;
130                 regulator-boot-on;
131         };
132 };
133 
134 &main_pmx0 {
135         audio_ext_refclk1_pins_default: audio-ext-refclk1-default-pins {
136                 pinctrl-single,pins = <
137                         AM62X_IOPAD(0x0a0, PIN_OUTPUT, 1) /* (K25) GPMC0_WPn.AUDIO_EXT_REFCLK1 */
138                 >;
139         };
140 
141         gpio_keys_pins_default: gpio-keys-default-pins {
142                 pinctrl-single,pins = <
143                         AM62X_IOPAD(0x1d4, PIN_INPUT, 7) /* (B15) UART0_RTSn.GPIO1_23 */
144                 >;
145         };
146 
147         gpio_exp_int_pins_default: gpio-exp-int-default-pins {
148                 pinctrl-single,pins = <
149                         AM62X_IOPAD(0x244, PIN_INPUT, 7) /* (C17) MMC1_SDWP.GPIO1_49 */
150                 >;
151         };
152 
153         hdmi_int_pins_default: hdmi-int-default-pins {
154                 pinctrl-single,pins = <
155                         AM62X_IOPAD(0x040, PIN_INPUT, 7) /* (N23) GPMC0_AD1.GPIO0_16 */
156                 >;
157         };
158 
159         main_dss0_pins_default: main-dss0-default-pins {
160                 pinctrl-single,pins = <
161                         AM62X_IOPAD(0x0b8, PIN_OUTPUT, 0) /* (U22) VOUT0_DATA0 */
162                         AM62X_IOPAD(0x0bc, PIN_OUTPUT, 0) /* (V24) VOUT0_DATA1 */
163                         AM62X_IOPAD(0x0e0, PIN_OUTPUT, 0) /* (V20) VOUT0_DATA10 */
164                         AM62X_IOPAD(0x0e4, PIN_OUTPUT, 0) /* (AA23) VOUT0_DATA11 */
165                         AM62X_IOPAD(0x0e8, PIN_OUTPUT, 0) /* (AB25) VOUT0_DATA12 */
166                         AM62X_IOPAD(0x0ec, PIN_OUTPUT, 0) /* (AA24) VOUT0_DATA13 */
167                         AM62X_IOPAD(0x0f0, PIN_OUTPUT, 0) /* (Y22) VOUT0_DATA14 */
168                         AM62X_IOPAD(0x0f4, PIN_OUTPUT, 0) /* (AA21) VOUT0_DATA15 */
169                         AM62X_IOPAD(0x0c0, PIN_OUTPUT, 0) /* (W25) VOUT0_DATA2 */
170                         AM62X_IOPAD(0x0c4, PIN_OUTPUT, 0) /* (W24) VOUT0_DATA3 */
171                         AM62X_IOPAD(0x0c8, PIN_OUTPUT, 0) /* (Y25) VOUT0_DATA4 */
172                         AM62X_IOPAD(0x0cc, PIN_OUTPUT, 0) /* (Y24) VOUT0_DATA5 */
173                         AM62X_IOPAD(0x0d0, PIN_OUTPUT, 0) /* (Y23) VOUT0_DATA6 */
174                         AM62X_IOPAD(0x0d4, PIN_OUTPUT, 0) /* (AA25) VOUT0_DATA7 */
175                         AM62X_IOPAD(0x0d8, PIN_OUTPUT, 0) /* (V21) VOUT0_DATA8 */
176                         AM62X_IOPAD(0x0dc, PIN_OUTPUT, 0) /* (W21) VOUT0_DATA9 */
177                         AM62X_IOPAD(0x0fc, PIN_OUTPUT, 0) /* (Y20) VOUT0_DE */
178                         AM62X_IOPAD(0x0f8, PIN_OUTPUT, 0) /* (AB24) VOUT0_HSYNC */
179                         AM62X_IOPAD(0x104, PIN_OUTPUT, 0) /* (AC24) VOUT0_PCLK */
180                         AM62X_IOPAD(0x100, PIN_OUTPUT, 0) /* (AC25) VOUT0_VSYNC */
181                 >;
182         };
183 
184         main_i2c1_pins_default: main-i2c1-default-pins {
185                 pinctrl-single,pins = <
186                         AM62X_IOPAD(0x1e8, PIN_INPUT_PULLUP, 0) /* (B17) I2C1_SCL */
187                         AM62X_IOPAD(0x1ec, PIN_INPUT_PULLUP, 0) /* (A17) I2C1_SDA */
188                 >;
189         };
190 
191         main_mcan0_pins_default: main-mcan0-default-pins {
192                 pinctrl-single,pins = <
193                         AM62X_IOPAD(0x1dc, PIN_INPUT, 0) /* (E15) MCAN0_RX */
194                         AM62X_IOPAD(0x1d8, PIN_OUTPUT, 0) /* (C15) MCAN0_TX */
195                 >;
196         };
197 
198         main_mcasp2_pins_default: main-mcasp2-default-pins {
199                 pinctrl-single,pins = <
200                         AM62X_IOPAD(0x070, PIN_INPUT, 3) /* (T24) GPMC0_AD13.MCASP2_ACLKX */
201                         AM62X_IOPAD(0x06c, PIN_INPUT, 3) /* (T22) GPMC0_AD12.MCASP2_AFSX */
202                         AM62X_IOPAD(0x064, PIN_OUTPUT, 3) /* (T25) GPMC0_AD10.MCASP2_AXR2 */
203                         AM62X_IOPAD(0x068, PIN_INPUT, 3) /* (R21) GPMC0_AD11.MCASP2_AXR3 */
204                 >;
205         };
206 
207         main_mmc1_pins_default: main-mmc1-default-pins {
208                 pinctrl-single,pins = <
209                         AM62X_IOPAD(0x23c, PIN_INPUT_PULLUP, 0) /* (A21) MMC1_CMD */
210                         AM62X_IOPAD(0x234, PIN_INPUT_PULLDOWN, 0) /* (B22) MMC1_CLK */
211                         AM62X_IOPAD(0x230, PIN_INPUT_PULLUP, 0) /* (A22) MMC1_DAT0 */
212                         AM62X_IOPAD(0x22c, PIN_INPUT_PULLUP, 0) /* (B21) MMC1_DAT1 */
213                         AM62X_IOPAD(0x228, PIN_INPUT_PULLUP, 0) /* (C21) MMC1_DAT2 */
214                         AM62X_IOPAD(0x224, PIN_INPUT_PULLUP, 0) /* (D22) MMC1_DAT3 */
215                         AM62X_IOPAD(0x240, PIN_INPUT_PULLUP, 0) /* (D17) MMC1_SDCD */
216                 >;
217         };
218 
219         main_rgmii2_pins_default: main-rgmii2-default-pins {
220                 pinctrl-single,pins = <
221                         AM62X_IOPAD(0x184, PIN_INPUT, 0) /* (AE23) RGMII2_RD0 */
222                         AM62X_IOPAD(0x188, PIN_INPUT, 0) /* (AB20) RGMII2_RD1 */
223                         AM62X_IOPAD(0x18c, PIN_INPUT, 0) /* (AC21) RGMII2_RD2 */
224                         AM62X_IOPAD(0x190, PIN_INPUT, 0) /* (AE22) RGMII2_RD3 */
225                         AM62X_IOPAD(0x180, PIN_INPUT, 0) /* (AD23) RGMII2_RXC */
226                         AM62X_IOPAD(0x17c, PIN_INPUT, 0) /* (AD22) RGMII2_RX_CTL */
227                         AM62X_IOPAD(0x16c, PIN_OUTPUT, 0) /* (Y18) RGMII2_TD0 */
228                         AM62X_IOPAD(0x170, PIN_OUTPUT, 0) /* (AA18) RGMII2_TD1 */
229                         AM62X_IOPAD(0x174, PIN_OUTPUT, 0) /* (AD21) RGMII2_TD2 */
230                         AM62X_IOPAD(0x178, PIN_OUTPUT, 0) /* (AC20) RGMII2_TD3 */
231                         AM62X_IOPAD(0x168, PIN_OUTPUT, 0) /* (AE21) RGMII2_TXC */
232                         AM62X_IOPAD(0x164, PIN_OUTPUT, 0) /* (AA19) RGMII2_TX_CTL */
233                 >;
234         };
235 
236         main_uart0_pins_default: main-uart0-default-pins {
237                 pinctrl-single,pins = <
238                         AM62X_IOPAD(0x1c8, PIN_INPUT, 0) /* (D14) UART0_RXD */
239                         AM62X_IOPAD(0x1cc, PIN_OUTPUT, 0) /* (E14) UART0_TXD */
240                 >;
241         };
242 
243         main_uart1_pins_default: main-uart1-default-pins {
244                 pinctrl-single,pins = <
245                         AM62X_IOPAD(0x194, PIN_INPUT, 2) /* (B19) MCASP0_AXR3.UART1_CTSn */
246                         AM62X_IOPAD(0x198, PIN_OUTPUT, 2) /* (A19) MCASP0_AXR2.UART1_RTSn */
247                         AM62X_IOPAD(0x1ac, PIN_INPUT, 2) /* (E19) MCASP0_AFSR.UART1_RXD */
248                         AM62X_IOPAD(0x1b0, PIN_OUTPUT, 2) /* (A20) MCASP0_ACLKR.UART1_TXD */
249                 >;
250         };
251 
252         main_usb1_pins_default: main-usb1-default-pins {
253                 pinctrl-single,pins = <
254                         AM62X_IOPAD(0x258, PIN_OUTPUT, 0) /* (F18) USB1_DRVVBUS */
255                 >;
256         };
257 
258         user_leds_pins_default: user-leds-default-pins {
259                 pinctrl-single,pins = <
260                         AM62X_IOPAD(0x084, PIN_OUTPUT, 7) /* (L23) GPMC0_ADVn_ALE.GPIO0_32 */
261                 >;
262         };
263 };
264 
265 &cpsw3g {
266         pinctrl-names = "default";
267         pinctrl-0 = <&main_rgmii1_pins_default>, <&main_rgmii2_pins_default>;
268 };
269 
270 &cpsw_port2 {
271         phy-mode = "rgmii-rxid";
272         phy-handle = <&cpsw3g_phy3>;
273 };
274 
275 &cpsw3g_mdio {
276         cpsw3g_phy3: ethernet-phy@3 {
277                 compatible = "ethernet-phy-id2000.a231", "ethernet-phy-ieee802.3-c22";
278                 reg = <3>;
279                 ti,clk-output-sel = <DP83867_CLK_O_SEL_OFF>;
280                 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
281                 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
282         };
283 };
284 
285 &dss {
286         pinctrl-names = "default";
287         pinctrl-0 = <&main_dss0_pins_default>;
288         status = "okay";
289 };
290 
291 &dss_ports {
292         #address-cells = <1>;
293         #size-cells = <0>;
294 
295         /* VP2: DPI/HDMI Output */
296         port@1 {
297                 reg = <1>;
298 
299                 dpi1_out: endpoint {
300                         remote-endpoint = <&sii9022_in>;
301                 };
302         };
303 };
304 
305 &main_i2c1 {
306         pinctrl-names = "default";
307         pinctrl-0 = <&main_i2c1_pins_default>;
308         clock-frequency = <100000>;
309         status = "okay";
310 
311         audio_codec: audio-codec@18 {
312                 pinctrl-names = "default";
313                 pinctrl-0 = <&audio_ext_refclk1_pins_default>;
314 
315                 #sound-dai-cells = <0>;
316                 compatible = "ti,tlv320aic3007";
317                 reg = <0x18>;
318                 ai3x-micbias-vg = <2>;
319 
320                 AVDD-supply = <&vcc_3v3_sw>;
321                 IOVDD-supply = <&vcc_3v3_sw>;
322                 DRVDD-supply = <&vcc_3v3_sw>;
323                 DVDD-supply = <&vcc_1v8>;
324         };
325 
326         gpio_exp: gpio-expander@21 {
327                 pinctrl-names = "default";
328                 pinctrl-0 = <&gpio_exp_int_pins_default>;
329                 compatible = "nxp,pcf8574";
330                 reg = <0x21>;
331                 interrupt-parent = <&main_gpio1>;
332                 interrupts = <49 0>;
333                 #gpio-cells = <2>;
334                 gpio-controller;
335                 interrupt-controller;
336                 #interrupt-cells = <2>;
337                 gpio-line-names = "", "GPIO1_CAN0_nEN",
338                                   "GPIO2_LED2", "GPIO3_LVDS_GPIO",
339                                   "GPIO4_BUT2", "GPIO5_LVDS_BKLT_EN",
340                                   "GPIO6_ETH1_USER_RESET", "GPIO7_AUDIO_USER_RESET";
341         };
342 
343         usb-pd@22 {
344                 compatible = "ti,tps6598x";
345                 reg = <0x22>;
346 
347                 connector {
348                         compatible = "usb-c-connector";
349                         label = "USB-C";
350                         self-powered;
351                         data-role = "dual";
352                         power-role = "sink";
353                         port {
354                                 usb_con_hs: endpoint {
355                                         remote-endpoint = <&typec_hs>;
356                                 };
357                         };
358                 };
359         };
360 
361         sii9022: bridge-hdmi@39 {
362                 compatible = "sil,sii9022";
363                 reg = <0x39>;
364 
365                 interrupt-parent = <&main_gpio0>;
366                 interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
367                 pinctrl-names = "default";
368                 pinctrl-0 = <&hdmi_int_pins_default>;
369 
370                 ports {
371                         #address-cells = <1>;
372                         #size-cells = <0>;
373 
374                         port@0 {
375                                 reg = <0>;
376 
377                                 sii9022_in: endpoint {
378                                         remote-endpoint = <&dpi1_out>;
379                                 };
380                         };
381 
382                         port@1 {
383                                 reg = <1>;
384 
385                                 sii9022_out: endpoint {
386                                         remote-endpoint = <&hdmi_connector_in>;
387                                 };
388                         };
389                 };
390         };
391 
392         eeprom@51 {
393                 compatible = "atmel,24c02";
394                 pagesize = <16>;
395                 reg = <0x51>;
396         };
397 };
398 
399 &main_mcan0 {
400         pinctrl-names = "default";
401         pinctrl-0 = <&main_mcan0_pins_default>;
402         phys = <&can_tc1>;
403         status = "okay";
404 };
405 
406 &main_uart0 {
407         pinctrl-names = "default";
408         pinctrl-0 = <&main_uart0_pins_default>;
409         status = "okay";
410 };
411 
412 &main_uart1 {
413         pinctrl-names = "default";
414         pinctrl-0 = <&main_uart1_pins_default>;
415         /* Main UART1 may be used by TIFS firmware */
416         status = "okay";
417 };
418 
419 &mcasp2 {
420         #sound-dai-cells = <0>;
421 
422         pinctrl-names = "default";
423         pinctrl-0 = <&main_mcasp2_pins_default>;
424 
425         /* MCASP_IIS_MODE */
426         op-mode = <0>;
427         tdm-slots = <2>;
428 
429         /* 0: INACTIVE, 1: TX, 2: RX */
430         serial-dir = <
431                         0 0 1 2
432                         0 0 0 0
433                         0 0 0 0
434                         0 0 0 0
435         >;
436         tx-num-evt = <32>;
437         rx-num-evt = <32>;
438         status = "okay";
439 };
440 
441 &sdhci1 {
442         vmmc-supply = <&vcc_3v3_mmc>;
443         vqmmc-supply = <&vddshv5_sdio>;
444         pinctrl-names = "default";
445         pinctrl-0 = <&main_mmc1_pins_default>;
446         disable-wp;
447         no-1-8-v;
448         status = "okay";
449 };
450 
451 &usbss0 {
452         ti,vbus-divider;
453         status = "okay";
454 };
455 
456 &usbss1 {
457         ti,vbus-divider;
458         status = "okay";
459 };
460 
461 &usb0 {
462         usb-role-switch;
463 
464         port {
465                 typec_hs: endpoint {
466                         remote-endpoint = <&usb_con_hs>;
467                 };
468         };
469 };
470 
471 &usb1 {
472         dr_mode = "host";
473         pinctrl-names = "default";
474         pinctrl-0 = <&main_usb1_pins_default>;
475 };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php