The Allwinner T113-s3 (sun8i) SoC features a dual-core Cortex-A7 ARM CPU and 128MB of DDR3 memory in the same physical package. It supports industrial temperature ranges. Most of the IP blocks are shared with the D1/D1s core. There are multiple variants of the SoC, which may vary in the included memory size, with some of them including a C906 RISC-V co-processor. Boards supported: - MangoPi MQDual T113 - wireless-only (RTL8723DS) - MYIR MYD-YT113 eMMC - 1Gbit ethernet (Motorcomm YT8531 PHY) - 4GByte eMMC - M.2-type slot for 4G/5G cards, plus 2x SIM slot - USB 2.0 ports - GPIO/I2C/SPI/CAN ports - FNLink 6131 (rtl8733bu) wifi module - MYIR MYD-YT113 SPI - Same as above but with 256Mbyte SPI-NAND flash instead of eMMC - Rongpin RP-T113 - 100Mbit ethernet (ICplus IP101GR PHY) - miniPCIe slot for 4G cards, plus 1x SIM slot - 3x USB 2.0 ports - RTL8723BS wireless - HYM8563 RTC - GPIO/I2C/SPI/CAN ports - Olimex T113-Olinuxino - 100Mbit ethernet (ICplus IP101GR) - UEXT connector (GPIO/I2C/SPI ports) - 1x USB 2.0 - audio jack, LEDC Installation: Use the standard sunxi installation to an SD-card. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
39 lines
1.2 KiB
Diff
39 lines
1.2 KiB
Diff
--- a/arch/arm/mach-sunxi/board.c
|
|
+++ b/arch/arm/mach-sunxi/board.c
|
|
@@ -191,6 +191,10 @@ static int gpio_init(void)
|
|
sunxi_gpio_set_cfgpin(SUNXI_GPL(2), SUN8I_GPL_R_UART);
|
|
sunxi_gpio_set_cfgpin(SUNXI_GPL(3), SUN8I_GPL_R_UART);
|
|
sunxi_gpio_set_pull(SUNXI_GPL(3), SUNXI_GPIO_PULL_UP);
|
|
+#elif CONFIG_CONS_INDEX == 5 && defined(CONFIG_MACH_SUN8I_R528)
|
|
+ sunxi_gpio_set_cfgpin(SUNXI_GPD(7), 5);
|
|
+ sunxi_gpio_set_cfgpin(SUNXI_GPD(8), 5);
|
|
+ sunxi_gpio_set_pull(SUNXI_GPD(8), SUNXI_GPIO_PULL_UP);
|
|
#elif CONFIG_CONS_INDEX == 6 && defined(CONFIG_MACH_SUN8I_R528)
|
|
sunxi_gpio_set_cfgpin(SUNXI_GPE(6), 3);
|
|
sunxi_gpio_set_cfgpin(SUNXI_GPE(7), 3);
|
|
--- a/drivers/pinctrl/sunxi/pinctrl-sunxi.c
|
|
+++ b/drivers/pinctrl/sunxi/pinctrl-sunxi.c
|
|
@@ -619,6 +619,7 @@ static const struct sunxi_pinctrl_functi
|
|
#else
|
|
{ "uart3", 7 }, /* PB6-PB7 */
|
|
#endif
|
|
+ { "uart4", 5 }, /* PD7-PD8 */
|
|
{ "uart5", 3 }, /* PE6-PE7 */
|
|
};
|
|
|
|
--- a/arch/riscv/dts/sunxi-d1s-t113.dtsi
|
|
+++ b/arch/riscv/dts/sunxi-d1s-t113.dtsi
|
|
@@ -163,6 +163,12 @@
|
|
pins = "PE2", "PE3";
|
|
function = "uart0";
|
|
};
|
|
+
|
|
+ /omit-if-no-ref/
|
|
+ uart4_pd_pins: uart4-pd-pins {
|
|
+ pins = "PD7", "PD8";
|
|
+ function = "uart4";
|
|
+ };
|
|
};
|
|
|
|
ccu: clock-controller@2001000 {
|