arch/riscv/boot/dts/allwinner/sun20i-d1-clockworkpi-v3.14.dts

Source file repositories/reference/linux-study-clean/arch/riscv/boot/dts/allwinner/sun20i-d1-clockworkpi-v3.14.dts

File Facts

System
Linux kernel
Corpus path
arch/riscv/boot/dts/allwinner/sun20i-d1-clockworkpi-v3.14.dts
Extension
.dts
Size
5452 bytes
Lines
253
Domain
Architecture Layer
Bucket
arch/riscv
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) 2022 Samuel Holland <samuel@sholland.org>

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

/dts-v1/;

#include "sun20i-d1.dtsi"
#include "sun20i-common-regulators.dtsi"

/ {
	model = "ClockworkPi v3.14 (R-01)";
	compatible = "clockwork,r-01-clockworkpi-v3.14", "allwinner,sun20i-d1";

	aliases {
		ethernet0 = &ap6256;
		serial0 = &uart0;
	};

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

	/*
	 * This regulator is PWM-controlled, but the PWM controller is not
	 * yet supported, so fix the regulator to its default voltage.
	 */
	reg_vdd_cpu: vdd-cpu {
		compatible = "regulator-fixed";
		regulator-name = "vdd-cpu";
		regulator-min-microvolt = <1100000>;
		regulator-max-microvolt = <1100000>;
		vin-supply = <&reg_vcc>;
	};

	wifi_pwrseq: wifi-pwrseq {
		compatible = "mmc-pwrseq-simple";
		reset-gpios = <&pio 6 11 GPIO_ACTIVE_LOW>; /* PG11/GPIO3 */
	};
};

&cpu0 {
	cpu-supply = <&reg_vdd_cpu>;
};

&dcxo {
	clock-frequency = <24000000>;
};

&ehci1 {
	status = "okay";
};

&i2c0 {
	pinctrl-0 = <&i2c0_pb10_pins>;
	pinctrl-names = "default";
	status = "okay";

	axp221: pmic@34 {
		compatible = "x-powers,axp228", "x-powers,axp221";
		reg = <0x34>;
		interrupt-parent = <&pio>;
		interrupts = <4 9 IRQ_TYPE_LEVEL_LOW>; /* PE9/GPIO2 */
		interrupt-controller;
		#interrupt-cells = <1>;

		ac_power_supply: ac-power {
			compatible = "x-powers,axp221-ac-power-supply";
		};

Annotation

Implementation Notes