Advertisement
Guest User

Untitled

a guest
May 13th, 2021
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.29 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,190 @@
  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 16 GPIO_ACTIVE_LOW>; /* PI16 */
  69. + broken-cd;
  70. + bus-width = <4>;
  71. + status = "okay";
  72. +};
  73. +
  74. +&ohci0 {
  75. + status = "okay";
  76. +};
  77. +
  78. +&ohci2 {
  79. + status = "okay";
  80. +};
  81. +
  82. +&r_rsb {
  83. + status = "okay";
  84. +
  85. + axp305: pmic@745 {
  86. + compatible = "x-powers,axp305", "x-powers,axp805",
  87. + "x-powers,axp806";
  88. + interrupt-controller;
  89. + #interrupt-cells = <1>;
  90. + reg = <0x745>;
  91. +
  92. + x-powers,self-working-mode;
  93. + vina-supply = <&reg_vcc5v>;
  94. + vinb-supply = <&reg_vcc5v>;
  95. + vinc-supply = <&reg_vcc5v>;
  96. + vind-supply = <&reg_vcc5v>;
  97. + vine-supply = <&reg_vcc5v>;
  98. + aldoin-supply = <&reg_vcc5v>;
  99. + bldoin-supply = <&reg_vcc5v>;
  100. + cldoin-supply = <&reg_vcc5v>;
  101. +
  102. + regulators {
  103. + reg_aldo1: aldo1 {
  104. + regulator-always-on;
  105. + regulator-min-microvolt = <3300000>;
  106. + regulator-max-microvolt = <3300000>;
  107. + regulator-name = "vcc-sys";
  108. + };
  109. +
  110. + reg_aldo2: aldo2 {
  111. + regulator-min-microvolt = <3300000>;
  112. + regulator-max-microvolt = <3300000>;
  113. + regulator-name = "vcc3v3-ext";
  114. + status = "disabled";
  115. + };
  116. +
  117. + reg_aldo3: aldo3 {
  118. + regulator-min-microvolt = <3300000>;
  119. + regulator-max-microvolt = <3300000>;
  120. + regulator-name = "vcc3v3-ext2";
  121. + status = "disabled";
  122. + };
  123. +
  124. + reg_bldo1: bldo1 {
  125. + regulator-always-on;
  126. + regulator-min-microvolt = <1800000>;
  127. + regulator-max-microvolt = <1800000>;
  128. + regulator-name = "vcc1v8";
  129. + };
  130. +
  131. + reg_bldo2: bldo2 {
  132. + regulator-min-microvolt = <1800000>;
  133. + regulator-max-microvolt = <1800000>;
  134. + regulator-name = "vcc1v8-2";
  135. + status = "disabled";
  136. + };
  137. +
  138. + bldo3 {
  139. + /* unused */
  140. + };
  141. +
  142. + bldo4 {
  143. + /* unused */
  144. + };
  145. +
  146. + cldo1 {
  147. + regulator-min-microvolt = <2500000>;
  148. + regulator-max-microvolt = <2500000>;
  149. + regulator-name = "vcc2v5";
  150. + };
  151. +
  152. + cldo2 {
  153. + /* unused */
  154. + };
  155. +
  156. + cldo3 {
  157. + /* unused */
  158. + };
  159. +
  160. + reg_dcdca: dcdca {
  161. + regulator-always-on;
  162. + regulator-min-microvolt = <810000>;
  163. + regulator-max-microvolt = <1080000>;
  164. + regulator-name = "vdd-cpu";
  165. + };
  166. +
  167. + reg_dcdcc: dcdcc {
  168. + regulator-always-on;
  169. + regulator-min-microvolt = <810000>;
  170. + regulator-max-microvolt = <1080000>;
  171. + regulator-name = "vdd-gpu-sys";
  172. + };
  173. +
  174. + reg_dcdcd: dcdcd {
  175. + regulator-always-on;
  176. + regulator-min-microvolt = <1360000>;
  177. + regulator-max-microvolt = <1360000>;
  178. + regulator-name = "vdd-dram";
  179. + };
  180. +
  181. + reg_dcdce: dcdce {
  182. + regulator-boot-on;
  183. + regulator-min-microvolt = <3300000>;
  184. + regulator-max-microvolt = <3300000>;
  185. + regulator-name = "vcc-eth-mmc";
  186. + };
  187. +
  188. + sw {
  189. + /* unused */
  190. + };
  191. + };
  192. + };
  193. +};
  194. +
  195. +&uart0 {
  196. + pinctrl-names = "default";
  197. + pinctrl-0 = <&uart0_ph_pins>;
  198. + status = "okay";
  199. +};
  200. +
  201. +&usbotg {
  202. + dr_mode = "host"; /* USB A type receptable */
  203. + status = "okay";
  204. +};
  205. +
  206. +&usbphy {
  207. + status = "okay";
  208. +};
  209. diff -Naur u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-old/configs/tanix_tx6s_defconfig u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-new/configs/tanix_tx6s_defconfig
  210. --- u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-old/configs/tanix_tx6s_defconfig 1970-01-01 01:00:00.000000000 +0100
  211. +++ u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-new/configs/tanix_tx6s_defconfig 2021-05-11 20:49:24.476666604 +0200
  212. @@ -0,0 +1,16 @@
  213. +CONFIG_ARM=y
  214. +CONFIG_ARCH_SUNXI=y
  215. +CONFIG_SPL=y
  216. +CONFIG_DRAM_SUN50I_H616_WRITE_LEVELING=y
  217. +CONFIG_DRAM_SUN50I_H616_READ_CALIBRATION=y
  218. +CONFIG_DRAM_SUN50I_H616_READ_TRAINING=y
  219. +CONFIG_DRAM_SUN50I_H616_WRITE_TRAINING=y
  220. +CONFIG_MACH_SUN50I_H616=y
  221. +CONFIG_MMC0_CD_PIN=""
  222. +# CONFIG_MMC_SUNXI_SLOT_EXTRA=2
  223. +CONFIG_R_I2C_ENABLE=y
  224. +CONFIG_DEFAULT_DEVICE_TREE="sun50i-h616-tanix-tx6s"
  225. +# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
  226. +CONFIG_SPL_I2C_SUPPORT=y
  227. +CONFIG_PHY_REALTEK=y
  228. +CONFIG_SUN8I_EMAC=y
  229. diff --git a/arch/arm/dts/sunxi-u-boot.dtsi b/arch/arm/dts/sunxi-u-boot.dtsi
  230. index a4227a3c22d..06da009fa28 100644
  231. --- a/arch/arm/dts/sunxi-u-boot.dtsi
  232. +++ b/arch/arm/dts/sunxi-u-boot.dtsi
  233. @@ -12,6 +12,7 @@
  234.  
  235. / {
  236. aliases {
  237. + mmc0 = &mmc0;
  238. mmc1 = &mmc2;
  239. };
  240. [piotro@minimyth-armv8 files]$
  241.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement