sun4i-a10-a1000.dts 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. /*
  2. * Copyright 2013 Emilio López
  3. *
  4. * Emilio López <[email protected]>
  5. *
  6. * This file is dual-licensed: you can use it either under the terms
  7. * of the GPL or the X11 license, at your option. Note that this dual
  8. * licensing only applies to this file, and not this project as a
  9. * whole.
  10. *
  11. * a) This file is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU General Public License as
  13. * published by the Free Software Foundation; either version 2 of the
  14. * License, or (at your option) any later version.
  15. *
  16. * This file is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * Or, alternatively,
  22. *
  23. * b) Permission is hereby granted, free of charge, to any person
  24. * obtaining a copy of this software and associated documentation
  25. * files (the "Software"), to deal in the Software without
  26. * restriction, including without limitation the rights to use,
  27. * copy, modify, merge, publish, distribute, sublicense, and/or
  28. * sell copies of the Software, and to permit persons to whom the
  29. * Software is furnished to do so, subject to the following
  30. * conditions:
  31. *
  32. * The above copyright notice and this permission notice shall be
  33. * included in all copies or substantial portions of the Software.
  34. *
  35. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  36. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  37. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  38. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  39. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  40. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  41. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  42. * OTHER DEALINGS IN THE SOFTWARE.
  43. */
  44. /dts-v1/;
  45. #include "sun4i-a10.dtsi"
  46. #include "sunxi-common-regulators.dtsi"
  47. #include <dt-bindings/gpio/gpio.h>
  48. / {
  49. model = "Mele A1000";
  50. compatible = "mele,a1000", "allwinner,sun4i-a10";
  51. aliases {
  52. serial0 = &uart0;
  53. };
  54. chosen {
  55. stdout-path = "serial0:115200n8";
  56. };
  57. hdmi-connector {
  58. compatible = "hdmi-connector";
  59. type = "a";
  60. port {
  61. hdmi_con_in: endpoint {
  62. remote-endpoint = <&hdmi_out_con>;
  63. };
  64. };
  65. };
  66. leds {
  67. compatible = "gpio-leds";
  68. led-0 {
  69. label = "a1000:red:usr";
  70. gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>;
  71. };
  72. led-1 {
  73. label = "a1000:blue:pwr";
  74. gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>;
  75. default-state = "on";
  76. };
  77. };
  78. reg_emac_3v3: emac-3v3 {
  79. compatible = "regulator-fixed";
  80. regulator-name = "emac-3v3";
  81. regulator-min-microvolt = <3300000>;
  82. regulator-max-microvolt = <3300000>;
  83. startup-delay-us = <20000>;
  84. enable-active-high;
  85. gpio = <&pio 7 15 GPIO_ACTIVE_HIGH>;
  86. };
  87. sound {
  88. compatible = "simple-audio-card";
  89. simple-audio-card,name = "On-board SPDIF";
  90. simple-audio-card,cpu {
  91. sound-dai = <&spdif>;
  92. };
  93. simple-audio-card,codec {
  94. sound-dai = <&spdif_out>;
  95. };
  96. };
  97. spdif_out: spdif-out {
  98. #sound-dai-cells = <0>;
  99. compatible = "linux,spdif-dit";
  100. };
  101. };
  102. &ahci {
  103. status = "okay";
  104. };
  105. &codec {
  106. status = "okay";
  107. };
  108. &cpu0 {
  109. cpu-supply = <&reg_dcdc2>;
  110. };
  111. &ehci0 {
  112. status = "okay";
  113. };
  114. &ehci1 {
  115. status = "okay";
  116. };
  117. &emac {
  118. phy-handle = <&phy1>;
  119. status = "okay";
  120. };
  121. &emac_sram {
  122. status = "okay";
  123. };
  124. &de {
  125. status = "okay";
  126. };
  127. &hdmi {
  128. status = "okay";
  129. };
  130. &hdmi_out {
  131. hdmi_out_con: endpoint {
  132. remote-endpoint = <&hdmi_con_in>;
  133. };
  134. };
  135. &i2c0 {
  136. status = "okay";
  137. axp209: pmic@34 {
  138. compatible = "x-powers,axp209";
  139. reg = <0x34>;
  140. interrupts = <0>;
  141. interrupt-controller;
  142. #interrupt-cells = <1>;
  143. };
  144. };
  145. &ir0 {
  146. pinctrl-names = "default";
  147. pinctrl-0 = <&ir0_rx_pins>;
  148. status = "okay";
  149. };
  150. &mdio {
  151. phy-supply = <&reg_emac_3v3>;
  152. status = "okay";
  153. phy1: ethernet-phy@1 {
  154. reg = <1>;
  155. };
  156. };
  157. &mmc0 {
  158. vmmc-supply = <&reg_vcc3v3>;
  159. bus-width = <4>;
  160. cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */
  161. status = "okay";
  162. };
  163. &ohci0 {
  164. status = "okay";
  165. };
  166. &ohci1 {
  167. status = "okay";
  168. };
  169. #include "axp209.dtsi"
  170. &reg_dcdc2 {
  171. regulator-always-on;
  172. regulator-min-microvolt = <1000000>;
  173. regulator-max-microvolt = <1400000>;
  174. regulator-name = "vdd-cpu";
  175. };
  176. &reg_dcdc3 {
  177. regulator-always-on;
  178. regulator-min-microvolt = <1000000>;
  179. regulator-max-microvolt = <1250000>;
  180. regulator-name = "vdd-int-dll";
  181. };
  182. &reg_ldo1 {
  183. regulator-name = "vdd-rtc";
  184. };
  185. &reg_ldo2 {
  186. regulator-always-on;
  187. regulator-min-microvolt = <3000000>;
  188. regulator-max-microvolt = <3000000>;
  189. regulator-name = "avcc";
  190. };
  191. &reg_usb1_vbus {
  192. status = "okay";
  193. };
  194. &reg_usb2_vbus {
  195. status = "okay";
  196. };
  197. &spdif {
  198. pinctrl-names = "default";
  199. pinctrl-0 = <&spdif_tx_pin>;
  200. status = "okay";
  201. };
  202. &uart0 {
  203. pinctrl-names = "default";
  204. pinctrl-0 = <&uart0_pb_pins>;
  205. status = "okay";
  206. };
  207. &usbphy {
  208. usb1_vbus-supply = <&reg_usb1_vbus>;
  209. usb2_vbus-supply = <&reg_usb2_vbus>;
  210. status = "okay";
  211. };