arch/loongarch/boot/dts/loongson-2k1000-ref.dts

Source file repositories/reference/linux-study-clean/arch/loongarch/boot/dts/loongson-2k1000-ref.dts

File Facts

System
Linux kernel
Corpus path
arch/loongarch/boot/dts/loongson-2k1000-ref.dts
Extension
.dts
Size
3354 bytes
Lines
234
Domain
Architecture Layer
Bucket
arch/loongarch
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 Loongson Technology Corporation Limited
 */

/dts-v1/;

#include "dt-bindings/thermal/thermal.h"
#include "loongson-2k1000.dtsi"

/ {
	compatible = "loongson,ls2k1000-ref", "loongson,ls2k1000";
	model = "Loongson-2K1000 Reference Board";

	aliases {
		serial0 = &uart0;
	};

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

	memory@200000 {
		device_type = "memory";
		reg = <0x0 0x00200000 0x0 0x06e00000>,
		      <0x0 0x08000000 0x0 0x07000000>,
		      <0x0 0x90000000 0x1 0xe0000000>;
	};

	reserved-memory {
		#address-cells = <2>;
		#size-cells = <2>;
		ranges;

		linux,cma {
			compatible = "shared-dma-pool";
			reusable;
			size = <0x0 0x2000000>;
			linux,cma-default;
		};
	};

	fan0: pwm-fan {
		compatible = "pwm-fan";
		cooling-levels = <255 153 85 25>;
		pwms = <&pwm1 0 100000 0>;
		#cooling-cells = <2>;
	};
};

&apbdma0 {
	status = "okay";
};

&nand {
	status = "okay";

	pinctrl-0 = <&nand_pins_default>;
	pinctrl-names = "default";

	#address-cells = <1>;
	#size-cells = <0>;
	nand@0 {
		reg = <0>;
		label = "ls2k1000-nand";
		nand-use-soft-ecc-engine;
		nand-ecc-algo = "bch";
		nand-ecc-strength = <8>;
		nand-ecc-step-size = <512>;
	};

Annotation

Implementation Notes