xref: /freebsd/sys/contrib/device-tree/src/arm/st/stm32mp151c-mecio1r0.dts (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1*b2d2a78aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2*b2d2a78aSEmmanuel Vadot/*
3*b2d2a78aSEmmanuel Vadot * Copyright (C) Protonic Holland
4*b2d2a78aSEmmanuel Vadot * Author: David Jander <david@protonic.nl>
5*b2d2a78aSEmmanuel Vadot */
6*b2d2a78aSEmmanuel Vadot/dts-v1/;
7*b2d2a78aSEmmanuel Vadot
8*b2d2a78aSEmmanuel Vadot#include "stm32mp151.dtsi"
9*b2d2a78aSEmmanuel Vadot#include "stm32mp15xc.dtsi"
10*b2d2a78aSEmmanuel Vadot#include "stm32mp15-pinctrl.dtsi"
11*b2d2a78aSEmmanuel Vadot#include "stm32mp15xxaa-pinctrl.dtsi"
12*b2d2a78aSEmmanuel Vadot#include "stm32mp15x-mecio1-io.dtsi"
13*b2d2a78aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
14*b2d2a78aSEmmanuel Vadot#include <dt-bindings/input/input.h>
15*b2d2a78aSEmmanuel Vadot#include <dt-bindings/leds/common.h>
16*b2d2a78aSEmmanuel Vadot
17*b2d2a78aSEmmanuel Vadot/ {
18*b2d2a78aSEmmanuel Vadot	model = "Protonic MECIO1r0";
19*b2d2a78aSEmmanuel Vadot	compatible = "prt,mecio1r0", "st,stm32mp151";
20*b2d2a78aSEmmanuel Vadot
21*b2d2a78aSEmmanuel Vadot	led {
22*b2d2a78aSEmmanuel Vadot		compatible = "gpio-leds";
23*b2d2a78aSEmmanuel Vadot
24*b2d2a78aSEmmanuel Vadot		led-0 {
25*b2d2a78aSEmmanuel Vadot			color = <LED_COLOR_ID_RED>;
26*b2d2a78aSEmmanuel Vadot			function = LED_FUNCTION_DEBUG;
27*b2d2a78aSEmmanuel Vadot			gpios = <&gpioa 13 GPIO_ACTIVE_HIGH>;
28*b2d2a78aSEmmanuel Vadot		};
29*b2d2a78aSEmmanuel Vadot
30*b2d2a78aSEmmanuel Vadot		led-1 {
31*b2d2a78aSEmmanuel Vadot			color = <LED_COLOR_ID_GREEN>;
32*b2d2a78aSEmmanuel Vadot			function = LED_FUNCTION_DEBUG;
33*b2d2a78aSEmmanuel Vadot			gpios = <&gpioa 14 GPIO_ACTIVE_HIGH>;
34*b2d2a78aSEmmanuel Vadot			linux,default-trigger = "heartbeat";
35*b2d2a78aSEmmanuel Vadot		};
36*b2d2a78aSEmmanuel Vadot	};
37*b2d2a78aSEmmanuel Vadot};
38*b2d2a78aSEmmanuel Vadot
39*b2d2a78aSEmmanuel Vadot&clk_hse {
40*b2d2a78aSEmmanuel Vadot	clock-frequency = <25000000>;
41*b2d2a78aSEmmanuel Vadot};
42*b2d2a78aSEmmanuel Vadot
43*b2d2a78aSEmmanuel Vadot&ethernet0 {
44*b2d2a78aSEmmanuel Vadot	assigned-clocks = <&rcc ETHCK_K>, <&rcc PLL3_Q>;
45*b2d2a78aSEmmanuel Vadot	assigned-clock-parents = <&rcc PLL3_Q>;
46*b2d2a78aSEmmanuel Vadot	assigned-clock-rates = <125000000>; /* Clock PLL3 to 625Mhz in tf-a. */
47*b2d2a78aSEmmanuel Vadot	st,eth-clk-sel;
48*b2d2a78aSEmmanuel Vadot};
49