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