arch/arm/boot/dts/allwinner/sun5i-a13-pocketbook-touch-lux-3.dts

Source file repositories/reference/linux-study-clean/arch/arm/boot/dts/allwinner/sun5i-a13-pocketbook-touch-lux-3.dts

File Facts

System
Linux kernel
Corpus path
arch/arm/boot/dts/allwinner/sun5i-a13-pocketbook-touch-lux-3.dts
Extension
.dts
Size
4727 bytes
Lines
259
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
/*
 * Copyright 2019 Ondrej Jirman <megous@megous.com>
 */

/dts-v1/;
#include "sun5i-a13.dtsi"
#include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/pwm/pwm.h>

/ {
	model = "PocketBook Touch Lux 3";
	compatible = "pocketbook,touch-lux-3", "allwinner,sun5i-a13";

	aliases {
		serial0 = &uart1;
		i2c0 = &i2c0;
		i2c1 = &i2c1;
		i2c2 = &i2c2;
	};

	backlight {
		compatible = "pwm-backlight";
		pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
		enable-gpios = <&pio 1 4 GPIO_ACTIVE_HIGH>; /* PB4 */
		brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
		default-brightness-level = <8>;
		power-supply = <&reg_vcc3v3>;
	};

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

	leds {
		compatible = "gpio-leds";

		led {
			gpios = <&pio 4 8 GPIO_ACTIVE_LOW>; /* PE8 */
			default-state = "on";
		};
	};

	gpio-keys {
		compatible = "gpio-keys";
		autorepeat;
		label = "GPIO Keys";

		key-right {
			label = "Right";
			linux,code = <KEY_RIGHT>;
			gpios = <&pio 6 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PG9 */
		};

		key-left {
			label = "Left";
			linux,code = <KEY_LEFT>;
			gpios = <&pio 6 10 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PG10 */
		};
	};

	reg_1v8: regulator-1v8 {
		compatible = "regulator-fixed";
		regulator-name = "vdd-1v8-nor-ctp";
		regulator-min-microvolt = <1800000>;
		regulator-max-microvolt = <1800000>;
		gpio = <&pio 2 15 GPIO_ACTIVE_HIGH>;

Annotation

Implementation Notes