arch/arm/boot/dts/st/stm32mp153c-lxa-fairytux2.dtsi

Source file repositories/reference/linux-study-clean/arch/arm/boot/dts/st/stm32mp153c-lxa-fairytux2.dtsi

File Facts

System
Linux kernel
Corpus path
arch/arm/boot/dts/st/stm32mp153c-lxa-fairytux2.dtsi
Extension
.dtsi
Size
7859 bytes
Lines
395
Domain
Architecture Layer
Bucket
arch/arm
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-later OR BSD-3-Clause)
/*
 * Copyright (C) 2020 STMicroelectronics - All Rights Reserved
 * Copyright (C) 2021 Rouven Czerwinski, Pengutronix
 * Copyright (C) 2023, 2024 Leonard Göhrs, Pengutronix
 */

#include "stm32mp153.dtsi"
#include "stm32mp15xc.dtsi"
#include "stm32mp15xx-osd32.dtsi"
#include "stm32mp15xxac-pinctrl.dtsi"

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

/ {
	aliases {
		can0 = &m_can1;
		ethernet0 = &ethernet0;
		i2c0 = &i2c1;
		i2c1 = &i2c4;
		mmc1 = &sdmmc2;
		serial0 = &uart4;
		serial1 = &usart3;
		spi0 = &spi4;
	};

	chosen {
		stdout-path = &uart4;
	};

	backlight: backlight {
		compatible = "pwm-backlight";
		power-supply = <&v3v3>;

		brightness-levels = <0 31 63 95 127 159 191 223 255>;
		default-brightness-level = <7>;
		pwms = <&led_pwm 3 1000000 0>;
	};

	led-controller-cpu {
		compatible = "gpio-leds";

		led-0 {
			color = <LED_COLOR_ID_GREEN>;
			function = LED_FUNCTION_HEARTBEAT;
			gpios = <&gpioa 13 GPIO_ACTIVE_HIGH>;
			linux,default-trigger = "heartbeat";
		};
	};

	led_controller_io: led-controller-io {
		compatible = "gpio-leds";

		/*
		 * led-0 and led-1 are internally connected antiparallel to one
		 * another inside the ethernet jack like this:
		 * GPIO0 ---+---|led-0|>--+--- GPIO2
		 *          +--<|led-1|---+
		 * E.g. only one of the LEDs can be illuminated at a time while
		 * the other output must be driven low.
		 * This should likely be implemented using a multi color LED
		 * driver for antiparallel LEDs.
		 */
		led-0 {
			color = <LED_COLOR_ID_GREEN>;
			function = LED_FUNCTION_LAN;
			gpios = <&io_board_gpio 0 GPIO_ACTIVE_HIGH>;

Annotation

Implementation Notes