arch/arm64/boot/dts/rockchip/rk3326-gameforce-chi.dts

Source file repositories/reference/linux-study-clean/arch/arm64/boot/dts/rockchip/rk3326-gameforce-chi.dts

File Facts

System
Linux kernel
Corpus path
arch/arm64/boot/dts/rockchip/rk3326-gameforce-chi.dts
Extension
.dts
Size
17173 bytes
Lines
812
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) 2024 Chris Morgan <macromorgan@hotmail.com>
 */

/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include "rk3326.dtsi"

/ {
	model = "GameForce Chi";
	compatible = "gameforce,chi", "rockchip,rk3326";
	chassis-type = "handset";

	aliases {
		mmc0 = &sdmmc;
		mmc1 = &sdio;
	};

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

	adc_joystick: adc-joystick {
		compatible = "adc-joystick";
		io-channels = <&saradc 0>,
			      <&saradc 1>;
		poll-interval = <100>;
		#address-cells = <1>;
		#size-cells = <0>;

		axis@0 {
			reg = <0>;
			abs-flat = <10>;
			abs-fuzz = <10>;
			abs-range = <850 175>;
			linux,code = <ABS_Y>;
		};

		axis@1 {
			reg = <1>;
			abs-flat = <10>;
			abs-fuzz = <10>;
			abs-range = <800 190>;
			linux,code = <ABS_X>;
		};
	};

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

		button-1 {
			label = "HAPPY1";
			linux,code = <BTN_TRIGGER_HAPPY1>;
			press-threshold-microvolt = <15000>;
		};

		button-2 {
			label = "HAPPY2";
			linux,code = <BTN_TRIGGER_HAPPY2>;
			press-threshold-microvolt = <300000>;
		};
	};

Annotation

Implementation Notes