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 | }; |
Mugunthan V N | e54686e | 2013-10-11 00:44:54 +0530 | [diff] [blame] | 89 | }; |
| 90 | |
| 91 | matrix_keypad: matrix_keypad@0 { |
| 92 | compatible = "gpio-matrix-keypad"; |
| 93 | debounce-delay-ms = <5>; |
| 94 | col-scan-delay-us = <2>; |
| 95 | |
| 96 | row-gpios = <&gpio0 12 GPIO_ACTIVE_HIGH /* Bank0, pin12 */ |
| 97 | &gpio0 13 GPIO_ACTIVE_HIGH /* Bank0, pin13 */ |
| 98 | &gpio0 14 GPIO_ACTIVE_HIGH /* Bank0, pin14 */ |
| 99 | &gpio0 15 GPIO_ACTIVE_HIGH>; /* Bank0, pin15 */ |
| 100 | |
| 101 | col-gpios = <&gpio3 9 GPIO_ACTIVE_HIGH /* Bank3, pin9 */ |
| 102 | &gpio3 10 GPIO_ACTIVE_HIGH /* Bank3, pin10 */ |
| 103 | &gpio2 18 GPIO_ACTIVE_HIGH /* Bank2, pin18 */ |
| 104 | &gpio2 19 GPIO_ACTIVE_HIGH>; /* Bank2, pin19 */ |
| 105 | |
| 106 | linux,keymap = <0x00000201 /* P1 */ |
| 107 | 0x01000204 /* P4 */ |
| 108 | 0x02000207 /* P7 */ |
| 109 | 0x0300020a /* NUMERIC_STAR */ |
| 110 | 0x00010202 /* P2 */ |
| 111 | 0x01010205 /* P5 */ |
| 112 | 0x02010208 /* P8 */ |
| 113 | 0x03010200 /* P0 */ |
| 114 | 0x00020203 /* P3 */ |
| 115 | 0x01020206 /* P6 */ |
| 116 | 0x02020209 /* P9 */ |
| 117 | 0x0302020b /* NUMERIC_POUND */ |
| 118 | 0x00030067 /* UP */ |
| 119 | 0x0103006a /* RIGHT */ |
| 120 | 0x0203006c /* DOWN */ |
| 121 | 0x03030069>; /* LEFT */ |
| 122 | }; |
Sourav Poddar | 2e3a938 | 2013-12-19 18:03:34 +0530 | [diff] [blame^] | 123 | |
| 124 | backlight { |
| 125 | compatible = "pwm-backlight"; |
| 126 | pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>; |
| 127 | brightness-levels = <0 51 53 56 62 75 101 152 255>; |
| 128 | default-brightness-level = <8>; |
| 129 | }; |
Mugunthan V N | e54686e | 2013-10-11 00:44:54 +0530 | [diff] [blame] | 130 | }; |
| 131 | |
| 132 | &mmc1 { |
| 133 | status = "okay"; |
| 134 | vmmc-supply = <&vmmcsd_fixed>; |
| 135 | bus-width = <4>; |
| 136 | }; |
| 137 | |
| 138 | &mac { |
| 139 | pinctrl-names = "default", "sleep"; |
| 140 | pinctrl-0 = <&cpsw_default>; |
| 141 | pinctrl-1 = <&cpsw_sleep>; |
| 142 | status = "okay"; |
| 143 | }; |
| 144 | |
| 145 | &davinci_mdio { |
| 146 | pinctrl-names = "default", "sleep"; |
| 147 | pinctrl-0 = <&davinci_mdio_default>; |
| 148 | pinctrl-1 = <&davinci_mdio_sleep>; |
| 149 | status = "okay"; |
| 150 | }; |
| 151 | |
| 152 | &cpsw_emac0 { |
| 153 | phy_id = <&davinci_mdio>, <16>; |
| 154 | phy-mode = "rmii"; |
| 155 | }; |
| 156 | |
| 157 | &cpsw_emac1 { |
| 158 | phy_id = <&davinci_mdio>, <1>; |
| 159 | phy-mode = "rmii"; |
| 160 | }; |
| 161 | |
| 162 | &i2c0 { |
| 163 | status = "okay"; |
| 164 | pinctrl-names = "default"; |
| 165 | pinctrl-0 = <&i2c0_pins>; |
| 166 | |
| 167 | at24@50 { |
| 168 | compatible = "at24,24c256"; |
| 169 | pagesize = <64>; |
| 170 | reg = <0x50>; |
| 171 | }; |
| 172 | |
| 173 | pixcir_ts@5c { |
| 174 | compatible = "pixcir,pixcir_ts"; |
| 175 | reg = <0x5c>; |
| 176 | interrupt-parent = <&gpio1>; |
| 177 | interrupts = <17 0>; |
| 178 | |
| 179 | attb-gpio = <&gpio1 17 GPIO_ACTIVE_HIGH>; |
| 180 | |
| 181 | x-size = <1024>; |
| 182 | y-size = <768>; |
| 183 | }; |
| 184 | }; |
| 185 | |
| 186 | &gpio0 { |
| 187 | status = "okay"; |
| 188 | }; |
| 189 | |
| 190 | &gpio1 { |
| 191 | status = "okay"; |
| 192 | }; |
| 193 | |
| 194 | &gpio2 { |
| 195 | status = "okay"; |
| 196 | }; |
| 197 | |
| 198 | &gpio3 { |
| 199 | status = "okay"; |
Afzal Mohammed | 4730bcf | 2013-06-14 19:33:34 +0530 | [diff] [blame] | 200 | }; |
Sourav Poddar | 2e3a938 | 2013-12-19 18:03:34 +0530 | [diff] [blame^] | 201 | |
| 202 | &epwmss0 { |
| 203 | status = "okay"; |
| 204 | }; |
| 205 | |
| 206 | &ecap0 { |
| 207 | status = "okay"; |
| 208 | pinctrl-names = "default"; |
| 209 | pinctrl-0 = <&ecap0_pins>; |
| 210 | }; |