arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts

Source file repositories/reference/linux-study-clean/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts

File Facts

System
Linux kernel
Corpus path
arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts
Extension
.dts
Size
3382 bytes
Lines
201
Domain
Architecture Layer
Bucket
arch/riscv
Inferred role
Architecture Layer: configuration, schema, or hardware description
Status
atlas-only

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/*
 * Copyright (C) 2023 Jisheng Zhang <jszhang@kernel.org>
 */

#include "th1520-lichee-module-4a.dtsi"
#include <dt-bindings/gpio/gpio.h>

/ {
	model = "Sipeed Lichee Pi 4A";
	compatible = "sipeed,lichee-pi-4a", "sipeed,lichee-module-4a", "thead,th1520";

	aliases {
		gpio0 = &gpio0;
		gpio1 = &gpio1;
		gpio2 = &gpio2;
		gpio3 = &gpio3;
		gpio4 = &gpio4;
		gpio5 = &aogpio;
		serial0 = &uart0;
		serial1 = &uart1;
		serial2 = &uart2;
		serial3 = &uart3;
		serial4 = &uart4;
		serial5 = &uart5;
		spi0 = &spi0;
	};

	chosen {
		stdout-path = "serial0:115200n8";
	};

	hdmi-connector {
		compatible = "hdmi-connector";
		type = "a";

		port {
			hdmi_con_in: endpoint {
				remote-endpoint = <&hdmi_out_con>;
			};
		};
	};

	wifi_pwrseq: wifi-pwrseq {
		compatible = "mmc-pwrseq-simple";
		reset-gpios = <&ioexp2 4 GPIO_ACTIVE_LOW>;
		post-power-on-delay-ms = <200>;
	};

	thermal-zones {
		cpu-thermal {
			polling-delay = <1000>;
			polling-delay-passive = <1000>;
			thermal-sensors = <&pvt 0>;

			trips {
				fan_config0: fan-trip0 {
					temperature = <39000>;
					hysteresis = <5000>;
					type = "active";
				};

				fan_config1: fan-trip1 {
					temperature = <50000>;
					hysteresis = <5000>;
					type = "active";
				};

				fan_config2: fan-trip2 {
					temperature = <60000>;

Annotation

Implementation Notes