arch/arm64/boot/dts/rockchip/rk3568-anbernic-rg-ds.dts

Source file repositories/reference/linux-study-clean/arch/arm64/boot/dts/rockchip/rk3568-anbernic-rg-ds.dts

File Facts

System
Linux kernel
Corpus path
arch/arm64/boot/dts/rockchip/rk3568-anbernic-rg-ds.dts
Extension
.dts
Size
28001 bytes
Lines
1274
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)

/dts-v1/;

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/gpio-keys.h>
#include <dt-bindings/input/linux-event-codes.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/soc/rockchip,vop2.h>
#include "rk3568.dtsi"

/ {
	model = "Anbernic RG DS";
	chassis-type = "handset";
	compatible = "anbernic,rg-ds", "rockchip,rk3568";

	aliases {
		mmc0 = &sdhci;
		mmc1 = &sdmmc0;
		mmc2 = &sdmmc2;
	};

	chosen: chosen {
		stdout-path = "serial2:1500000n8";
	};

	adc_keys_home: adc-keys-home {
		compatible = "adc-keys";
		io-channel-names = "buttons";
		io-channels = <&saradc 0>;
		keyup-threshold-microvolt = <1800000>;
		poll-interval = <60>;

		button-home {
			label = "HOME";
			linux,code = <BTN_MODE>;
			press-threshold-microvolt = <1750>;
		};
	};

	adc_keys_play: adc-keys-play {
		compatible = "adc-keys";
		io-channel-names = "buttons";
		io-channels = <&saradc 2>;
		keyup-threshold-microvolt = <1300000>;
		poll-interval = <60>;

		button-play {
			label = "PLAY";
			linux,code = <KEY_PLAYPAUSE>;
			press-threshold-microvolt = <1750>;
		};
	};

	adc_mux: adc-mux {
		compatible = "io-channel-mux";
		channels = "left_x", "right_x", "left_y", "right_y";
		#io-channel-cells = <1>;
		io-channels = <&saradc 3>;
		io-channel-names = "parent";
		mux-controls = <&gpio_mux>;
		settle-time-us = <100>;
	};

	adc-joystick {
		compatible = "adc-joystick";
		#address-cells = <1>;
		io-channels = <&adc_mux 0>,
			      <&adc_mux 1>,

Annotation

Implementation Notes