Afzal Mohammed | 4730bcf | 2013-06-14 19:33:34 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/ |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 as |
| 6 | * published by the Free Software Foundation. |
| 7 | */ |
| 8 | |
| 9 | /* AM43x EPOS EVM */ |
| 10 | |
| 11 | /dts-v1/; |
| 12 | |
| 13 | #include "am4372.dtsi" |
Mugunthan V N | e54686e | 2013-10-11 00:44:54 +0530 | [diff] [blame] | 14 | #include <dt-bindings/pinctrl/am43xx.h> |
| 15 | #include <dt-bindings/gpio/gpio.h> |
Sourav Poddar | 2e3a938 | 2013-12-19 18:03:34 +0530 | [diff] [blame] | 16 | #include <dt-bindings/pwm/pwm.h> |
Afzal Mohammed | 4730bcf | 2013-06-14 19:33:34 +0530 | [diff] [blame] | 17 | |
| 18 | / { |
| 19 | model = "TI AM43x EPOS EVM"; |
| 20 | compatible = "ti,am43x-epos-evm","ti,am4372","ti,am43"; |
Mugunthan V N | e54686e | 2013-10-11 00:44:54 +0530 | [diff] [blame] | 21 | |
| 22 | vmmcsd_fixed: fixedregulator-sd { |
| 23 | compatible = "regulator-fixed"; |
| 24 | regulator-name = "vmmcsd_fixed"; |
| 25 | regulator-min-microvolt = <3300000>; |
| 26 | regulator-max-microvolt = <3300000>; |
| 27 | enable-active-high; |
| 28 | }; |
| 29 | |
| 30 | am43xx_pinmux: pinmux@44e10800 { |
| 31 | cpsw_default: cpsw_default { |
| 32 | pinctrl-single,pins = < |
| 33 | /* Slave 1 */ |
| 34 | 0x10c (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_crs.rmii1_crs */ |
| 35 | 0x110 (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_rxerr.rmii1_rxerr */ |
| 36 | 0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_txen.rmii1_txen */ |
| 37 | 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_rxdv.rmii1_rxdv */ |
| 38 | 0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_txd1.rmii1_txd1 */ |
| 39 | 0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_txd0.rmii1_txd0 */ |
| 40 | 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_rxd1.rmii1_rxd1 */ |
| 41 | 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_rxd0.rmii1_rxd0 */ |
| 42 | 0x144 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii1_refclk.rmii1_refclk */ |
| 43 | >; |
| 44 | }; |
| 45 | |
| 46 | cpsw_sleep: cpsw_sleep { |
| 47 | pinctrl-single,pins = < |
| 48 | /* Slave 1 reset value */ |
| 49 | 0x10c (PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 50 | 0x110 (PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 51 | 0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 52 | 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 53 | 0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 54 | 0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 55 | 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 56 | 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 57 | 0x144 (PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 58 | >; |
| 59 | }; |
| 60 | |
| 61 | davinci_mdio_default: davinci_mdio_default { |
| 62 | pinctrl-single,pins = < |
| 63 | /* MDIO */ |
| 64 | 0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */ |
| 65 | 0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */ |
| 66 | >; |
| 67 | }; |
| 68 | |
| 69 | davinci_mdio_sleep: davinci_mdio_sleep { |
| 70 | pinctrl-single,pins = < |
| 71 | /* MDIO reset value */ |
| 72 | 0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 73 | 0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 74 | >; |
| 75 | }; |
| 76 | |
| 77 | i2c0_pins: pinmux_i2c0_pins { |
| 78 | pinctrl-single,pins = < |
| 79 | 0x188 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_sda.i2c0_sda */ |
| 80 | 0x18c (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */ |
| 81 | >; |
| 82 | }; |
Sourav Poddar | 2e3a938 | 2013-12-19 18:03:34 +0530 | [diff] [blame] | 83 | |
| 84 | ecap0_pins: backlight_pins { |
| 85 | pinctrl-single,pins = < |
| 86 | 0x164 MUX_MODE0 /* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */ |
| 87 | >; |
| 88 | }; |
Sourav Poddar | 0aeaf1c | 2013-12-19 18:03:36 +0530 | [diff] [blame] | 89 | |
| 90 | i2c2_pins: pinmux_i2c2_pins { |
| 91 | pinctrl-single,pins = < |
| 92 | 0x1c0 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE8) /* i2c2_sda.i2c2_sda */ |
| 93 | 0x1c4 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE8) /* i2c2_scl.i2c2_scl */ |
| 94 | >; |
| 95 | }; |
Sourav Poddar | 416f3d5 | 2013-12-19 18:03:37 +0530 | [diff] [blame^] | 96 | |
| 97 | spi0_pins: pinmux_spi0_pins { |
| 98 | pinctrl-single,pins = < |
| 99 | 0x150 (PIN_INPUT | MUX_MODE0) /* spi0_clk.spi0_clk */ |
| 100 | 0x154 (PIN_OUTPUT | MUX_MODE0) /* spi0_d0.spi0_d0 */ |
| 101 | 0x158 (PIN_INPUT | MUX_MODE0) /* spi0_d1.spi0_d1 */ |
| 102 | 0x15c (PIN_OUTPUT | MUX_MODE0) /* spi0_cs0.spi0_cs0 */ |
| 103 | >; |
| 104 | }; |
| 105 | |
| 106 | spi1_pins: pinmux_spi1_pins { |
| 107 | pinctrl-single,pins = < |
| 108 | 0x190 (PIN_INPUT | MUX_MODE3) /* mcasp0_aclkx.spi1_clk */ |
| 109 | 0x194 (PIN_OUTPUT | MUX_MODE3) /* mcasp0_fsx.spi1_d0 */ |
| 110 | 0x198 (PIN_INPUT | MUX_MODE3) /* mcasp0_axr0.spi1_d1 */ |
| 111 | 0x19c (PIN_OUTPUT | MUX_MODE3) /* mcasp0_ahclkr.spi1_cs0 */ |
| 112 | >; |
| 113 | }; |
Mugunthan V N | e54686e | 2013-10-11 00:44:54 +0530 | [diff] [blame] | 114 | }; |
| 115 | |
| 116 | matrix_keypad: matrix_keypad@0 { |
| 117 | compatible = "gpio-matrix-keypad"; |
| 118 | debounce-delay-ms = <5>; |
| 119 | col-scan-delay-us = <2>; |
| 120 | |
| 121 | row-gpios = <&gpio0 12 GPIO_ACTIVE_HIGH /* Bank0, pin12 */ |
| 122 | &gpio0 13 GPIO_ACTIVE_HIGH /* Bank0, pin13 */ |
| 123 | &gpio0 14 GPIO_ACTIVE_HIGH /* Bank0, pin14 */ |
| 124 | &gpio0 15 GPIO_ACTIVE_HIGH>; /* Bank0, pin15 */ |
| 125 | |
| 126 | col-gpios = <&gpio3 9 GPIO_ACTIVE_HIGH /* Bank3, pin9 */ |
| 127 | &gpio3 10 GPIO_ACTIVE_HIGH /* Bank3, pin10 */ |
| 128 | &gpio2 18 GPIO_ACTIVE_HIGH /* Bank2, pin18 */ |
| 129 | &gpio2 19 GPIO_ACTIVE_HIGH>; /* Bank2, pin19 */ |
| 130 | |
| 131 | linux,keymap = <0x00000201 /* P1 */ |
| 132 | 0x01000204 /* P4 */ |
| 133 | 0x02000207 /* P7 */ |
| 134 | 0x0300020a /* NUMERIC_STAR */ |
| 135 | 0x00010202 /* P2 */ |
| 136 | 0x01010205 /* P5 */ |
| 137 | 0x02010208 /* P8 */ |
| 138 | 0x03010200 /* P0 */ |
| 139 | 0x00020203 /* P3 */ |
| 140 | 0x01020206 /* P6 */ |
| 141 | 0x02020209 /* P9 */ |
| 142 | 0x0302020b /* NUMERIC_POUND */ |
| 143 | 0x00030067 /* UP */ |
| 144 | 0x0103006a /* RIGHT */ |
| 145 | 0x0203006c /* DOWN */ |
| 146 | 0x03030069>; /* LEFT */ |
| 147 | }; |
Sourav Poddar | 2e3a938 | 2013-12-19 18:03:34 +0530 | [diff] [blame] | 148 | |
| 149 | backlight { |
| 150 | compatible = "pwm-backlight"; |
| 151 | pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>; |
| 152 | brightness-levels = <0 51 53 56 62 75 101 152 255>; |
| 153 | default-brightness-level = <8>; |
| 154 | }; |
Mugunthan V N | e54686e | 2013-10-11 00:44:54 +0530 | [diff] [blame] | 155 | }; |
| 156 | |
| 157 | &mmc1 { |
| 158 | status = "okay"; |
| 159 | vmmc-supply = <&vmmcsd_fixed>; |
| 160 | bus-width = <4>; |
| 161 | }; |
| 162 | |
| 163 | &mac { |
| 164 | pinctrl-names = "default", "sleep"; |
| 165 | pinctrl-0 = <&cpsw_default>; |
| 166 | pinctrl-1 = <&cpsw_sleep>; |
| 167 | status = "okay"; |
| 168 | }; |
| 169 | |
| 170 | &davinci_mdio { |
| 171 | pinctrl-names = "default", "sleep"; |
| 172 | pinctrl-0 = <&davinci_mdio_default>; |
| 173 | pinctrl-1 = <&davinci_mdio_sleep>; |
| 174 | status = "okay"; |
| 175 | }; |
| 176 | |
| 177 | &cpsw_emac0 { |
| 178 | phy_id = <&davinci_mdio>, <16>; |
| 179 | phy-mode = "rmii"; |
| 180 | }; |
| 181 | |
| 182 | &cpsw_emac1 { |
| 183 | phy_id = <&davinci_mdio>, <1>; |
| 184 | phy-mode = "rmii"; |
| 185 | }; |
| 186 | |
| 187 | &i2c0 { |
| 188 | status = "okay"; |
| 189 | pinctrl-names = "default"; |
| 190 | pinctrl-0 = <&i2c0_pins>; |
| 191 | |
| 192 | at24@50 { |
| 193 | compatible = "at24,24c256"; |
| 194 | pagesize = <64>; |
| 195 | reg = <0x50>; |
| 196 | }; |
| 197 | |
| 198 | pixcir_ts@5c { |
| 199 | compatible = "pixcir,pixcir_ts"; |
| 200 | reg = <0x5c>; |
| 201 | interrupt-parent = <&gpio1>; |
| 202 | interrupts = <17 0>; |
| 203 | |
| 204 | attb-gpio = <&gpio1 17 GPIO_ACTIVE_HIGH>; |
| 205 | |
| 206 | x-size = <1024>; |
| 207 | y-size = <768>; |
| 208 | }; |
| 209 | }; |
| 210 | |
Sourav Poddar | 0aeaf1c | 2013-12-19 18:03:36 +0530 | [diff] [blame] | 211 | &i2c2 { |
| 212 | pinctrl-names = "default"; |
| 213 | pinctrl-0 = <&i2c2_pins>; |
| 214 | status = "okay"; |
| 215 | }; |
| 216 | |
Mugunthan V N | e54686e | 2013-10-11 00:44:54 +0530 | [diff] [blame] | 217 | &gpio0 { |
| 218 | status = "okay"; |
| 219 | }; |
| 220 | |
| 221 | &gpio1 { |
| 222 | status = "okay"; |
| 223 | }; |
| 224 | |
| 225 | &gpio2 { |
| 226 | status = "okay"; |
| 227 | }; |
| 228 | |
| 229 | &gpio3 { |
| 230 | status = "okay"; |
Afzal Mohammed | 4730bcf | 2013-06-14 19:33:34 +0530 | [diff] [blame] | 231 | }; |
Sourav Poddar | 2e3a938 | 2013-12-19 18:03:34 +0530 | [diff] [blame] | 232 | |
| 233 | &epwmss0 { |
| 234 | status = "okay"; |
| 235 | }; |
| 236 | |
| 237 | &ecap0 { |
| 238 | status = "okay"; |
| 239 | pinctrl-names = "default"; |
| 240 | pinctrl-0 = <&ecap0_pins>; |
| 241 | }; |
Sourav Poddar | 416f3d5 | 2013-12-19 18:03:37 +0530 | [diff] [blame^] | 242 | |
| 243 | &spi0 { |
| 244 | pinctrl-names = "default"; |
| 245 | pinctrl-0 = <&spi0_pins>; |
| 246 | status = "okay"; |
| 247 | }; |
| 248 | |
| 249 | &spi1 { |
| 250 | pinctrl-names = "default"; |
| 251 | pinctrl-0 = <&spi1_pins>; |
| 252 | status = "okay"; |
| 253 | }; |