arch/mips/boot/dts/loongson/ls1b-demo.dts

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

File Facts

System
Linux kernel
Corpus path
arch/mips/boot/dts/loongson/ls1b-demo.dts
Extension
.dts
Size
1831 bytes
Lines
126
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,ls1b-demo", "loongson,ls1b";
	model = "LS1B-DEMO Board";

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

	aliases {
		ethernet0 = &gmac0;
		ethernet1 = &gmac1;
		gpio0 = &gpio0;
		gpio1 = &gpio1;
		serial0 = &uart0;
	};

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

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

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

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

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

&xtal {
	clock-frequency = <33000000>;
};

&gmac0 {
	phy-handle = <&phy0>;
	phy-mode = "rgmii-id";
	status = "okay";

	mdio {

Annotation

Implementation Notes