arch/mips/boot/dts/loongson/loongson1c.dtsi

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

File Facts

System
Linux kernel
Corpus path
arch/mips/boot/dts/loongson/loongson1c.dtsi
Extension
.dtsi
Size
2783 bytes
Lines
142
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 "loongson1.dtsi"

/ {
	clkc: clock-controller@1fe78030 {
		compatible = "loongson,ls1c-clk";
		reg = <0x1fe78030 0x8>;
		clocks = <&xtal>;
		#clock-cells = <1>;
	};
};

&soc {
	syscon: syscon@420 {
		compatible = "loongson,ls1c-syscon", "syscon";
		reg = <0x420 0x8>;
	};

	intc4: interrupt-controller@10a0 {
		compatible = "loongson,ls1x-intc";
		reg = <0x10a0 0x18>;
		interrupt-controller;
		interrupt-parent = <&cpu_intc>;
		interrupts = <6>;
		#interrupt-cells = <2>;
	};

	gpio2: gpio@10c8 {
		compatible = "loongson,ls1x-gpio";
		reg = <0x10c8 0x4>;
		gpio-controller;
		ngpios = <32>;
		#gpio-cells = <2>;
	};

	gpio3: gpio@10cc {
		compatible = "loongson,ls1x-gpio";
		reg = <0x10cc 0x4>;
		gpio-controller;
		ngpios = <32>;
		#gpio-cells = <2>;
	};

	dma: dma-controller@1160 {
		compatible = "loongson,ls1c-apbdma", "loongson,ls1b-apbdma";
		reg = <0x1160 0x4>;
		interrupt-parent = <&intc0>;
		interrupts = <13 IRQ_TYPE_EDGE_RISING>,
			     <14 IRQ_TYPE_EDGE_RISING>,
			     <15 IRQ_TYPE_EDGE_RISING>;
		interrupt-names = "ch0", "ch1", "ch2";
		#dma-cells = <1>;
	};

	emac: ethernet@110000 {
		compatible = "loongson,ls1c-emac", "snps,dwmac-3.50a";
		reg = <0x110000 0x10000>;
		clocks = <&clkc LS1X_CLKID_AHB>;
		clock-names = "stmmaceth";
		interrupt-parent = <&intc1>;
		interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
		interrupt-names = "macirq";
		loongson,ls1-syscon = <&syscon>;
		snps,pbl = <1>;
		status = "disabled";

Annotation

Implementation Notes