sun8i-a33-olinuxino.dts 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. /*
  2. * Copyright 2016 - Stefan Mavrodiev <[email protected]>
  3. * Olimex LTD. <[email protected]>
  4. *
  5. * This file is dual-licensed: you can use it either under the terms
  6. * of the GPL or the X11 license, at your option. Note that this dual
  7. * licensing only applies to this file, and not this project as a
  8. * whole.
  9. *
  10. * a) This file is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License as
  12. * published by the Free Software Foundation; either version 2 of the
  13. * License, or (at your option) any later version.
  14. *
  15. * This file is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * Or, alternatively,
  21. *
  22. * b) Permission is hereby granted, free of charge, to any person
  23. * obtaining a copy of this software and associated documentation
  24. * files (the "Software"), to deal in the Software without
  25. * restriction, including without limitation the rights to use,
  26. * copy, modify, merge, publish, distribute, sublicense, and/or
  27. * sell copies of the Software, and to permit persons to whom the
  28. * Software is furnished to do so, subject to the following
  29. * conditions:
  30. *
  31. * The above copyright notice and this permission notice shall be
  32. * included in all copies or substantial portions of the Software.
  33. *
  34. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  35. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  36. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  37. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  38. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  39. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  40. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  41. * OTHER DEALINGS IN THE SOFTWARE.
  42. */
  43. /dts-v1/;
  44. #include "sun8i-a33.dtsi"
  45. #include <dt-bindings/gpio/gpio.h>
  46. #include <dt-bindings/input/input.h>
  47. / {
  48. model = "Olimex A33-OLinuXino";
  49. compatible = "olimex,a33-olinuxino","allwinner,sun8i-a33";
  50. aliases {
  51. serial0 = &uart0;
  52. };
  53. chosen {
  54. stdout-path = "serial0:115200n8";
  55. };
  56. leds {
  57. compatible = "gpio-leds";
  58. led {
  59. label = "a33-olinuxino:green:usr";
  60. gpios = <&pio 1 7 GPIO_ACTIVE_HIGH>;
  61. };
  62. };
  63. };
  64. &codec {
  65. status = "okay";
  66. };
  67. &dai {
  68. status = "okay";
  69. };
  70. &ehci0 {
  71. status = "okay";
  72. };
  73. &mmc0 {
  74. vmmc-supply = <&reg_dcdc1>;
  75. bus-width = <4>;
  76. cd-gpios = <&pio 1 4 GPIO_ACTIVE_LOW>; /* PB4 */
  77. status = "okay";
  78. };
  79. &ohci0 {
  80. status = "okay";
  81. };
  82. &r_rsb {
  83. status = "okay";
  84. axp22x: pmic@3a3 {
  85. compatible = "x-powers,axp223";
  86. reg = <0x3a3>;
  87. interrupt-parent = <&r_intc>;
  88. interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
  89. eldoin-supply = <&reg_dcdc1>;
  90. x-powers,drive-vbus-en;
  91. };
  92. };
  93. #include "axp223.dtsi"
  94. &ac_power_supply {
  95. status = "okay";
  96. };
  97. &battery_power_supply {
  98. status = "okay";
  99. };
  100. &reg_aldo1 {
  101. regulator-always-on;
  102. regulator-min-microvolt = <3300000>;
  103. regulator-max-microvolt = <3300000>;
  104. regulator-name = "vcc-io";
  105. };
  106. &reg_aldo2 {
  107. regulator-always-on;
  108. regulator-min-microvolt = <2350000>;
  109. regulator-max-microvolt = <2650000>;
  110. regulator-name = "vdd-dll";
  111. };
  112. &reg_aldo3 {
  113. regulator-always-on;
  114. regulator-min-microvolt = <3300000>;
  115. regulator-max-microvolt = <3300000>;
  116. regulator-name = "vcc-avcc";
  117. };
  118. &reg_dc1sw {
  119. regulator-name = "vcc-lcd";
  120. };
  121. &reg_dc5ldo {
  122. regulator-always-on;
  123. regulator-min-microvolt = <900000>;
  124. regulator-max-microvolt = <1400000>;
  125. regulator-name = "vdd-cpus";
  126. };
  127. &reg_dcdc1 {
  128. regulator-always-on;
  129. regulator-min-microvolt = <3300000>;
  130. regulator-max-microvolt = <3300000>;
  131. regulator-name = "vcc-3v3";
  132. };
  133. &reg_dcdc2 {
  134. regulator-always-on;
  135. regulator-min-microvolt = <900000>;
  136. regulator-max-microvolt = <1400000>;
  137. regulator-name = "vdd-sys";
  138. };
  139. &reg_dcdc3 {
  140. regulator-always-on;
  141. regulator-min-microvolt = <900000>;
  142. regulator-max-microvolt = <1400000>;
  143. regulator-name = "vdd-cpu";
  144. };
  145. &reg_dcdc5 {
  146. regulator-always-on;
  147. regulator-min-microvolt = <1500000>;
  148. regulator-max-microvolt = <1500000>;
  149. regulator-name = "vcc-dram";
  150. };
  151. &reg_drivevbus {
  152. regulator-name = "usb0-vbus";
  153. status = "okay";
  154. };
  155. &reg_rtc_ldo {
  156. regulator-name = "vcc-rtc";
  157. };
  158. &simplefb_lcd {
  159. vcc-lcd-supply = <&reg_dc1sw>;
  160. };
  161. &sound {
  162. /* Board level jack widgets */
  163. simple-audio-card,widgets = "Microphone", "Microphone Jack",
  164. "Headphone", "Headphone Jack";
  165. /* Board level routing. First 2 routes copied from SoC level */
  166. simple-audio-card,routing =
  167. "Left DAC", "DACL",
  168. "Right DAC", "DACR",
  169. "HP", "HPCOM",
  170. "Headphone Jack", "HP",
  171. "MIC1", "Microphone Jack",
  172. "Microphone Jack", "MBIAS";
  173. status = "okay";
  174. };
  175. &uart0 {
  176. pinctrl-names = "default";
  177. pinctrl-0 = <&uart0_pb_pins>;
  178. status = "okay";
  179. };
  180. &usb_otg {
  181. dr_mode = "otg";
  182. status = "okay";
  183. };
  184. &usb_power_supply {
  185. status = "okay";
  186. };
  187. &usbphy {
  188. usb0_id_det-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>; /* PB3 */
  189. usb0_vbus_power-supply = <&usb_power_supply>;
  190. usb0_vbus-supply = <&reg_drivevbus>;
  191. status = "okay";
  192. };