arch/mips/boot/dts/loongson/lsgz_1b_dev.dts

Source file repositories/reference/linux-study-clean/arch/mips/boot/dts/loongson/lsgz_1b_dev.dts

File Facts

System
Linux kernel
Corpus path
arch/mips/boot/dts/loongson/lsgz_1b_dev.dts
Extension
.dts
Size
2351 bytes
Lines
163
Domain
Architecture Layer
Bucket
arch/mips
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
/*
 * Copyright (c) 2023-2025 Keguang Zhang <keguang.zhang@gmail.com>
 */

/dts-v1/;

#include <dt-bindings/gpio/gpio.h>

#include "loongson1b.dtsi"

/ {
	compatible = "loongson,lsgz-1b-dev", "loongson,ls1b";
	model = "LSGZ_1B_DEV Board";

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

	aliases {
		ethernet0 = &gmac0;
		ethernet1 = &gmac1;
		gpio0 = &gpio0;
		gpio1 = &gpio1;
		serial0 = &uart2;
		serial1 = &uart3;
	};

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

	leds {
		compatible = "gpio-leds";

		led9 {
			label = "led9";
			gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
			linux,default-trigger = "heartbeat";
		};

		led6 {
			label = "led6";
			gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
			linux,default-trigger = "nand-disk";
		};
	};

	codec: audio-codec {
		compatible = "realtek,alc203";
		#sound-dai-cells = <0>;
	};

	sound {
		compatible = "simple-audio-card";
		simple-audio-card,name = "ls1b-alc655";
		simple-audio-card,format = "ac97";
		simple-audio-card,widgets =
			"Speaker", "Line Out Jack",
			"Line", "Line In Jack",
			"Microphone", "Microphone Jack";
		simple-audio-card,routing =
			"Line Out Jack", "TX",
			"RX", "Line In Jack",
			"RX", "Microphone Jack";

		simple-audio-card,cpu {
			sound-dai = <&ac97>;
		};

Annotation

Implementation Notes