1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Copyright (C) 2019 Phytec Messtechnik GmbH 4*f126890aSEmmanuel Vadot * Author: Teresa Remmet <t.remmet@phytec.de> 5*f126890aSEmmanuel Vadot * 6*f126890aSEmmanuel Vadot */ 7*f126890aSEmmanuel Vadot 8*f126890aSEmmanuel Vadot/ { 9*f126890aSEmmanuel Vadot model = "Phytec AM335x phyBOARD-REGOR"; 10*f126890aSEmmanuel Vadot compatible = "phytec,am335x-regor", "phytec,am335x-phycore-som", "ti,am33xx"; 11*f126890aSEmmanuel Vadot 12*f126890aSEmmanuel Vadot vcc3v3: fixedregulator@1 { 13*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 14*f126890aSEmmanuel Vadot regulator-name = "vcc3v3"; 15*f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 16*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 17*f126890aSEmmanuel Vadot regulator-boot-on; 18*f126890aSEmmanuel Vadot }; 19*f126890aSEmmanuel Vadot 20*f126890aSEmmanuel Vadot /* User IO */ 21*f126890aSEmmanuel Vadot user_leds: user-leds { 22*f126890aSEmmanuel Vadot compatible = "gpio-leds"; 23*f126890aSEmmanuel Vadot pinctrl-names = "default"; 24*f126890aSEmmanuel Vadot pinctrl-0 = <&user_leds_pins>; 25*f126890aSEmmanuel Vadot 26*f126890aSEmmanuel Vadot run_stop-led { 27*f126890aSEmmanuel Vadot gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>; 28*f126890aSEmmanuel Vadot linux,default-trigger = "gpio"; 29*f126890aSEmmanuel Vadot default-state = "off"; 30*f126890aSEmmanuel Vadot }; 31*f126890aSEmmanuel Vadot 32*f126890aSEmmanuel Vadot error-led { 33*f126890aSEmmanuel Vadot gpios = <&gpio3 15 GPIO_ACTIVE_HIGH>; 34*f126890aSEmmanuel Vadot linux,default-trigger = "gpio"; 35*f126890aSEmmanuel Vadot default-state = "off"; 36*f126890aSEmmanuel Vadot }; 37*f126890aSEmmanuel Vadot }; 38*f126890aSEmmanuel Vadot}; 39*f126890aSEmmanuel Vadot 40*f126890aSEmmanuel Vadot/* User Leds */ 41*f126890aSEmmanuel Vadot&am33xx_pinmux { 42*f126890aSEmmanuel Vadot user_leds_pins: pinmux-user-leds-pins { 43*f126890aSEmmanuel Vadot pinctrl-single,pins = < 44*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_LCD_VSYNC, PIN_OUTPUT_PULLDOWN, MUX_MODE7) /* lcd_hsync.gpio2_22 */ 45*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_MCASP0_FSX, PIN_OUTPUT_PULLDOWN, MUX_MODE7) /* mcasp0_fsx.gpio3_15 */ 46*f126890aSEmmanuel Vadot >; 47*f126890aSEmmanuel Vadot }; 48*f126890aSEmmanuel Vadot}; 49*f126890aSEmmanuel Vadot 50*f126890aSEmmanuel Vadot/* CAN Busses */ 51*f126890aSEmmanuel Vadot&am33xx_pinmux { 52*f126890aSEmmanuel Vadot dcan1_pins: pinmux-dcan1-pins { 53*f126890aSEmmanuel Vadot pinctrl-single,pins = < 54*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_UART0_CTSN, PIN_OUTPUT_PULLUP, MUX_MODE2) /* uart0_ctsn.d_can1_tx */ 55*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_UART0_RTSN, PIN_INPUT_PULLUP, MUX_MODE2) /* uart0_rtsn.d_can1_rx */ 56*f126890aSEmmanuel Vadot >; 57*f126890aSEmmanuel Vadot }; 58*f126890aSEmmanuel Vadot}; 59*f126890aSEmmanuel Vadot 60*f126890aSEmmanuel Vadot&dcan1 { 61*f126890aSEmmanuel Vadot pinctrl-names = "default"; 62*f126890aSEmmanuel Vadot pinctrl-0 = <&dcan1_pins>; 63*f126890aSEmmanuel Vadot status = "okay"; 64*f126890aSEmmanuel Vadot}; 65*f126890aSEmmanuel Vadot 66*f126890aSEmmanuel Vadot/* Ethernet */ 67*f126890aSEmmanuel Vadot&am33xx_pinmux { 68*f126890aSEmmanuel Vadot ethernet1_pins: pinmux-ethernet1-pins { 69*f126890aSEmmanuel Vadot pinctrl-single,pins = < 70*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_A0, PIN_OUTPUT, MUX_MODE1) /* gpmc_a0.mii2_txen */ 71*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_A1, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_a1.mii2_rxdv */ 72*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_A2, PIN_OUTPUT, MUX_MODE1) /* gpmc_a2.mii2_txd3 */ 73*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_A3, PIN_OUTPUT, MUX_MODE1) /* gpmc_a3.mii2_txd2 */ 74*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_A4, PIN_OUTPUT, MUX_MODE1) /* gpmc_a4.mii2_txd1 */ 75*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_A5, PIN_OUTPUT, MUX_MODE1) /* gpmc_a5.mii2_txd0 */ 76*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_A6, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_a6.mii2_txclk */ 77*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_A7, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_a7.mii2_rxclk */ 78*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_A8, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_a8.mii2_rxd3 */ 79*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_A9, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_a9.mii2_rxd2 */ 80*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_A10, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_a10.mii2_rxd1 */ 81*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_A11, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_a11.mii2_rxd0 */ 82*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_WPN, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_wpn.mii2_rxerr */ 83*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_BEN1, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_ben1.mii2_col */ 84*f126890aSEmmanuel Vadot >; 85*f126890aSEmmanuel Vadot }; 86*f126890aSEmmanuel Vadot}; 87*f126890aSEmmanuel Vadot 88*f126890aSEmmanuel Vadot&cpsw_port2 { 89*f126890aSEmmanuel Vadot status = "okay"; 90*f126890aSEmmanuel Vadot phy-handle = <&phy1>; 91*f126890aSEmmanuel Vadot phy-mode = "mii"; 92*f126890aSEmmanuel Vadot ti,dual-emac-pvid = <2>; 93*f126890aSEmmanuel Vadot}; 94*f126890aSEmmanuel Vadot 95*f126890aSEmmanuel Vadot&davinci_mdio_sw { 96*f126890aSEmmanuel Vadot phy1: ethernet-phy@1 { 97*f126890aSEmmanuel Vadot reg = <1>; 98*f126890aSEmmanuel Vadot }; 99*f126890aSEmmanuel Vadot}; 100*f126890aSEmmanuel Vadot 101*f126890aSEmmanuel Vadot&mac_sw { 102*f126890aSEmmanuel Vadot pinctrl-names = "default"; 103*f126890aSEmmanuel Vadot pinctrl-0 = <ðernet0_pins ðernet1_pins>; 104*f126890aSEmmanuel Vadot}; 105*f126890aSEmmanuel Vadot 106*f126890aSEmmanuel Vadot/* GPIOs */ 107*f126890aSEmmanuel Vadot&am33xx_pinmux { 108*f126890aSEmmanuel Vadot pinctrl-names = "default"; 109*f126890aSEmmanuel Vadot pinctrl-0 = <&user_gpios_pins>; 110*f126890aSEmmanuel Vadot 111*f126890aSEmmanuel Vadot user_gpios_pins: pinmux-user-gpios-pins { 112*f126890aSEmmanuel Vadot pinctrl-single,pins = < 113*f126890aSEmmanuel Vadot /* DIGIN 1-4 */ 114*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_AD11, PIN_INPUT, MUX_MODE7) /* gpmc_ad11.gpio0_27 */ 115*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_AD10, PIN_INPUT, MUX_MODE7) /* gpmc_ad10.gpio0_26 */ 116*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_AD9, PIN_INPUT, MUX_MODE7) /* gpmc_ad9.gpio0_23 */ 117*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_AD8, PIN_INPUT, MUX_MODE7) /* gpmc_ad8.gpio0_22 */ 118*f126890aSEmmanuel Vadot /* DIGOUT 1-4 */ 119*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_AD15, PIN_OUTPUT, MUX_MODE7) /* gpmc_ad15.gpio1_15 */ 120*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_AD14, PIN_OUTPUT, MUX_MODE7) /* gpmc_ad14.gpio1_14 */ 121*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_AD13, PIN_OUTPUT, MUX_MODE7) /* gpmc_ad13.gpio1_13 */ 122*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_AD12, PIN_OUTPUT, MUX_MODE7) /* gpmc_ad12.gpio1_12 */ 123*f126890aSEmmanuel Vadot >; 124*f126890aSEmmanuel Vadot }; 125*f126890aSEmmanuel Vadot}; 126*f126890aSEmmanuel Vadot 127*f126890aSEmmanuel Vadot/* MMC */ 128*f126890aSEmmanuel Vadot&am33xx_pinmux { 129*f126890aSEmmanuel Vadot mmc1_pins: pinmux-mmc1-pins { 130*f126890aSEmmanuel Vadot pinctrl-single,pins = < 131*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_MMC0_DAT3, PIN_INPUT_PULLUP, MUX_MODE0) 132*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_MMC0_DAT2, PIN_INPUT_PULLUP, MUX_MODE0) 133*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_MMC0_DAT1, PIN_INPUT_PULLUP, MUX_MODE0) 134*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_MMC0_DAT0, PIN_INPUT_PULLUP, MUX_MODE0) 135*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_MMC0_CLK, PIN_INPUT_PULLUP, MUX_MODE0) 136*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_MMC0_CMD, PIN_INPUT_PULLUP, MUX_MODE0) 137*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_SPI0_CS1, PIN_INPUT_PULLUP, MUX_MODE7) /* spi0_cs1.mmc0_sdcd */ 138*f126890aSEmmanuel Vadot >; 139*f126890aSEmmanuel Vadot }; 140*f126890aSEmmanuel Vadot}; 141*f126890aSEmmanuel Vadot 142*f126890aSEmmanuel Vadot&mmc1 { 143*f126890aSEmmanuel Vadot vmmc-supply = <&vcc3v3>; 144*f126890aSEmmanuel Vadot bus-width = <4>; 145*f126890aSEmmanuel Vadot pinctrl-names = "default"; 146*f126890aSEmmanuel Vadot pinctrl-0 = <&mmc1_pins>; 147*f126890aSEmmanuel Vadot cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; 148*f126890aSEmmanuel Vadot status = "okay"; 149*f126890aSEmmanuel Vadot}; 150*f126890aSEmmanuel Vadot 151*f126890aSEmmanuel Vadot/* RTC */ 152*f126890aSEmmanuel Vadot&i2c_rtc { 153*f126890aSEmmanuel Vadot status = "okay"; 154*f126890aSEmmanuel Vadot}; 155*f126890aSEmmanuel Vadot 156*f126890aSEmmanuel Vadot/* UARTs */ 157*f126890aSEmmanuel Vadot&am33xx_pinmux { 158*f126890aSEmmanuel Vadot uart0_pins: pinmux-uart0-pins { 159*f126890aSEmmanuel Vadot pinctrl-single,pins = < 160*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_UART0_RXD, PIN_INPUT_PULLUP, MUX_MODE0) 161*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_UART0_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0) 162*f126890aSEmmanuel Vadot >; 163*f126890aSEmmanuel Vadot }; 164*f126890aSEmmanuel Vadot 165*f126890aSEmmanuel Vadot uart2_pins: pinmux-uart2-pins { 166*f126890aSEmmanuel Vadot pinctrl-single,pins = < 167*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_MII1_TX_CLK, PIN_INPUT_PULLUP, MUX_MODE1) /* mii1_tx_clk.uart2_rxd */ 168*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_MII1_RX_CLK, PIN_OUTPUT_PULLDOWN, MUX_MODE1) /* mii1_rx_clk.uart2_txd */ 169*f126890aSEmmanuel Vadot >; 170*f126890aSEmmanuel Vadot }; 171*f126890aSEmmanuel Vadot}; 172*f126890aSEmmanuel Vadot 173*f126890aSEmmanuel Vadot&uart0 { 174*f126890aSEmmanuel Vadot pinctrl-names = "default"; 175*f126890aSEmmanuel Vadot pinctrl-0 = <&uart0_pins>; 176*f126890aSEmmanuel Vadot status = "okay"; 177*f126890aSEmmanuel Vadot}; 178*f126890aSEmmanuel Vadot 179*f126890aSEmmanuel Vadot&uart2 { 180*f126890aSEmmanuel Vadot pinctrl-names = "default"; 181*f126890aSEmmanuel Vadot pinctrl-0 = <&uart2_pins>; 182*f126890aSEmmanuel Vadot status = "okay"; 183*f126890aSEmmanuel Vadot}; 184*f126890aSEmmanuel Vadot 185*f126890aSEmmanuel Vadot/* RS485 - UART1 */ 186*f126890aSEmmanuel Vadot&am33xx_pinmux { 187*f126890aSEmmanuel Vadot uart1_rs485_pins: pinmux-uart1-rs485-pins { 188*f126890aSEmmanuel Vadot pinctrl-single,pins = < 189*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_UART1_RXD, PIN_INPUT_PULLUP, MUX_MODE0) 190*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_UART1_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0) 191*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, PIN_OUTPUT_PULLUP, MUX_MODE0) 192*f126890aSEmmanuel Vadot >; 193*f126890aSEmmanuel Vadot }; 194*f126890aSEmmanuel Vadot}; 195*f126890aSEmmanuel Vadot 196*f126890aSEmmanuel Vadot&uart1 { 197*f126890aSEmmanuel Vadot pinctrl-names = "default"; 198*f126890aSEmmanuel Vadot pinctrl-0 = <&uart1_rs485_pins>; 199*f126890aSEmmanuel Vadot status = "okay"; 200*f126890aSEmmanuel Vadot linux,rs485-enabled-at-boot-time; 201*f126890aSEmmanuel Vadot}; 202