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.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
Dependency Surface
dt-bindings/gpio/gpio.hloongson1b.dtsi
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
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
- Immediate include surface: `dt-bindings/gpio/gpio.h`, `loongson1b.dtsi`.
- Atlas domain: Architecture Layer / arch/mips.
- Implementation status: atlas-only.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.