xref: /freebsd/sys/contrib/device-tree/src/arm/st/stm32mp157c-lxa-tac-gen1.dts (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-3-Clause)
2/*
3 * Copyright (C) 2020 STMicroelectronics - All Rights Reserved
4 * Copyright (C) 2021 Rouven Czerwinski, Pengutronix
5 * Copyright (C) 2023 Leonard Göhrs, Pengutronix
6 */
7
8/dts-v1/;
9
10#include "stm32mp157.dtsi"
11#include "stm32mp15xc-lxa-tac.dtsi"
12
13/ {
14	model = "Linux Automation Test Automation Controller (TAC) Gen 1";
15	compatible = "lxa,stm32mp157c-tac-gen1", "oct,stm32mp15xx-osd32", "st,stm32mp157";
16
17	backlight: backlight {
18		compatible = "pwm-backlight";
19		power-supply = <&v3v3>;
20
21		brightness-levels = <0 31 63 95 127 159 191 223 255>;
22		default-brightness-level = <7>;
23		pwms = <&backlight_pwm 1 1000000 0>;
24	};
25
26	reg_iobus_12v: regulator-iobus-12v {
27		compatible = "regulator-fixed";
28		vin-supply = <&reg_12v>;
29
30		gpio = <&gpioh 13 GPIO_ACTIVE_HIGH>;
31		enable-active-high;
32		regulator-max-microvolt = <12000000>;
33		regulator-min-microvolt = <12000000>;
34		regulator-name = "12V_IOBUS";
35	};
36};
37
38&gpioa {
39	gpio-line-names = "", "", "STACK_CS2", "", "STACK_CS3", /*  0 */
40	"ETH_GPIO1", "ETH_INT", "", "", "",                     /*  5 */
41	"", "", "", "BOOTROM_LED", "ETH_LAB_LEDRP",             /* 10 */
42	"";                                                     /* 15 */
43};
44
45&gpioc {
46	gpio-line-names = "", "STACK_CS1", "", "", "", /*  0 */
47	"", "", "", "", "",                            /*  5 */
48	"", "";                                        /* 10 */
49};
50
51&gpu {
52	status = "disabled";
53};
54
55&i2c1 {
56	powerboard_gpio: gpio@24 {
57		compatible = "nxp,pca9570";
58		reg = <0x24>;
59
60		#gpio-cells = <2>;
61		gpio-controller;
62		gpio-line-names = "DUT_PWR_EN", "DUT_PWR_DISCH", "DUT_PWR_ADCRST", "";
63	};
64};
65
66&spi2 {
67	adc@0 {
68		compatible = "ti,lmp92064";
69		reg = <0>;
70		spi-max-frequency = <5000000>;
71		vdd-supply = <&reg_pb_3v3>;
72		vdig-supply = <&reg_pb_3v3>;
73		reset-gpios = <&powerboard_gpio 2 GPIO_ACTIVE_HIGH>;
74
75		shunt-resistor-micro-ohms = <15000>;
76	};
77};
78
79&timers1 {
80	/* spare dmas for other usage */
81	/delete-property/dmas;
82	/delete-property/dma-names;
83
84	status = "okay";
85
86	backlight_pwm: pwm {
87		pinctrl-names = "default", "sleep";
88		pinctrl-0 = <&pwm1_pins_c>;
89		pinctrl-1 = <&pwm1_sleep_pins_c>;
90
91		status = "okay";
92	};
93};
94