2 * Copyright (C) 2014-2017 Phytec Messtechnik GmbH
3 * Author: Wadim Egorov <w.egorov@phytec.de>
4 * Teresa Remmet <t.remmet@phytec.de>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
11 #include <dt-bindings/input/input.h>
14 model = "Phytec AM335x PCM-953";
15 compatible = "phytec,am335x-pcm-953", "phytec,am335x-phycore-som", "ti,am33xx";
19 vcc3v3: fixedregulator@1 {
20 compatible = "regulator-fixed";
21 regulator-name = "vcc3v3";
22 regulator-min-microvolt = <3300000>;
23 regulator-max-microvolt = <3300000>;
27 vcc1v8: fixedregulator@2 {
28 compatible = "regulator-fixed";
29 regulator-name = "vcc1v8";
30 regulator-min-microvolt = <1800000>;
31 regulator-max-microvolt = <1800000>;
37 user_leds: user_leds {
38 compatible = "gpio-leds";
39 pinctrl-names = "default";
40 pinctrl-0 = <&user_leds_pins>;
44 gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>;
45 linux,default-trigger = "gpio";
50 label = "yellow:user";
51 gpios = <&gpio1 31 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "gpio";
57 user_buttons: user_buttons {
58 compatible = "gpio-keys";
59 pinctrl-names = "default";
60 pinctrl-0 = <&user_buttons_pins>;
64 linux,code = <KEY_HOME>;
65 gpios = <&gpio3 7 GPIO_ACTIVE_HIGH>;
71 linux,code = <KEY_MENU>;
72 gpios = <&gpio3 8 GPIO_ACTIVE_HIGH>;
80 user_buttons_pins: pinmux_user_buttons {
81 pinctrl-single,pins = <
82 AM33XX_IOPAD(0x9e4, PIN_INPUT_PULLDOWN | MUX_MODE7) /* emu0.gpio3_7 */
83 AM33XX_IOPAD(0x9e8, PIN_INPUT_PULLDOWN | MUX_MODE7) /* emu1.gpio3_8 */
87 user_leds_pins: pinmux_user_leds {
88 pinctrl-single,pins = <
89 AM33XX_IOPAD(0x880, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_csn1.gpio1_30 */
90 AM33XX_IOPAD(0x884, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_csn2.gpio1_31 */
97 dcan1_pins: pinmux_dcan1 {
98 pinctrl-single,pins = <
99 AM33XX_IOPAD(0x980, PIN_OUTPUT_PULLUP | MUX_MODE2) /* uart1_rxd.dcan1_tx_mux2 */
100 AM33XX_IOPAD(0x984, PIN_INPUT_PULLUP | MUX_MODE2) /* uart1_txd.dcan1_rx_mux2 */
106 pinctrl-names = "default";
107 pinctrl-0 = <&dcan1_pins>;
113 ethernet1_pins: pinmux_ethernet1 {
114 pinctrl-single,pins = <
115 AM33XX_IOPAD(0x840, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a0.rgmii2_tctl */
116 AM33XX_IOPAD(0x844, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a1.rgmii2_rctl */
117 AM33XX_IOPAD(0x848, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a2.rgmii2_td3 */
118 AM33XX_IOPAD(0x84c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a3.rgmii2_td2 */
119 AM33XX_IOPAD(0x850, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a4.rgmii2_td1 */
120 AM33XX_IOPAD(0x854, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a5.rgmii2_td0 */
121 AM33XX_IOPAD(0x858, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a6.rgmii2_tclk */
122 AM33XX_IOPAD(0x85c, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a7.rgmii2_rclk */
123 AM33XX_IOPAD(0x860, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a8.rgmii2_rd3 */
124 AM33XX_IOPAD(0x864, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a9.rgmii2_rd2 */
125 AM33XX_IOPAD(0x868, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a10.rgmii2_rd1 */
126 AM33XX_IOPAD(0x86c, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a11.rgmii2_rd0 */
132 phy-handle = <&phy1>;
133 phy-mode = "rgmii-id";
134 dual_emac_res_vlan = <2>;
139 phy1: ethernet-phy@2 {
142 /* Register 260 (104h) – RGMII Clock and Control Pad Skew */
143 rxc-skew-ps = <1400>;
145 txc-skew-ps = <1400>;
147 /* Register 261 (105h) – RGMII RX Data Pad Skew */
152 /* Register 262 (106h) – RGMII TX Data Pad Skew */
162 pinctrl-names = "default";
163 pinctrl-0 = <ðernet0_pins ðernet1_pins>;
169 pinctrl-names = "default";
170 pinctrl-0 = <&cb_gpio_pins>;
172 cb_gpio_pins: pinmux_cb_gpio {
173 pinctrl-single,pins = <
174 AM33XX_IOPAD(0x968, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* uart0_ctsn.gpio1_8 */
175 AM33XX_IOPAD(0x96c, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* uart0_rtsn.gpio1_9 */
182 mmc1_pins: pinmux_mmc1_pins {
183 pinctrl-single,pins = <
184 AM33XX_IOPAD(0x8f0, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat3.mmc0_dat3 */
185 AM33XX_IOPAD(0x8f4, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat2.mmc0_dat2 */
186 AM33XX_IOPAD(0x8f8, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat1.mmc0_dat1 */
187 AM33XX_IOPAD(0x8fc, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat0.mmc0_dat0 */
188 AM33XX_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_clk.mmc0_clk */
189 AM33XX_IOPAD(0x904, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_cmd.mmc0_cmd */
190 AM33XX_IOPAD(0x960, PIN_INPUT_PULLUP | MUX_MODE7) /* spi0_cs1.mmc0_sdcd */
196 vmmc-supply = <&vcc3v3>;
198 pinctrl-names = "default";
199 pinctrl-0 = <&mmc1_pins>;
200 cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
206 uart0_pins: pinmux_uart0 {
207 pinctrl-single,pins = <
208 AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */
209 AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
213 uart1_pins: pinmux_uart1 {
214 pinctrl-single,pins = <
215 AM33XX_IOPAD(0x980, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rxd.uart1_rxd */
216 AM33XX_IOPAD(0x984, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_txd.uart1_txd */
217 AM33XX_IOPAD(0x978, PIN_INPUT | MUX_MODE0) /* uart1_ctsn.uart1_ctsn */
218 AM33XX_IOPAD(0x97c, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_rtsn.uart1_rtsn */
222 uart2_pins: pinmux_uart2 {
223 pinctrl-single,pins = <
224 AM33XX_IOPAD(0x92c, PIN_INPUT_PULLUP | MUX_MODE1) /* mii1_tx_clk.uart2_rxd */
225 AM33XX_IOPAD(0x930, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_rx_clk.uart2_txd */
229 uart3_pins: pinmux_uart3 {
230 pinctrl-single,pins = <
231 AM33XX_IOPAD(0x934, PIN_INPUT_PULLUP | MUX_MODE1) /* mii1_rxd3.uart3_rxd */
232 AM33XX_IOPAD(0x938, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_rxd2.uart3_txd */
238 pinctrl-names = "default";
239 pinctrl-0 = <&uart0_pins>;
244 pinctrl-names = "default";
245 pinctrl-0 = <&uart1_pins>;
249 pinctrl-names = "default";
250 pinctrl-0 = <&uart2_pins>;
255 pinctrl-names = "default";
256 pinctrl-0 = <&uart3_pins>;