arch/mips/boot/dts/loongson/cq-t300b.dts

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

File Facts

System
Linux kernel
Corpus path
arch/mips/boot/dts/loongson/cq-t300b.dts
Extension
.dts
Size
1486 bytes
Lines
111
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 "loongson1c.dtsi"

/ {
	compatible = "loongson,cq-t300b", "loongson,ls1c";
	model = "CQ-T300B Board";

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

	aliases {
		gpio0 = &gpio0;
		gpio1 = &gpio1;
		gpio2 = &gpio2;
		gpio3 = &gpio3;
		serial0 = &uart2;
	};

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

	leds {
		compatible = "gpio-leds";

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

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

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

&emac {
	phy-handle = <&phy0>;
	phy-mode = "rmii";
	status = "okay";

	mdio {
		compatible = "snps,dwmac-mdio";
		#address-cells = <1>;
		#size-cells = <0>;

		phy0: ethernet-phy@13 {
			reg = <0x13>;
		};
	};
};

&nand {

Annotation

Implementation Notes