arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts

Source file repositories/reference/linux-study-clean/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts

File Facts

System
Linux kernel
Corpus path
arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts
Extension
.dts
Size
2290 bytes
Lines
138
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) 2018-2019 SiFive, Inc */

#include "fu540-c000.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/pwm/pwm.h>

/* Clock frequency (in Hz) of the PCB crystal for rtcclk */
#define RTCCLK_FREQ		1000000

/ {
	model = "SiFive HiFive Unleashed A00";
	compatible = "sifive,hifive-unleashed-a00", "sifive,fu540-c000",
		     "sifive,fu540";

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

	cpus {
		timebase-frequency = <RTCCLK_FREQ>;
	};

	memory@80000000 {
		device_type = "memory";
		reg = <0x0 0x80000000 0x2 0x00000000>;
	};

	hfclk: hfclk {
		#clock-cells = <0>;
		compatible = "fixed-clock";
		clock-frequency = <33333333>;
		clock-output-names = "hfclk";
	};

	rtcclk: rtcclk {
		#clock-cells = <0>;
		compatible = "fixed-clock";
		clock-frequency = <RTCCLK_FREQ>;
		clock-output-names = "rtcclk";
	};
	gpio-restart {
		compatible = "gpio-restart";
		gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
	};

	led-controller {
		compatible = "pwm-leds";

		led-d1 {
			pwms = <&pwm0 0 7812500 0>;
			color = <LED_COLOR_ID_GREEN>;
			max-brightness = <255>;
			label = "d1";
		};

		led-d2 {
			pwms = <&pwm0 1 7812500 0>;
			color = <LED_COLOR_ID_GREEN>;
			max-brightness = <255>;
			label = "d2";
		};

		led-d3 {
			pwms = <&pwm0 2 7812500 0>;
			color = <LED_COLOR_ID_GREEN>;
			max-brightness = <255>;
			label = "d3";
		};

Annotation

Implementation Notes