Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2023
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.33 KB | None | 0 0
  1. [piotro@minimyth2-aarch64 allwinner]$ cat sun50i-h616-tanix-tx6s.dts
  2. // SPDX-License-Identifier: (GPL-2.0+ or MIT)
  3. /*
  4. * Author: piotr.oniszczuk@gmail.com
  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. ethernet1 = &wlan;
  23. };
  24.  
  25. chosen {
  26. stdout-path = "serial0:115200n8";
  27. };
  28.  
  29. connector {
  30. compatible = "hdmi-connector";
  31. type = "d";
  32.  
  33. port {
  34. hdmi_con_in: endpoint {
  35. remote-endpoint = <&hdmi_out_con>;
  36. };
  37. };
  38. };
  39.  
  40. leds {
  41. compatible = "gpio-leds";
  42.  
  43. led-0 {
  44. function = LED_FUNCTION_POWER;
  45. color = <LED_COLOR_ID_RED>;
  46. gpios = <&pio 2 12 GPIO_ACTIVE_HIGH>; /* PC12 */
  47. default-state = "on";
  48. };
  49. };
  50.  
  51. reg_vcc5v: vcc5v {
  52. /* board wide 5V supply directly from the USB-C socket */
  53. compatible = "regulator-fixed";
  54. regulator-name = "vcc-5v";
  55. regulator-min-microvolt = <5000000>;
  56. regulator-max-microvolt = <5000000>;
  57. regulator-always-on;
  58. };
  59.  
  60. reg_usb1_vbus: usb1-vbus {
  61. compatible = "regulator-fixed";
  62. regulator-name = "usb1-vbus";
  63. regulator-min-microvolt = <5000000>;
  64. regulator-max-microvolt = <5000000>;
  65. vin-supply = <&reg_vcc5v>;
  66. enable-active-high;
  67. /* gpio = <&pio 2 16 GPIO_ACTIVE_HIGH>; PC16 */
  68. status = "okay";
  69. };
  70.  
  71. reg_vcc_wifi: reg_vcc_wifi {
  72. compatible = "regulator-fixed";
  73. regulator-name = "vcc-wifi";
  74. regulator-min-microvolt = <3300000>;
  75. regulator-max-microvolt = <3300000>;
  76. gpio = <&pio 6 18 GPIO_ACTIVE_HIGH>; /* PG18 WL_REG_ON */
  77. regulator-always-on;
  78. enable-active-high;
  79. status = "okay";
  80. };
  81.  
  82. wifi_pwrseq: wifi_pwrseq {
  83. compatible = "mmc-pwrseq-simple";
  84. clocks = <&rtc CLK_OSC32K_FANOUT>;
  85. clock-names = "ext_clock";
  86. };
  87.  
  88. openvfd {
  89. compatible = "open,vfd";
  90. dev_name = "openvfd";
  91. openvfd_gpio_clk = <&pio 8 11 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
  92. openvfd_gpio_dat = <&pio 8 12 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
  93. vfd_gpio_chip_name = "0300b000.pinctrl";
  94. openvfd_chars = [02 04 03 02 01];
  95. openvfd_dot_bits = [00 01 03 02 04 05 06];
  96. openvfd_display_type = <0x03000001>;
  97. status = "okay";
  98. };
  99. };
  100.  
  101. &cpu0 {
  102. cpu-supply = <&reg_dcdca>;
  103. status = "okay";
  104. };
  105.  
  106. &de {
  107. status = "okay";
  108. };
  109.  
  110. &ehci0 {
  111. status = "okay";
  112. };
  113.  
  114. &ehci1 {
  115. status = "okay";
  116. };
  117.  
  118. &ehci2 {
  119. status = "okay";
  120. };
  121.  
  122. &ehci3 {
  123. status = "okay";
  124. };
  125.  
  126. &hdmi {
  127. hvcc-supply = <&reg_bldo1>;
  128. status = "okay";
  129. };
  130.  
  131. &hdmi_out {
  132. hdmi_out_con: endpoint {
  133. remote-endpoint = <&hdmi_con_in>;
  134. };
  135. };
  136.  
  137. &gpu {
  138. mali-supply = <&reg_dcdcc>;
  139. status = "okay";
  140. };
  141.  
  142. &i2c3 {
  143. status = "okay";
  144. };
  145.  
  146. &emac1 {
  147. pinctrl-names = "default";
  148. pinctrl-0 = <&rmii_pins>;
  149. phy-mode = "rmii";
  150. phy-handle = <&rmii_phy>;
  151. phy-supply = <&reg_aldo1>;
  152. allwinner,rx-delay-ps = <3100>;
  153. allwinner,tx-delay-ps = <700>;
  154. status = "okay";
  155. };
  156.  
  157. &mdio1 {
  158. rmii_phy: ethernet-phy@1 {
  159. compatible = "ethernet-phy-ieee802.3-c22";
  160. reg = <1>;
  161. };
  162. };
  163.  
  164. &mmc0 {
  165. vmmc-supply = <&reg_dcdce>;
  166. //cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
  167. broken-cd;
  168. bus-width = <4>;
  169. status = "okay";
  170. };
  171.  
  172. &mmc1 {
  173. vmmc-supply = <&reg_dcdce>;
  174. vqmmc-supply = <&reg_vcc_wifi>;
  175. mmc-pwrseq = <&wifi_pwrseq>;
  176. bus-width = <4>;
  177. non-removable;
  178. status = "okay";
  179.  
  180. wlan: wifi@1 {
  181. reg = <1>;
  182. interrupt-parent = <&pio>;
  183. interrupts = <6 15 IRQ_TYPE_EDGE_RISING>; /* PG15 WL_HOSTWAKE*/
  184. interrupt-names = "host-wake";
  185. local-mac-address = [dc 44 6d c0 ff 02];
  186. pinctrl-0 = <&clk_losc>;
  187. clocks = <&rtc CLK_OSC32K_FANOUT>;
  188. };
  189. };
  190.  
  191. &mmc2 {
  192. vmmc-supply = <&reg_dcdce>;
  193. bus-width = <8>;
  194. non-removable;
  195. cap-mmc-hw-reset;
  196. status = "okay";
  197. };
  198.  
  199. &ohci0 {
  200. status = "okay";
  201. };
  202.  
  203. &ohci1 {
  204. status = "okay";
  205. };
  206.  
  207. &ohci2 {
  208. status = "okay";
  209. };
  210.  
  211. &ohci3 {
  212. status = "okay";
  213. };
  214.  
  215. &r_rsb {
  216. status = "okay";
  217.  
  218. axp305: pmic@745 {
  219. compatible = "x-powers,axp305", "x-powers,axp805",
  220. "x-powers,axp806";
  221. interrupt-controller;
  222. #interrupt-cells = <1>;
  223. reg = <0x745>;
  224.  
  225. x-powers,self-working-mode;
  226. vina-supply = <&reg_vcc5v>;
  227. vinb-supply = <&reg_vcc5v>;
  228. vinc-supply = <&reg_vcc5v>;
  229. vind-supply = <&reg_vcc5v>;
  230. vine-supply = <&reg_vcc5v>;
  231. aldoin-supply = <&reg_vcc5v>;
  232. bldoin-supply = <&reg_vcc5v>;
  233. cldoin-supply = <&reg_vcc5v>;
  234.  
  235. regulators {
  236. reg_aldo1: aldo1 {
  237. regulator-always-on;
  238. regulator-min-microvolt = <3300000>;
  239. regulator-max-microvolt = <3300000>;
  240. regulator-name = "vcc-sys";
  241. };
  242.  
  243. reg_aldo2: aldo2 { /* 3.3V on headers */
  244. regulator-always-on;
  245. regulator-min-microvolt = <3300000>;
  246. regulator-max-microvolt = <3300000>;
  247. regulator-name = "vcc3v3-ext";
  248. };
  249.  
  250. reg_aldo3: aldo3 { /* 3.3V on headers */
  251. regulator-always-on;
  252. regulator-min-microvolt = <3300000>;
  253. regulator-max-microvolt = <3300000>;
  254. regulator-name = "vcc3v3-ext2";
  255. };
  256.  
  257. reg_bldo1: bldo1 {
  258. regulator-always-on;
  259. regulator-min-microvolt = <1800000>;
  260. regulator-max-microvolt = <1800000>;
  261. regulator-name = "vcc1v8";
  262. };
  263.  
  264. bldo2 {
  265. /* unused */
  266. };
  267.  
  268. bldo3 {
  269. /* unused */
  270. };
  271.  
  272. bldo4 {
  273. /* unused */
  274. };
  275.  
  276. cldo1 {
  277. /* reserved */
  278. };
  279.  
  280. cldo2 {
  281. /* unused */
  282. };
  283.  
  284. cldo3 {
  285. /* unused */
  286. };
  287.  
  288. reg_dcdca: dcdca {
  289. regulator-always-on;
  290. regulator-min-microvolt = <810000>;
  291. regulator-max-microvolt = <1160000>;
  292. regulator-name = "vdd-cpu";
  293. };
  294.  
  295. reg_dcdcc: dcdcc {
  296. regulator-always-on;
  297. regulator-min-microvolt = <810000>;
  298. regulator-max-microvolt = <1160000>;
  299. regulator-name = "vdd-gpu-sys";
  300. };
  301.  
  302. reg_dcdcd: dcdcd {
  303. regulator-always-on;
  304. regulator-min-microvolt = <1500000>;
  305. regulator-max-microvolt = <1500000>;
  306. regulator-name = "vdd-dram";
  307. };
  308.  
  309. reg_dcdce: dcdce {
  310. regulator-always-on;
  311. regulator-min-microvolt = <3300000>;
  312. regulator-max-microvolt = <3300000>;
  313. regulator-name = "vcc-eth-mmc";
  314. };
  315.  
  316. sw {
  317. /* unused */
  318. };
  319. };
  320. };
  321. };
  322.  
  323. &uart0 {
  324. pinctrl-names = "default";
  325. pinctrl-0 = <&uart0_ph_pins>;
  326. status = "okay";
  327. };
  328.  
  329. &uart1 {
  330. pinctrl-names = "default";
  331. pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
  332. uart-has-rtscts;
  333. status = "okay";
  334.  
  335. bluetooth {
  336. compatible = "brcm,bcm43438-bt";
  337. clocks = <&rtc 1>;
  338. clock-names = "lpo";
  339. vbat-supply = <&reg_dcdce>;
  340. vddio-supply = <&reg_dcdce>;
  341. device-wakeup-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
  342. host-wakeup-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */
  343. shutdown-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
  344. };
  345. };
  346.  
  347. &usbotg {
  348. dr_mode = "peripheral";
  349. status = "okay";
  350. };
  351.  
  352. &usbphy {
  353. usb1_vbus-supply = <&reg_usb1_vbus>;
  354. status = "okay";
  355. };
  356.  
  357. &ir {
  358. linux,rc-map-name = "rc-beelink-gs1";
  359. status = "okay";
  360. };
  361.  
  362. &codec {
  363. allwinner,audio-routing =
  364. "Line Out", "LINEOUT";
  365. status = "okay";
  366. };
  367.  
  368. &ahub_codec {
  369. status = "okay";
  370. };
  371.  
  372. &ahub_cpudai0 {
  373. status = "okay";
  374. };
  375.  
  376. &ahub_cpudai1 {
  377. status = "okay";
  378. };
  379.  
  380. &ahub_cpudai2 {
  381. status = "okay";
  382. };
  383.  
  384. &sndahub {
  385. status = "okay";
  386. };
  387.  
  388. &ahub_i2s1 {
  389. status = "okay";
  390. };
  391.  
  392. &hdmi_audio {
  393. status = "okay";
  394. };
  395. [piotro@minimyth2-aarch64 allwinner]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement