arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts

Source file repositories/reference/linux-study-clean/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts

File Facts

System
Linux kernel
Corpus path
arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts
Extension
.dts
Size
5504 bytes
Lines
317
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>
 * Copyright (C) 2023 Drew Fustini <dfustini@baylibre.com>
 */

/dts-v1/;

#include "th1520.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>

/ {
	model = "BeagleV Ahead";
	compatible = "beagle,beaglev-ahead", "thead,th1520";

	aliases {
		ethernet0 = &gmac0;
		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";
	};

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

	leds {
		pinctrl-names = "default";
		pinctrl-0 = <&led_pins>;
		compatible = "gpio-leds";

		led-1 {
			gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>;
			color = <LED_COLOR_ID_BLUE>;
			label = "led1";
		};

		led-2 {
			gpios = <&gpio4 9 GPIO_ACTIVE_HIGH>;
			color = <LED_COLOR_ID_BLUE>;
			label = "led2";
		};

		led-3 {
			gpios = <&gpio4 10 GPIO_ACTIVE_HIGH>;
			color = <LED_COLOR_ID_BLUE>;
			label = "led3";
		};

		led-4 {
			gpios = <&gpio4 11 GPIO_ACTIVE_HIGH>;
			color = <LED_COLOR_ID_BLUE>;
			label = "led4";
		};

Annotation

Implementation Notes