arch/arm/boot/dts/allwinner/sun8i-reference-design-tablet.dtsi

Source file repositories/reference/linux-study-clean/arch/arm/boot/dts/allwinner/sun8i-reference-design-tablet.dtsi

File Facts

System
Linux kernel
Corpus path
arch/arm/boot/dts/allwinner/sun8i-reference-design-tablet.dtsi
Extension
.dtsi
Size
5534 bytes
Lines
225
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

#include "sunxi-reference-design-tablet.dtsi"

#include <dt-bindings/pwm/pwm.h>

/ {
	aliases {
		serial0 = &r_uart;
	};

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

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

&i2c0 {
	/*
	 * The gsl1680 is rated at 400KHz and it will not work reliable at
	 * 100KHz, this has been confirmed on multiple different q8 tablets.
	 * The gsl1680 is the only device on this bus.
	 */
	clock-frequency = <400000>;

	touchscreen: touchscreen@40 {
		reg = <0x40>;
		interrupt-parent = <&pio>;
		interrupts = <1 5 IRQ_TYPE_EDGE_FALLING>; /* PB5 */
		power-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
		/* Tablet dts must provide reg and compatible */
		status = "disabled";
	};
};

&mmc0 {
	vmmc-supply = <&reg_dcdc1>;
	bus-width = <4>;
	cd-gpios = <&pio 1 4 GPIO_ACTIVE_LOW>; /* PB4 */
	status = "okay";
};

&r_rsb {
	status = "okay";

	axp22x: pmic@3a3 {
		compatible = "x-powers,axp223";
		reg = <0x3a3>;
		interrupt-parent = <&r_intc>;
		interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
		eldoin-supply = <&reg_dcdc1>;
		drivevbus-supply = <&reg_vcc5v0>;
		x-powers,drive-vbus-en;
	};
};

#include "axp223.dtsi"

&ac_power_supply {
	status = "okay";
};

&battery_power_supply {
	status = "okay";

Annotation

Implementation Notes