1 // SPDX-License-Identifier: GPL-2.0-only 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* 2 /* 3 * Copyright (C) 2014-2017 Phytec Messtechnik 3 * Copyright (C) 2014-2017 Phytec Messtechnik GmbH 4 * Author: Wadim Egorov <w.egorov@phytec.de> 4 * Author: Wadim Egorov <w.egorov@phytec.de> 5 * Teresa Remmet <t.remmet@phytec.de> 5 * Teresa Remmet <t.remmet@phytec.de> 6 */ 6 */ 7 7 8 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/input/input.h> 9 9 10 / { 10 / { 11 model = "Phytec AM335x PCM-953"; 11 model = "Phytec AM335x PCM-953"; 12 compatible = "phytec,am335x-pcm-953", 12 compatible = "phytec,am335x-pcm-953", "phytec,am335x-phycore-som", "ti,am33xx"; 13 13 14 /* Power */ 14 /* Power */ 15 vcc3v3: fixedregulator1 { 15 vcc3v3: fixedregulator1 { 16 compatible = "regulator-fixed" 16 compatible = "regulator-fixed"; 17 regulator-name = "vcc3v3"; 17 regulator-name = "vcc3v3"; 18 regulator-min-microvolt = <330 18 regulator-min-microvolt = <3300000>; 19 regulator-max-microvolt = <330 19 regulator-max-microvolt = <3300000>; 20 regulator-boot-on; 20 regulator-boot-on; 21 }; 21 }; 22 22 23 vcc1v8: fixedregulator2 { 23 vcc1v8: fixedregulator2 { 24 compatible = "regulator-fixed" 24 compatible = "regulator-fixed"; 25 regulator-name = "vcc1v8"; 25 regulator-name = "vcc1v8"; 26 regulator-min-microvolt = <180 26 regulator-min-microvolt = <1800000>; 27 regulator-max-microvolt = <180 27 regulator-max-microvolt = <1800000>; 28 regulator-boot-on; 28 regulator-boot-on; 29 }; 29 }; 30 30 31 /* User IO */ 31 /* User IO */ 32 user_leds: user-leds { 32 user_leds: user-leds { 33 compatible = "gpio-leds"; 33 compatible = "gpio-leds"; 34 pinctrl-names = "default"; 34 pinctrl-names = "default"; 35 pinctrl-0 = <&user_leds_pins>; 35 pinctrl-0 = <&user_leds_pins>; 36 36 37 user-led0 { 37 user-led0 { 38 gpios = <&gpio1 30 GPI 38 gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>; 39 default-state = "on"; 39 default-state = "on"; 40 }; 40 }; 41 41 42 user-led1 { 42 user-led1 { 43 gpios = <&gpio1 31 GPI 43 gpios = <&gpio1 31 GPIO_ACTIVE_LOW>; 44 default-state = "on"; 44 default-state = "on"; 45 }; 45 }; 46 }; 46 }; 47 47 48 user_buttons: user-buttons { 48 user_buttons: user-buttons { 49 compatible = "gpio-keys"; 49 compatible = "gpio-keys"; 50 pinctrl-names = "default"; 50 pinctrl-names = "default"; 51 pinctrl-0 = <&user_buttons_pin 51 pinctrl-0 = <&user_buttons_pins>; 52 52 53 button-0 { 53 button-0 { 54 label = "home"; 54 label = "home"; 55 linux,code = <KEY_HOME 55 linux,code = <KEY_HOME>; 56 gpios = <&gpio3 7 GPIO 56 gpios = <&gpio3 7 GPIO_ACTIVE_HIGH>; 57 wakeup-source; 57 wakeup-source; 58 }; 58 }; 59 59 60 button-1 { 60 button-1 { 61 label = "menu"; 61 label = "menu"; 62 linux,code = <KEY_MENU 62 linux,code = <KEY_MENU>; 63 gpios = <&gpio3 8 GPIO 63 gpios = <&gpio3 8 GPIO_ACTIVE_HIGH>; 64 wakeup-source; 64 wakeup-source; 65 }; 65 }; 66 66 67 }; 67 }; 68 }; 68 }; 69 69 70 &am33xx_pinmux { 70 &am33xx_pinmux { 71 user_buttons_pins: pinmux-user-buttons 71 user_buttons_pins: pinmux-user-buttons-pins { 72 pinctrl-single,pins = < 72 pinctrl-single,pins = < 73 AM33XX_PADCONF(AM335X_ 73 AM33XX_PADCONF(AM335X_PIN_EMU0, PIN_INPUT_PULLDOWN, MUX_MODE7) /* emu0.gpio3_7 */ 74 AM33XX_PADCONF(AM335X_ 74 AM33XX_PADCONF(AM335X_PIN_EMU1, PIN_INPUT_PULLDOWN, MUX_MODE7) /* emu1.gpio3_8 */ 75 >; 75 >; 76 }; 76 }; 77 77 78 user_leds_pins: pinmux-user-leds-pins 78 user_leds_pins: pinmux-user-leds-pins { 79 pinctrl-single,pins = < 79 pinctrl-single,pins = < 80 AM33XX_PADCONF(AM335X_ 80 AM33XX_PADCONF(AM335X_PIN_GPMC_CSN1, PIN_OUTPUT_PULLDOWN, MUX_MODE7) /* gpmc_csn1.gpio1_30 */ 81 AM33XX_PADCONF(AM335X_ 81 AM33XX_PADCONF(AM335X_PIN_GPMC_CSN2, PIN_OUTPUT_PULLDOWN, MUX_MODE7) /* gpmc_csn2.gpio1_31 */ 82 >; 82 >; 83 }; 83 }; 84 }; 84 }; 85 85 86 /* CAN */ 86 /* CAN */ 87 &am33xx_pinmux { 87 &am33xx_pinmux { 88 dcan1_pins: pinmux-dcan1-pins { 88 dcan1_pins: pinmux-dcan1-pins { 89 pinctrl-single,pins = < 89 pinctrl-single,pins = < 90 AM33XX_PADCONF(AM335X_ 90 AM33XX_PADCONF(AM335X_PIN_UART1_RXD, PIN_OUTPUT_PULLUP, MUX_MODE2) /* uart1_rxd.dcan1_tx_mux2 */ 91 AM33XX_PADCONF(AM335X_ 91 AM33XX_PADCONF(AM335X_PIN_UART1_TXD, PIN_INPUT_PULLUP, MUX_MODE2) /* uart1_txd.dcan1_rx_mux2 */ 92 >; 92 >; 93 }; 93 }; 94 }; 94 }; 95 95 96 &dcan1 { 96 &dcan1 { 97 pinctrl-names = "default"; 97 pinctrl-names = "default"; 98 pinctrl-0 = <&dcan1_pins>; 98 pinctrl-0 = <&dcan1_pins>; 99 status = "okay"; 99 status = "okay"; 100 }; 100 }; 101 101 102 /* Ethernet */ 102 /* Ethernet */ 103 &am33xx_pinmux { 103 &am33xx_pinmux { 104 ethernet1_pins: ethernet1-pins { 104 ethernet1_pins: ethernet1-pins { 105 pinctrl-single,pins = < 105 pinctrl-single,pins = < 106 AM33XX_PADCONF(AM335X_ 106 AM33XX_PADCONF(AM335X_PIN_GPMC_A0, PIN_OUTPUT_PULLDOWN, MUX_MODE2) /* gpmc_a0.rgmii2_tctl */ 107 AM33XX_PADCONF(AM335X_ 107 AM33XX_PADCONF(AM335X_PIN_GPMC_A1, PIN_INPUT_PULLDOWN, MUX_MODE2) /* gpmc_a1.rgmii2_rctl */ 108 AM33XX_PADCONF(AM335X_ 108 AM33XX_PADCONF(AM335X_PIN_GPMC_A2, PIN_OUTPUT_PULLDOWN, MUX_MODE2) /* gpmc_a2.rgmii2_td3 */ 109 AM33XX_PADCONF(AM335X_ 109 AM33XX_PADCONF(AM335X_PIN_GPMC_A3, PIN_OUTPUT_PULLDOWN, MUX_MODE2) /* gpmc_a3.rgmii2_td2 */ 110 AM33XX_PADCONF(AM335X_ 110 AM33XX_PADCONF(AM335X_PIN_GPMC_A4, PIN_OUTPUT_PULLDOWN, MUX_MODE2) /* gpmc_a4.rgmii2_td1 */ 111 AM33XX_PADCONF(AM335X_ 111 AM33XX_PADCONF(AM335X_PIN_GPMC_A5, PIN_OUTPUT_PULLDOWN, MUX_MODE2) /* gpmc_a5.rgmii2_td0 */ 112 AM33XX_PADCONF(AM335X_ 112 AM33XX_PADCONF(AM335X_PIN_GPMC_A6, PIN_OUTPUT_PULLDOWN, MUX_MODE2) /* gpmc_a6.rgmii2_tclk */ 113 AM33XX_PADCONF(AM335X_ 113 AM33XX_PADCONF(AM335X_PIN_GPMC_A7, PIN_INPUT_PULLDOWN, MUX_MODE2) /* gpmc_a7.rgmii2_rclk */ 114 AM33XX_PADCONF(AM335X_ 114 AM33XX_PADCONF(AM335X_PIN_GPMC_A8, PIN_INPUT_PULLDOWN, MUX_MODE2) /* gpmc_a8.rgmii2_rd3 */ 115 AM33XX_PADCONF(AM335X_ 115 AM33XX_PADCONF(AM335X_PIN_GPMC_A9, PIN_INPUT_PULLDOWN, MUX_MODE2) /* gpmc_a9.rgmii2_rd2 */ 116 AM33XX_PADCONF(AM335X_ 116 AM33XX_PADCONF(AM335X_PIN_GPMC_A10, PIN_INPUT_PULLDOWN, MUX_MODE2) /* gpmc_a10.rgmii2_rd1 */ 117 AM33XX_PADCONF(AM335X_ 117 AM33XX_PADCONF(AM335X_PIN_GPMC_A11, PIN_INPUT_PULLDOWN, MUX_MODE2) /* gpmc_a11.rgmii2_rd0 */ 118 >; 118 >; 119 }; 119 }; 120 }; 120 }; 121 121 122 &cpsw_port2 { 122 &cpsw_port2 { 123 phy-handle = <&phy1>; 123 phy-handle = <&phy1>; 124 phy-mode = "rgmii-id"; 124 phy-mode = "rgmii-id"; 125 ti,dual-emac-pvid = <2>; 125 ti,dual-emac-pvid = <2>; 126 status = "okay"; 126 status = "okay"; 127 }; 127 }; 128 128 129 &davinci_mdio_sw { 129 &davinci_mdio_sw { 130 phy1: ethernet-phy@2 { 130 phy1: ethernet-phy@2 { 131 reg = <2>; 131 reg = <2>; 132 }; 132 }; 133 }; 133 }; 134 134 135 &mac_sw { 135 &mac_sw { 136 pinctrl-names = "default"; 136 pinctrl-names = "default"; 137 pinctrl-0 = <ðernet0_pins ðernet 137 pinctrl-0 = <ðernet0_pins ðernet1_pins>; 138 }; 138 }; 139 139 140 /* Misc */ 140 /* Misc */ 141 &am33xx_pinmux { 141 &am33xx_pinmux { 142 pinctrl-names = "default"; 142 pinctrl-names = "default"; 143 pinctrl-0 = <&cb_gpio_pins>; 143 pinctrl-0 = <&cb_gpio_pins>; 144 144 145 cb_gpio_pins: pinmux-cb-gpio-pins { 145 cb_gpio_pins: pinmux-cb-gpio-pins { 146 pinctrl-single,pins = < 146 pinctrl-single,pins = < 147 AM33XX_PADCONF(AM335X_ 147 AM33XX_PADCONF(AM335X_PIN_UART0_CTSN, PIN_OUTPUT_PULLDOWN, MUX_MODE7) /* uart0_ctsn.gpio1_8 */ 148 AM33XX_PADCONF(AM335X_ 148 AM33XX_PADCONF(AM335X_PIN_UART0_RTSN, PIN_OUTPUT_PULLDOWN, MUX_MODE7) /* uart0_rtsn.gpio1_9 */ 149 >; 149 >; 150 }; 150 }; 151 }; 151 }; 152 152 153 /* MMC */ 153 /* MMC */ 154 &am33xx_pinmux { 154 &am33xx_pinmux { 155 mmc1_pins: pinmux-mmc1-pins { 155 mmc1_pins: pinmux-mmc1-pins { 156 pinctrl-single,pins = < 156 pinctrl-single,pins = < 157 AM33XX_PADCONF(AM335X_ 157 AM33XX_PADCONF(AM335X_PIN_MMC0_DAT3, PIN_INPUT_PULLUP, MUX_MODE0) 158 AM33XX_PADCONF(AM335X_ 158 AM33XX_PADCONF(AM335X_PIN_MMC0_DAT2, PIN_INPUT_PULLUP, MUX_MODE0) 159 AM33XX_PADCONF(AM335X_ 159 AM33XX_PADCONF(AM335X_PIN_MMC0_DAT1, PIN_INPUT_PULLUP, MUX_MODE0) 160 AM33XX_PADCONF(AM335X_ 160 AM33XX_PADCONF(AM335X_PIN_MMC0_DAT0, PIN_INPUT_PULLUP, MUX_MODE0) 161 AM33XX_PADCONF(AM335X_ 161 AM33XX_PADCONF(AM335X_PIN_MMC0_CLK, PIN_INPUT_PULLUP, MUX_MODE0) 162 AM33XX_PADCONF(AM335X_ 162 AM33XX_PADCONF(AM335X_PIN_MMC0_CMD, PIN_INPUT_PULLUP, MUX_MODE0) 163 AM33XX_PADCONF(AM335X_ 163 AM33XX_PADCONF(AM335X_PIN_SPI0_CS1, PIN_INPUT_PULLUP, MUX_MODE7) /* spi0_cs1.mmc0_sdcd */ 164 >; 164 >; 165 }; 165 }; 166 }; 166 }; 167 167 168 &mmc1 { 168 &mmc1 { 169 vmmc-supply = <&vcc3v3>; 169 vmmc-supply = <&vcc3v3>; 170 bus-width = <4>; 170 bus-width = <4>; 171 pinctrl-names = "default"; 171 pinctrl-names = "default"; 172 pinctrl-0 = <&mmc1_pins>; 172 pinctrl-0 = <&mmc1_pins>; 173 cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; 173 cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; 174 status = "okay"; 174 status = "okay"; 175 }; 175 }; 176 176 177 /* UARTs */ 177 /* UARTs */ 178 &am33xx_pinmux { 178 &am33xx_pinmux { 179 uart0_pins: pinmux-uart0-pins { 179 uart0_pins: pinmux-uart0-pins { 180 pinctrl-single,pins = < 180 pinctrl-single,pins = < 181 AM33XX_PADCONF(AM335X_ 181 AM33XX_PADCONF(AM335X_PIN_UART0_RXD, PIN_INPUT_PULLUP, MUX_MODE0) 182 AM33XX_PADCONF(AM335X_ 182 AM33XX_PADCONF(AM335X_PIN_UART0_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0) 183 >; 183 >; 184 }; 184 }; 185 185 186 uart1_pins: pinmux-uart1-pins { 186 uart1_pins: pinmux-uart1-pins { 187 pinctrl-single,pins = < 187 pinctrl-single,pins = < 188 AM33XX_PADCONF(AM335X_ 188 AM33XX_PADCONF(AM335X_PIN_UART1_RXD, PIN_INPUT_PULLUP, MUX_MODE0) 189 AM33XX_PADCONF(AM335X_ 189 AM33XX_PADCONF(AM335X_PIN_UART1_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0) 190 AM33XX_PADCONF(AM335X_ 190 AM33XX_PADCONF(AM335X_PIN_UART1_CTSN, PIN_INPUT, MUX_MODE0) 191 AM33XX_PADCONF(AM335X_ 191 AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, PIN_OUTPUT_PULLDOWN, MUX_MODE0) 192 >; 192 >; 193 }; 193 }; 194 194 195 uart2_pins: pinmux-uart2-pins { 195 uart2_pins: pinmux-uart2-pins { 196 pinctrl-single,pins = < 196 pinctrl-single,pins = < 197 AM33XX_PADCONF(AM335X_ 197 AM33XX_PADCONF(AM335X_PIN_MII1_TX_CLK, PIN_INPUT_PULLUP, MUX_MODE1) /* mii1_tx_clk.uart2_rxd */ 198 AM33XX_PADCONF(AM335X_ 198 AM33XX_PADCONF(AM335X_PIN_MII1_RX_CLK, PIN_OUTPUT_PULLDOWN, MUX_MODE1) /* mii1_rx_clk.uart2_txd */ 199 >; 199 >; 200 }; 200 }; 201 201 202 uart3_pins: pinmux-uart3-pins { 202 uart3_pins: pinmux-uart3-pins { 203 pinctrl-single,pins = < 203 pinctrl-single,pins = < 204 AM33XX_PADCONF(AM335X_ 204 AM33XX_PADCONF(AM335X_PIN_MII1_RXD3, PIN_INPUT_PULLUP, MUX_MODE1) /* mii1_rxd3.uart3_rxd */ 205 AM33XX_PADCONF(AM335X_ 205 AM33XX_PADCONF(AM335X_PIN_MII1_RXD2, PIN_OUTPUT_PULLDOWN, MUX_MODE1) /* mii1_rxd2.uart3_txd */ 206 >; 206 >; 207 }; 207 }; 208 }; 208 }; 209 209 210 &uart0 { 210 &uart0 { 211 pinctrl-names = "default"; 211 pinctrl-names = "default"; 212 pinctrl-0 = <&uart0_pins>; 212 pinctrl-0 = <&uart0_pins>; 213 status = "okay"; 213 status = "okay"; 214 }; 214 }; 215 215 216 &uart1 { 216 &uart1 { 217 pinctrl-names = "default"; 217 pinctrl-names = "default"; 218 pinctrl-0 = <&uart1_pins>; 218 pinctrl-0 = <&uart1_pins>; 219 }; 219 }; 220 220 221 &uart2 { 221 &uart2 { 222 pinctrl-names = "default"; 222 pinctrl-names = "default"; 223 pinctrl-0 = <&uart2_pins>; 223 pinctrl-0 = <&uart2_pins>; 224 status = "okay"; 224 status = "okay"; 225 }; 225 }; 226 226 227 &uart3 { 227 &uart3 { 228 pinctrl-names = "default"; 228 pinctrl-names = "default"; 229 pinctrl-0 = <&uart3_pins>; 229 pinctrl-0 = <&uart3_pins>; 230 status = "okay"; 230 status = "okay"; 231 }; 231 }; 232 232 233 /* USB */ 233 /* USB */ 234 &usb1 { 234 &usb1 { 235 dr_mode = "host"; 235 dr_mode = "host"; 236 }; 236 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.