omap4-kc1.dts 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (C) 2016 Paul Kocialkowski <[email protected]>
  4. */
  5. /dts-v1/;
  6. #include "omap443x.dtsi"
  7. / {
  8. model = "Amazon Kindle Fire (first generation)";
  9. compatible = "amazon,omap4-kc1", "ti,omap4430", "ti,omap4";
  10. memory@80000000 {
  11. device_type = "memory";
  12. reg = <0x80000000 0x20000000>; /* 512 MB */
  13. };
  14. led-controller {
  15. compatible = "pwm-leds";
  16. led-1 {
  17. label = "green";
  18. pwms = <&twl_pwm 0 7812500>;
  19. max-brightness = <127>;
  20. };
  21. led-2 {
  22. label = "orange";
  23. pwms = <&twl_pwm 1 7812500>;
  24. max-brightness = <127>;
  25. };
  26. };
  27. };
  28. &omap4_pmx_core {
  29. pinctrl-names = "default";
  30. uart3_pins: uart3-pins {
  31. pinctrl-single,pins = <
  32. OMAP4_IOPAD(0x144, PIN_INPUT | MUX_MODE0) /* uart3_rx_irrx */
  33. OMAP4_IOPAD(0x146, PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx */
  34. >;
  35. };
  36. i2c1_pins: i2c1-pins {
  37. pinctrl-single,pins = <
  38. OMAP4_IOPAD(0x122, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */
  39. OMAP4_IOPAD(0x124, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */
  40. >;
  41. };
  42. i2c2_pins: i2c2-pins {
  43. pinctrl-single,pins = <
  44. OMAP4_IOPAD(0x126, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_scl */
  45. OMAP4_IOPAD(0x128, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_sda */
  46. >;
  47. };
  48. i2c3_pins: i2c3-pins {
  49. pinctrl-single,pins = <
  50. OMAP4_IOPAD(0x12a, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */
  51. OMAP4_IOPAD(0x12c, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */
  52. >;
  53. };
  54. i2c4_pins: i2c4-pins {
  55. pinctrl-single,pins = <
  56. OMAP4_IOPAD(0x12e, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c4_scl */
  57. OMAP4_IOPAD(0x130, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c4_sda */
  58. >;
  59. };
  60. mmc2_pins: mmc2-pins {
  61. pinctrl-single,pins = <
  62. OMAP4_IOPAD(0x040, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat0 */
  63. OMAP4_IOPAD(0x042, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat1 */
  64. OMAP4_IOPAD(0x044, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat2 */
  65. OMAP4_IOPAD(0x046, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat3 */
  66. OMAP4_IOPAD(0x048, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat4 */
  67. OMAP4_IOPAD(0x04a, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat5 */
  68. OMAP4_IOPAD(0x04c, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat6 */
  69. OMAP4_IOPAD(0x04e, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat7 */
  70. OMAP4_IOPAD(0x082, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_clk */
  71. OMAP4_IOPAD(0x084, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_cmd */
  72. >;
  73. };
  74. usb_otg_hs_pins: usb-otg-hs-pins {
  75. pinctrl-single,pins = <
  76. OMAP4_IOPAD(0x194, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* usba0_otg_ce */
  77. OMAP4_IOPAD(0x196, PIN_INPUT | MUX_MODE0) /* usba0_otg_dp */
  78. OMAP4_IOPAD(0x198, PIN_INPUT | MUX_MODE0) /* usba0_otg_dm */
  79. >;
  80. };
  81. };
  82. &uart3 {
  83. pinctrl-names = "default";
  84. pinctrl-0 = <&uart3_pins>;
  85. interrupts-extended = <&wakeupgen GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH
  86. &omap4_pmx_core OMAP4_UART3_RX>;
  87. };
  88. &i2c1 {
  89. pinctrl-names = "default";
  90. pinctrl-0 = <&i2c1_pins>;
  91. clock-frequency = <400000>;
  92. twl: twl@48 {
  93. reg = <0x48>;
  94. /* IRQ# = 7 */
  95. interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; /* IRQ_SYS_1N cascaded to gic */
  96. twl_power: power {
  97. compatible = "ti,twl6030-power";
  98. ti,system-power-controller;
  99. };
  100. };
  101. };
  102. &i2c2 {
  103. pinctrl-names = "default";
  104. pinctrl-0 = <&i2c2_pins>;
  105. clock-frequency = <400000>;
  106. };
  107. &i2c3 {
  108. pinctrl-names = "default";
  109. pinctrl-0 = <&i2c3_pins>;
  110. clock-frequency = <400000>;
  111. };
  112. &i2c4 {
  113. pinctrl-names = "default";
  114. pinctrl-0 = <&i2c4_pins>;
  115. clock-frequency = <400000>;
  116. };
  117. &mmc1 {
  118. status = "disabled";
  119. };
  120. &mmc2 {
  121. pinctrl-names = "default";
  122. pinctrl-0 = <&mmc2_pins>;
  123. vmmc-supply = <&vaux1>;
  124. ti,non-removable;
  125. bus-width = <8>;
  126. };
  127. &mmc3 {
  128. status = "disabled";
  129. };
  130. &mmc4 {
  131. status = "disabled";
  132. };
  133. &usb_otg_hs {
  134. pinctrl-names = "default";
  135. pinctrl-0 = <&usb_otg_hs_pins>;
  136. interface-type = <1>;
  137. mode = <3>;
  138. power = <50>;
  139. };
  140. #include "twl6030.dtsi"
  141. #include "twl6030_omap4.dtsi"
  142. &twl_usb_comparator {
  143. usb-supply = <&vusb>;
  144. };