arch/riscv/boot/dts/sophgo/sg2042-evb-v1.dts
Source file repositories/reference/linux-study-clean/arch/riscv/boot/dts/sophgo/sg2042-evb-v1.dts
File Facts
- System
- Linux kernel
- Corpus path
arch/riscv/boot/dts/sophgo/sg2042-evb-v1.dts- Extension
.dts- Size
- 4815 bytes
- Lines
- 282
- 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.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
Dependency Surface
sg2042.dtsidt-bindings/gpio/gpio.hdt-bindings/input/input.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0 OR MIT
/*
* Copyright (C) 2025 Sophgo Technology Inc. All rights reserved.
*/
#include "sg2042.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
model = "Sophgo SG2042 EVB V1.X";
compatible = "sophgo,sg2042-evb-v1", "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>;
};
};
pwmfan: pwm-fan {
compatible = "pwm-fan";
cooling-levels = <103 128 179 230 255>;
pwms = <&pwm 0 40000 0>;
#cooling-cells = <2>;
};
thermal-zones {
soc-thermal {
polling-delay-passive = <1000>;
polling-delay = <1000>;
thermal-sensors = <&mcu 0>;
trips {
soc_active1: soc-active1 {
temperature = <30000>;
hysteresis = <8000>;
type = "active";
};
soc_active2: soc-active2 {
temperature = <58000>;
hysteresis = <12000>;
type = "active";
};
soc_active3: soc-active3 {
temperature = <70000>;
hysteresis = <10000>;
type = "active";
};
soc_hot: soc-hot {
temperature = <80000>;
hysteresis = <5000>;
type = "hot";
};
};
cooling-maps {
Annotation
- Immediate include surface: `sg2042.dtsi`, `dt-bindings/gpio/gpio.h`, `dt-bindings/input/input.h`.
- Atlas domain: Architecture Layer / arch/riscv.
- 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.