arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts

Source file repositories/reference/linux-study-clean/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts

File Facts

System
Linux kernel
Corpus path
arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
Extension
.dts
Size
9460 bytes
Lines
498
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) 2021 MediaTek Inc.
 * Authors: Sam.Shih <sam.shih@mediatek.com>
 *          Frank Wunderlich <frank-w@public-files.de>
 *          Daniel Golle <daniel@makrotopia.org>
 */

/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/mt65xx.h>

#include "mt7986a.dtsi"

/ {
	model = "Bananapi BPI-R3";
	chassis-type = "embedded";
	compatible = "bananapi,bpi-r3", "mediatek,mt7986a";

	aliases {
		serial0 = &uart0;
		ethernet0 = &gmac0;
		ethernet1 = &gmac1;
	};

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

	dcin: regulator-12vd {
		compatible = "regulator-fixed";
		regulator-name = "12vd";
		regulator-min-microvolt = <12000000>;
		regulator-max-microvolt = <12000000>;
		regulator-boot-on;
		regulator-always-on;
	};

	fan: pwm-fan {
		compatible = "pwm-fan";
		#cooling-cells = <2>;
		/* cooling level (0, 1, 2) - pwm inverted */
		cooling-levels = <255 40 0>;
		pwms = <&pwm 0 10000>;
		status = "okay";
	};

	gpio-keys {
		compatible = "gpio-keys";

		reset-key {
			label = "reset";
			linux,code = <KEY_RESTART>;
			gpios = <&pio 9 GPIO_ACTIVE_LOW>;
		};

		wps-key {
			label = "wps";
			linux,code = <KEY_WPS_BUTTON>;
			gpios = <&pio 10 GPIO_ACTIVE_LOW>;
		};
	};

	/* i2c of the left SFP cage (wan) */
	i2c_sfp1: i2c-0 {
		compatible = "i2c-gpio";
		sda-gpios = <&pio 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
		scl-gpios = <&pio 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;

Annotation

Implementation Notes