Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [piotro@minimyth-armv8 files]$ cat add-tanix-tx6s-defconfig.patch
- diff -Naur u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-old/arch/arm/dts/Makefile u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-new/arch/arm/dts/Makefile
- --- u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-old/arch/arm/dts/Makefile 2021-04-26 11:12:35.000000000 +0200
- +++ u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-new/arch/arm/dts/Makefile 2021-05-11 21:07:30.613333253 +0200
- @@ -622,7 +622,8 @@
- sun50i-h6-pine-h64.dtb \
- sun50i-h6-tanix-tx6.dtb
- dtb-$(CONFIG_MACH_SUN50I_H616) += \
- - sun50i-h616-orangepi-zero2.dtb
- + sun50i-h616-orangepi-zero2.dtb \
- + sun50i-h616-tanix-tx6s.dtb
- dtb-$(CONFIG_MACH_SUN50I) += \
- sun50i-a64-amarula-relic.dtb \
- sun50i-a64-bananapi-m64.dtb \
- 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
- --- u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-old/arch/arm/dts/sun50i-h616-tanix-tx6s.dts 1970-01-01 01:00:00.000000000 +0100
- +++ u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-new/arch/arm/dts/sun50i-h616-tanix-tx6s.dts 2021-05-11 20:52:30.906666606 +0200
- @@ -0,0 +1,190 @@
- +// SPDX-License-Identifier: (GPL-2.0+ or MIT)
- +/*
- + * Copyright (C) 2021 Arm Ltd.
- + */
- +
- +/dts-v1/;
- +
- +#include "sun50i-h616.dtsi"
- +
- +#include <dt-bindings/gpio/gpio.h>
- +#include <dt-bindings/interrupt-controller/arm-gic.h>
- +#include <dt-bindings/leds/common.h>
- +
- +/ {
- + model = "Tanix TX6s";
- + compatible = "tanix,tx6s", "allwinner,sun50i-h616";
- +
- + aliases {
- + serial0 = &uart0;
- + };
- +
- + chosen {
- + stdout-path = "serial0:115200n8";
- + };
- +
- + reg_vcc5v: vcc5v {
- + /* board wide 5V supply directly from the DC input */
- + compatible = "regulator-fixed";
- + regulator-name = "vcc-5v";
- + regulator-min-microvolt = <5000000>;
- + regulator-max-microvolt = <5000000>;
- + regulator-always-on;
- + };
- +};
- +
- +&ehci0 {
- + status = "okay";
- +};
- +
- +&ehci2 {
- + status = "okay";
- +};
- +
- +&ir {
- + status = "okay";
- +};
- +
- +&mmc2 {
- + vmmc-supply = <®_dcdce>;
- + cd-gpios = <&pio 8 16 GPIO_ACTIVE_LOW>; /* PI16 */
- + //broken-cd;
- + bus-width = <4>;
- + status = "okay";
- +};
- +
- +&ohci0 {
- + status = "okay";
- +};
- +
- +&ohci2 {
- + status = "okay";
- +};
- +
- +&r_rsb {
- + status = "okay";
- +
- + axp305: pmic@745 {
- + compatible = "x-powers,axp305", "x-powers,axp805",
- + "x-powers,axp806";
- + interrupt-controller;
- + #interrupt-cells = <1>;
- + reg = <0x745>;
- +
- + x-powers,self-working-mode;
- + vina-supply = <®_vcc5v>;
- + vinb-supply = <®_vcc5v>;
- + vinc-supply = <®_vcc5v>;
- + vind-supply = <®_vcc5v>;
- + vine-supply = <®_vcc5v>;
- + aldoin-supply = <®_vcc5v>;
- + bldoin-supply = <®_vcc5v>;
- + cldoin-supply = <®_vcc5v>;
- +
- + regulators {
- + reg_aldo1: aldo1 {
- + regulator-always-on;
- + regulator-min-microvolt = <3300000>;
- + regulator-max-microvolt = <3300000>;
- + regulator-name = "vcc-sys";
- + };
- +
- + reg_aldo2: aldo2 {
- + regulator-min-microvolt = <3300000>;
- + regulator-max-microvolt = <3300000>;
- + regulator-name = "vcc3v3-ext";
- + status = "disabled";
- + };
- +
- + reg_aldo3: aldo3 {
- + regulator-min-microvolt = <3300000>;
- + regulator-max-microvolt = <3300000>;
- + regulator-name = "vcc3v3-ext2";
- + status = "disabled";
- + };
- +
- + reg_bldo1: bldo1 {
- + regulator-always-on;
- + regulator-min-microvolt = <1800000>;
- + regulator-max-microvolt = <1800000>;
- + regulator-name = "vcc1v8";
- + };
- +
- + reg_bldo2: bldo2 {
- + regulator-min-microvolt = <1800000>;
- + regulator-max-microvolt = <1800000>;
- + regulator-name = "vcc1v8-2";
- + status = "disabled";
- + };
- +
- + bldo3 {
- + /* unused */
- + };
- +
- + bldo4 {
- + /* unused */
- + };
- +
- + cldo1 {
- + regulator-min-microvolt = <2500000>;
- + regulator-max-microvolt = <2500000>;
- + regulator-name = "vcc2v5";
- + };
- +
- + cldo2 {
- + /* unused */
- + };
- +
- + cldo3 {
- + /* unused */
- + };
- +
- + reg_dcdca: dcdca {
- + regulator-always-on;
- + regulator-min-microvolt = <810000>;
- + regulator-max-microvolt = <1080000>;
- + regulator-name = "vdd-cpu";
- + };
- +
- + reg_dcdcc: dcdcc {
- + regulator-always-on;
- + regulator-min-microvolt = <810000>;
- + regulator-max-microvolt = <1080000>;
- + regulator-name = "vdd-gpu-sys";
- + };
- +
- + reg_dcdcd: dcdcd {
- + regulator-always-on;
- + regulator-min-microvolt = <1360000>;
- + regulator-max-microvolt = <1360000>;
- + regulator-name = "vdd-dram";
- + };
- +
- + reg_dcdce: dcdce {
- + regulator-boot-on;
- + regulator-min-microvolt = <3300000>;
- + regulator-max-microvolt = <3300000>;
- + regulator-name = "vcc-eth-mmc";
- + };
- +
- + sw {
- + /* unused */
- + };
- + };
- + };
- +};
- +
- +&uart0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart0_ph_pins>;
- + status = "okay";
- +};
- +
- +&usbotg {
- + dr_mode = "host"; /* USB A type receptable */
- + status = "okay";
- +};
- +
- +&usbphy {
- + status = "okay";
- +};
- diff -Naur u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-old/configs/tanix_tx6s_defconfig u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-new/configs/tanix_tx6s_defconfig
- --- u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-old/configs/tanix_tx6s_defconfig 1970-01-01 01:00:00.000000000 +0100
- +++ u-boot-sunxi-647b392bf20614006917d5fcd3390347a668eee5-new/configs/tanix_tx6s_defconfig 2021-05-11 20:49:24.476666604 +0200
- @@ -0,0 +1,16 @@
- +CONFIG_ARM=y
- +CONFIG_ARCH_SUNXI=y
- +CONFIG_SPL=y
- +CONFIG_DRAM_SUN50I_H616_WRITE_LEVELING=y
- +CONFIG_DRAM_SUN50I_H616_READ_CALIBRATION=y
- +CONFIG_DRAM_SUN50I_H616_READ_TRAINING=y
- +CONFIG_DRAM_SUN50I_H616_WRITE_TRAINING=y
- +CONFIG_MACH_SUN50I_H616=y
- +CONFIG_MMC2_CD_PIN="PI16"
- +CONFIG_MMC_SUNXI_SLOT_EXTRA=2
- +CONFIG_R_I2C_ENABLE=y
- +CONFIG_DEFAULT_DEVICE_TREE="sun50i-h616-tanix-tx6s"
- +# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
- +CONFIG_SPL_I2C_SUPPORT=y
- +CONFIG_PHY_REALTEK=y
- +CONFIG_SUN8I_EMAC=y
- [piotro@minimyth-armv8 files]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement