1f5a731f0SRobert Nelson// SPDX-License-Identifier: GPL-2.0 2f5a731f0SRobert Nelson/* 3f5a731f0SRobert Nelson * https://beagleplay.org/ 4f5a731f0SRobert Nelson * 5f5a731f0SRobert Nelson * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/ 6f5a731f0SRobert Nelson * Copyright (C) 2022-2023 Robert Nelson, BeagleBoard.org Foundation 7f5a731f0SRobert Nelson */ 8f5a731f0SRobert Nelson 9f5a731f0SRobert Nelson/dts-v1/; 10f5a731f0SRobert Nelson 11f5a731f0SRobert Nelson#include <dt-bindings/leds/common.h> 12f5a731f0SRobert Nelson#include <dt-bindings/gpio/gpio.h> 13f5a731f0SRobert Nelson#include <dt-bindings/input/input.h> 14f5a731f0SRobert Nelson#include "k3-am625.dtsi" 15f5a731f0SRobert Nelson 16f5a731f0SRobert Nelson/ { 17f5a731f0SRobert Nelson compatible = "beagle,am625-beagleplay", "ti,am625"; 18f5a731f0SRobert Nelson model = "BeagleBoard.org BeaglePlay"; 19f5a731f0SRobert Nelson 20f5a731f0SRobert Nelson aliases { 21f5a731f0SRobert Nelson ethernet0 = &cpsw_port1; 22f5a731f0SRobert Nelson ethernet1 = &cpsw_port2; 23f5a731f0SRobert Nelson gpio0 = &main_gpio0; 24f5a731f0SRobert Nelson gpio1 = &main_gpio1; 25f5a731f0SRobert Nelson gpio2 = &mcu_gpio0; 26f5a731f0SRobert Nelson i2c0 = &main_i2c0; 27f5a731f0SRobert Nelson i2c1 = &main_i2c1; 28f5a731f0SRobert Nelson i2c2 = &main_i2c2; 29f5a731f0SRobert Nelson i2c3 = &main_i2c3; 30f5a731f0SRobert Nelson i2c4 = &wkup_i2c0; 31f5a731f0SRobert Nelson i2c5 = &mcu_i2c0; 32f5a731f0SRobert Nelson mdio-gpio0 = &mdio0; 33f5a731f0SRobert Nelson mmc0 = &sdhci0; 34f5a731f0SRobert Nelson mmc1 = &sdhci1; 35f5a731f0SRobert Nelson mmc2 = &sdhci2; 36f5a731f0SRobert Nelson rtc0 = &rtc; 37f5a731f0SRobert Nelson serial0 = &main_uart5; 38f5a731f0SRobert Nelson serial1 = &main_uart6; 39f5a731f0SRobert Nelson serial2 = &main_uart0; 40f5a731f0SRobert Nelson usb0 = &usb0; 41f5a731f0SRobert Nelson usb1 = &usb1; 42f5a731f0SRobert Nelson }; 43f5a731f0SRobert Nelson 44f5a731f0SRobert Nelson chosen { 45f5a731f0SRobert Nelson stdout-path = "serial2:115200n8"; 46f5a731f0SRobert Nelson }; 47f5a731f0SRobert Nelson 48f5a731f0SRobert Nelson memory@80000000 { 49f5a731f0SRobert Nelson device_type = "memory"; 50f5a731f0SRobert Nelson /* 2G RAM */ 51f5a731f0SRobert Nelson reg = <0x00000000 0x80000000 0x00000000 0x80000000>; 52f5a731f0SRobert Nelson }; 53f5a731f0SRobert Nelson 54f5a731f0SRobert Nelson reserved-memory { 55f5a731f0SRobert Nelson #address-cells = <2>; 56f5a731f0SRobert Nelson #size-cells = <2>; 57f5a731f0SRobert Nelson ranges; 58f5a731f0SRobert Nelson 59f5a731f0SRobert Nelson ramoops: ramoops@9ca00000 { 60f5a731f0SRobert Nelson compatible = "ramoops"; 61*270307daSWadim Egorov reg = <0x00 0x9ca00000 0x00 0x00100000>; 62f5a731f0SRobert Nelson record-size = <0x8000>; 63f5a731f0SRobert Nelson console-size = <0x8000>; 64f5a731f0SRobert Nelson ftrace-size = <0x00>; 65f5a731f0SRobert Nelson pmsg-size = <0x8000>; 66f5a731f0SRobert Nelson }; 67f5a731f0SRobert Nelson 68f5a731f0SRobert Nelson secure_tfa_ddr: tfa@9e780000 { 69f5a731f0SRobert Nelson reg = <0x00 0x9e780000 0x00 0x80000>; 70f5a731f0SRobert Nelson no-map; 71f5a731f0SRobert Nelson }; 72f5a731f0SRobert Nelson 73f5a731f0SRobert Nelson secure_ddr: optee@9e800000 { 74f5a731f0SRobert Nelson reg = <0x00 0x9e800000 0x00 0x01800000>; 75f5a731f0SRobert Nelson no-map; 76f5a731f0SRobert Nelson }; 77f5a731f0SRobert Nelson 78f5a731f0SRobert Nelson wkup_r5fss0_core0_dma_memory_region: r5f-dma-memory@9db00000 { 79f5a731f0SRobert Nelson compatible = "shared-dma-pool"; 80f5a731f0SRobert Nelson reg = <0x00 0x9db00000 0x00 0xc00000>; 81f5a731f0SRobert Nelson no-map; 82f5a731f0SRobert Nelson }; 83f5a731f0SRobert Nelson }; 84f5a731f0SRobert Nelson 85f5a731f0SRobert Nelson vsys_5v0: regulator-1 { 86f5a731f0SRobert Nelson compatible = "regulator-fixed"; 87f5a731f0SRobert Nelson regulator-name = "vsys_5v0"; 88f5a731f0SRobert Nelson regulator-min-microvolt = <5000000>; 89f5a731f0SRobert Nelson regulator-max-microvolt = <5000000>; 90f5a731f0SRobert Nelson regulator-always-on; 91f5a731f0SRobert Nelson regulator-boot-on; 92f5a731f0SRobert Nelson }; 93f5a731f0SRobert Nelson 94f5a731f0SRobert Nelson vdd_3v3: regulator-2 { 95f5a731f0SRobert Nelson /* output of TLV62595DMQR-U12 */ 96f5a731f0SRobert Nelson compatible = "regulator-fixed"; 97f5a731f0SRobert Nelson regulator-name = "vdd_3v3"; 98f5a731f0SRobert Nelson regulator-min-microvolt = <3300000>; 99f5a731f0SRobert Nelson regulator-max-microvolt = <3300000>; 100f5a731f0SRobert Nelson vin-supply = <&vsys_5v0>; 101f5a731f0SRobert Nelson regulator-always-on; 102f5a731f0SRobert Nelson regulator-boot-on; 103f5a731f0SRobert Nelson }; 104f5a731f0SRobert Nelson 105f5a731f0SRobert Nelson wlan_en: regulator-3 { 106f5a731f0SRobert Nelson /* OUTPUT of SN74AVC2T244DQMR */ 107f5a731f0SRobert Nelson compatible = "regulator-fixed"; 108f5a731f0SRobert Nelson regulator-name = "wlan_en"; 109f5a731f0SRobert Nelson regulator-min-microvolt = <1800000>; 110f5a731f0SRobert Nelson regulator-max-microvolt = <1800000>; 111f5a731f0SRobert Nelson enable-active-high; 112f5a731f0SRobert Nelson regulator-always-on; 113f5a731f0SRobert Nelson vin-supply = <&vdd_3v3>; 114f5a731f0SRobert Nelson gpio = <&main_gpio0 38 GPIO_ACTIVE_HIGH>; 115f5a731f0SRobert Nelson pinctrl-names = "default"; 116f5a731f0SRobert Nelson pinctrl-0 = <&wifi_en_pins_default>; 117f5a731f0SRobert Nelson }; 118f5a731f0SRobert Nelson 119f5a731f0SRobert Nelson vdd_3v3_sd: regulator-4 { 120f5a731f0SRobert Nelson /* output of TPS22918DBVR-U21 */ 121f5a731f0SRobert Nelson pinctrl-names = "default"; 122f5a731f0SRobert Nelson pinctrl-0 = <&vdd_3v3_sd_pins_default>; 123f5a731f0SRobert Nelson 124f5a731f0SRobert Nelson compatible = "regulator-fixed"; 125f5a731f0SRobert Nelson regulator-name = "vdd_3v3_sd"; 126f5a731f0SRobert Nelson regulator-min-microvolt = <3300000>; 127f5a731f0SRobert Nelson regulator-max-microvolt = <3300000>; 128f5a731f0SRobert Nelson enable-active-high; 129f5a731f0SRobert Nelson regulator-always-on; 130f5a731f0SRobert Nelson vin-supply = <&vdd_3v3>; 131f5a731f0SRobert Nelson gpio = <&main_gpio1 19 GPIO_ACTIVE_HIGH>; 132f5a731f0SRobert Nelson }; 133f5a731f0SRobert Nelson 134f5a731f0SRobert Nelson vdd_sd_dv: regulator-5 { 135f5a731f0SRobert Nelson compatible = "regulator-gpio"; 136f5a731f0SRobert Nelson regulator-name = "sd_hs200_switch"; 137f5a731f0SRobert Nelson pinctrl-names = "default"; 138f5a731f0SRobert Nelson pinctrl-0 = <&vdd_sd_dv_pins_default>; 139f5a731f0SRobert Nelson regulator-min-microvolt = <1800000>; 140f5a731f0SRobert Nelson regulator-max-microvolt = <3300000>; 141f5a731f0SRobert Nelson regulator-boot-on; 142f5a731f0SRobert Nelson vin-supply = <&ldo1_reg>; 143f5a731f0SRobert Nelson gpios = <&main_gpio1 49 GPIO_ACTIVE_HIGH>; 144f5a731f0SRobert Nelson states = <1800000 0x0>, 145f5a731f0SRobert Nelson <3300000 0x1>; 146f5a731f0SRobert Nelson }; 147f5a731f0SRobert Nelson 148f5a731f0SRobert Nelson leds { 149f5a731f0SRobert Nelson compatible = "gpio-leds"; 150f5a731f0SRobert Nelson 151f5a731f0SRobert Nelson led-0 { 152f5a731f0SRobert Nelson gpios = <&main_gpio0 3 GPIO_ACTIVE_HIGH>; 153f5a731f0SRobert Nelson linux,default-trigger = "heartbeat"; 154f5a731f0SRobert Nelson function = LED_FUNCTION_HEARTBEAT; 155f5a731f0SRobert Nelson default-state = "off"; 156f5a731f0SRobert Nelson }; 157f5a731f0SRobert Nelson 158f5a731f0SRobert Nelson led-1 { 159f5a731f0SRobert Nelson gpios = <&main_gpio0 4 GPIO_ACTIVE_HIGH>; 160f5a731f0SRobert Nelson linux,default-trigger = "disk-activity"; 161f5a731f0SRobert Nelson function = LED_FUNCTION_DISK_ACTIVITY; 162f5a731f0SRobert Nelson default-state = "keep"; 163f5a731f0SRobert Nelson }; 164f5a731f0SRobert Nelson 165f5a731f0SRobert Nelson led-2 { 166f5a731f0SRobert Nelson gpios = <&main_gpio0 5 GPIO_ACTIVE_HIGH>; 167f5a731f0SRobert Nelson function = LED_FUNCTION_CPU; 168f5a731f0SRobert Nelson }; 169f5a731f0SRobert Nelson 170f5a731f0SRobert Nelson led-3 { 171f5a731f0SRobert Nelson gpios = <&main_gpio0 6 GPIO_ACTIVE_HIGH>; 172f5a731f0SRobert Nelson function = LED_FUNCTION_LAN; 173f5a731f0SRobert Nelson }; 174f5a731f0SRobert Nelson 175f5a731f0SRobert Nelson led-4 { 176f5a731f0SRobert Nelson gpios = <&main_gpio0 9 GPIO_ACTIVE_HIGH>; 177f5a731f0SRobert Nelson function = LED_FUNCTION_WLAN; 178f5a731f0SRobert Nelson }; 179f5a731f0SRobert Nelson }; 180f5a731f0SRobert Nelson 181f5a731f0SRobert Nelson gpio_keys: gpio-keys { 182f5a731f0SRobert Nelson compatible = "gpio-keys"; 183f5a731f0SRobert Nelson autorepeat; 184f5a731f0SRobert Nelson pinctrl-names = "default"; 185f5a731f0SRobert Nelson pinctrl-0 = <&usr_button_pins_default>; 186f5a731f0SRobert Nelson 187f5a731f0SRobert Nelson usr: button-usr { 188f5a731f0SRobert Nelson label = "User Key"; 189f5a731f0SRobert Nelson linux,code = <BTN_0>; 190f5a731f0SRobert Nelson gpios = <&main_gpio0 18 GPIO_ACTIVE_LOW>; 191f5a731f0SRobert Nelson }; 192f5a731f0SRobert Nelson 193f5a731f0SRobert Nelson }; 194f5a731f0SRobert Nelson 1951f7226a5SNishanth Menon hdmi0: connector-hdmi { 1961f7226a5SNishanth Menon compatible = "hdmi-connector"; 1971f7226a5SNishanth Menon label = "hdmi"; 1981f7226a5SNishanth Menon type = "a"; 1991f7226a5SNishanth Menon port { 2001f7226a5SNishanth Menon hdmi_connector_in: endpoint { 2011f7226a5SNishanth Menon remote-endpoint = <&it66121_out>; 2021f7226a5SNishanth Menon }; 2031f7226a5SNishanth Menon }; 2041f7226a5SNishanth Menon }; 2051f7226a5SNishanth Menon 2061f7226a5SNishanth Menon sound { 2071f7226a5SNishanth Menon compatible = "simple-audio-card"; 2081f7226a5SNishanth Menon simple-audio-card,name = "it66121 HDMI"; 2091f7226a5SNishanth Menon simple-audio-card,format = "i2s"; 2101f7226a5SNishanth Menon simple-audio-card,bitclock-master = <&hdmi_dailink_master>; 2111f7226a5SNishanth Menon simple-audio-card,frame-master = <&hdmi_dailink_master>; 2121f7226a5SNishanth Menon 2131f7226a5SNishanth Menon hdmi_dailink_master: simple-audio-card,cpu { 2141f7226a5SNishanth Menon sound-dai = <&mcasp1>; 2151f7226a5SNishanth Menon system-clock-direction-out; 2161f7226a5SNishanth Menon }; 2171f7226a5SNishanth Menon 2181f7226a5SNishanth Menon simple-audio-card,codec { 2191f7226a5SNishanth Menon sound-dai = <&it66121>; 2201f7226a5SNishanth Menon }; 2211f7226a5SNishanth Menon }; 2221f7226a5SNishanth Menon 223f5a731f0SRobert Nelson /* Workaround for errata i2329 - just use mdio bitbang */ 224f5a731f0SRobert Nelson mdio0: mdio { 225f5a731f0SRobert Nelson compatible = "virtual,mdio-gpio"; 226f5a731f0SRobert Nelson pinctrl-names = "default"; 227f5a731f0SRobert Nelson pinctrl-0 = <&mdio0_pins_default>; 228f5a731f0SRobert Nelson gpios = <&main_gpio0 86 GPIO_ACTIVE_HIGH>, /* MDC */ 229f5a731f0SRobert Nelson <&main_gpio0 85 GPIO_ACTIVE_HIGH>; /* MDIO */ 230f5a731f0SRobert Nelson #address-cells = <1>; 231f5a731f0SRobert Nelson #size-cells = <0>; 232f5a731f0SRobert Nelson 233f5a731f0SRobert Nelson cpsw3g_phy0: ethernet-phy@0 { 234f5a731f0SRobert Nelson reg = <0>; 235f5a731f0SRobert Nelson }; 236f5a731f0SRobert Nelson 237f5a731f0SRobert Nelson cpsw3g_phy1: ethernet-phy@1 { 238f5a731f0SRobert Nelson reg = <1>; 239f5a731f0SRobert Nelson reset-gpios = <&main_gpio1 5 GPIO_ACTIVE_LOW>; 240f5a731f0SRobert Nelson reset-assert-us = <25>; 241f5a731f0SRobert Nelson reset-deassert-us = <60000>; /* T2 */ 242f5a731f0SRobert Nelson }; 243f5a731f0SRobert Nelson }; 244f5a731f0SRobert Nelson}; 245f5a731f0SRobert Nelson 246f5a731f0SRobert Nelson&main_pmx0 { 247a4956811STony Lindgren gpio0_pins_default: gpio0-default-pins { 248f5a731f0SRobert Nelson pinctrl-single,pins = < 249f5a731f0SRobert Nelson AM62X_IOPAD(0x0004, PIN_INPUT, 7) /* (G25) OSPI0_LBCLKO.GPIO0_1 */ 250f5a731f0SRobert Nelson AM62X_IOPAD(0x0008, PIN_INPUT, 7) /* (J24) OSPI0_DQS.GPIO0_2 */ 251f5a731f0SRobert Nelson AM62X_IOPAD(0x000c, PIN_INPUT, 7) /* (E25) OSPI0_D0.GPIO0_3 */ 252f5a731f0SRobert Nelson AM62X_IOPAD(0x0010, PIN_INPUT, 7) /* (G24) OSPI0_D1.GPIO0_4 */ 253f5a731f0SRobert Nelson AM62X_IOPAD(0x0014, PIN_INPUT, 7) /* (F25) OSPI0_D2.GPIO0_5 */ 254f5a731f0SRobert Nelson AM62X_IOPAD(0x0018, PIN_INPUT, 7) /* (F24) OSPI0_D3.GPIO0_6 */ 255f5a731f0SRobert Nelson AM62X_IOPAD(0x0024, PIN_INPUT, 7) /* (H25) OSPI0_D6.GPIO0_9 */ 256f5a731f0SRobert Nelson AM62X_IOPAD(0x0028, PIN_INPUT, 7) /* (J22) OSPI0_D7.GPIO0_10 */ 257f5a731f0SRobert Nelson AM62X_IOPAD(0x002c, PIN_INPUT, 7) /* (F23) OSPI0_CSn0.GPIO0_11 */ 258f5a731f0SRobert Nelson AM62X_IOPAD(0x0030, PIN_INPUT, 7) /* (G21) OSPI0_CSn1.GPIO0_12 */ 259f5a731f0SRobert Nelson AM62X_IOPAD(0x0034, PIN_INPUT, 7) /* (H21) OSPI0_CSn2.GPIO0_13 */ 260f5a731f0SRobert Nelson AM62X_IOPAD(0x0038, PIN_INPUT, 7) /* (E24) OSPI0_CSn3.GPIO0_14 */ 261f5a731f0SRobert Nelson AM62X_IOPAD(0x00a4, PIN_INPUT, 7) /* (M22) GPMC0_DIR.GPIO0_40 */ 262f5a731f0SRobert Nelson AM62X_IOPAD(0x00ac, PIN_INPUT, 7) /* (L21) GPMC0_CSn1.GPIO0_42 */ 263f5a731f0SRobert Nelson >; 264f5a731f0SRobert Nelson }; 265f5a731f0SRobert Nelson 266a4956811STony Lindgren vdd_sd_dv_pins_default: vdd-sd-default-pins { 267f5a731f0SRobert Nelson pinctrl-single,pins = < 268f5a731f0SRobert Nelson AM62X_IOPAD(0x0244, PIN_OUTPUT, 7) /* (C17) MMC1_SDWP.GPIO1_49 */ 269f5a731f0SRobert Nelson >; 270f5a731f0SRobert Nelson }; 271f5a731f0SRobert Nelson 272a4956811STony Lindgren usr_button_pins_default: usr-button-default-pins { 273f5a731f0SRobert Nelson pinctrl-single,pins = < 274f5a731f0SRobert Nelson AM62X_IOPAD(0x0048, PIN_INPUT, 7) /* (N25) GPMC0_AD3.GPIO0_18 */ 275f5a731f0SRobert Nelson >; 276f5a731f0SRobert Nelson }; 277f5a731f0SRobert Nelson 278a4956811STony Lindgren grove_pins_default: grove-default-pins { 279f5a731f0SRobert Nelson pinctrl-single,pins = < 280f5a731f0SRobert Nelson AM62X_IOPAD(0x01e8, PIN_INPUT_PULLUP, 0) /* (B17) I2C1_SCL */ 281f5a731f0SRobert Nelson AM62X_IOPAD(0x01ec, PIN_INPUT_PULLUP, 0) /* (A17) I2C1_SDA */ 282f5a731f0SRobert Nelson >; 283f5a731f0SRobert Nelson }; 284f5a731f0SRobert Nelson 285a4956811STony Lindgren local_i2c_pins_default: local-i2c-default-pins { 286f5a731f0SRobert Nelson pinctrl-single,pins = < 287f5a731f0SRobert Nelson AM62X_IOPAD(0x01e0, PIN_INPUT_PULLUP, 0) /* (B16) I2C0_SCL */ 288f5a731f0SRobert Nelson AM62X_IOPAD(0x01e4, PIN_INPUT_PULLUP, 0) /* (A16) I2C0_SDA */ 289f5a731f0SRobert Nelson >; 290f5a731f0SRobert Nelson }; 291f5a731f0SRobert Nelson 292a4956811STony Lindgren i2c2_1v8_pins_default: i2c2-default-pins { 293f5a731f0SRobert Nelson pinctrl-single,pins = < 294f5a731f0SRobert Nelson AM62X_IOPAD(0x00b0, PIN_INPUT_PULLUP, 1) /* (K22) GPMC0_CSn2.I2C2_SCL */ 295f5a731f0SRobert Nelson AM62X_IOPAD(0x00b4, PIN_INPUT_PULLUP, 1) /* (K24) GPMC0_CSn3.I2C2_SDA */ 296f5a731f0SRobert Nelson >; 297f5a731f0SRobert Nelson }; 298f5a731f0SRobert Nelson 299a4956811STony Lindgren mdio0_pins_default: mdio0-default-pins { 300f5a731f0SRobert Nelson pinctrl-single,pins = < 301f5a731f0SRobert Nelson AM62X_IOPAD(0x0160, PIN_OUTPUT, 7) /* (AD24) MDIO0_MDC.GPIO0_86 */ 302f5a731f0SRobert Nelson AM62X_IOPAD(0x015c, PIN_INPUT, 7) /* (AB22) MDIO0_MDIO.GPIO0_85 */ 303f5a731f0SRobert Nelson >; 304f5a731f0SRobert Nelson }; 305f5a731f0SRobert Nelson 306a4956811STony Lindgren rgmii1_pins_default: rgmii1-default-pins { 307f5a731f0SRobert Nelson pinctrl-single,pins = < 308f5a731f0SRobert Nelson AM62X_IOPAD(0x014c, PIN_INPUT, 0) /* (AB17) RGMII1_RD0 */ 309f5a731f0SRobert Nelson AM62X_IOPAD(0x0150, PIN_INPUT, 0) /* (AC17) RGMII1_RD1 */ 310f5a731f0SRobert Nelson AM62X_IOPAD(0x0154, PIN_INPUT, 0) /* (AB16) RGMII1_RD2 */ 311f5a731f0SRobert Nelson AM62X_IOPAD(0x0158, PIN_INPUT, 0) /* (AA15) RGMII1_RD3 */ 312f5a731f0SRobert Nelson AM62X_IOPAD(0x0148, PIN_INPUT, 0) /* (AD17) RGMII1_RXC */ 313f5a731f0SRobert Nelson AM62X_IOPAD(0x0144, PIN_INPUT, 0) /* (AE17) RGMII1_RX_CTL */ 314f5a731f0SRobert Nelson AM62X_IOPAD(0x0134, PIN_OUTPUT, 0) /* (AE20) RGMII1_TD0 */ 315f5a731f0SRobert Nelson AM62X_IOPAD(0x0138, PIN_OUTPUT, 0) /* (AD20) RGMII1_TD1 */ 316f5a731f0SRobert Nelson AM62X_IOPAD(0x013c, PIN_OUTPUT, 0) /* (AE18) RGMII1_TD2 */ 317f5a731f0SRobert Nelson AM62X_IOPAD(0x0140, PIN_OUTPUT, 0) /* (AD18) RGMII1_TD3 */ 318f5a731f0SRobert Nelson AM62X_IOPAD(0x0130, PIN_OUTPUT, 0) /* (AE19) RGMII1_TXC */ 319f5a731f0SRobert Nelson AM62X_IOPAD(0x012c, PIN_OUTPUT, 0) /* (AD19) RGMII1_TX_CTL */ 320f5a731f0SRobert Nelson >; 321f5a731f0SRobert Nelson }; 322f5a731f0SRobert Nelson 323a4956811STony Lindgren emmc_pins_default: emmc-default-pins { 324f5a731f0SRobert Nelson pinctrl-single,pins = < 325f5a731f0SRobert Nelson AM62X_IOPAD(0x0220, PIN_INPUT, 0) /* (Y3) MMC0_CMD */ 326f5a731f0SRobert Nelson AM62X_IOPAD(0x0218, PIN_INPUT, 0) /* (AB1) MMC0_CLK */ 327f5a731f0SRobert Nelson AM62X_IOPAD(0x0214, PIN_INPUT, 0) /* (AA2) MMC0_DAT0 */ 328f5a731f0SRobert Nelson AM62X_IOPAD(0x0210, PIN_INPUT, 0) /* (AA1) MMC0_DAT1 */ 329f5a731f0SRobert Nelson AM62X_IOPAD(0x020c, PIN_INPUT, 0) /* (AA3) MMC0_DAT2 */ 330f5a731f0SRobert Nelson AM62X_IOPAD(0x0208, PIN_INPUT, 0) /* (Y4) MMC0_DAT3 */ 331f5a731f0SRobert Nelson AM62X_IOPAD(0x0204, PIN_INPUT, 0) /* (AB2) MMC0_DAT4 */ 332f5a731f0SRobert Nelson AM62X_IOPAD(0x0200, PIN_INPUT, 0) /* (AC1) MMC0_DAT5 */ 333f5a731f0SRobert Nelson AM62X_IOPAD(0x01fc, PIN_INPUT, 0) /* (AD2) MMC0_DAT6 */ 334f5a731f0SRobert Nelson AM62X_IOPAD(0x01f8, PIN_INPUT, 0) /* (AC2) MMC0_DAT7 */ 335f5a731f0SRobert Nelson >; 336f5a731f0SRobert Nelson }; 337f5a731f0SRobert Nelson 338a4956811STony Lindgren vdd_3v3_sd_pins_default: vdd-3v3-sd-default-pins { 339f5a731f0SRobert Nelson pinctrl-single,pins = < 340f5a731f0SRobert Nelson AM62X_IOPAD(0x01c4, PIN_INPUT, 7) /* (B14) SPI0_D1_GPIO1_19 */ 341f5a731f0SRobert Nelson >; 342f5a731f0SRobert Nelson }; 343f5a731f0SRobert Nelson 344a4956811STony Lindgren sd_pins_default: sd-default-pins { 345f5a731f0SRobert Nelson pinctrl-single,pins = < 346f5a731f0SRobert Nelson AM62X_IOPAD(0x023c, PIN_INPUT, 0) /* (A21) MMC1_CMD */ 347f5a731f0SRobert Nelson AM62X_IOPAD(0x0234, PIN_INPUT, 0) /* (B22) MMC1_CLK */ 348f5a731f0SRobert Nelson AM62X_IOPAD(0x0230, PIN_INPUT, 0) /* (A22) MMC1_DAT0 */ 349f5a731f0SRobert Nelson AM62X_IOPAD(0x022c, PIN_INPUT, 0) /* (B21) MMC1_DAT1 */ 350f5a731f0SRobert Nelson AM62X_IOPAD(0x0228, PIN_INPUT, 0) /* (C21) MMC1_DAT2 */ 351f5a731f0SRobert Nelson AM62X_IOPAD(0x0224, PIN_INPUT, 0) /* (D22) MMC1_DAT3 */ 352f5a731f0SRobert Nelson AM62X_IOPAD(0x0240, PIN_INPUT, 7) /* (D17) MMC1_SDCD.GPIO1_48 */ 353f5a731f0SRobert Nelson >; 354f5a731f0SRobert Nelson }; 355f5a731f0SRobert Nelson 356a4956811STony Lindgren wifi_pins_default: wifi-default-pins { 357f5a731f0SRobert Nelson pinctrl-single,pins = < 358f5a731f0SRobert Nelson AM62X_IOPAD(0x0120, PIN_INPUT, 0) /* (C24) MMC2_CMD */ 359f5a731f0SRobert Nelson AM62X_IOPAD(0x0118, PIN_INPUT, 0) /* (D25) MMC2_CLK */ 360f5a731f0SRobert Nelson AM62X_IOPAD(0x0114, PIN_INPUT, 0) /* (B24) MMC2_DAT0 */ 361f5a731f0SRobert Nelson AM62X_IOPAD(0x0110, PIN_INPUT, 0) /* (C25) MMC2_DAT1 */ 362f5a731f0SRobert Nelson AM62X_IOPAD(0x010c, PIN_INPUT, 0) /* (E23) MMC2_DAT2 */ 363f5a731f0SRobert Nelson AM62X_IOPAD(0x0108, PIN_INPUT, 0) /* (D24) MMC2_DAT3 */ 364f5a731f0SRobert Nelson AM62X_IOPAD(0x0124, PIN_INPUT, 0) /* (A23) MMC2_SDCD */ 365f5a731f0SRobert Nelson AM62X_IOPAD(0x11c, PIN_INPUT, 0) /* (#N/A) MMC2_CLKB */ 366f5a731f0SRobert Nelson >; 367f5a731f0SRobert Nelson }; 368f5a731f0SRobert Nelson 369a4956811STony Lindgren wifi_en_pins_default: wifi-en-default-pins { 370f5a731f0SRobert Nelson pinctrl-single,pins = < 371f5a731f0SRobert Nelson AM62X_IOPAD(0x009c, PIN_OUTPUT, 7) /* (V25) GPMC0_WAIT1.GPIO0_38 */ 372f5a731f0SRobert Nelson >; 373f5a731f0SRobert Nelson }; 374f5a731f0SRobert Nelson 375a4956811STony Lindgren wifi_wlirq_pins_default: wifi-wlirq-default-pins { 376f5a731f0SRobert Nelson pinctrl-single,pins = < 377f5a731f0SRobert Nelson AM62X_IOPAD(0x00a8, PIN_INPUT, 7) /* (M21) GPMC0_CSn0.GPIO0_41 */ 378f5a731f0SRobert Nelson >; 379f5a731f0SRobert Nelson }; 380f5a731f0SRobert Nelson 381a4956811STony Lindgren spe_pins_default: spe-default-pins { 382f5a731f0SRobert Nelson pinctrl-single,pins = < 383f5a731f0SRobert Nelson AM62X_IOPAD(0x0168, PIN_INPUT, 1) /* (AE21) RGMII2_TXC.RMII2_CRS_DV */ 384f5a731f0SRobert Nelson AM62X_IOPAD(0x0180, PIN_INPUT, 1) /* (AD23) RGMII2_RXC.RMII2_REF_CLK */ 385f5a731f0SRobert Nelson AM62X_IOPAD(0x0184, PIN_INPUT, 1) /* (AE23) RGMII2_RD0.RMII2_RXD0 */ 386f5a731f0SRobert Nelson AM62X_IOPAD(0x0188, PIN_INPUT, 1) /* (AB20) RGMII2_RD1.RMII2_RXD1 */ 387f5a731f0SRobert Nelson AM62X_IOPAD(0x017c, PIN_INPUT, 1) /* (AD22) RGMII2_RX_CTL.RMII2_RX_ER */ 388f5a731f0SRobert Nelson AM62X_IOPAD(0x016c, PIN_INPUT, 1) /* (Y18) RGMII2_TD0.RMII2_TXD0 */ 389f5a731f0SRobert Nelson AM62X_IOPAD(0x0170, PIN_INPUT, 1) /* (AA18) RGMII2_TD1.RMII2_TXD1 */ 390f5a731f0SRobert Nelson AM62X_IOPAD(0x0164, PIN_INPUT, 1) /* (AA19) RGMII2_TX_CTL.RMII2_TX_EN */ 391f5a731f0SRobert Nelson AM62X_IOPAD(0x018c, PIN_OUTPUT, 7) /* (AC21) RGMII2_RD2.GPIO1_5 */ 392f5a731f0SRobert Nelson AM62X_IOPAD(0x0190, PIN_INPUT, 7) /* (AE22) RGMII2_RD3.GPIO1_6 */ 393f5a731f0SRobert Nelson AM62X_IOPAD(0x01f0, PIN_OUTPUT, 5) /* (A18) EXT_REFCLK1.CLKOUT0 */ 394f5a731f0SRobert Nelson >; 395f5a731f0SRobert Nelson }; 396f5a731f0SRobert Nelson 397a4956811STony Lindgren mikrobus_i2c_pins_default: mikrobus-i2c-default-pins { 398f5a731f0SRobert Nelson pinctrl-single,pins = < 399f5a731f0SRobert Nelson AM62X_IOPAD(0x01d0, PIN_INPUT_PULLUP, 2) /* (A15) UART0_CTSn.I2C3_SCL */ 400f5a731f0SRobert Nelson AM62X_IOPAD(0x01d4, PIN_INPUT_PULLUP, 2) /* (B15) UART0_RTSn.I2C3_SDA */ 401f5a731f0SRobert Nelson >; 402f5a731f0SRobert Nelson }; 403f5a731f0SRobert Nelson 404a4956811STony Lindgren mikrobus_uart_pins_default: mikrobus-uart-default-pins { 405f5a731f0SRobert Nelson pinctrl-single,pins = < 406f5a731f0SRobert Nelson AM62X_IOPAD(0x01d8, PIN_INPUT, 1) /* (C15) MCAN0_TX.UART5_RXD */ 407f5a731f0SRobert Nelson AM62X_IOPAD(0x01dc, PIN_OUTPUT, 1) /* (E15) MCAN0_RX.UART5_TXD */ 408f5a731f0SRobert Nelson >; 409f5a731f0SRobert Nelson }; 410f5a731f0SRobert Nelson 411a4956811STony Lindgren mikrobus_spi_pins_default: mikrobus-spi-default-pins { 412f5a731f0SRobert Nelson pinctrl-single,pins = < 413f5a731f0SRobert Nelson AM62X_IOPAD(0x01b0, PIN_INPUT, 1) /* (A20) MCASP0_ACLKR.SPI2_CLK */ 414f5a731f0SRobert Nelson AM62X_IOPAD(0x01ac, PIN_INPUT, 1) /* (E19) MCASP0_AFSR.SPI2_CS0 */ 415f5a731f0SRobert Nelson AM62X_IOPAD(0x0194, PIN_INPUT, 1) /* (B19) MCASP0_AXR3.SPI2_D0 */ 416f5a731f0SRobert Nelson AM62X_IOPAD(0x0198, PIN_INPUT, 1) /* (A19) MCASP0_AXR2.SPI2_D1 */ 417f5a731f0SRobert Nelson >; 418f5a731f0SRobert Nelson }; 419f5a731f0SRobert Nelson 420a4956811STony Lindgren mikrobus_gpio_pins_default: mikrobus-gpio-default-pins { 421f5a731f0SRobert Nelson pinctrl-single,pins = < 422f5a731f0SRobert Nelson AM62X_IOPAD(0x019c, PIN_INPUT, 7) /* (B18) MCASP0_AXR1.GPIO1_9 */ 423f5a731f0SRobert Nelson AM62X_IOPAD(0x01a0, PIN_INPUT, 7) /* (E18) MCASP0_AXR0.GPIO1_10 */ 424f5a731f0SRobert Nelson AM62X_IOPAD(0x01a8, PIN_INPUT, 7) /* (D20) MCASP0_AFSX.GPIO1_12 */ 425f5a731f0SRobert Nelson >; 426f5a731f0SRobert Nelson }; 427f5a731f0SRobert Nelson 428a4956811STony Lindgren console_pins_default: console-default-pins { 429f5a731f0SRobert Nelson pinctrl-single,pins = < 430f5a731f0SRobert Nelson AM62X_IOPAD(0x01c8, PIN_INPUT, 0) /* (D14) UART0_RXD */ 431f5a731f0SRobert Nelson AM62X_IOPAD(0x01cc, PIN_OUTPUT, 0) /* (E14) UART0_TXD */ 432f5a731f0SRobert Nelson >; 433f5a731f0SRobert Nelson }; 434f5a731f0SRobert Nelson 435a4956811STony Lindgren wifi_debug_uart_pins_default: wifi-debug-uart-default-pins { 436f5a731f0SRobert Nelson pinctrl-single,pins = < 437f5a731f0SRobert Nelson AM62X_IOPAD(0x001c, PIN_INPUT, 3) /* (J23) OSPI0_D4.UART6_RXD */ 438f5a731f0SRobert Nelson AM62X_IOPAD(0x0020, PIN_OUTPUT, 3) /* (J25) OSPI0_D5.UART6_TXD */ 439f5a731f0SRobert Nelson >; 440f5a731f0SRobert Nelson }; 441f5a731f0SRobert Nelson 442a4956811STony Lindgren usb1_pins_default: usb1-default-pins { 443f5a731f0SRobert Nelson pinctrl-single,pins = < 444f5a731f0SRobert Nelson AM62X_IOPAD(0x0258, PIN_INPUT, 0) /* (F18) USB1_DRVVBUS */ 445f5a731f0SRobert Nelson >; 446f5a731f0SRobert Nelson }; 447f5a731f0SRobert Nelson 448a4956811STony Lindgren pmic_irq_pins_default: pmic-irq-default-pins { 449f5a731f0SRobert Nelson pinctrl-single,pins = < 450f5a731f0SRobert Nelson AM62X_IOPAD(0x01f4, PIN_INPUT_PULLUP, 0) /* (D16) EXTINTn */ 451f5a731f0SRobert Nelson >; 452f5a731f0SRobert Nelson }; 4531f7226a5SNishanth Menon 4541f7226a5SNishanth Menon hdmi_gpio_pins_default: hdmi-gpio-default-pins { 4551f7226a5SNishanth Menon pinctrl-single,pins = < 4561f7226a5SNishanth Menon AM62X_IOPAD(0x0094, PIN_INPUT_PULLUP | PIN_DEBOUNCE_CONF6, 7) /* (N20) GPMC0_BE1n.GPIO0_36 */ 4571f7226a5SNishanth Menon AM62X_IOPAD(0x0054, PIN_OUTPUT_PULLUP, 7) /* (P21) GPMC0_AD6.GPIO0_21 */ 4581f7226a5SNishanth Menon >; 4591f7226a5SNishanth Menon }; 4601f7226a5SNishanth Menon 4611f7226a5SNishanth Menon mcasp_hdmi_pins_default: mcasp-hdmi-default-pins { 4621f7226a5SNishanth Menon pinctrl-single,pins = < 4631f7226a5SNishanth Menon AM62X_IOPAD(0x0090, PIN_INPUT, 2) /* (M24) GPMC0_BE0n_CLE.MCASP1_ACLKX */ 4641f7226a5SNishanth Menon AM62X_IOPAD(0x0098, PIN_INPUT, 2) /* (U23) GPMC0_WAIT0.MCASP1_AFSX */ 4651f7226a5SNishanth Menon AM62X_IOPAD(0x008c, PIN_OUTPUT, 2) /* (L25) GPMC0_WEn.MCASP1_AXR0 */ 4661f7226a5SNishanth Menon AM62X_IOPAD(0x0088, PIN_INPUT, 2) /* (L24) GPMC0_OEn_REn.MCASP1_AXR1 */ 4671f7226a5SNishanth Menon AM62X_IOPAD(0x0084, PIN_INPUT, 2) /* (L23) GPMC0_ADVn_ALE.MCASP1_AXR2 */ 4681f7226a5SNishanth Menon AM62X_IOPAD(0x007c, PIN_INPUT, 2) /* (P25) GPMC0_CLK.MCASP1_AXR3 */ 4691f7226a5SNishanth Menon >; 4701f7226a5SNishanth Menon }; 4711f7226a5SNishanth Menon 4721f7226a5SNishanth Menon dss0_pins_default: dss0-default-pins { 4731f7226a5SNishanth Menon pinctrl-single,pins = < 4741f7226a5SNishanth Menon AM62X_IOPAD(0x0100, PIN_OUTPUT, 0) /* (AC25) VOUT0_VSYNC */ 4751f7226a5SNishanth Menon AM62X_IOPAD(0x00f8, PIN_OUTPUT, 0) /* (AB24) VOUT0_HSYNC */ 4761f7226a5SNishanth Menon AM62X_IOPAD(0x0104, PIN_OUTPUT, 0) /* (AC24) VOUT0_PCLK */ 4771f7226a5SNishanth Menon AM62X_IOPAD(0x00fc, PIN_OUTPUT, 0) /* (Y20) VOUT0_DE */ 4781f7226a5SNishanth Menon AM62X_IOPAD(0x00b8, PIN_OUTPUT, 0) /* (U22) VOUT0_DATA0 */ 4791f7226a5SNishanth Menon AM62X_IOPAD(0x00bc, PIN_OUTPUT, 0) /* (V24) VOUT0_DATA1 */ 4801f7226a5SNishanth Menon AM62X_IOPAD(0x00c0, PIN_OUTPUT, 0) /* (W25) VOUT0_DATA2 */ 4811f7226a5SNishanth Menon AM62X_IOPAD(0x00c4, PIN_OUTPUT, 0) /* (W24) VOUT0_DATA3 */ 4821f7226a5SNishanth Menon AM62X_IOPAD(0x00c8, PIN_OUTPUT, 0) /* (Y25) VOUT0_DATA4 */ 4831f7226a5SNishanth Menon AM62X_IOPAD(0x00cc, PIN_OUTPUT, 0) /* (Y24) VOUT0_DATA5 */ 4841f7226a5SNishanth Menon AM62X_IOPAD(0x00d0, PIN_OUTPUT, 0) /* (Y23) VOUT0_DATA6 */ 4851f7226a5SNishanth Menon AM62X_IOPAD(0x00d4, PIN_OUTPUT, 0) /* (AA25) VOUT0_DATA7 */ 4861f7226a5SNishanth Menon AM62X_IOPAD(0x00d8, PIN_OUTPUT, 0) /* (V21) VOUT0_DATA8 */ 4871f7226a5SNishanth Menon AM62X_IOPAD(0x00dc, PIN_OUTPUT, 0) /* (W21) VOUT0_DATA9 */ 4881f7226a5SNishanth Menon AM62X_IOPAD(0x00e0, PIN_OUTPUT, 0) /* (V20) VOUT0_DATA10 */ 4891f7226a5SNishanth Menon AM62X_IOPAD(0x00e4, PIN_OUTPUT, 0) /* (AA23) VOUT0_DATA11 */ 4901f7226a5SNishanth Menon AM62X_IOPAD(0x00e8, PIN_OUTPUT, 0) /* (AB25) VOUT0_DATA12 */ 4911f7226a5SNishanth Menon AM62X_IOPAD(0x00ec, PIN_OUTPUT, 0) /* (AA24) VOUT0_DATA13 */ 4921f7226a5SNishanth Menon AM62X_IOPAD(0x00f0, PIN_OUTPUT, 0) /* (Y22) VOUT0_DATA14 */ 4931f7226a5SNishanth Menon AM62X_IOPAD(0x00f4, PIN_OUTPUT, 0) /* (AA21) VOUT0_DATA15 */ 4941f7226a5SNishanth Menon AM62X_IOPAD(0x005c, PIN_OUTPUT, 1) /* (R24) GPMC0_AD8.VOUT0_DATA16 */ 4951f7226a5SNishanth Menon AM62X_IOPAD(0x0060, PIN_OUTPUT, 1) /* (R25) GPMC0_AD9.VOUT0_DATA17 */ 4961f7226a5SNishanth Menon AM62X_IOPAD(0x0064, PIN_OUTPUT, 1) /* (T25) GPMC0_AD10.VOUT0_DATA18 */ 4971f7226a5SNishanth Menon AM62X_IOPAD(0x0068, PIN_OUTPUT, 1) /* (R21) GPMC0_AD11.VOUT0_DATA19 */ 4981f7226a5SNishanth Menon AM62X_IOPAD(0x006c, PIN_OUTPUT, 1) /* (T22) GPMC0_AD12.VOUT0_DATA20 */ 4991f7226a5SNishanth Menon AM62X_IOPAD(0x0070, PIN_OUTPUT, 1) /* (T24) GPMC0_AD13.VOUT0_DATA21 */ 5001f7226a5SNishanth Menon AM62X_IOPAD(0x0074, PIN_OUTPUT, 1) /* (U25) GPMC0_AD14.VOUT0_DATA22 */ 5011f7226a5SNishanth Menon AM62X_IOPAD(0x0078, PIN_OUTPUT, 1) /* (U24) GPMC0_AD15.VOUT0_DATA23 */ 5021f7226a5SNishanth Menon >; 5031f7226a5SNishanth Menon }; 504f5a731f0SRobert Nelson}; 505f5a731f0SRobert Nelson 506f5a731f0SRobert Nelson&mcu_pmx0 { 507a4956811STony Lindgren i2c_qwiic_pins_default: i2c-qwiic-default-pins { 508f5a731f0SRobert Nelson pinctrl-single,pins = < 509f5a731f0SRobert Nelson AM62X_MCU_IOPAD(0x0044, PIN_INPUT, 0) /* (A8) MCU_I2C0_SCL */ 510f5a731f0SRobert Nelson AM62X_MCU_IOPAD(0x0048, PIN_INPUT, 0) /* (D10) MCU_I2C0_SDA */ 511f5a731f0SRobert Nelson >; 512f5a731f0SRobert Nelson }; 513f5a731f0SRobert Nelson 5147a649518SNishanth Menon gbe_pmx_obsclk: gbe-pmx-obsclk-default-pins { 515f5a731f0SRobert Nelson pinctrl-single,pins = < 516f5a731f0SRobert Nelson AM62X_MCU_IOPAD(0x0004, PIN_OUTPUT, 1) /* (B8) MCU_SPI0_CS1.MCU_OBSCLK0 */ 517f5a731f0SRobert Nelson >; 518f5a731f0SRobert Nelson }; 519f5a731f0SRobert Nelson 520a4956811STony Lindgren i2c_csi_pins_default: i2c-csi-default-pins { 521f5a731f0SRobert Nelson pinctrl-single,pins = < 522f5a731f0SRobert Nelson AM62X_MCU_IOPAD(0x004c, PIN_INPUT_PULLUP, 0) /* (B9) WKUP_I2C0_SCL */ 523f5a731f0SRobert Nelson AM62X_MCU_IOPAD(0x0050, PIN_INPUT_PULLUP, 0) /* (A9) WKUP_I2C0_SDA */ 524f5a731f0SRobert Nelson >; 525f5a731f0SRobert Nelson }; 526f5a731f0SRobert Nelson 527a4956811STony Lindgren wifi_32k_clk: mcu-clk-out-default-pins { 528f5a731f0SRobert Nelson pinctrl-single,pins = < 529f5a731f0SRobert Nelson AM62X_MCU_IOPAD(0x0084, PIN_OUTPUT, 0) /* (A12) WKUP_CLKOUT0 */ 530f5a731f0SRobert Nelson >; 531f5a731f0SRobert Nelson }; 532f5a731f0SRobert Nelson}; 533f5a731f0SRobert Nelson 534f5a731f0SRobert Nelson&a53_opp_table { 535f5a731f0SRobert Nelson /* Requires VDD_CORE to be at 0.85V */ 536f5a731f0SRobert Nelson opp-1400000000 { 537f5a731f0SRobert Nelson opp-hz = /bits/ 64 <1400000000>; 538f5a731f0SRobert Nelson opp-supported-hw = <0x01 0x0004>; 539f5a731f0SRobert Nelson }; 540f5a731f0SRobert Nelson}; 541f5a731f0SRobert Nelson 542f5a731f0SRobert Nelson&wkup_i2c0 { 543f5a731f0SRobert Nelson pinctrl-names = "default"; 544f5a731f0SRobert Nelson pinctrl-0 = <&i2c_csi_pins_default>; 545f5a731f0SRobert Nelson clock-frequency = <400000>; 546f5a731f0SRobert Nelson /* Enable with overlay for camera sensor */ 547f5a731f0SRobert Nelson}; 548f5a731f0SRobert Nelson 549f5a731f0SRobert Nelson&mcu_i2c0 { 550f5a731f0SRobert Nelson pinctrl-names = "default"; 551f5a731f0SRobert Nelson pinctrl-0 = <&i2c_qwiic_pins_default>; 552f5a731f0SRobert Nelson clock-frequency = <100000>; 553f5a731f0SRobert Nelson status = "okay"; 554f5a731f0SRobert Nelson}; 555f5a731f0SRobert Nelson 556f5a731f0SRobert Nelson&usbss0 { 557f5a731f0SRobert Nelson ti,vbus-divider; 558f5a731f0SRobert Nelson status = "okay"; 559f5a731f0SRobert Nelson}; 560f5a731f0SRobert Nelson 561f5a731f0SRobert Nelson&usb0 { 562f5a731f0SRobert Nelson dr_mode = "peripheral"; 563f5a731f0SRobert Nelson}; 564f5a731f0SRobert Nelson 565f5a731f0SRobert Nelson&usbss1 { 566f5a731f0SRobert Nelson ti,vbus-divider; 567f5a731f0SRobert Nelson status = "okay"; 568f5a731f0SRobert Nelson}; 569f5a731f0SRobert Nelson 570f5a731f0SRobert Nelson&usb1 { 571f5a731f0SRobert Nelson dr_mode = "host"; 572f5a731f0SRobert Nelson pinctrl-names = "default"; 573f5a731f0SRobert Nelson pinctrl-0 = <&usb1_pins_default>; 574f5a731f0SRobert Nelson}; 575f5a731f0SRobert Nelson 576f5a731f0SRobert Nelson&cpsw3g { 577f5a731f0SRobert Nelson pinctrl-names = "default"; 578f5a731f0SRobert Nelson pinctrl-0 = <&rgmii1_pins_default>, <&spe_pins_default>, 579f5a731f0SRobert Nelson <&gbe_pmx_obsclk>; 580f5a731f0SRobert Nelson assigned-clocks = <&k3_clks 157 70>, <&k3_clks 157 20>; 581f5a731f0SRobert Nelson assigned-clock-parents = <&k3_clks 157 72>, <&k3_clks 157 22>; 582f5a731f0SRobert Nelson}; 583f5a731f0SRobert Nelson 584f5a731f0SRobert Nelson&cpsw_port1 { 585f5a731f0SRobert Nelson phy-mode = "rgmii-rxid"; 586f5a731f0SRobert Nelson phy-handle = <&cpsw3g_phy0>; 587f5a731f0SRobert Nelson}; 588f5a731f0SRobert Nelson 589f5a731f0SRobert Nelson&cpsw_port2 { 590f5a731f0SRobert Nelson phy-mode = "rmii"; 591f5a731f0SRobert Nelson phy-handle = <&cpsw3g_phy1>; 592f5a731f0SRobert Nelson}; 593f5a731f0SRobert Nelson 594f5a731f0SRobert Nelson&cpsw3g_mdio { 595f5a731f0SRobert Nelson /* Workaround for errata i2329 - Use mdio bitbang */ 596f5a731f0SRobert Nelson status = "disabled"; 597f5a731f0SRobert Nelson}; 598f5a731f0SRobert Nelson 599f5a731f0SRobert Nelson&main_gpio0 { 600f5a731f0SRobert Nelson pinctrl-names = "default"; 601f5a731f0SRobert Nelson pinctrl-0 = <&gpio0_pins_default>; 602f5a731f0SRobert Nelson gpio-line-names = "BL_EN_3V3", "SPE_PO_EN", "RTC_INT", /* 0-2 */ 603f5a731f0SRobert Nelson "USR0", "USR1", "USR2", "USR3", "", "", "USR4", /* 3-9 */ 604f5a731f0SRobert Nelson "EEPROM_WP", /* 10 */ 605f5a731f0SRobert Nelson "CSI2_CAMERA_GPIO1", "CSI2_CAMERA_GPIO2", /* 11-12 */ 606f5a731f0SRobert Nelson "CC1352P7_BOOT", "CC1352P7_RSTN", "", "", "", /* 13-17 */ 607f5a731f0SRobert Nelson "USR_BUTTON", "", "", "", "", "", "", "", "", /* 18-26 */ 608f5a731f0SRobert Nelson "", "", "", "", "", "", "", "", "", "HDMI_INT", /* 27-36 */ 609f5a731f0SRobert Nelson "", "VDD_WLAN_EN", "", "", "WL_IRQ", "GBE_INTN",/* 37-42 */ 610f5a731f0SRobert Nelson "", "", "", "", "", "", "", "", "", "", "", "", /* 43-54 */ 611f5a731f0SRobert Nelson "", "", "", "", "", "", "", "", "", "", "", "", /* 55-66 */ 612f5a731f0SRobert Nelson "", "", "", "", "", "", "", "", "", "", "", "", /* 67-78 */ 613f5a731f0SRobert Nelson "", "", "", "", "", "", /* 79-84 */ 614f5a731f0SRobert Nelson "BITBANG_MDIO_DATA", "BITBANG_MDIO_CLK", /* 85-86 */ 615f5a731f0SRobert Nelson "", "", "", "", ""; /* 87-91 */ 616f5a731f0SRobert Nelson}; 617f5a731f0SRobert Nelson 618f5a731f0SRobert Nelson&main_gpio1 { 619f5a731f0SRobert Nelson pinctrl-names = "default"; 620f5a731f0SRobert Nelson pinctrl-0 = <&mikrobus_gpio_pins_default>; 621f5a731f0SRobert Nelson gpio-line-names = "", "", "", "", "", /* 0-4 */ 622f5a731f0SRobert Nelson "SPE_RSTN", "SPE_INTN", "MIKROBUS_GPIO1_7", /* 5-7 */ 623f5a731f0SRobert Nelson "MIKROBUS_GPIO1_8", "MIKROBUS_GPIO1_9", /* 8-9 */ 624f5a731f0SRobert Nelson "MIKROBUS_GPIO1_10", "MIKROBUS_GPIO1_11", /* 10-11 */ 625f5a731f0SRobert Nelson "MIKROBUS_GPIO1_12", "MIKROBUS_W1_GPIO0", /* 12-13 */ 626f5a731f0SRobert Nelson "MIKROBUS_GPIO1_14", /* 14 */ 627f5a731f0SRobert Nelson "", "", "", "", "VDD_3V3_SD", "", "", /* 15-21 */ 628f5a731f0SRobert Nelson "MIKROBUS_GPIO1_22", "MIKROBUS_GPIO1_23", /* 22-23 */ 629f5a731f0SRobert Nelson "MIKROBUS_GPIO1_24", "MIKROBUS_GPIO1_25", /* 24-25 */ 630f5a731f0SRobert Nelson "", "", "", "", "", "", "", "", "", "", "", "", /* 26-37 */ 631f5a731f0SRobert Nelson "", "", "", "", "", "", "", "", "", "", /* 38-47 */ 632f5a731f0SRobert Nelson "SD_CD", "SD_VOLT_SEL", "", ""; /* 48-51 */ 633f5a731f0SRobert Nelson}; 634f5a731f0SRobert Nelson 635f5a731f0SRobert Nelson&main_i2c0 { 636f5a731f0SRobert Nelson pinctrl-names = "default"; 637f5a731f0SRobert Nelson pinctrl-0 = <&local_i2c_pins_default>; 638f5a731f0SRobert Nelson clock-frequency = <400000>; 639f5a731f0SRobert Nelson status = "okay"; 640f5a731f0SRobert Nelson 641f5a731f0SRobert Nelson eeprom@50 { 642f5a731f0SRobert Nelson compatible = "atmel,24c32"; 643f5a731f0SRobert Nelson reg = <0x50>; 644f5a731f0SRobert Nelson }; 645f5a731f0SRobert Nelson 646f5a731f0SRobert Nelson rtc: rtc@68 { 647f5a731f0SRobert Nelson compatible = "ti,bq32000"; 648f5a731f0SRobert Nelson reg = <0x68>; 649f5a731f0SRobert Nelson interrupt-parent = <&main_gpio0>; 650f5a731f0SRobert Nelson interrupts = <2 IRQ_TYPE_EDGE_FALLING>; 651f5a731f0SRobert Nelson }; 652f5a731f0SRobert Nelson 653f5a731f0SRobert Nelson tps65219: pmic@30 { 654f5a731f0SRobert Nelson compatible = "ti,tps65219"; 655f5a731f0SRobert Nelson reg = <0x30>; 656f5a731f0SRobert Nelson buck1-supply = <&vsys_5v0>; 657f5a731f0SRobert Nelson buck2-supply = <&vsys_5v0>; 658f5a731f0SRobert Nelson buck3-supply = <&vsys_5v0>; 659f5a731f0SRobert Nelson ldo1-supply = <&vdd_3v3>; 660f5a731f0SRobert Nelson ldo2-supply = <&buck2_reg>; 661f5a731f0SRobert Nelson ldo3-supply = <&vdd_3v3>; 662f5a731f0SRobert Nelson ldo4-supply = <&vdd_3v3>; 663f5a731f0SRobert Nelson 664f5a731f0SRobert Nelson pinctrl-names = "default"; 665f5a731f0SRobert Nelson pinctrl-0 = <&pmic_irq_pins_default>; 666f5a731f0SRobert Nelson interrupt-parent = <&gic500>; 667f5a731f0SRobert Nelson interrupts = <GIC_SPI 224 IRQ_TYPE_LEVEL_HIGH>; 668f5a731f0SRobert Nelson interrupt-controller; 669f5a731f0SRobert Nelson #interrupt-cells = <1>; 670f5a731f0SRobert Nelson 671f5a731f0SRobert Nelson system-power-controller; 672f5a731f0SRobert Nelson ti,power-button; 673f5a731f0SRobert Nelson 674f5a731f0SRobert Nelson regulators { 675f5a731f0SRobert Nelson buck1_reg: buck1 { 676f5a731f0SRobert Nelson regulator-name = "VDD_CORE"; 677f5a731f0SRobert Nelson regulator-min-microvolt = <850000>; 678f5a731f0SRobert Nelson regulator-max-microvolt = <850000>; 679f5a731f0SRobert Nelson regulator-boot-on; 680f5a731f0SRobert Nelson regulator-always-on; 681f5a731f0SRobert Nelson }; 682f5a731f0SRobert Nelson 683f5a731f0SRobert Nelson buck2_reg: buck2 { 684f5a731f0SRobert Nelson regulator-name = "VDD_1V8"; 685f5a731f0SRobert Nelson regulator-min-microvolt = <1800000>; 686f5a731f0SRobert Nelson regulator-max-microvolt = <1800000>; 687f5a731f0SRobert Nelson regulator-boot-on; 688f5a731f0SRobert Nelson regulator-always-on; 689f5a731f0SRobert Nelson }; 690f5a731f0SRobert Nelson 691f5a731f0SRobert Nelson buck3_reg: buck3 { 692f5a731f0SRobert Nelson regulator-name = "VDD_1V2"; 693f5a731f0SRobert Nelson regulator-min-microvolt = <1200000>; 694f5a731f0SRobert Nelson regulator-max-microvolt = <1200000>; 695f5a731f0SRobert Nelson regulator-boot-on; 696f5a731f0SRobert Nelson regulator-always-on; 697f5a731f0SRobert Nelson }; 698f5a731f0SRobert Nelson 699f5a731f0SRobert Nelson ldo1_reg: ldo1 { 700f5a731f0SRobert Nelson /* 701f5a731f0SRobert Nelson * Regulator is left as is unused, vdd_sd 702f5a731f0SRobert Nelson * is controlled via GPIO with bypass config 703f5a731f0SRobert Nelson * as per the NVM configuration 704f5a731f0SRobert Nelson */ 705f5a731f0SRobert Nelson regulator-name = "VDD_SD_3V3"; 706f5a731f0SRobert Nelson regulator-min-microvolt = <3300000>; 707f5a731f0SRobert Nelson regulator-max-microvolt = <3300000>; 708f5a731f0SRobert Nelson regulator-allow-bypass; 709f5a731f0SRobert Nelson regulator-boot-on; 710f5a731f0SRobert Nelson regulator-always-on; 711f5a731f0SRobert Nelson }; 712f5a731f0SRobert Nelson 713f5a731f0SRobert Nelson ldo2_reg: ldo2 { 714f5a731f0SRobert Nelson regulator-name = "VDDA_0V85"; 715f5a731f0SRobert Nelson regulator-min-microvolt = <850000>; 716f5a731f0SRobert Nelson regulator-max-microvolt = <850000>; 717f5a731f0SRobert Nelson regulator-boot-on; 718f5a731f0SRobert Nelson regulator-always-on; 719f5a731f0SRobert Nelson }; 720f5a731f0SRobert Nelson 721f5a731f0SRobert Nelson ldo3_reg: ldo3 { 722f5a731f0SRobert Nelson regulator-name = "VDDA_1V8"; 723f5a731f0SRobert Nelson regulator-min-microvolt = <1800000>; 724f5a731f0SRobert Nelson regulator-max-microvolt = <1800000>; 725f5a731f0SRobert Nelson regulator-boot-on; 726f5a731f0SRobert Nelson regulator-always-on; 727f5a731f0SRobert Nelson }; 728f5a731f0SRobert Nelson 729f5a731f0SRobert Nelson ldo4_reg: ldo4 { 730f5a731f0SRobert Nelson regulator-name = "VDD_2V5"; 731f5a731f0SRobert Nelson regulator-min-microvolt = <2500000>; 732f5a731f0SRobert Nelson regulator-max-microvolt = <2500000>; 733f5a731f0SRobert Nelson regulator-boot-on; 734f5a731f0SRobert Nelson regulator-always-on; 735f5a731f0SRobert Nelson }; 736f5a731f0SRobert Nelson }; 737f5a731f0SRobert Nelson }; 738f5a731f0SRobert Nelson}; 739f5a731f0SRobert Nelson 740f5a731f0SRobert Nelson&main_i2c1 { 741f5a731f0SRobert Nelson pinctrl-names = "default"; 742f5a731f0SRobert Nelson pinctrl-0 = <&grove_pins_default>; 743f5a731f0SRobert Nelson clock-frequency = <100000>; 744f5a731f0SRobert Nelson status = "okay"; 745f5a731f0SRobert Nelson}; 746f5a731f0SRobert Nelson 747f5a731f0SRobert Nelson&main_i2c2 { 748f5a731f0SRobert Nelson pinctrl-names = "default"; 749f5a731f0SRobert Nelson pinctrl-0 = <&i2c2_1v8_pins_default>; 750f5a731f0SRobert Nelson clock-frequency = <100000>; 751f5a731f0SRobert Nelson status = "okay"; 7521f7226a5SNishanth Menon 7531f7226a5SNishanth Menon it66121: bridge-hdmi@4c { 7541f7226a5SNishanth Menon compatible = "ite,it66121"; 7551f7226a5SNishanth Menon reg = <0x4c>; 7561f7226a5SNishanth Menon pinctrl-names = "default"; 7571f7226a5SNishanth Menon pinctrl-0 = <&hdmi_gpio_pins_default>; 7581f7226a5SNishanth Menon vcn33-supply = <&vdd_3v3>; 7591f7226a5SNishanth Menon vcn18-supply = <&buck2_reg>; 7601f7226a5SNishanth Menon vrf12-supply = <&buck3_reg>; 7611f7226a5SNishanth Menon reset-gpios = <&main_gpio0 21 GPIO_ACTIVE_LOW>; 7621f7226a5SNishanth Menon interrupt-parent = <&main_gpio0>; 7631f7226a5SNishanth Menon interrupts = <36 IRQ_TYPE_EDGE_FALLING>; 7641f7226a5SNishanth Menon #sound-dai-cells = <0>; 7651f7226a5SNishanth Menon 7661f7226a5SNishanth Menon ports { 7671f7226a5SNishanth Menon #address-cells = <1>; 7681f7226a5SNishanth Menon #size-cells = <0>; 7691f7226a5SNishanth Menon 7701f7226a5SNishanth Menon port@0 { 7711f7226a5SNishanth Menon reg = <0>; 7721f7226a5SNishanth Menon 7731f7226a5SNishanth Menon it66121_in: endpoint { 7741f7226a5SNishanth Menon bus-width = <24>; 7751f7226a5SNishanth Menon remote-endpoint = <&dpi1_out>; 7761f7226a5SNishanth Menon }; 7771f7226a5SNishanth Menon }; 7781f7226a5SNishanth Menon 7791f7226a5SNishanth Menon port@1 { 7801f7226a5SNishanth Menon reg = <1>; 7811f7226a5SNishanth Menon 7821f7226a5SNishanth Menon it66121_out: endpoint { 7831f7226a5SNishanth Menon remote-endpoint = <&hdmi_connector_in>; 7841f7226a5SNishanth Menon }; 7851f7226a5SNishanth Menon }; 7861f7226a5SNishanth Menon }; 7871f7226a5SNishanth Menon }; 788f5a731f0SRobert Nelson}; 789f5a731f0SRobert Nelson 790f5a731f0SRobert Nelson&main_i2c3 { 791f5a731f0SRobert Nelson pinctrl-names = "default"; 792f5a731f0SRobert Nelson pinctrl-0 = <&mikrobus_i2c_pins_default>; 793f5a731f0SRobert Nelson clock-frequency = <400000>; 794f5a731f0SRobert Nelson status = "okay"; 795f5a731f0SRobert Nelson}; 796f5a731f0SRobert Nelson 797f5a731f0SRobert Nelson&main_spi2 { 798f5a731f0SRobert Nelson pinctrl-names = "default"; 799f5a731f0SRobert Nelson pinctrl-0 = <&mikrobus_spi_pins_default>; 800f5a731f0SRobert Nelson status = "okay"; 801f5a731f0SRobert Nelson}; 802f5a731f0SRobert Nelson 803f5a731f0SRobert Nelson&sdhci0 { 804f5a731f0SRobert Nelson pinctrl-names = "default"; 805f5a731f0SRobert Nelson pinctrl-0 = <&emmc_pins_default>; 806f5a731f0SRobert Nelson ti,driver-strength-ohm = <50>; 807f5a731f0SRobert Nelson disable-wp; 808f5a731f0SRobert Nelson status = "okay"; 809f5a731f0SRobert Nelson}; 810f5a731f0SRobert Nelson 811f5a731f0SRobert Nelson&sdhci1 { 812f5a731f0SRobert Nelson /* SD/MMC */ 813f5a731f0SRobert Nelson pinctrl-names = "default"; 814f5a731f0SRobert Nelson pinctrl-0 = <&sd_pins_default>; 815f5a731f0SRobert Nelson 816f5a731f0SRobert Nelson vmmc-supply = <&vdd_3v3_sd>; 817f5a731f0SRobert Nelson vqmmc-supply = <&vdd_sd_dv>; 818f5a731f0SRobert Nelson ti,driver-strength-ohm = <50>; 819f5a731f0SRobert Nelson disable-wp; 820f5a731f0SRobert Nelson cd-gpios = <&main_gpio1 48 GPIO_ACTIVE_LOW>; 821f5a731f0SRobert Nelson cd-debounce-delay-ms = <100>; 822f5a731f0SRobert Nelson ti,fails-without-test-cd; 823f5a731f0SRobert Nelson status = "okay"; 824f5a731f0SRobert Nelson}; 825f5a731f0SRobert Nelson 826f5a731f0SRobert Nelson&sdhci2 { 827f5a731f0SRobert Nelson vmmc-supply = <&wlan_en>; 828f5a731f0SRobert Nelson pinctrl-names = "default"; 829f5a731f0SRobert Nelson pinctrl-0 = <&wifi_pins_default>, <&wifi_32k_clk>; 830f5a731f0SRobert Nelson bus-width = <4>; 831f5a731f0SRobert Nelson non-removable; 832f5a731f0SRobert Nelson ti,fails-without-test-cd; 833f5a731f0SRobert Nelson cap-power-off-card; 834f5a731f0SRobert Nelson keep-power-in-suspend; 835f5a731f0SRobert Nelson ti,driver-strength-ohm = <50>; 836f5a731f0SRobert Nelson assigned-clocks = <&k3_clks 157 158>; 837f5a731f0SRobert Nelson assigned-clock-parents = <&k3_clks 157 160>; 838f5a731f0SRobert Nelson #address-cells = <1>; 839f5a731f0SRobert Nelson #size-cells = <0>; 840f5a731f0SRobert Nelson status = "okay"; 841f5a731f0SRobert Nelson 842f5a731f0SRobert Nelson wlcore: wlcore@2 { 843f5a731f0SRobert Nelson compatible = "ti,wl1807"; 844f5a731f0SRobert Nelson reg = <2>; 845f5a731f0SRobert Nelson pinctrl-names = "default"; 846f5a731f0SRobert Nelson pinctrl-0 = <&wifi_wlirq_pins_default>; 847f5a731f0SRobert Nelson interrupt-parent = <&main_gpio0>; 848f5a731f0SRobert Nelson interrupts = <41 IRQ_TYPE_EDGE_FALLING>; 849f5a731f0SRobert Nelson }; 850f5a731f0SRobert Nelson}; 851f5a731f0SRobert Nelson 852f5a731f0SRobert Nelson&main_uart0 { 853f5a731f0SRobert Nelson pinctrl-names = "default"; 854f5a731f0SRobert Nelson pinctrl-0 = <&console_pins_default>; 855f5a731f0SRobert Nelson status = "okay"; 856f5a731f0SRobert Nelson}; 857f5a731f0SRobert Nelson 858f5a731f0SRobert Nelson&main_uart1 { 859f5a731f0SRobert Nelson /* Main UART1 is used by TIFS firmware */ 860f5a731f0SRobert Nelson status = "reserved"; 861f5a731f0SRobert Nelson}; 862f5a731f0SRobert Nelson 863f5a731f0SRobert Nelson&main_uart5 { 864f5a731f0SRobert Nelson pinctrl-names = "default"; 865f5a731f0SRobert Nelson pinctrl-0 = <&mikrobus_uart_pins_default>; 866f5a731f0SRobert Nelson status = "okay"; 867f5a731f0SRobert Nelson}; 868f5a731f0SRobert Nelson 869f5a731f0SRobert Nelson&main_uart6 { 870f5a731f0SRobert Nelson pinctrl-names = "default"; 871f5a731f0SRobert Nelson pinctrl-0 = <&wifi_debug_uart_pins_default>; 872f5a731f0SRobert Nelson status = "okay"; 873f5a731f0SRobert Nelson}; 8741f7226a5SNishanth Menon 8751f7226a5SNishanth Menon&dss { 8761f7226a5SNishanth Menon status = "okay"; 8771f7226a5SNishanth Menon pinctrl-names = "default"; 8781f7226a5SNishanth Menon pinctrl-0 = <&dss0_pins_default>; 8791f7226a5SNishanth Menon}; 8801f7226a5SNishanth Menon 8811f7226a5SNishanth Menon&dss_ports { 8821f7226a5SNishanth Menon /* VP2: DPI Output */ 8831f7226a5SNishanth Menon port@1 { 8841f7226a5SNishanth Menon reg = <1>; 8851f7226a5SNishanth Menon 8861f7226a5SNishanth Menon dpi1_out: endpoint { 8871f7226a5SNishanth Menon remote-endpoint = <&it66121_in>; 8881f7226a5SNishanth Menon }; 8891f7226a5SNishanth Menon }; 8901f7226a5SNishanth Menon}; 8911f7226a5SNishanth Menon 8921f7226a5SNishanth Menon&mcasp1 { 8931f7226a5SNishanth Menon status = "okay"; 8941f7226a5SNishanth Menon #sound-dai-cells = <0>; 8951f7226a5SNishanth Menon pinctrl-names = "default"; 8961f7226a5SNishanth Menon pinctrl-0 = <&mcasp_hdmi_pins_default>; 8971f7226a5SNishanth Menon auxclk-fs-ratio = <2177>; 8981f7226a5SNishanth Menon op-mode = <0>; /* MCASP_IIS_MODE */ 8991f7226a5SNishanth Menon tdm-slots = <2>; 9001f7226a5SNishanth Menon serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */ 9011f7226a5SNishanth Menon 1 0 0 0 9021f7226a5SNishanth Menon 0 0 0 0 9031f7226a5SNishanth Menon 0 0 0 0 9041f7226a5SNishanth Menon 0 0 0 0 9051f7226a5SNishanth Menon >; 9061f7226a5SNishanth Menon}; 907