Advertisement
Guest User

Untitled

a guest
May 12th, 2021
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.98 KB | None | 0 0
  1. [piotro@minimyth-armv8 files]$ cat add-tanix-tx6s-defconfig.patch
  2. diff -Naur u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-old/arch/arm/dts/Makefile u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-new/arch/arm/dts/Makefile
  3. --- u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-old/arch/arm/dts/Makefile 2021-04-26 11:12:35.000000000 +0200
  4. +++ u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-new/arch/arm/dts/Makefile 2021-05-11 21:07:30.613333253 +0200
  5. @@ -622,7 +622,8 @@
  6. sun50i-h6-pine-h64.dtb \
  7. sun50i-h6-tanix-tx6.dtb
  8. dtb-$(CONFIG_MACH_SUN50I_H616) += \
  9. - sun50i-h616-orangepi-zero2.dtb
  10. + sun50i-h616-orangepi-zero2.dtb \
  11. + sun50i-h616-tanix-tx6s.dtb
  12. dtb-$(CONFIG_MACH_SUN50I) += \
  13. sun50i-a64-amarula-relic.dtb \
  14. sun50i-a64-bananapi-m64.dtb \
  15. diff -Naur u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-old/arch/arm/dts/sun50i-h616-tanix-tx6s.dts u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-new/arch/arm/dts/sun50i-h616-tanix-tx6s.dts
  16. --- u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-old/arch/arm/dts/sun50i-h616-tanix-tx6s.dts 1970-01-01 01:00:00.000000000 +0100
  17. +++ u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-new/arch/arm/dts/sun50i-h616-tanix-tx6s.dts 2021-05-11 20:52:30.906666606 +0200
  18. @@ -0,0 +1,189 @@
  19. +// SPDX-License-Identifier: (GPL-2.0+ or MIT)
  20. +/*
  21. + * Copyright (C) 2021 Arm Ltd.
  22. + */
  23. +
  24. +/dts-v1/;
  25. +
  26. +#include "sun50i-h616.dtsi"
  27. +
  28. +#include <dt-bindings/gpio/gpio.h>
  29. +#include <dt-bindings/interrupt-controller/arm-gic.h>
  30. +#include <dt-bindings/leds/common.h>
  31. +
  32. +/ {
  33. + model = "Tanix TX6s";
  34. + compatible = "tanix,tx6s", "allwinner,sun50i-h616";
  35. +
  36. + aliases {
  37. + serial0 = &uart0;
  38. + };
  39. +
  40. + chosen {
  41. + stdout-path = "serial0:115200n8";
  42. + };
  43. +
  44. + reg_vcc5v: vcc5v {
  45. + /* board wide 5V supply directly from the DC input */
  46. + compatible = "regulator-fixed";
  47. + regulator-name = "vcc-5v";
  48. + regulator-min-microvolt = <5000000>;
  49. + regulator-max-microvolt = <5000000>;
  50. + regulator-always-on;
  51. + };
  52. +};
  53. +
  54. +&ehci0 {
  55. + status = "okay";
  56. +};
  57. +
  58. +&ehci2 {
  59. + status = "okay";
  60. +};
  61. +
  62. +&ir {
  63. + status = "okay";
  64. +};
  65. +
  66. +&mmc0 {
  67. + vmmc-supply = <&reg_dcdce>;
  68. + cd-gpios = <&pio 8 10 GPIO_ACTIVE_LOW>; /* PI10 */
  69. + bus-width = <4>;
  70. + status = "okay";
  71. +};
  72. +
  73. +&ohci0 {
  74. + status = "okay";
  75. +};
  76. +
  77. +&ohci2 {
  78. + status = "okay";
  79. +};
  80. +
  81. +&r_rsb {
  82. + status = "okay";
  83. +
  84. + axp305: pmic@745 {
  85. + compatible = "x-powers,axp305", "x-powers,axp805",
  86. + "x-powers,axp806";
  87. + interrupt-controller;
  88. + #interrupt-cells = <1>;
  89. + reg = <0x745>;
  90. +
  91. + x-powers,self-working-mode;
  92. + vina-supply = <&reg_vcc5v>;
  93. + vinb-supply = <&reg_vcc5v>;
  94. + vinc-supply = <&reg_vcc5v>;
  95. + vind-supply = <&reg_vcc5v>;
  96. + vine-supply = <&reg_vcc5v>;
  97. + aldoin-supply = <&reg_vcc5v>;
  98. + bldoin-supply = <&reg_vcc5v>;
  99. + cldoin-supply = <&reg_vcc5v>;
  100. +
  101. + regulators {
  102. + reg_aldo1: aldo1 {
  103. + regulator-always-on;
  104. + regulator-min-microvolt = <3300000>;
  105. + regulator-max-microvolt = <3300000>;
  106. + regulator-name = "vcc-sys";
  107. + };
  108. +
  109. + reg_aldo2: aldo2 {
  110. + regulator-min-microvolt = <3300000>;
  111. + regulator-max-microvolt = <3300000>;
  112. + regulator-name = "vcc3v3-ext";
  113. + status = "disabled";
  114. + };
  115. +
  116. + reg_aldo3: aldo3 {
  117. + regulator-min-microvolt = <3300000>;
  118. + regulator-max-microvolt = <3300000>;
  119. + regulator-name = "vcc3v3-ext2";
  120. + status = "disabled";
  121. + };
  122. +
  123. + reg_bldo1: bldo1 {
  124. + regulator-always-on;
  125. + regulator-min-microvolt = <1800000>;
  126. + regulator-max-microvolt = <1800000>;
  127. + regulator-name = "vcc1v8";
  128. + };
  129. +
  130. + reg_bldo2: bldo2 {
  131. + regulator-min-microvolt = <1800000>;
  132. + regulator-max-microvolt = <1800000>;
  133. + regulator-name = "vcc1v8-2";
  134. + status = "disabled";
  135. + };
  136. +
  137. + bldo3 {
  138. + /* unused */
  139. + };
  140. +
  141. + bldo4 {
  142. + /* unused */
  143. + };
  144. +
  145. + cldo1 {
  146. + regulator-min-microvolt = <2500000>;
  147. + regulator-max-microvolt = <2500000>;
  148. + regulator-name = "vcc2v5";
  149. + };
  150. +
  151. + cldo2 {
  152. + /* unused */
  153. + };
  154. +
  155. + cldo3 {
  156. + /* unused */
  157. + };
  158. +
  159. + reg_dcdca: dcdca {
  160. + regulator-always-on;
  161. + regulator-min-microvolt = <810000>;
  162. + regulator-max-microvolt = <1080000>;
  163. + regulator-name = "vdd-cpu";
  164. + };
  165. +
  166. + reg_dcdcc: dcdcc {
  167. + regulator-always-on;
  168. + regulator-min-microvolt = <810000>;
  169. + regulator-max-microvolt = <1080000>;
  170. + regulator-name = "vdd-gpu-sys";
  171. + };
  172. +
  173. + reg_dcdcd: dcdcd {
  174. + regulator-always-on;
  175. + regulator-min-microvolt = <1360000>;
  176. + regulator-max-microvolt = <1360000>;
  177. + regulator-name = "vdd-dram";
  178. + };
  179. +
  180. + reg_dcdce: dcdce {
  181. + regulator-boot-on;
  182. + regulator-min-microvolt = <3300000>;
  183. + regulator-max-microvolt = <3300000>;
  184. + regulator-name = "vcc-eth-mmc";
  185. + };
  186. +
  187. + sw {
  188. + /* unused */
  189. + };
  190. + };
  191. + };
  192. +};
  193. +
  194. +&uart0 {
  195. + pinctrl-names = "default";
  196. + pinctrl-0 = <&uart0_ph_pins>;
  197. + status = "okay";
  198. +};
  199. +
  200. +&usbotg {
  201. + dr_mode = "host"; /* USB A type receptable */
  202. + status = "okay";
  203. +};
  204. +
  205. +&usbphy {
  206. + status = "okay";
  207. +};
  208. diff -Naur u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-old/configs/tanix_tx6s_defconfig u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-new/configs/tanix_tx6s_defconfig
  209. --- u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-old/configs/tanix_tx6s_defconfig 1970-01-01 01:00:00.000000000 +0100
  210. +++ u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-new/configs/tanix_tx6s_defconfig 2021-05-11 20:49:24.476666604 +0200
  211. @@ -0,0 +1,15 @@
  212. +CONFIG_ARM=y
  213. +CONFIG_ARCH_SUNXI=y
  214. +CONFIG_SPL=y
  215. +CONFIG_DRAM_SUN50I_H616_WRITE_LEVELING=y
  216. +CONFIG_DRAM_SUN50I_H616_READ_CALIBRATION=y
  217. +CONFIG_DRAM_SUN50I_H616_READ_TRAINING=y
  218. +CONFIG_DRAM_SUN50I_H616_WRITE_TRAINING=y
  219. +CONFIG_MACH_SUN50I_H616=y
  220. +CONFIG_MMC0_CD_PIN="PI10"
  221. +CONFIG_R_I2C_ENABLE=y
  222. +CONFIG_DEFAULT_DEVICE_TREE="sun50i-h616-tanix-tx6s"
  223. +# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
  224. +CONFIG_SPL_I2C_SUPPORT=y
  225. +CONFIG_PHY_REALTEK=y
  226. +CONFIG_SUN8I_EMAC=y
  227. [piotro@minimyth-armv8 files]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement