arch/arm/boot/dts/st/stm32mp135f-dhcor-dhsbc.dts

Source file repositories/reference/linux-study-clean/arch/arm/boot/dts/st/stm32mp135f-dhcor-dhsbc.dts

File Facts

System
Linux kernel
Corpus path
arch/arm/boot/dts/st/stm32mp135f-dhcor-dhsbc.dts
Extension
.dts
Size
10283 bytes
Lines
452
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 BSD-3-Clause)
/*
 * Copyright (C) 2024 Marek Vasut <marex@denx.de>
 *
 * DHCOR STM32MP13 variant:
 * DHCR-STM32MP135F-C100-R051-EE-F0409-SPI4-RTC-WBT-I-01LG
 * DHCOR PCB number: 718-100 or newer
 * DHSBC PCB number: 719-100 or newer
 */

/dts-v1/;

#include <dt-bindings/regulator/st,stm32mp13-regulator.h>
#include "stm32mp135.dtsi"
#include "stm32mp13xf.dtsi"
#include "stm32mp13xx-dhcor-som.dtsi"

/ {
	model = "DH electronics STM32MP135F DHCOR DHSBC";
	compatible = "dh,stm32mp135f-dhcor-dhsbc",
		     "dh,stm32mp135f-dhcor-som",
		     "st,stm32mp135";

	aliases {
		ethernet0 = &ethernet1;
		ethernet1 = &ethernet2;
		serial2 = &usart1;
		serial3 = &usart2;
	};

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

&adc_1 {
	pinctrl-names = "default";
	pinctrl-0 = <&adc1_pins_a &adc1_usb_cc_pins_b>;
	vdda-supply = <&vdd_adc>;
	vref-supply = <&vdd_adc>;
	status = "okay";

	adc1: adc@0 {
		status = "okay";

		/*
		 * Type-C USB_PWR_CC1 & USB_PWR_CC2 on in2 & in11.
		 * Use at least 5 * RC time, e.g. 5 * (Rp + Rd) * C:
		 * 5 * (5.1 + 47kOhms) * 5pF => 1.3us.
		 * Use arbitrary margin here (e.g. 5us).
		 *
		 * The pinmux pins must be set as ANALOG, use datasheet
		 * DS13483 Table 7. STM32MP135C/F ball definitions to
		 * find out which 'pin name' maps to which 'additional
		 * functions', which lists the mapping between pin and
		 * ADC channel. In this case, PA5 maps to ADC1_INP2 and
		 * PF13 maps to ADC1_INP11 .
		 */
		channel@2 {
			reg = <2>;
			st,min-sample-time-ns = <5000>;
		};

		channel@11 {
			reg = <11>;
			st,min-sample-time-ns = <5000>;
		};

		/* Expansion connector: INP12:pin29 */
		channel@12 {

Annotation

Implementation Notes