Files
x96q-uboot/overlays/dts/sun50i-h313-x96q-lpddr3-v1.3.dts
T
achamaikin 359c107d36 Add X96Q LPDDR3 v1.3 custom U-Boot build and eMMC flash tooling.
Armbian-compatible U-Boot v2025.01 with eMMC, DTB, and flash fixes for the X96Q TV box.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-05 05:22:22 +03:00

171 lines
3.1 KiB
Devicetree

// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Author: piotr.oniszczuk@gmail.com
* X96Q LPDDR3 v1.3 board
*/
/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 = "hechuang,x96-q LPDDR3 v1.3";
compatible = "hechuang,x96-q", "allwinner,sun50i-h616";
aliases {
mmc0 = &mmc0;
mmc1 = &mmc1;
mmc2 = &mmc2;
ethernet1 = &wlan;
serial0 = &uart0;
};
chosen {
stdout-path = "serial0:115200n8";
};
leds {
compatible = "gpio-leds";
led-red {
function = LED_FUNCTION_DISK_ACTIVITY;
color = <LED_COLOR_ID_RED>;
gpios = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */
linux,default-trigger = "mmc0";
};
};
reg_vcc5v: vcc5v {
compatible = "regulator-fixed";
regulator-name = "vcc-5v";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
regulator-always-on;
};
reg_vcc_wifi: reg_vcc_wifi {
compatible = "regulator-fixed";
regulator-name = "vcc-wifi";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&pio 6 18 GPIO_ACTIVE_HIGH>; /* PG18 WL_REG_ON */
regulator-always-on;
enable-active-high;
status = "okay";
};
wifi_pwrseq: wifi_pwrseq {
compatible = "mmc-pwrseq-simple";
clocks = <&rtc CLK_OSC32K_FANOUT>;
clock-names = "ext_clock";
};
};
&cpu0 {
cpu-supply = <&reg_dcdc2>;
status = "okay";
};
&cpu1 {
cpu-supply = <&reg_dcdc2>;
status = "okay";
};
&cpu2 {
cpu-supply = <&reg_dcdc2>;
status = "okay";
};
&cpu3 {
cpu-supply = <&reg_dcdc2>;
status = "okay";
};
&mmc0 {
vmmc-supply = <&reg_dldo2>;
broken-cd;
bus-width = <4>;
status = "okay";
};
&mmc1 {
vmmc-supply = <&reg_dldo2>;
vqmmc-supply = <&reg_vcc_wifi>;
mmc-pwrseq = <&wifi_pwrseq>;
bus-width = <4>;
non-removable;
status = "okay";
wlan: wifi@1 {
reg = <1>;
interrupt-parent = <&pio>;
interrupts = <6 15 IRQ_TYPE_EDGE_RISING>; /* PG15 WL_HOSTWAKE */
interrupt-names = "host-wake";
};
};
&mmc2 {
vmmc-supply = <&reg_dldo2>;
bus-width = <8>;
non-removable;
cap-mmc-hw-reset;
status = "okay";
};
&r_i2c {
status = "okay";
axp313a: pmic@36 {
compatible = "x-powers,axp313a";
reg = <0x36>;
wakeup-source;
regulators {
reg_dcdc1: dcdc1 {
regulator-always-on;
regulator-min-microvolt = <1160000>;
regulator-max-microvolt = <1160000>;
regulator-name = "vdd-cpu";
};
reg_dcdc2: dcdc2 {
regulator-always-on;
regulator-min-microvolt = <1160000>;
regulator-max-microvolt = <1160000>;
regulator-name = "vdd-gpu-sys";
};
reg_dcdc3: dcdc3 {
regulator-always-on;
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
regulator-name = "vdd-dram";
};
reg_aldo1: ldo1 {
regulator-always-on;
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-name = "vcc-sys";
};
reg_dldo2: ldo2 {
regulator-always-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-name = "vcc3v3-ext";
};
};
};
};
&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_ph_pins>;
status = "okay";
};