arch/mips/boot/dts/qca/ar9331_tl_mr3020.dts

Source file repositories/reference/linux-study-clean/arch/mips/boot/dts/qca/ar9331_tl_mr3020.dts

File Facts

System
Linux kernel
Corpus path
arch/mips/boot/dts/qca/ar9331_tl_mr3020.dts
Extension
.dts
Size
1933 bytes
Lines
121
Domain
Architecture Layer
Bucket
arch/mips
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
/dts-v1/;

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

#include "ar9331.dtsi"

/ {
	model = "TP-Link TL-MR3020";
	compatible = "tplink,tl-mr3020";

	aliases {
		serial0 = &uart;
	};

	memory@0 {
		device_type = "memory";
		reg = <0x0 0x2000000>;
	};

	leds {
		compatible = "gpio-leds";

		led-wlan {
			label = "tp-link:green:wlan";
			gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
			default-state = "off";
		};

		led-lan {
			label = "tp-link:green:lan";
			gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
			default-state = "off";
		};

		led-wps {
			label = "tp-link:green:wps";
			gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
			default-state = "off";
		};

		led-led3g {
			label = "tp-link:green:3g";
			gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
			default-state = "off";
		};
	};

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

		button-0 {
			label = "wps";
			linux,code = <KEY_WPS_BUTTON>;
			gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
		};

		button-1 {
			label = "sw1";
			linux,code = <BTN_0>;
			gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
		};

		button-2 {
			label = "sw2";
			linux,code = <BTN_1>;
			gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
		};
	};

Annotation

Implementation Notes