Advertisement
Guest User

Untitled

a guest
May 27th, 2021
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.29 KB | None | 0 0
  1. [piotro@minimyth-armv8 allwinner]$ cat sun50i-h616-tanix-tx6s.dts
  2. // SPDX-License-Identifier: (GPL-2.0+ or MIT)
  3. /*
  4. * Copyright (C) 2020 Arm Ltd.
  5. */
  6.  
  7. /dts-v1/;
  8.  
  9. #include "sun50i-h616.dtsi"
  10.  
  11. #include <dt-bindings/gpio/gpio.h>
  12. #include <dt-bindings/interrupt-controller/arm-gic.h>
  13. #include <dt-bindings/leds/common.h>
  14.  
  15. / {
  16. model = "Tanix TX6s";
  17. compatible = "tanix,tx6s", "allwinner,sun50i-h616";
  18.  
  19. aliases {
  20. ethernet0 = &emac1;
  21. serial0 = &uart0;
  22. };
  23.  
  24. chosen {
  25. stdout-path = "serial0:115200n8";
  26. };
  27.  
  28. connector {
  29. compatible = "hdmi-connector";
  30. type = "d";
  31.  
  32. port {
  33. hdmi_con_in: endpoint {
  34. remote-endpoint = <&hdmi_out_con>;
  35. };
  36. };
  37. };
  38.  
  39. leds {
  40. compatible = "gpio-leds";
  41.  
  42. led-0 {
  43. function = LED_FUNCTION_POWER;
  44. color = <LED_COLOR_ID_RED>;
  45. gpios = <&pio 2 12 GPIO_ACTIVE_HIGH>; /* PC12 */
  46. default-state = "on";
  47. };
  48.  
  49. led-1 {
  50. function = LED_FUNCTION_STATUS;
  51. color = <LED_COLOR_ID_GREEN>;
  52. gpios = <&pio 2 13 GPIO_ACTIVE_HIGH>; /* PC13 */
  53. };
  54. };
  55.  
  56. reg_vcc5v: vcc5v {
  57. /* board wide 5V supply directly from the USB-C socket */
  58. compatible = "regulator-fixed";
  59. regulator-name = "vcc-5v";
  60. regulator-min-microvolt = <5000000>;
  61. regulator-max-microvolt = <5000000>;
  62. regulator-always-on;
  63. };
  64.  
  65. reg_usb1_vbus: usb1-vbus {
  66. compatible = "regulator-fixed";
  67. regulator-name = "usb1-vbus";
  68. regulator-min-microvolt = <5000000>;
  69. regulator-max-microvolt = <5000000>;
  70. vin-supply = <&reg_vcc5v>;
  71. enable-active-high;
  72. gpio = <&pio 2 16 GPIO_ACTIVE_HIGH>; /* PC16 */
  73. status = "okay";
  74. };
  75. };
  76.  
  77. &de {
  78. status = "okay";
  79. };
  80.  
  81. &ehci0 {
  82. status = "okay";
  83. };
  84.  
  85. &ehci1 {
  86. status = "okay";
  87. };
  88.  
  89. &ehci2 {
  90. status = "okay";
  91. };
  92.  
  93. &ehci3 {
  94. status = "okay";
  95. };
  96.  
  97. &hdmi {
  98. hvcc-supply = <&reg_bldo1>;
  99. status = "okay";
  100. };
  101.  
  102. &hdmi_out {
  103. hdmi_out_con: endpoint {
  104. remote-endpoint = <&hdmi_con_in>;
  105. };
  106. };
  107.  
  108. &gpu {
  109. mali-supply = <&reg_dcdcc>;
  110. status = "okay";
  111. };
  112.  
  113. &i2c3 {
  114. status = "okay";
  115. };
  116.  
  117. &emac1 {
  118. pinctrl-names = "default";
  119. pinctrl-0 = <&rmii_pins>;
  120. phy-mode = "rmii";
  121. phy-handle = <&rmii_phy>;
  122. phy-supply = <&reg_aldo1>;
  123. allwinner,rx-delay-ps = <3100>;
  124. allwinner,tx-delay-ps = <700>;
  125. status = "okay";
  126. };
  127.  
  128. &mdio1 {
  129. rmii_phy: ethernet-phy@1 {
  130. compatible = "ethernet-phy-ieee802.3-c22";
  131. reg = <1>;
  132. };
  133. };
  134.  
  135. &mmc0 {
  136. vmmc-supply = <&reg_dcdce>;
  137. //cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
  138. broken-cd;
  139. bus-width = <4>;
  140. status = "okay";
  141. };
  142.  
  143. &ohci0 {
  144. status = "okay";
  145. };
  146.  
  147. &ohci1 {
  148. status = "okay";
  149. };
  150.  
  151. &ohci2 {
  152. status = "okay";
  153. };
  154.  
  155. &ohci3 {
  156. status = "okay";
  157. };
  158.  
  159. &r_rsb {
  160. status = "okay";
  161.  
  162. axp305: pmic@745 {
  163. compatible = "x-powers,axp305", "x-powers,axp805",
  164. "x-powers,axp806";
  165. interrupt-controller;
  166. #interrupt-cells = <1>;
  167. reg = <0x745>;
  168.  
  169. x-powers,self-working-mode;
  170. vina-supply = <&reg_vcc5v>;
  171. vinb-supply = <&reg_vcc5v>;
  172. vinc-supply = <&reg_vcc5v>;
  173. vind-supply = <&reg_vcc5v>;
  174. vine-supply = <&reg_vcc5v>;
  175. aldoin-supply = <&reg_vcc5v>;
  176. bldoin-supply = <&reg_vcc5v>;
  177. cldoin-supply = <&reg_vcc5v>;
  178.  
  179. regulators {
  180. reg_aldo1: aldo1 {
  181. regulator-always-on;
  182. regulator-min-microvolt = <3300000>;
  183. regulator-max-microvolt = <3300000>;
  184. regulator-name = "vcc-sys";
  185. };
  186.  
  187. reg_aldo2: aldo2 { /* 3.3V on headers */
  188. regulator-always-on;
  189. regulator-min-microvolt = <3300000>;
  190. regulator-max-microvolt = <3300000>;
  191. regulator-name = "vcc3v3-ext";
  192. };
  193.  
  194. reg_aldo3: aldo3 { /* 3.3V on headers */
  195. regulator-always-on;
  196. regulator-min-microvolt = <3300000>;
  197. regulator-max-microvolt = <3300000>;
  198. regulator-name = "vcc3v3-ext2";
  199. };
  200.  
  201. reg_bldo1: bldo1 {
  202. regulator-always-on;
  203. regulator-min-microvolt = <1800000>;
  204. regulator-max-microvolt = <1800000>;
  205. regulator-name = "vcc1v8";
  206. };
  207.  
  208. bldo2 {
  209. /* unused */
  210. };
  211.  
  212. bldo3 {
  213. /* unused */
  214. };
  215.  
  216. bldo4 {
  217. /* unused */
  218. };
  219.  
  220. cldo1 {
  221. /* reserved */
  222. };
  223.  
  224. cldo2 {
  225. /* unused */
  226. };
  227.  
  228. cldo3 {
  229. /* unused */
  230. };
  231.  
  232. reg_dcdca: dcdca {
  233. regulator-always-on;
  234. regulator-min-microvolt = <810000>;
  235. regulator-max-microvolt = <1080000>;
  236. regulator-name = "vdd-cpu";
  237. };
  238.  
  239. reg_dcdcc: dcdcc {
  240. regulator-always-on;
  241. regulator-min-microvolt = <800000>;
  242. regulator-max-microvolt = <1080000>;
  243. regulator-name = "vdd-gpu-sys";
  244. };
  245.  
  246. reg_dcdcd: dcdcd {
  247. regulator-always-on;
  248. regulator-min-microvolt = <1500000>;
  249. regulator-max-microvolt = <1500000>;
  250. regulator-name = "vdd-dram";
  251. };
  252.  
  253. reg_dcdce: dcdce {
  254. regulator-boot-on;
  255. regulator-min-microvolt = <3300000>;
  256. regulator-max-microvolt = <3300000>;
  257. regulator-name = "vcc-eth-mmc";
  258. };
  259.  
  260. sw {
  261. /* unused */
  262. };
  263. };
  264. };
  265. };
  266.  
  267. &spi0 {
  268. status = "okay";
  269.  
  270. flash@0 {
  271. #address-cells = <1>;
  272. #size-cells = <1>;
  273. compatible = "jedec,spi-nor";
  274. reg = <0>;
  275. spi-max-frequency = <40000000>;
  276. };
  277. };
  278.  
  279. &uart0 {
  280. pinctrl-names = "default";
  281. pinctrl-0 = <&uart0_ph_pins>;
  282. status = "okay";
  283. };
  284.  
  285. &usbotg {
  286. dr_mode = "peripheral";
  287. status = "okay";
  288. };
  289.  
  290. &usbphy {
  291. usb1_vbus-supply = <&reg_usb1_vbus>;
  292. status = "okay";
  293. };
  294.  
  295. &ir {
  296. linux,rc-map-name = "rc-beelink-gs1";
  297. status = "okay";
  298. };
  299.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement