am43x-epos-evm.dts 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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. /* AM43x EPOS EVM */
  9. /dts-v1/;
  10. #include "am4372.dtsi"
  11. #include <dt-bindings/pinctrl/am43xx.h>
  12. #include <dt-bindings/gpio/gpio.h>
  13. / {
  14. model = "TI AM43x EPOS EVM";
  15. compatible = "ti,am43x-epos-evm","ti,am4372","ti,am43";
  16. vmmcsd_fixed: fixedregulator-sd {
  17. compatible = "regulator-fixed";
  18. regulator-name = "vmmcsd_fixed";
  19. regulator-min-microvolt = <3300000>;
  20. regulator-max-microvolt = <3300000>;
  21. enable-active-high;
  22. };
  23. am43xx_pinmux: pinmux@44e10800 {
  24. cpsw_default: cpsw_default {
  25. pinctrl-single,pins = <
  26. /* Slave 1 */
  27. 0x10c (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_crs.rmii1_crs */
  28. 0x110 (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_rxerr.rmii1_rxerr */
  29. 0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_txen.rmii1_txen */
  30. 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_rxdv.rmii1_rxdv */
  31. 0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_txd1.rmii1_txd1 */
  32. 0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_txd0.rmii1_txd0 */
  33. 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_rxd1.rmii1_rxd1 */
  34. 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_rxd0.rmii1_rxd0 */
  35. 0x144 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii1_refclk.rmii1_refclk */
  36. >;
  37. };
  38. cpsw_sleep: cpsw_sleep {
  39. pinctrl-single,pins = <
  40. /* Slave 1 reset value */
  41. 0x10c (PIN_INPUT_PULLDOWN | MUX_MODE7)
  42. 0x110 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  43. 0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  44. 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  45. 0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  46. 0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  47. 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7)
  48. 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  49. 0x144 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  50. >;
  51. };
  52. davinci_mdio_default: davinci_mdio_default {
  53. pinctrl-single,pins = <
  54. /* MDIO */
  55. 0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */
  56. 0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
  57. >;
  58. };
  59. davinci_mdio_sleep: davinci_mdio_sleep {
  60. pinctrl-single,pins = <
  61. /* MDIO reset value */
  62. 0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  63. 0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
  64. >;
  65. };
  66. i2c0_pins: pinmux_i2c0_pins {
  67. pinctrl-single,pins = <
  68. 0x188 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_sda.i2c0_sda */
  69. 0x18c (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */
  70. >;
  71. };
  72. };
  73. matrix_keypad: matrix_keypad@0 {
  74. compatible = "gpio-matrix-keypad";
  75. debounce-delay-ms = <5>;
  76. col-scan-delay-us = <2>;
  77. row-gpios = <&gpio0 12 GPIO_ACTIVE_HIGH /* Bank0, pin12 */
  78. &gpio0 13 GPIO_ACTIVE_HIGH /* Bank0, pin13 */
  79. &gpio0 14 GPIO_ACTIVE_HIGH /* Bank0, pin14 */
  80. &gpio0 15 GPIO_ACTIVE_HIGH>; /* Bank0, pin15 */
  81. col-gpios = <&gpio3 9 GPIO_ACTIVE_HIGH /* Bank3, pin9 */
  82. &gpio3 10 GPIO_ACTIVE_HIGH /* Bank3, pin10 */
  83. &gpio2 18 GPIO_ACTIVE_HIGH /* Bank2, pin18 */
  84. &gpio2 19 GPIO_ACTIVE_HIGH>; /* Bank2, pin19 */
  85. linux,keymap = <0x00000201 /* P1 */
  86. 0x01000204 /* P4 */
  87. 0x02000207 /* P7 */
  88. 0x0300020a /* NUMERIC_STAR */
  89. 0x00010202 /* P2 */
  90. 0x01010205 /* P5 */
  91. 0x02010208 /* P8 */
  92. 0x03010200 /* P0 */
  93. 0x00020203 /* P3 */
  94. 0x01020206 /* P6 */
  95. 0x02020209 /* P9 */
  96. 0x0302020b /* NUMERIC_POUND */
  97. 0x00030067 /* UP */
  98. 0x0103006a /* RIGHT */
  99. 0x0203006c /* DOWN */
  100. 0x03030069>; /* LEFT */
  101. };
  102. };
  103. &mmc1 {
  104. status = "okay";
  105. vmmc-supply = <&vmmcsd_fixed>;
  106. bus-width = <4>;
  107. };
  108. &mac {
  109. pinctrl-names = "default", "sleep";
  110. pinctrl-0 = <&cpsw_default>;
  111. pinctrl-1 = <&cpsw_sleep>;
  112. status = "okay";
  113. };
  114. &davinci_mdio {
  115. pinctrl-names = "default", "sleep";
  116. pinctrl-0 = <&davinci_mdio_default>;
  117. pinctrl-1 = <&davinci_mdio_sleep>;
  118. status = "okay";
  119. };
  120. &cpsw_emac0 {
  121. phy_id = <&davinci_mdio>, <16>;
  122. phy-mode = "rmii";
  123. };
  124. &cpsw_emac1 {
  125. phy_id = <&davinci_mdio>, <1>;
  126. phy-mode = "rmii";
  127. };
  128. &i2c0 {
  129. status = "okay";
  130. pinctrl-names = "default";
  131. pinctrl-0 = <&i2c0_pins>;
  132. at24@50 {
  133. compatible = "at24,24c256";
  134. pagesize = <64>;
  135. reg = <0x50>;
  136. };
  137. pixcir_ts@5c {
  138. compatible = "pixcir,pixcir_ts";
  139. reg = <0x5c>;
  140. interrupt-parent = <&gpio1>;
  141. interrupts = <17 0>;
  142. attb-gpio = <&gpio1 17 GPIO_ACTIVE_HIGH>;
  143. x-size = <1024>;
  144. y-size = <768>;
  145. };
  146. };
  147. &gpio0 {
  148. status = "okay";
  149. };
  150. &gpio1 {
  151. status = "okay";
  152. };
  153. &gpio2 {
  154. status = "okay";
  155. };
  156. &gpio3 {
  157. status = "okay";
  158. };