1*aa1a8ff2SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-3-Clause) 2*aa1a8ff2SEmmanuel Vadot/* 3*aa1a8ff2SEmmanuel Vadot * Copyright (C) 2020 STMicroelectronics - All Rights Reserved 4*aa1a8ff2SEmmanuel Vadot * Copyright (C) 2021 Rouven Czerwinski, Pengutronix 5*aa1a8ff2SEmmanuel Vadot * Copyright (C) 2023 Leonard Göhrs, Pengutronix 6*aa1a8ff2SEmmanuel Vadot */ 7*aa1a8ff2SEmmanuel Vadot 8*aa1a8ff2SEmmanuel Vadot/dts-v1/; 9*aa1a8ff2SEmmanuel Vadot 10*aa1a8ff2SEmmanuel Vadot#include "stm32mp157.dtsi" 11*aa1a8ff2SEmmanuel Vadot#include "stm32mp15xc-lxa-tac.dtsi" 12*aa1a8ff2SEmmanuel Vadot 13*aa1a8ff2SEmmanuel Vadot/ { 14*aa1a8ff2SEmmanuel Vadot model = "Linux Automation Test Automation Controller (TAC) Gen 2"; 15*aa1a8ff2SEmmanuel Vadot compatible = "lxa,stm32mp157c-tac-gen2", "oct,stm32mp15xx-osd32", "st,stm32mp157"; 16*aa1a8ff2SEmmanuel Vadot 17*aa1a8ff2SEmmanuel Vadot backlight: backlight { 18*aa1a8ff2SEmmanuel Vadot compatible = "pwm-backlight"; 19*aa1a8ff2SEmmanuel Vadot power-supply = <&v3v3>; 20*aa1a8ff2SEmmanuel Vadot 21*aa1a8ff2SEmmanuel Vadot brightness-levels = <0 31 63 95 127 159 191 223 255>; 22*aa1a8ff2SEmmanuel Vadot default-brightness-level = <7>; 23*aa1a8ff2SEmmanuel Vadot pwms = <&led_pwm 3 1000000 0>; 24*aa1a8ff2SEmmanuel Vadot }; 25*aa1a8ff2SEmmanuel Vadot 26*aa1a8ff2SEmmanuel Vadot reg_iobus_12v: regulator-iobus-12v { 27*aa1a8ff2SEmmanuel Vadot compatible = "regulator-fixed"; 28*aa1a8ff2SEmmanuel Vadot vin-supply = <®_12v>; 29*aa1a8ff2SEmmanuel Vadot gpio = <&gpioh 13 GPIO_ACTIVE_LOW>; 30*aa1a8ff2SEmmanuel Vadot regulator-max-microvolt = <12000000>; 31*aa1a8ff2SEmmanuel Vadot regulator-min-microvolt = <12000000>; 32*aa1a8ff2SEmmanuel Vadot regulator-name = "12V_IOBUS"; 33*aa1a8ff2SEmmanuel Vadot }; 34*aa1a8ff2SEmmanuel Vadot 35*aa1a8ff2SEmmanuel Vadot led-controller-1 { 36*aa1a8ff2SEmmanuel Vadot compatible = "pwm-leds-multicolor"; 37*aa1a8ff2SEmmanuel Vadot 38*aa1a8ff2SEmmanuel Vadot multi-led { 39*aa1a8ff2SEmmanuel Vadot color = <LED_COLOR_ID_RGB>; 40*aa1a8ff2SEmmanuel Vadot function = LED_FUNCTION_STATUS; 41*aa1a8ff2SEmmanuel Vadot max-brightness = <65535>; 42*aa1a8ff2SEmmanuel Vadot 43*aa1a8ff2SEmmanuel Vadot led-red { 44*aa1a8ff2SEmmanuel Vadot active-low; 45*aa1a8ff2SEmmanuel Vadot color = <LED_COLOR_ID_RED>; 46*aa1a8ff2SEmmanuel Vadot pwms = <&led_pwm 0 1000000 0>; 47*aa1a8ff2SEmmanuel Vadot }; 48*aa1a8ff2SEmmanuel Vadot 49*aa1a8ff2SEmmanuel Vadot led-green { 50*aa1a8ff2SEmmanuel Vadot active-low; 51*aa1a8ff2SEmmanuel Vadot color = <LED_COLOR_ID_GREEN>; 52*aa1a8ff2SEmmanuel Vadot pwms = <&led_pwm 2 1000000 0>; 53*aa1a8ff2SEmmanuel Vadot }; 54*aa1a8ff2SEmmanuel Vadot 55*aa1a8ff2SEmmanuel Vadot led-blue { 56*aa1a8ff2SEmmanuel Vadot active-low; 57*aa1a8ff2SEmmanuel Vadot color = <LED_COLOR_ID_BLUE>; 58*aa1a8ff2SEmmanuel Vadot pwms = <&led_pwm 1 1000000 0>; 59*aa1a8ff2SEmmanuel Vadot }; 60*aa1a8ff2SEmmanuel Vadot }; 61*aa1a8ff2SEmmanuel Vadot }; 62*aa1a8ff2SEmmanuel Vadot 63*aa1a8ff2SEmmanuel Vadot led-controller-2 { 64*aa1a8ff2SEmmanuel Vadot compatible = "gpio-leds"; 65*aa1a8ff2SEmmanuel Vadot 66*aa1a8ff2SEmmanuel Vadot led-5 { 67*aa1a8ff2SEmmanuel Vadot label = "tac:green:iobus"; 68*aa1a8ff2SEmmanuel Vadot gpios = <&gpiog 1 GPIO_ACTIVE_HIGH>; 69*aa1a8ff2SEmmanuel Vadot }; 70*aa1a8ff2SEmmanuel Vadot 71*aa1a8ff2SEmmanuel Vadot led-6 { 72*aa1a8ff2SEmmanuel Vadot label = "tac:green:can"; 73*aa1a8ff2SEmmanuel Vadot gpios = <&gpiof 3 GPIO_ACTIVE_HIGH>; 74*aa1a8ff2SEmmanuel Vadot }; 75*aa1a8ff2SEmmanuel Vadot 76*aa1a8ff2SEmmanuel Vadot led-7 { 77*aa1a8ff2SEmmanuel Vadot label = "tac:green:out0"; 78*aa1a8ff2SEmmanuel Vadot gpios = <&gpiob 8 GPIO_ACTIVE_HIGH>; 79*aa1a8ff2SEmmanuel Vadot }; 80*aa1a8ff2SEmmanuel Vadot 81*aa1a8ff2SEmmanuel Vadot led-8 { 82*aa1a8ff2SEmmanuel Vadot label = "tac:green:out1"; 83*aa1a8ff2SEmmanuel Vadot gpios = <&gpiog 3 GPIO_ACTIVE_HIGH>; 84*aa1a8ff2SEmmanuel Vadot }; 85*aa1a8ff2SEmmanuel Vadot 86*aa1a8ff2SEmmanuel Vadot led-9 { 87*aa1a8ff2SEmmanuel Vadot label = "tac:green:uarttx"; 88*aa1a8ff2SEmmanuel Vadot gpios = <&gpiod 3 GPIO_ACTIVE_HIGH>; 89*aa1a8ff2SEmmanuel Vadot }; 90*aa1a8ff2SEmmanuel Vadot 91*aa1a8ff2SEmmanuel Vadot led-10 { 92*aa1a8ff2SEmmanuel Vadot label = "tac:green:uartrx"; 93*aa1a8ff2SEmmanuel Vadot gpios = <&gpiof 6 GPIO_ACTIVE_HIGH>; 94*aa1a8ff2SEmmanuel Vadot }; 95*aa1a8ff2SEmmanuel Vadot 96*aa1a8ff2SEmmanuel Vadot led-11 { 97*aa1a8ff2SEmmanuel Vadot label = "tac:green:usbh1"; 98*aa1a8ff2SEmmanuel Vadot gpios = <&gpioc 8 GPIO_ACTIVE_HIGH>; 99*aa1a8ff2SEmmanuel Vadot }; 100*aa1a8ff2SEmmanuel Vadot 101*aa1a8ff2SEmmanuel Vadot led-12 { 102*aa1a8ff2SEmmanuel Vadot label = "tac:green:usbh2"; 103*aa1a8ff2SEmmanuel Vadot gpios = <&gpiod 6 GPIO_ACTIVE_HIGH>; 104*aa1a8ff2SEmmanuel Vadot }; 105*aa1a8ff2SEmmanuel Vadot 106*aa1a8ff2SEmmanuel Vadot led-13 { 107*aa1a8ff2SEmmanuel Vadot label = "tac:green:usbh3"; 108*aa1a8ff2SEmmanuel Vadot gpios = <&gpiob 9 GPIO_ACTIVE_HIGH>; 109*aa1a8ff2SEmmanuel Vadot }; 110*aa1a8ff2SEmmanuel Vadot 111*aa1a8ff2SEmmanuel Vadot led-14 { 112*aa1a8ff2SEmmanuel Vadot label = "tac:green:usbg"; 113*aa1a8ff2SEmmanuel Vadot gpios = <&gpiod 14 GPIO_ACTIVE_HIGH>; 114*aa1a8ff2SEmmanuel Vadot linux,default-trigger = "usb-gadget"; 115*aa1a8ff2SEmmanuel Vadot }; 116*aa1a8ff2SEmmanuel Vadot 117*aa1a8ff2SEmmanuel Vadot led-15 { 118*aa1a8ff2SEmmanuel Vadot label = "tac:green:dutpwr"; 119*aa1a8ff2SEmmanuel Vadot gpios = <&gpioa 15 GPIO_ACTIVE_HIGH>; 120*aa1a8ff2SEmmanuel Vadot }; 121*aa1a8ff2SEmmanuel Vadot }; 122*aa1a8ff2SEmmanuel Vadot}; 123*aa1a8ff2SEmmanuel Vadot 124*aa1a8ff2SEmmanuel Vadot&gpioa { 125*aa1a8ff2SEmmanuel Vadot gpio-line-names = "", "", "DUT_PWR_EN", "", "STACK_CS3", /* 0 */ 126*aa1a8ff2SEmmanuel Vadot "ETH_GPIO1", "ETH_INT", "", "", "", /* 5 */ 127*aa1a8ff2SEmmanuel Vadot "", "", "", "BOOTROM_LED", "ETH_LAB_LEDRP", /* 10 */ 128*aa1a8ff2SEmmanuel Vadot ""; /* 15 */ 129*aa1a8ff2SEmmanuel Vadot}; 130*aa1a8ff2SEmmanuel Vadot 131*aa1a8ff2SEmmanuel Vadot&gpioc { 132*aa1a8ff2SEmmanuel Vadot gpio-line-names = "", "DUT_PWR_DISCH", "", "", "", /* 0 */ 133*aa1a8ff2SEmmanuel Vadot "", "", "", "", "", /* 5 */ 134*aa1a8ff2SEmmanuel Vadot "", ""; /* 10 */ 135*aa1a8ff2SEmmanuel Vadot}; 136*aa1a8ff2SEmmanuel Vadot 137*aa1a8ff2SEmmanuel Vadot&gpu { 138*aa1a8ff2SEmmanuel Vadot status = "disabled"; 139*aa1a8ff2SEmmanuel Vadot}; 140*aa1a8ff2SEmmanuel Vadot 141*aa1a8ff2SEmmanuel Vadot&m_can2 { 142*aa1a8ff2SEmmanuel Vadot termination-gpios = <&gpioe 4 GPIO_ACTIVE_HIGH>; 143*aa1a8ff2SEmmanuel Vadot termination-ohms = <120>; 144*aa1a8ff2SEmmanuel Vadot}; 145*aa1a8ff2SEmmanuel Vadot 146*aa1a8ff2SEmmanuel Vadot&spi2 { 147*aa1a8ff2SEmmanuel Vadot adc@0 { 148*aa1a8ff2SEmmanuel Vadot compatible = "ti,lmp92064"; 149*aa1a8ff2SEmmanuel Vadot reg = <0>; 150*aa1a8ff2SEmmanuel Vadot 151*aa1a8ff2SEmmanuel Vadot reset-gpios = <&gpioa 4 GPIO_ACTIVE_HIGH>; 152*aa1a8ff2SEmmanuel Vadot shunt-resistor-micro-ohms = <15000>; 153*aa1a8ff2SEmmanuel Vadot spi-max-frequency = <5000000>; 154*aa1a8ff2SEmmanuel Vadot vdd-supply = <®_pb_3v3>; 155*aa1a8ff2SEmmanuel Vadot vdig-supply = <®_pb_3v3>; 156*aa1a8ff2SEmmanuel Vadot }; 157*aa1a8ff2SEmmanuel Vadot}; 158*aa1a8ff2SEmmanuel Vadot 159*aa1a8ff2SEmmanuel Vadot&timers8 { 160*aa1a8ff2SEmmanuel Vadot /* spare dmas for other usage */ 161*aa1a8ff2SEmmanuel Vadot /delete-property/dmas; 162*aa1a8ff2SEmmanuel Vadot /delete-property/dma-names; 163*aa1a8ff2SEmmanuel Vadot 164*aa1a8ff2SEmmanuel Vadot status = "okay"; 165*aa1a8ff2SEmmanuel Vadot 166*aa1a8ff2SEmmanuel Vadot led_pwm: pwm { 167*aa1a8ff2SEmmanuel Vadot pinctrl-names = "default", "sleep"; 168*aa1a8ff2SEmmanuel Vadot pinctrl-0 = <&pwm8_pins_b>; 169*aa1a8ff2SEmmanuel Vadot pinctrl-1 = <&pwm8_sleep_pins_b>; 170*aa1a8ff2SEmmanuel Vadot status = "okay"; 171*aa1a8ff2SEmmanuel Vadot }; 172*aa1a8ff2SEmmanuel Vadot}; 173