arch/arm/boot/dts/allwinner/sun8i-v3s-anbernic-rg-nano.dts

Source file repositories/reference/linux-study-clean/arch/arm/boot/dts/allwinner/sun8i-v3s-anbernic-rg-nano.dts

File Facts

System
Linux kernel
Corpus path
arch/arm/boot/dts/allwinner/sun8i-v3s-anbernic-rg-nano.dts
Extension
.dts
Size
5439 bytes
Lines
277
Domain
Architecture Layer
Bucket
arch/arm
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)

/dts-v1/;
#include <dt-bindings/input/linux-event-codes.h>
#include "sun8i-v3s.dtsi"
#include "sunxi-common-regulators.dtsi"

/ {
	model = "Anbernic RG Nano";
	compatible = "anbernic,rg-nano", "allwinner,sun8i-v3s";

	aliases {
		rtc0 = &pcf8563;
		rtc1 = &rtc;
		serial0 = &uart0;
	};

	backlight: backlight {
		compatible = "pwm-backlight";
		brightness-levels = <0 1 2 3 8 14 21 32 46 60 80 100>;
		default-brightness-level = <11>;
		power-supply = <&reg_vcc5v0>;
		pwms = <&pwm 0 40000 1>;
	};

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

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

		button-a {
			gpios = <&gpio_expander 12 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
			label = "BTN-A";
			linux,code = <BTN_EAST>;
		};

		button-b {
			gpios = <&gpio_expander 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
			label = "BTN-B";
			linux,code = <BTN_SOUTH>;
		};

		button-down {
			gpios = <&gpio_expander 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
			label = "DPAD-DOWN";
			linux,code = <BTN_DPAD_DOWN>;
		};

		button-left {
			gpios = <&gpio_expander 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
			label = "DPAD-LEFT";
			linux,code = <BTN_DPAD_LEFT>;
		};

		button-right {
			gpios = <&gpio_expander 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
			label = "DPAD-RIGHT";
			linux,code = <BTN_DPAD_RIGHT>;
		};

		button-se {
			gpios = <&gpio_expander 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
			label = "BTN-SELECT";
			linux,code = <BTN_SELECT>;
		};

		button-st {
			gpios = <&gpio_expander 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;

Annotation

Implementation Notes