arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts

Source file repositories/reference/linux-study-clean/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts

File Facts

System
Linux kernel
Corpus path
arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts
Extension
.dts
Size
3903 bytes
Lines
204
Domain
Architecture Layer
Bucket
arch/arm64
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) 2021 Chukun Pan <amadeus@jmu.edu.cn>
 *
 * Based on sun50i-h5-nanopi-neo-plus2.dts, which is:
 *   Copyright (C) 2017 Antony Antony <antony@phenome.org>
 *   Copyright (C) 2016 ARM Ltd.
 */

/dts-v1/;
#include "sun50i-h5.dtsi"
#include "sun50i-h5-cpu-opp.dtsi"

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

/ {
	model = "FriendlyARM NanoPi R1S H5";
	compatible = "friendlyarm,nanopi-r1s-h5", "allwinner,sun50i-h5";

	aliases {
		ethernet0 = &emac;
		ethernet1 = &rtl8189etv;
		serial0 = &uart0;
	};

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

	leds {
		compatible = "gpio-leds";

		led-0 {
			function = LED_FUNCTION_LAN;
			color = <LED_COLOR_ID_GREEN>;
			gpios = <&pio 0 9 GPIO_ACTIVE_HIGH>;
		};

		led-1 {
			function = LED_FUNCTION_STATUS;
			color = <LED_COLOR_ID_RED>;
			gpios = <&pio 0 10 GPIO_ACTIVE_HIGH>;
			linux,default-trigger = "heartbeat";
		};

		led-2 {
			function = LED_FUNCTION_WAN;
			color = <LED_COLOR_ID_GREEN>;
			gpios = <&pio 6 11 GPIO_ACTIVE_HIGH>;
		};
	};

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

		key-reset {
			label = "reset";
			linux,code = <KEY_RESTART>;
			gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
		};
	};

	reg_gmac_3v3: gmac-3v3 {
		compatible = "regulator-fixed";
		regulator-name = "gmac-3v3";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		startup-delay-us = <100000>;

Annotation

Implementation Notes