arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts

Source file repositories/reference/linux-study-clean/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts

File Facts

System
Linux kernel
Corpus path
arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts
Extension
.dts
Size
5223 bytes
Lines
291
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-only OR MIT

/dts-v1/;

#include "mt7981b.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
#include "dt-bindings/pinctrl/mt65xx.h"

/ {
	compatible = "openwrt,one", "mediatek,mt7981b";
	model = "OpenWrt One";

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

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

	memory@40000000 {
		reg = <0 0x40000000 0 0x40000000>;
		device_type = "memory";
	};

	pwm-leds {
		compatible = "pwm-leds";

		led-0 {
			color = <LED_COLOR_ID_WHITE>;
			default-brightness = <0>;
			function = LED_FUNCTION_STATUS;
			max-brightness = <255>;
			pwms = <&pwm 0 10000>;
		};

		led-1 {
			color = <LED_COLOR_ID_GREEN>;
			default-brightness = <0>;
			function = LED_FUNCTION_STATUS;
			max-brightness = <255>;
			pwms = <&pwm 1 10000>;
		};
	};

	gpio-leds {
		compatible = "gpio-leds";

		led-0 {
			color = <LED_COLOR_ID_RED>;
			function = LED_FUNCTION_STATUS;
			gpios = <&pio 9 GPIO_ACTIVE_HIGH>;
		};

		led-1 {
			color = <LED_COLOR_ID_AMBER>;
			function = LED_FUNCTION_LAN;
			gpios = <&pio 34 GPIO_ACTIVE_LOW>;
			linux,default-trigger = "netdev";
		};

		led-2 {
			color = <LED_COLOR_ID_GREEN>;
			function = LED_FUNCTION_LAN;
			gpios = <&pio 35 GPIO_ACTIVE_LOW>;
			linux,default-trigger = "netdev";
		};

Annotation

Implementation Notes