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