Advertisement
Guest User

Untitled

a guest
Jun 11th, 2017
504
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.00 KB | None | 0 0
  1. From 8c71e066f20d3e9f2607503745e89a8adec5a3c0 Mon Sep 17 00:00:00 2001
  2. From: Ziping Chen <techping.chan@gmail.com>
  3. Date: Fri, 9 Jun 2017 21:08:17 +0800
  4. Subject: [PATCH 2/2] ARM: sunxi: add support for Sinlinx SinA83T
  5.  
  6. The SinA83T is an A83T core/daughter board combo from Sinlinx.
  7.  
  8. Add support for it.
  9.  
  10. Signed-off-by: Ziping Chen <techping.chan@gmail.com>
  11. ---
  12. arch/arm/dts/Makefile | 3 +-
  13. arch/arm/dts/sun8i-a83t-sinlinx-sina83t.dts | 107 ++++++++++++++++++++++++++++
  14. board/sunxi/MAINTAINERS | 6 ++
  15. configs/Sinlinx_SinA83T_defconfig | 21 ++++++
  16. 4 files changed, 136 insertions(+), 1 deletion(-)
  17. create mode 100644 arch/arm/dts/sun8i-a83t-sinlinx-sina83t.dts
  18. create mode 100644 configs/Sinlinx_SinA83T_defconfig
  19.  
  20. diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
  21. index 8b8f5e9e76..c0eae9f443 100644
  22. --- a/arch/arm/dts/Makefile
  23. +++ b/arch/arm/dts/Makefile
  24. @@ -305,7 +305,8 @@ dtb-$(CONFIG_MACH_SUN8I_A33) += \
  25. dtb-$(CONFIG_MACH_SUN8I_A83T) += \
  26. sun8i-a83t-allwinner-h8homlet-v2.dtb \
  27. sun8i-a83t-cubietruck-plus.dtb \
  28. - sun8i-a83t-sinovoip-bpi-m3.dtb
  29. + sun8i-a83t-sinovoip-bpi-m3.dtb \
  30. + sun8i-a83t-sinlinx-sina83t.dtb
  31. dtb-$(CONFIG_MACH_SUN8I_H3) += \
  32. sun8i-h2-plus-orangepi-zero.dtb \
  33. sun8i-h3-bananapi-m2-plus.dtb \
  34. diff --git a/arch/arm/dts/sun8i-a83t-sinlinx-sina83t.dts b/arch/arm/dts/sun8i-a83t-sinlinx-sina83t.dts
  35. new file mode 100644
  36. index 0000000000..ae50e022d4
  37. --- /dev/null
  38. +++ b/arch/arm/dts/sun8i-a83t-sinlinx-sina83t.dts
  39. @@ -0,0 +1,107 @@
  40. +/*
  41. + * Copyright 2017 Ziping Chen
  42. + * Ziping Chen <techping.chan@gmail.com>
  43. + *
  44. + * This file is dual-licensed: you can use it either under the terms
  45. + * of the GPL or the X11 license, at your option. Note that this dual
  46. + * licensing only applies to this file, and not this project as a
  47. + * whole.
  48. + *
  49. + * a) This file is free software; you can redistribute it and/or
  50. + * modify it under the terms of the GNU General Public License as
  51. + * published by the Free Software Foundation; either version 2 of the
  52. + * License, or (at your option) any later version.
  53. + *
  54. + * This file is distributed in the hope that it will be useful,
  55. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  56. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  57. + * GNU General Public License for more details.
  58. + *
  59. + * Or, alternatively,
  60. + *
  61. + * b) Permission is hereby granted, free of charge, to any person
  62. + * obtaining a copy of this software and associated documentation
  63. + * files (the "Software"), to deal in the Software without
  64. + * restriction, including without limitation the rights to use,
  65. + * copy, modify, merge, publish, distribute, sublicense, and/or
  66. + * sell copies of the Software, and to permit persons to whom the
  67. + * Software is furnished to do so, subject to the following
  68. + * conditions:
  69. + *
  70. + * The above copyright notice and this permission notice shall be
  71. + * included in all copies or substantial portions of the Software.
  72. + *
  73. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  74. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  75. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  76. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  77. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  78. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  79. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  80. + * OTHER DEALINGS IN THE SOFTWARE.
  81. + */
  82. +
  83. +/dts-v1/;
  84. +#include "sun8i-a83t.dtsi"
  85. +#include "sunxi-common-regulators.dtsi"
  86. +
  87. +#include <dt-bindings/gpio/gpio.h>
  88. +#include <dt-bindings/input/input.h>
  89. +#include <dt-bindings/pinctrl/sun4i-a10.h>
  90. +
  91. +/ {
  92. + model = "Sinlinx SinA83T";
  93. + compatible = "sinlinx,sina83t", "allwinner,sun8i-a83t";
  94. +
  95. + aliases {
  96. + serial0 = &uart0;
  97. + };
  98. +
  99. + chosen {
  100. + stdout-path = "serial0:115200n8";
  101. + };
  102. +
  103. + leds {
  104. + compatible = "gpio-leds";
  105. +
  106. + usr_led {
  107. + label = "sinlinx:blue:usr";
  108. + gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PL10 */
  109. + default-state = "on";
  110. + };
  111. + };
  112. +};
  113. +
  114. +#define USB_CLASS_HUB 9
  115. +
  116. +&ehci0 {
  117. + /* USB 2.0 4 port hub IC */
  118. + status = "okay";
  119. + #address-cells = <2>;
  120. + #size-cells = <2>;
  121. +
  122. + hub {
  123. + compatible = "usb-hub";
  124. + usb,device-class = <USB_CLASS_HUB>;
  125. + #address-cells = <1>;
  126. + #size-cells = <0>;
  127. + };
  128. +};
  129. +
  130. +&ehci1 {
  131. + status = "okay";
  132. +};
  133. +
  134. +&ohci0 {
  135. + status = "okay";
  136. +};
  137. +
  138. +&uart0 {
  139. + pinctrl-names = "default";
  140. + pinctrl-0 = <&uart0_pins_a>;
  141. + status = "okay";
  142. +};
  143. +
  144. +&usb_otg {
  145. + status = "okay";
  146. +};
  147. diff --git a/board/sunxi/MAINTAINERS b/board/sunxi/MAINTAINERS
  148. index 0f1290acc0..d9370f6d63 100644
  149. --- a/board/sunxi/MAINTAINERS
  150. +++ b/board/sunxi/MAINTAINERS
  151. @@ -299,6 +299,12 @@ S: Maintained
  152. F: configs/Sinlinx_SinA33_defconfig
  153. W: http://linux-sunxi.org/Sinlinx_SinA33
  154.  
  155. +SINLINX SINA83T BOARD
  156. +M: Ziping Chen <techping.chan@gmail.com>
  157. +S: Maintained
  158. +F: configs/Sinlinx_SinA83T_defconfig
  159. +W: http://linux-sunxi.org/Sinlinx_SinA83T
  160. +
  161. SINOVOIP BPI M2 PLUS H3 BOARD
  162. M: Icenowy Zheng <icenowy@aosc.io>
  163. S: Maintained
  164. diff --git a/configs/Sinlinx_SinA83T_defconfig b/configs/Sinlinx_SinA83T_defconfig
  165. new file mode 100644
  166. index 0000000000..d80ac77a58
  167. --- /dev/null
  168. +++ b/configs/Sinlinx_SinA83T_defconfig
  169. @@ -0,0 +1,21 @@
  170. +CONFIG_ARM=y
  171. +CONFIG_ARCH_SUNXI=y
  172. +CONFIG_MACH_SUN8I_A83T=y
  173. +CONFIG_DRAM_CLK=600
  174. +CONFIG_DRAM_ZQ=15355
  175. +CONFIG_DRAM_ODT_EN=y
  176. +CONFIG_MMC_SUNXI_SLOT_EXTRA=2
  177. +CONFIG_AXP_GPIO=y
  178. +CONFIG_DEFAULT_DEVICE_TREE="sun8i-a83t-sinlinx-sina83t"
  179. +# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
  180. +CONFIG_SPL=y
  181. +# CONFIG_CMD_IMLS is not set
  182. +# CONFIG_CMD_FLASH is not set
  183. +# CONFIG_CMD_FPGA is not set
  184. +# CONFIG_SPL_DOS_PARTITION is not set
  185. +# CONFIG_SPL_ISO_PARTITION is not set
  186. +# CONFIG_SPL_EFI_PARTITION is not set
  187. +CONFIG_AXP_DLDO4_VOLT=3300
  188. +CONFIG_USB_EHCI_HCD=y
  189. +CONFIG_USB_OHCI_HCD=y
  190. +CONFIG_USB_MUSB_HOST=y
  191. --
  192. 2.11.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement