arm: dts: sun8i-t113i-tronlong-tlt113-minevm: Initial support
This patch add support for Tronlong TLT113-MiniEVM board. Signed-off-by: Yilin Sun <imi415@imi.moe>
This commit is contained in:
parent
0afbe90ad2
commit
a5ec3a143d
|
@ -810,6 +810,7 @@ dtb-$(CONFIG_MACH_SUN8I_V3S) += \
|
|||
sun8i-v3-sl631-imx179.dtb \
|
||||
sun8i-v3s-licheepi-zero.dtb
|
||||
dtb-$(CONFIG_MACH_SUN8I_R528) += \
|
||||
sun8i-t113i-tronlong-tlt113-minievm.dtb \
|
||||
sun8i-t113s-mangopi-mq-r-t113.dtb
|
||||
dtb-$(CONFIG_MACH_SUN50I_H5) += \
|
||||
sun50i-h5-bananapi-m2-plus.dtb \
|
||||
|
|
33
arch/arm/dts/sun8i-t113i-tronlong-tlt113-minievm.dts
Normal file
33
arch/arm/dts/sun8i-t113i-tronlong-tlt113-minievm.dts
Normal file
|
@ -0,0 +1,33 @@
|
|||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
// Copyright (C) 2022 Arm Ltd.
|
||||
|
||||
#include <dt-bindings/interrupt-controller/irq.h>
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
#include "sun8i-t113i.dtsi"
|
||||
#include "sunxi-t113i-tronlong-tlt113.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Tronlong TLT113-MiniEVM";
|
||||
compatible = "tronlong,tlt113-minievm", "allwinner,sun8i-t113i";
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
cpu-supply = <®_vcc_core>;
|
||||
};
|
||||
|
||||
&cpu1 {
|
||||
cpu-supply = <®_vcc_core>;
|
||||
};
|
||||
|
||||
&mmc0 {
|
||||
pinctrl-0 = <&mmc0_pins>;
|
||||
pinctrl-names = "default";
|
||||
vmmc-supply = <®_3v3>;
|
||||
cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
|
||||
disable-wp;
|
||||
bus-width = <4>;
|
||||
status = "okay";
|
||||
};
|
||||
|
119
arch/arm/dts/sunxi-t113i-tronlong-tlt113.dtsi
Normal file
119
arch/arm/dts/sunxi-t113i-tronlong-tlt113.dtsi
Normal file
|
@ -0,0 +1,119 @@
|
|||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
// Copyright (C) 2022 Arm Ltd.
|
||||
/*
|
||||
* Common peripherals and configurations for MangoPi MQ-R boards.
|
||||
*/
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/leds/common.h>
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
serial2 = &uart2;
|
||||
};
|
||||
|
||||
chosen {
|
||||
stdout-path = "serial2:115200n8";
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led-0 {
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
function = LED_FUNCTION_STATUS;
|
||||
gpios = <&pio 2 0 GPIO_ACTIVE_HIGH>; /* PC0 */
|
||||
};
|
||||
|
||||
led-1 {
|
||||
color = <LED_COLOR_ID_RED>;
|
||||
function = LED_FUNCTION_STATUS;
|
||||
gpios = <&pio 2 1 GPIO_ACTIVE_HIGH>; /* PC1 */
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
/* EC2232E DC/DC regulator on SoM */
|
||||
reg_vcc5v: regulator-5v {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc-5v";
|
||||
regulator-min-microvolt = <5000000>;
|
||||
regulator-max-microvolt = <5000000>;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
/* EC2232E DC/DC regulator on SoM */
|
||||
reg_3v3: regulator-3v3 {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc-3v3";
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
vin-supply = <®_vcc5v>;
|
||||
};
|
||||
|
||||
/* EC2232E DC/DC regulator on SoM, also supplying VDD-SYS */
|
||||
reg_vcc_core: regulator-core {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc-core";
|
||||
regulator-min-microvolt = <880000>;
|
||||
regulator-max-microvolt = <880000>;
|
||||
vin-supply = <®_vcc5v>;
|
||||
};
|
||||
};
|
||||
|
||||
&dcxo {
|
||||
clock-frequency = <24000000>;
|
||||
};
|
||||
|
||||
&ehci1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&ohci1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pio {
|
||||
vcc-pb-supply = <®_3v3>;
|
||||
vcc-pd-supply = <®_3v3>;
|
||||
vcc-pe-supply = <®_3v3>;
|
||||
vcc-pf-supply = <®_3v3>;
|
||||
vcc-pg-supply = <®_3v3>;
|
||||
|
||||
uart2_pg_pins: uart2_pg_pins {
|
||||
pins = "PG17", "PG18";
|
||||
function = "uart2";
|
||||
};
|
||||
};
|
||||
|
||||
&uart2 {
|
||||
bootph-all;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart2_pg_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&spi0 {
|
||||
bootph-all;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&spi0_pins>;
|
||||
status = "okay";
|
||||
|
||||
spi_nand@0 {
|
||||
bootph-all;
|
||||
compatible = "spi-nand";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <50000000>;
|
||||
};
|
||||
};
|
||||
|
||||
/* The USB-C socket has its CC pins pulled to GND, so is hardwired as a UFP. */
|
||||
&usb_otg {
|
||||
dr_mode = "peripheral";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usbphy {
|
||||
usb1_vbus-supply = <®_vcc5v>;
|
||||
status = "okay";
|
||||
};
|
Loading…
Reference in New Issue
Block a user