arch/arm64/boot/dts/marvell/cn9130-cf-pro.dts

Source file repositories/reference/linux-study-clean/arch/arm64/boot/dts/marvell/cn9130-cf-pro.dts

File Facts

System
Linux kernel
Corpus path
arch/arm64/boot/dts/marvell/cn9130-cf-pro.dts
Extension
.dts
Size
6966 bytes
Lines
376
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+
/*
 * Copyright (C) 2024 Josua Mayer <josua@solid-run.com>
 *
 * DTS for SolidRun CN9130 Clearfog Pro.
 *
 */

/dts-v1/;

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

#include "cn9130.dtsi"
#include "cn9130-sr-som.dtsi"
#include "cn9130-cf.dtsi"

/ {
	model = "SolidRun CN9130 Clearfog Pro";
	compatible = "solidrun,cn9130-clearfog-pro",
		     "solidrun,cn9130-sr-som", "marvell,cn9130";

	gpio-keys {
		compatible = "gpio-keys";
		pinctrl-0 = <&rear_button_pins>;
		pinctrl-names = "default";

		button-0 {
			/* The rear SW3 button */
			label = "Rear Button";
			gpios = <&cp0_gpio2 0 GPIO_ACTIVE_LOW>;
			linux,can-disable;
			linux,code = <BTN_0>;
		};
	};
};

/* SRDS #3 - SGMII 1GE to L2 switch */
&cp0_eth1 {
	phys = <&cp0_comphy3 1>;
	phy-mode = "sgmii";
	status = "okay";

	fixed-link {
		speed = <1000>;
		full-duplex;
	};
};

&cp0_eth2_phy {
	/*
	 * Configure LEDs default behaviour similar to switch ports:
	 * - LED[0]: link/activity: On/blink (green)
	 * - LED[1]: link is 100/1000Mbps: On (red)
	 * - LED[2]: high impedance (floating)
	 *
	 * Switch port defaults:
	 * - LED0: link/activity: On/blink (green)
	 * - LED1: link is 1000Mbps: On (red)
	 *
	 * Identical configuration is impossible with hardware offload.
	 */
	marvell,reg-init = <3 16 0xf000 0x0a61>;

	leds {
		#address-cells = <1>;
		#size-cells = <0>;

		led@0 {
			reg = <0>;

Annotation

Implementation Notes