arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts

Source file repositories/reference/linux-study-clean/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts

File Facts

System
Linux kernel
Corpus path
arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts
Extension
.dts
Size
8132 bytes
Lines
382
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-only OR BSD-2-Clause)
/*
 * Copyright (C) 2024 Ryan Walklin <ryan@testtoast.com>.
 */

/dts-v1/;

#include "sun50i-h616.dtsi"
#include "sun50i-h616-cpu-opp.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/linux-event-codes.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/leds/common.h>

/ {
	model = "Anbernic RG35XX 2024";
	chassis-type = "handset";
	compatible = "anbernic,rg35xx-2024", "allwinner,sun50i-h700";

	aliases {
		serial0 = &uart0;
	};

	battery: battery {
		compatible = "simple-battery";
		constant-charge-current-max-microamp = <1024000>;
		voltage-max-design-microvolt = <4200000>;
	};

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

	gpio_keys_gamepad: gpio-keys-gamepad {
		compatible = "gpio-keys";

		button-a {
			label = "Action-Pad A";
			gpios = <&pio 0 0 GPIO_ACTIVE_LOW>; /* PA0 */
			linux,input-type = <EV_KEY>;
			linux,code = <BTN_EAST>;
		};

		button-b {
			label = "Action-Pad B";
			gpios = <&pio 0 1 GPIO_ACTIVE_LOW>; /* PA1 */
			linux,input-type = <EV_KEY>;
			linux,code = <BTN_SOUTH>;
		};

		button-down {
			label = "D-Pad Down";
			gpios = <&pio 4 0 GPIO_ACTIVE_LOW>; /* PE0 */
			linux,input-type = <EV_KEY>;
			linux,code = <BTN_DPAD_DOWN>;
		};

		button-l1 {
			label = "Key L1";
			gpios = <&pio 0 10 GPIO_ACTIVE_LOW>; /* PA10 */
			linux,input-type = <EV_KEY>;
			linux,code = <BTN_TL>;
		};

		button-l2 {
			label = "Key L2";
			gpios = <&pio 0 11 GPIO_ACTIVE_LOW>; /* PA11 */
			linux,input-type = <EV_KEY>;
			linux,code = <BTN_TL2>;
		};

Annotation

Implementation Notes