Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2019
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.72 KB | None | 0 0
  1. [piotro@minimyth-armv8 allwinner]$ cat sun50i-h6-beelink-gs1.dts
  2. // SPDX-License-Identifier: (GPL-2.0+ or MIT)
  3. /*
  4. * Copyright (C) 2019 Clément Péron <[email protected]>
  5. */
  6.  
  7. /dts-v1/;
  8.  
  9. #include "sun50i-h6.dtsi"
  10.  
  11. #include <dt-bindings/gpio/gpio.h>
  12.  
  13. / {
  14. model = "Beelink GS1";
  15. compatible = "azw,beelink-gs1", "allwinner,sun50i-h6";
  16.  
  17. aliases {
  18. ethernet0 = &emac;
  19. serial0 = &uart0;
  20. };
  21.  
  22. chosen {
  23. stdout-path = "serial0:115200n8";
  24. };
  25.  
  26. connector {
  27. compatible = "hdmi-connector";
  28. type = "a";
  29. ddc-supply = <&reg_ddc>;
  30.  
  31. port {
  32. hdmi_con_in: endpoint {
  33. remote-endpoint = <&hdmi_out_con>;
  34. };
  35. };
  36. };
  37.  
  38. leds {
  39. compatible = "gpio-leds";
  40.  
  41. power {
  42. label = "beelink:white:power";
  43. gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
  44. default-state = "on";
  45. };
  46. };
  47.  
  48. reg_ddc: ddc-io {
  49. compatible = "regulator-fixed";
  50. regulator-name = "ddc-io";
  51. regulator-min-microvolt = <5000000>;
  52. regulator-max-microvolt = <5000000>;
  53. enable-active-high;
  54. gpio = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */
  55. };
  56.  
  57. reg_vcc5v: vcc5v {
  58. /* board wide 5V supply directly from the DC jack */
  59. compatible = "regulator-fixed";
  60. regulator-name = "vcc-5v";
  61. regulator-min-microvolt = <5000000>;
  62. regulator-max-microvolt = <5000000>;
  63. regulator-always-on;
  64. };
  65. };
  66.  
  67. &de {
  68. status = "okay";
  69. };
  70.  
  71. &dwc3 {
  72. status = "okay";
  73. };
  74.  
  75. &ehci0 {
  76. status = "okay";
  77. };
  78.  
  79. &emac {
  80. pinctrl-names = "default";
  81. pinctrl-0 = <&ext_rgmii_pins>;
  82. phy-mode = "rgmii";
  83. phy-handle = <&ext_rgmii_phy>;
  84. phy-supply = <&reg_aldo2>;
  85. status = "okay";
  86. };
  87.  
  88. &gpu {
  89. mali-supply = <&reg_dcdcc>;
  90. status = "okay";
  91. };
  92.  
  93. &hdmi {
  94. status = "okay";
  95. };
  96.  
  97. &hdmi_out {
  98. hdmi_out_con: endpoint {
  99. remote-endpoint = <&hdmi_con_in>;
  100. };
  101. };
  102.  
  103. &mdio {
  104. ext_rgmii_phy: ethernet-phy@1 {
  105. compatible = "ethernet-phy-ieee802.3-c22";
  106. reg = <1>;
  107. };
  108. };
  109.  
  110. &mmc0 {
  111. vmmc-supply = <&reg_cldo1>;
  112. cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
  113. bus-width = <4>;
  114. status = "okay";
  115. };
  116.  
  117. &mmc2 {
  118. vmmc-supply = <&reg_cldo1>;
  119. vqmmc-supply = <&reg_bldo2>;
  120. non-removable;
  121. cap-mmc-hw-reset;
  122. bus-width = <8>;
  123. status = "okay";
  124. };
  125.  
  126. &ohci0 {
  127. status = "okay";
  128. };
  129.  
  130. &pio {
  131. vcc-pd-supply = <&reg_cldo1>;
  132. vcc-pg-supply = <&reg_aldo1>;
  133. };
  134.  
  135. &r_i2c {
  136. status = "okay";
  137.  
  138. axp805: pmic@36 {
  139. compatible = "x-powers,axp805", "x-powers,axp806";
  140. reg = <0x36>;
  141. interrupt-parent = <&r_intc>;
  142. interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
  143. interrupt-controller;
  144. #interrupt-cells = <1>;
  145. x-powers,self-working-mode;
  146. vina-supply = <&reg_vcc5v>;
  147. vinb-supply = <&reg_vcc5v>;
  148. vinc-supply = <&reg_vcc5v>;
  149. vind-supply = <&reg_vcc5v>;
  150. vine-supply = <&reg_vcc5v>;
  151. aldoin-supply = <&reg_vcc5v>;
  152. bldoin-supply = <&reg_vcc5v>;
  153. cldoin-supply = <&reg_vcc5v>;
  154.  
  155. regulators {
  156. reg_aldo1: aldo1 {
  157. regulator-always-on;
  158. regulator-min-microvolt = <3300000>;
  159. regulator-max-microvolt = <3300000>;
  160. regulator-name = "vcc-pl";
  161. };
  162.  
  163. reg_aldo2: aldo2 {
  164. regulator-min-microvolt = <3300000>;
  165. regulator-max-microvolt = <3300000>;
  166. regulator-name = "vcc-ac200";
  167. regulator-enable-ramp-delay = <100000>;
  168. };
  169.  
  170. reg_aldo3: aldo3 {
  171. regulator-always-on;
  172. regulator-min-microvolt = <3300000>;
  173. regulator-max-microvolt = <3300000>;
  174. regulator-name = "vcc25-dram";
  175. };
  176.  
  177. reg_bldo1: bldo1 {
  178. regulator-always-on;
  179. regulator-min-microvolt = <1800000>;
  180. regulator-max-microvolt = <1800000>;
  181. regulator-name = "vcc-bias-pll";
  182. };
  183.  
  184. reg_bldo2: bldo2 {
  185. regulator-always-on;
  186. regulator-min-microvolt = <1800000>;
  187. regulator-max-microvolt = <1800000>;
  188. regulator-name = "vcc-efuse-pcie-hdmi-io";
  189. };
  190.  
  191. reg_bldo3: bldo3 {
  192. regulator-always-on;
  193. regulator-min-microvolt = <1800000>;
  194. regulator-max-microvolt = <1800000>;
  195. regulator-name = "vcc-dcxoio";
  196. };
  197.  
  198. bldo4 {
  199. /* unused */
  200. };
  201.  
  202. reg_cldo1: cldo1 {
  203. regulator-always-on;
  204. regulator-min-microvolt = <3300000>;
  205. regulator-max-microvolt = <3300000>;
  206. regulator-name = "vcc-3v3";
  207. };
  208.  
  209. reg_cldo2: cldo2 {
  210. regulator-min-microvolt = <3300000>;
  211. regulator-max-microvolt = <3300000>;
  212. regulator-name = "vcc-wifi-1";
  213. };
  214.  
  215. reg_cldo3: cldo3 {
  216. regulator-min-microvolt = <3300000>;
  217. regulator-max-microvolt = <3300000>;
  218. regulator-name = "vcc-wifi-2";
  219. };
  220.  
  221. reg_dcdca: dcdca {
  222. regulator-always-on;
  223. regulator-min-microvolt = <810000>;
  224. regulator-max-microvolt = <1080000>;
  225. regulator-name = "vdd-cpu";
  226. };
  227.  
  228. reg_dcdcc: dcdcc {
  229. regulator-enable-ramp-delay = <32000>;
  230. regulator-min-microvolt = <810000>;
  231. regulator-max-microvolt = <1080000>;
  232. regulator-name = "vdd-gpu";
  233. };
  234.  
  235. reg_dcdcd: dcdcd {
  236. regulator-always-on;
  237. regulator-min-microvolt = <960000>;
  238. regulator-max-microvolt = <960000>;
  239. regulator-name = "vdd-sys";
  240. };
  241.  
  242. reg_dcdce: dcdce {
  243. regulator-always-on;
  244. regulator-min-microvolt = <1200000>;
  245. regulator-max-microvolt = <1200000>;
  246. regulator-name = "vcc-dram";
  247. };
  248.  
  249. sw {
  250. /* unused */
  251. };
  252. };
  253. };
  254. };
  255.  
  256. &r_ir {
  257. status = "okay";
  258. };
  259.  
  260. &r_pio {
  261. /*
  262. * PL0 and PL1 are used for PMIC I2C
  263. * don't enable the pl-supply else
  264. * it will fail at boot
  265. *
  266. * vcc-pl-supply = <&reg_aldo1>;
  267. */
  268. vcc-pm-supply = <&reg_aldo1>;
  269. };
  270.  
  271. &uart0 {
  272. pinctrl-names = "default";
  273. pinctrl-0 = <&uart0_ph_pins>;
  274. status = "okay";
  275. };
  276.  
  277. &usb2otg {
  278. dr_mode = "host";
  279. status = "okay";
  280. };
  281.  
  282. &usb2phy {
  283. usb0_vbus-supply = <&reg_vcc5v>;
  284. status = "okay";
  285. };
  286.  
  287. &usb3phy {
  288. status = "okay";
  289.  
  290. connector {
  291. compatible = "usb-a-connector";
  292. vbus-supply = <&reg_vcc5v>;
  293. };
  294. };
  295. [piotro@minimyth-armv8 allwinner]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement