xref: /freebsd-src/sys/contrib/device-tree/src/arm/st/stm32mp151a-prtt1a.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (C) Protonic Holland
4*f126890aSEmmanuel Vadot * Author: David Jander <david@protonic.nl>
5*f126890aSEmmanuel Vadot */
6*f126890aSEmmanuel Vadot/dts-v1/;
7*f126890aSEmmanuel Vadot
8*f126890aSEmmanuel Vadot#include "stm32mp151a-prtt1l.dtsi"
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot/ {
11*f126890aSEmmanuel Vadot	model = "Protonic PRTT1A";
12*f126890aSEmmanuel Vadot	compatible = "prt,prtt1a", "st,stm32mp151";
13*f126890aSEmmanuel Vadot};
14*f126890aSEmmanuel Vadot
15*f126890aSEmmanuel Vadot&ethernet0 {
16*f126890aSEmmanuel Vadot	phy-handle = <&phy0>;
17*f126890aSEmmanuel Vadot};
18*f126890aSEmmanuel Vadot
19*f126890aSEmmanuel Vadot&mdio0 {
20*f126890aSEmmanuel Vadot	/* TI DP83TD510E */
21*f126890aSEmmanuel Vadot	phy0: ethernet-phy@0 {
22*f126890aSEmmanuel Vadot		compatible = "ethernet-phy-id2000.0181";
23*f126890aSEmmanuel Vadot		reg = <0>;
24*f126890aSEmmanuel Vadot		interrupts-extended = <&gpioa 4 IRQ_TYPE_LEVEL_LOW>;
25*f126890aSEmmanuel Vadot		reset-gpios = <&gpioa 3 GPIO_ACTIVE_LOW>;
26*f126890aSEmmanuel Vadot		reset-assert-us = <10>;
27*f126890aSEmmanuel Vadot		reset-deassert-us = <35>;
28*f126890aSEmmanuel Vadot	};
29*f126890aSEmmanuel Vadot};
30*f126890aSEmmanuel Vadot
31*f126890aSEmmanuel Vadot&pwm5_pins_a {
32*f126890aSEmmanuel Vadot	pins {
33*f126890aSEmmanuel Vadot		pinmux = <STM32_PINMUX('A', 0, AF2)>; /* TIM5_CH1 */
34*f126890aSEmmanuel Vadot	};
35*f126890aSEmmanuel Vadot};
36*f126890aSEmmanuel Vadot
37*f126890aSEmmanuel Vadot&pwm5_sleep_pins_a {
38*f126890aSEmmanuel Vadot	pins {
39*f126890aSEmmanuel Vadot		pinmux = <STM32_PINMUX('A', 0, ANALOG)>; /* TIM5_CH1 */
40*f126890aSEmmanuel Vadot	};
41*f126890aSEmmanuel Vadot};
42*f126890aSEmmanuel Vadot
43*f126890aSEmmanuel Vadot&timers5 {
44*f126890aSEmmanuel Vadot	status = "okay";
45*f126890aSEmmanuel Vadot
46*f126890aSEmmanuel Vadot	pwm {
47*f126890aSEmmanuel Vadot		pinctrl-0 = <&pwm5_pins_a>;
48*f126890aSEmmanuel Vadot		pinctrl-1 = <&pwm5_sleep_pins_a>;
49*f126890aSEmmanuel Vadot		pinctrl-names = "default", "sleep";
50*f126890aSEmmanuel Vadot		status = "okay";
51*f126890aSEmmanuel Vadot	};
52*f126890aSEmmanuel Vadot};
53