1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2019 Phytec Messtechnik GmbH
4 * Author: Teresa Remmet <t.remmet@phytec.de>
9 model = "Phytec AM335x phyBOARD-REGOR";
10 compatible = "phytec,am335x-regor", "phytec,am335x-phycore-som", "ti,am33xx";
12 vcc3v3: fixedregulator@1 {
13 compatible = "regulator-fixed";
14 regulator-name = "vcc3v3";
15 regulator-min-microvolt = <3300000>;
16 regulator-max-microvolt = <3300000>;
21 user_leds: user_leds {
22 compatible = "gpio-leds";
23 pinctrl-names = "default";
24 pinctrl-0 = <&user_leds_pins>;
27 gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>;
28 linux,default-trigger = "gpio";
29 default-state = "off";
33 gpios = <&gpio3 15 GPIO_ACTIVE_HIGH>;
34 linux,default-trigger = "gpio";
35 default-state = "off";
42 user_leds_pins: pinmux_user_leds {
43 pinctrl-single,pins = <
44 AM33XX_IOPAD(0x8E0, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* lcd_hsync.gpio2_22 */
45 AM33XX_IOPAD(0x994, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* mcasp0_fsx.gpio3_15 */
52 dcan1_pins: pinmux_dcan1 {
53 pinctrl-single,pins = <
54 AM33XX_IOPAD(0x968, PIN_OUTPUT_PULLUP | MUX_MODE2) /* uart0_ctsn.d_can1_tx */
55 AM33XX_IOPAD(0x96C, PIN_INPUT_PULLUP | MUX_MODE2) /* uart0_rtsn.d_can1_rx */
61 pinctrl-names = "default";
62 pinctrl-0 = <&dcan1_pins>;
68 ethernet1_pins: pinmux_ethernet1 {
69 pinctrl-single,pins = <
70 AM33XX_IOPAD(0x840, PIN_OUTPUT | MUX_MODE1) /* gpmc_a0.mii2_txen */
71 AM33XX_IOPAD(0x844, PIN_INPUT_PULLDOWN | MUX_MODE1) /* gpmc_a1.mii2_rxdv */
72 AM33XX_IOPAD(0x848, PIN_OUTPUT | MUX_MODE1) /* gpmc_a2.mii2_txd3 */
73 AM33XX_IOPAD(0x84C, PIN_OUTPUT | MUX_MODE1) /* gpmc_a3.mii2_txd2 */
74 AM33XX_IOPAD(0x850, PIN_OUTPUT | MUX_MODE1) /* gpmc_a4.mii2_txd1 */
75 AM33XX_IOPAD(0x854, PIN_OUTPUT | MUX_MODE1) /* gpmc_a5.mii2_txd0 */
76 AM33XX_IOPAD(0x858, PIN_INPUT_PULLDOWN | MUX_MODE1) /* gpmc_a6.mii2_txclk */
77 AM33XX_IOPAD(0x85C, PIN_INPUT_PULLDOWN | MUX_MODE1) /* gpmc_a7.mii2_rxclk */
78 AM33XX_IOPAD(0x860, PIN_INPUT_PULLDOWN | MUX_MODE1) /* gpmc_a8.mii2_rxd3 */
79 AM33XX_IOPAD(0x864, PIN_INPUT_PULLDOWN | MUX_MODE1) /* gpmc_a9.mii2_rxd2 */
80 AM33XX_IOPAD(0x868, PIN_INPUT_PULLDOWN | MUX_MODE1) /* gpmc_a10.mii2_rxd1 */
81 AM33XX_IOPAD(0x86C, PIN_INPUT_PULLDOWN | MUX_MODE1) /* gpmc_a11.mii2_rxd0 */
82 AM33XX_IOPAD(0x874, PIN_INPUT_PULLDOWN | MUX_MODE1) /* gpmc_wpn.mii2_rxerr */
83 AM33XX_IOPAD(0x878, PIN_INPUT_PULLDOWN | MUX_MODE1) /* gpmc_ben1.mii2_col */
91 dual_emac_res_vlan = <2>;
95 phy1: ethernet-phy@1 {
102 pinctrl-names = "default";
103 pinctrl-0 = <ðernet0_pins ðernet1_pins>;
109 pinctrl-names = "default";
110 pinctrl-0 = <&user_gpios_pins>;
112 user_gpios_pins: pinmux_user_gpios {
113 pinctrl-single,pins = <
115 AM33XX_IOPAD(0x82C, PIN_INPUT | MUX_MODE7) /* gpmc_ad11.gpio0_27 */
116 AM33XX_IOPAD(0x828, PIN_INPUT | MUX_MODE7) /* gpmc_ad10.gpio0_26 */
117 AM33XX_IOPAD(0x824, PIN_INPUT | MUX_MODE7) /* gpmc_ad9.gpio0_23 */
118 AM33XX_IOPAD(0x820, PIN_INPUT | MUX_MODE7) /* gpmc_ad8.gpio0_22 */
120 AM33XX_IOPAD(0x83C, PIN_OUTPUT | MUX_MODE7) /* gpmc_ad15.gpio1_15 */
121 AM33XX_IOPAD(0x838, PIN_OUTPUT | MUX_MODE7) /* gpmc_ad14.gpio1_14 */
122 AM33XX_IOPAD(0x834, PIN_OUTPUT | MUX_MODE7) /* gpmc_ad13.gpio1_13 */
123 AM33XX_IOPAD(0x830, PIN_OUTPUT | MUX_MODE7) /* gpmc_ad12.gpio1_12 */
130 mmc1_pins: pinmux_mmc1 {
131 pinctrl-single,pins = <
132 AM33XX_IOPAD(0x8F0, PIN_INPUT_PULLUP | MUX_MODE0)
133 AM33XX_IOPAD(0x8F4, PIN_INPUT_PULLUP | MUX_MODE0)
134 AM33XX_IOPAD(0x8F8, PIN_INPUT_PULLUP | MUX_MODE0)
135 AM33XX_IOPAD(0x8FC, PIN_INPUT_PULLUP | MUX_MODE0)
136 AM33XX_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE0)
137 AM33XX_IOPAD(0x904, PIN_INPUT_PULLUP | MUX_MODE0)
138 AM33XX_IOPAD(0x960, PIN_INPUT_PULLUP | MUX_MODE7) /* spi0_cs1.mmc0_sdcd */
144 vmmc-supply = <&vcc3v3>;
146 pinctrl-names = "default";
147 pinctrl-0 = <&mmc1_pins>;
148 cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
159 uart0_pins: pinmux_uart0 {
160 pinctrl-single,pins = <
161 AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0)
162 AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0)
166 uart2_pins: pinmux_uart2 {
167 pinctrl-single,pins = <
168 AM33XX_IOPAD(0x92C, PIN_INPUT_PULLUP | MUX_MODE1) /* mii1_tx_clk.uart2_rxd */
169 AM33XX_IOPAD(0x930, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_rx_clk.uart2_txd */
175 pinctrl-names = "default";
176 pinctrl-0 = <&uart0_pins>;
181 pinctrl-names = "default";
182 pinctrl-0 = <&uart2_pins>;
188 uart1_rs485_pins: pinmux_uart1_rs485_pins {
189 pinctrl-single,pins = <
190 AM33XX_IOPAD(0x980, PIN_INPUT_PULLUP | MUX_MODE0)
191 AM33XX_IOPAD(0x984, PIN_OUTPUT_PULLDOWN | MUX_MODE0)
192 AM33XX_IOPAD(0x97C, PIN_OUTPUT_PULLUP | MUX_MODE0)
198 pinctrl-names = "default";
199 pinctrl-0 = <&uart1_rs485_pins>;
201 linux,rs485-enabled-at-boot-time;