arch/riscv/boot/dts/canaan/sipeed_maix_go.dts

Source file repositories/reference/linux-study-clean/arch/riscv/boot/dts/canaan/sipeed_maix_go.dts

File Facts

System
Linux kernel
Corpus path
arch/riscv/boot/dts/canaan/sipeed_maix_go.dts
Extension
.dts
Size
4960 bytes
Lines
229
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+
/*
 * Copyright (C) 2019-20 Sean Anderson <seanga2@gmail.com>
 * Copyright (C) 2020 Western Digital Corporation or its affiliates.
 */

/dts-v1/;

#include "k210.dtsi"

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

/ {
	model = "SiPeed MAIX GO";
	compatible = "sipeed,maix-go", "canaan,kendryte-k210";

	aliases {
		serial0 = &uarths0;
	};

	chosen {
		bootargs = "earlycon console=ttySIF0";
		stdout-path = "serial0:115200n8";
	};

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

		led0 {
			color = <LED_COLOR_ID_GREEN>;
			label = "green";
			gpios = <&gpio1_0 4 GPIO_ACTIVE_LOW>;
		};

		led1 {
			color = <LED_COLOR_ID_RED>;
			label = "red";
			gpios = <&gpio1_0 5 GPIO_ACTIVE_LOW>;
		};

		led2 {
			color = <LED_COLOR_ID_BLUE>;
			label = "blue";
			gpios = <&gpio1_0 6 GPIO_ACTIVE_LOW>;
		};
	};

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

		key-up {
			label = "UP";
			linux,code = <BTN_1>;
			gpios = <&gpio1_0 7 GPIO_ACTIVE_LOW>;
		};

		key-press {
			label = "PRESS";
			linux,code = <BTN_0>;
			gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
		};

		key-down {
			label = "DOWN";
			linux,code = <BTN_2>;
			gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
		};
	};

Annotation

Implementation Notes