Skip to content

Conversation

bluemeda
Copy link
Contributor

No description provided.

@ophub
Copy link
Owner

ophub commented Aug 15, 2025

有这个设备的dts源码吗?
刷armbian之前刷入的root的安卓系统有吗?
设备的外观和主板拍个照片,短接点标识一下。
设备的soc,内存,emmc,网络等关键参数介绍下。

@bluemeda
Copy link
Contributor Author

bluemeda commented Aug 16, 2025

STB HG680-FJ https://www.tvsfaq.com/en/streaming-device/telkom-indonesia-indihome-hg680-fj-hg680fj

SoC: S905X2, Quad-core ARM Cortex-A53, ARM Mali-G31 MP2
RAM: 2GB
eMMC storage: 8GB
Networking capabilities: 1 Ethernet 100Mb

bt/Wifi: mt7661/mt7668

USB Ports: 1 USB2, 1 USB3

DTS:



/* @sib0ndt */

/dts-v1/;

#include "meson-g12a-u200.dts"

/ {
	compatible = "hg680,fj", "amlogic,g12a";
	model = "HG680-FJ";

	vddgpu: regulator-vddgpu {
		compatible = "regulator-fixed";
		regulator-name = "mali";
		regulator-min-microvolt = <800000>;
		regulator-max-microvolt = <800000>;
		vin-supply = <&main_12v>;
		regulator-boot-on;
		regulator-always-on;
	};

	dc_in: regulator-dc_in {
		compatible = "regulator-fixed";
		regulator-name = "DC_IN";
		regulator-min-microvolt = <5000000>;
		regulator-max-microvolt = <5000000>;
		regulator-always-on;
	};
	
	vusb_d_reg: regulator-vusb-d {
		compatible = "regulator-fixed";
		regulator-name = "vusb_d";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
	};

	vusb_a_reg: regulator-vusb-a {
		compatible = "regulator-fixed";
		regulator-name = "vusb_a";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
	};

	vddio_ao1v8: regulator-vddio_ao1v8 {
		compatible = "regulator-fixed";
		regulator-name = "VDDIO_AO1V8";
		regulator-min-microvolt = <1800000>;
		regulator-max-microvolt = <1800000>;
		vin-supply = <&vddao_3v3>;
		regulator-always-on;
	};

	wifi32k: wifi32k {
		compatible = "pwm-clock";
		#clock-cells = <0>;
		clock-frequency = <32768>;
		pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
	};

	sdio_pwrseq: sdio-pwrseq {
		compatible = "mmc-pwrseq-simple";
		reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
		clocks = <&wifi32k>;
		clock-names = "ext_clock";
	};

	leds {
		compatible = "gpio-leds";
		
		power_led {
			led_name = "power_led";
                        gpios = <&gpio_ao GPIOAO_11 GPIO_ACTIVE_LOW>;
			default-state = "on";
		};

		net_led {
			led_name = "net_led";
                        gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_LOW>;
			default-state = "off";
			linux,default-trigger = "0.0:00:link";
		};

		remote_led {
			led_name = "remote_led";
                        gpios = <&gpio_ao GPIOAO_10 GPIO_ACTIVE_LOW>;
			default-state = "off";
			linux,default-trigger = "rc-feedback";
		};

	};

reserved-memory {
    secmon@5000000 {
        reg = <0x0 0x05000000 0x0 0x03000000>;
        no-map;
    };
    linux,cma {
        size = <0x0 0x10000000>;
    };
};

	memory@0 {
		device_type = "memory";
		reg = <0x0 0x0 0x0 0x80000000>;
	};
};

&pwm_ef {
	status = "okay";
	pinctrl-0 = <&pwm_e_pins>;
	pinctrl-names = "default";
	clocks = <&xtal>;
	clock-names = "clkin0";
};

&mali {
	mali-supply=<&vddgpu>;
};

&hdmi_tx {
	status = "okay";
	pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>;
	pinctrl-names = "default";
};

&hdmi_tx_tmds_port {
	hdmi_tx_tmds_out: endpoint {
		remote-endpoint = <&hdmi_connector_in>;
	};
};

/* SDIO */
&sd_emmc_a {
	status = "okay";
	pinctrl-0 = <&sdio_pins>;
	pinctrl-1 = <&sdio_clk_gate_pins>;
	pinctrl-names = "default", "clk-gate";
	#address-cells = <1>;
	#size-cells = <0>;

	bus-width = <4>;
	cap-sd-highspeed;
	sd-uhs-sdr104;
	max-frequency = <200000000>;

	non-removable;
	disable-wp;

	/* WiFi firmware requires power to be kept while in suspend */
	keep-power-in-suspend;

	mmc-pwrseq = <&sdio_pwrseq>;

	vmmc-supply = <&vddao_3v3>;
	vqmmc-supply = <&vddao_1v8>;
};

/* SD card */
&sd_emmc_b {
	status = "okay";
	bus-width = <4>;
	cap-sd-highspeed;
	max-frequency = <200000000>;
	vmmc-supply = <&vddao_3v3>;
	vqmmc-supply = <&vddao_1v8>;
};

&uart_A {
	status = "okay";
	pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
	pinctrl-names = "default";
	uart-has-rtscts;

	bluetooth {
		compatible = "mtk,mt7663-bt";
		shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
		max-speed = <2000000>;
		clocks = <&wifi32k>;
		clock-names = "lpo";
	};
};

/* CPU Overclock */
&cpu_opp_table {
	opp-1908000000 {
		opp-hz = /bits/ 64 <1908000000>;
		opp-microvolt = <1001000>;
	};
	
	opp-2016000000 {
		opp-hz = /bits/ 64 <2016000000>;
		opp-microvolt = <1021000>;
	};
};

&ethmac {
	/delete-property/ resets;
	/delete-property/ reset-names;
	phy-handle = <&internal_ephy>;
	phy-mode = "rmii";
	status = "okay";
};

&dwc2 {
    status = "okay";
    vusb_d-supply = <&vusb_d_reg>;
    vusb_a-supply = <&vusb_a_reg>;
};

@ophub ophub merged commit 99b0e02 into ophub:main Aug 16, 2025
@ophub
Copy link
Owner

ophub commented Aug 16, 2025

Thanks for sharing. I’ve also added the firmware you shared to the OpenWrt repository: https://github.com/ophub/amlogic-s9xxx-openwrt
The DTS you submitted I will later push to the upstream kernel repository: https://github.com/unifreq/linux-6.12.y

ophub added a commit that referenced this pull request Aug 16, 2025
ophub added a commit that referenced this pull request Aug 18, 2025
467815891a pushed a commit to 467815891a/amlogic-s9xxx-armbian that referenced this pull request Sep 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants