// 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 Leonard Göhrs, Pengutronix */ /dts-v1/; #include "stm32mp157.dtsi" #include "stm32mp15xc-lxa-tac.dtsi" / { model = "Linux Automation Test Automation Controller (TAC) Gen 1"; compatible = "lxa,stm32mp157c-tac-gen1", "oct,stm32mp15xx-osd32", "st,stm32mp157"; backlight: backlight { compatible = "pwm-backlight"; power-supply = <&v3v3>; brightness-levels = <0 31 63 95 127 159 191 223 255>; default-brightness-level = <7>; pwms = <&backlight_pwm 1 1000000 0>; }; reg_iobus_12v: regulator-iobus-12v { compatible = "regulator-fixed"; vin-supply = <®_12v>; gpio = <&gpioh 13 GPIO_ACTIVE_HIGH>; enable-active-high; regulator-max-microvolt = <12000000>; regulator-min-microvolt = <12000000>; regulator-name = "12V_IOBUS"; }; }; &adc { pinctrl-names = "default"; pinctrl-0 = <&adc1_ain_pins_a>; vdd-supply = <&vdd>; vdda-supply = <&vdda>; vref-supply = <&vrefbuf>; status = "okay"; adc1: adc@0 { st,adc-channels = <0 1 2 5 9 10 13 15>; st,min-sample-time-nsecs = <5000>; #address-cells = <1>; #size-cells = <0>; status = "okay"; channel@0 { reg = <0>; label = "HOST_2_CURR_FB"; }; channel@1 { reg = <1>; label = "HOST_3_CURR_FB"; }; channel@2 { reg = <2>; label = "OUT_0_FB"; }; channel@5 { reg = <5>; label = "IOBUS_CURR_FB"; }; channel@9 { reg = <9>; label = "IOBUS_VOLT_FB"; }; channel@10 { reg = <10>; label = "OUT_1_FB"; }; channel@13 { reg = <13>; label = "HOST_CURR_FB"; }; channel@15 { reg = <15>; label = "HOST_1_CURR_FB"; }; }; adc2: adc@100 { st,adc-channels = <12>; st,min-sample-time-nsecs = <500000>; #address-cells = <1>; #size-cells = <0>; status = "okay"; channel@12 { reg = <12>; label = "TEMP_INTERNAL"; }; }; }; &gpioa { gpio-line-names = "", "", "STACK_CS2", "", "STACK_CS3", /* 0 */ "ETH_GPIO1", "ETH_INT", "", "", "", /* 5 */ "", "", "", "BOOTROM_LED", "ETH_LAB_LEDRP", /* 10 */ ""; /* 15 */ }; &gpioc { gpio-line-names = "", "STACK_CS1", "", "", "", /* 0 */ "", "", "", "", "", /* 5 */ "", ""; /* 10 */ }; &gpioe { gpio-line-names = "TP35", "", "", "", "CAN_1_120R", /* 0 */ "", "", "USER_BTN2", "TP48", "UART_TX_EN", /* 5 */ "UART_RX_EN", "TP24", "", "TP25", "TP26", /* 10 */ "TP27"; /* 15 */ }; &gpiog { gpio-line-names = "ETH_RESET", "", "", "", "", /* 0 */ "IOBUS_FLT_FB", "", "USER_LED2", "ETH1_PPS_A", "CAN_0_120R", /* 5 */ "TP49", "", "", "", "", /* 10 */ ""; /* 15 */ }; &gpu { status = "disabled"; }; &i2c1 { powerboard_gpio: gpio@24 { compatible = "nxp,pca9570"; reg = <0x24>; #gpio-cells = <2>; gpio-controller; gpio-line-names = "DUT_PWR_EN", "DUT_PWR_DISCH", "DUT_PWR_ADCRST", ""; }; }; &spi2 { adc@0 { compatible = "ti,lmp92064"; reg = <0>; spi-max-frequency = <5000000>; vdd-supply = <®_pb_3v3>; vdig-supply = <®_pb_3v3>; reset-gpios = <&powerboard_gpio 2 GPIO_ACTIVE_HIGH>; shunt-resistor-micro-ohms = <15000>; }; }; &timers1 { /* spare dmas for other usage */ /delete-property/dmas; /delete-property/dma-names; status = "okay"; backlight_pwm: pwm { pinctrl-names = "default", "sleep"; pinctrl-0 = <&pwm1_pins_c>; pinctrl-1 = <&pwm1_sleep_pins_c>; status = "okay"; }; };