arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts

Source file repositories/reference/linux-study-clean/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts

File Facts

System
Linux kernel
Corpus path
arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts
Extension
.dts
Size
4873 bytes
Lines
289
Domain
Architecture Layer
Bucket
arch/riscv
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 OR MIT
/*
 * Copyright (C) 2022 Sophgo Technology Inc. All rights reserved.
 */

#include "sg2042.dtsi"

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

/ {
	model = "Milk-V Pioneer";
	compatible = "milkv,pioneer", "sophgo,sg2042";

	chosen {
		stdout-path = "serial0";
	};

	gpio-power {
		compatible = "gpio-keys";

		key-power {
			label = "Power Key";
			linux,code = <KEY_POWER>;
			gpios = <&port0a 22 GPIO_ACTIVE_HIGH>;
			linux,input-type = <EV_KEY>;
			debounce-interval = <100>;
		};
	};
};

&cgi_main {
	clock-frequency = <25000000>;
};

&cgi_dpll0 {
	clock-frequency = <25000000>;
};

&cgi_dpll1 {
	clock-frequency = <25000000>;
};

&emmc {
	pinctrl-0 = <&emmc_cfg>;
	pinctrl-names = "default";
	bus-width = <4>;
	no-sdio;
	no-sd;
	non-removable;
	wp-inverted;
	status = "okay";
};

&i2c0 {
	pinctrl-0 = <&i2c0_cfg>;
	pinctrl-names = "default";
	status = "okay";

	rtc: rtc@68 {
		compatible = "dallas,ds1307";
		reg = <0x68>;
	};
};

&i2c1 {
	pinctrl-0 = <&i2c1_cfg>;
	pinctrl-names = "default";
	status = "okay";

Annotation

Implementation Notes