1 // SPDX-License-Identifier: GPL-2.0-or-later O 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2 /* 2 /* 3 * Copyright 2022 Toradex 3 * Copyright 2022 Toradex 4 */ 4 */ 5 5 6 #include <dt-bindings/leds/common.h> 6 #include <dt-bindings/leds/common.h> 7 7 8 / { 8 / { 9 aliases { 9 aliases { 10 rtc0 = &rtc_i2c; 10 rtc0 = &rtc_i2c; 11 rtc1 = &rtc; 11 rtc1 = &rtc; 12 }; 12 }; 13 13 14 leds { 14 leds { 15 compatible = "gpio-leds"; 15 compatible = "gpio-leds"; 16 pinctrl-names = "default"; 16 pinctrl-names = "default"; 17 pinctrl-0 = <&pinctrl_leds_ixo 17 pinctrl-0 = <&pinctrl_leds_ixora>; 18 18 19 /* LED_4_GREEN / MXM3_188 */ 19 /* LED_4_GREEN / MXM3_188 */ 20 led-1 { 20 led-1 { 21 color = <LED_COLOR_ID_ 21 color = <LED_COLOR_ID_GREEN>; 22 default-state = "off"; 22 default-state = "off"; 23 function = LED_FUNCTIO 23 function = LED_FUNCTION_STATUS; 24 gpios = <&lsio_gpio5 2 24 gpios = <&lsio_gpio5 27 GPIO_ACTIVE_HIGH>; 25 }; 25 }; 26 26 27 /* LED_4_RED / MXM3_178 */ 27 /* LED_4_RED / MXM3_178 */ 28 led-2 { 28 led-2 { 29 color = <LED_COLOR_ID_ 29 color = <LED_COLOR_ID_RED>; 30 default-state = "off"; 30 default-state = "off"; 31 function = LED_FUNCTIO 31 function = LED_FUNCTION_STATUS; 32 gpios = <&lsio_gpio5 2 32 gpios = <&lsio_gpio5 29 GPIO_ACTIVE_HIGH>; 33 }; 33 }; 34 34 35 /* LED_5_GREEN / MXM3_152 */ 35 /* LED_5_GREEN / MXM3_152 */ 36 led-3 { 36 led-3 { 37 color = <LED_COLOR_ID_ 37 color = <LED_COLOR_ID_GREEN>; 38 default-state = "off"; 38 default-state = "off"; 39 function = LED_FUNCTIO 39 function = LED_FUNCTION_STATUS; 40 gpios = <&lsio_gpio5 2 40 gpios = <&lsio_gpio5 20 GPIO_ACTIVE_HIGH>; 41 }; 41 }; 42 42 43 /* LED_5_RED / MXM3_156 */ 43 /* LED_5_RED / MXM3_156 */ 44 led-4 { 44 led-4 { 45 color = <LED_COLOR_ID_ 45 color = <LED_COLOR_ID_RED>; 46 default-state = "off"; 46 default-state = "off"; 47 function = LED_FUNCTIO 47 function = LED_FUNCTION_STATUS; 48 gpios = <&lsio_gpio5 2 48 gpios = <&lsio_gpio5 21 GPIO_ACTIVE_HIGH>; 49 }; 49 }; 50 }; 50 }; 51 51 52 reg_3v3_vmmc: regulator-3v3-vmmc { 52 reg_3v3_vmmc: regulator-3v3-vmmc { 53 compatible = "regulator-fixed" 53 compatible = "regulator-fixed"; 54 pinctrl-names = "default"; 54 pinctrl-names = "default"; 55 pinctrl-0 = <&pinctrl_enable_3 55 pinctrl-0 = <&pinctrl_enable_3v3_vmmc>; 56 /* MMC1_PWR_CTRL */ 56 /* MMC1_PWR_CTRL */ 57 gpio = <&lsio_gpio5 19 GPIO_AC 57 gpio = <&lsio_gpio5 19 GPIO_ACTIVE_HIGH>; 58 enable-active-high; 58 enable-active-high; 59 regulator-max-microvolt = <330 59 regulator-max-microvolt = <3300000>; 60 regulator-min-microvolt = <330 60 regulator-min-microvolt = <3300000>; 61 regulator-name = "3v3_vmmc"; 61 regulator-name = "3v3_vmmc"; 62 }; 62 }; 63 63 64 reg_can1_supply: regulator-can1-supply 64 reg_can1_supply: regulator-can1-supply { 65 compatible = "regulator-fixed" 65 compatible = "regulator-fixed"; 66 pinctrl-names = "default"; 66 pinctrl-names = "default"; 67 pinctrl-0 = <&pinctrl_enable_c 67 pinctrl-0 = <&pinctrl_enable_can1_power>; 68 gpio = <&lsio_gpio5 22 GPIO_AC 68 gpio = <&lsio_gpio5 22 GPIO_ACTIVE_HIGH>; 69 enable-active-high; 69 enable-active-high; 70 regulator-name = "can1_supply" 70 regulator-name = "can1_supply"; 71 startup-delay-us = <1000>; 71 startup-delay-us = <1000>; 72 }; 72 }; 73 73 74 reg_can2_supply: regulator-can2-supply 74 reg_can2_supply: regulator-can2-supply { 75 compatible = "regulator-fixed" 75 compatible = "regulator-fixed"; 76 pinctrl-names = "default"; 76 pinctrl-names = "default"; 77 pinctrl-0 = <&pinctrl_sata1_ac 77 pinctrl-0 = <&pinctrl_sata1_act>; 78 gpio = <&lsio_gpio2 8 GPIO_ACT 78 gpio = <&lsio_gpio2 8 GPIO_ACTIVE_HIGH>; 79 enable-active-high; 79 enable-active-high; 80 regulator-name = "can2_supply" 80 regulator-name = "can2_supply"; 81 startup-delay-us = <1000>; 81 startup-delay-us = <1000>; 82 }; 82 }; 83 83 84 reg_usb_host_vbus: regulator-usb-host- 84 reg_usb_host_vbus: regulator-usb-host-vbus { 85 regulator-name = "VCC_USBH(2|4 85 regulator-name = "VCC_USBH(2|4)"; 86 }; 86 }; 87 }; 87 }; 88 88 89 &adc0 { 89 &adc0 { 90 status = "okay"; 90 status = "okay"; 91 }; 91 }; 92 92 93 &adc1 { 93 &adc1 { 94 status = "okay"; 94 status = "okay"; 95 }; 95 }; 96 96 97 /* TODO: Audio Mixer */ 97 /* TODO: Audio Mixer */ 98 98 99 /* TODO: Asynchronous Sample Rate Converter (A 99 /* TODO: Asynchronous Sample Rate Converter (ASRC) */ 100 100 101 /* TODO: Display Controller */ 101 /* TODO: Display Controller */ 102 102 103 /* TODO: DPU */ 103 /* TODO: DPU */ 104 104 105 /* Apalis ETH1 */ 105 /* Apalis ETH1 */ 106 &fec1 { 106 &fec1 { 107 status = "okay"; 107 status = "okay"; 108 }; 108 }; 109 109 110 /* Apalis CAN1 */ 110 /* Apalis CAN1 */ 111 &flexcan1 { 111 &flexcan1 { 112 xceiver-supply = <®_can1_supply>; 112 xceiver-supply = <®_can1_supply>; 113 status = "okay"; 113 status = "okay"; 114 }; 114 }; 115 115 116 /* Apalis CAN2 */ 116 /* Apalis CAN2 */ 117 &flexcan2 { 117 &flexcan2 { 118 xceiver-supply = <®_can2_supply>; 118 xceiver-supply = <®_can2_supply>; 119 status = "okay"; 119 status = "okay"; 120 }; 120 }; 121 121 122 /* TODO: GPU */ 122 /* TODO: GPU */ 123 123 124 /* Apalis I2C1 */ 124 /* Apalis I2C1 */ 125 &i2c2 { 125 &i2c2 { 126 status = "okay"; 126 status = "okay"; 127 127 128 eeprom: eeprom@50 { 128 eeprom: eeprom@50 { 129 compatible = "atmel,24c02"; 129 compatible = "atmel,24c02"; 130 reg = <0x50>; 130 reg = <0x50>; 131 pagesize = <16>; 131 pagesize = <16>; 132 }; 132 }; 133 133 134 /* M41T0M6 real time clock on carrier 134 /* M41T0M6 real time clock on carrier board */ 135 rtc_i2c: rtc@68 { 135 rtc_i2c: rtc@68 { 136 status = "okay"; 136 status = "okay"; 137 }; 137 }; 138 }; 138 }; 139 139 140 /* Apalis I2C3 (CAM) */ 140 /* Apalis I2C3 (CAM) */ 141 &i2c3 { 141 &i2c3 { 142 status = "okay"; 142 status = "okay"; 143 }; 143 }; 144 144 145 &iomuxc { 145 &iomuxc { 146 pinctrl-0 = <&pinctrl_cam1_gpios>, <&p 146 pinctrl-0 = <&pinctrl_cam1_gpios>, <&pinctrl_dap1_gpios>, 147 <&pinctrl_esai0_gpios>, <& 147 <&pinctrl_esai0_gpios>, <&pinctrl_fec2_gpios>, 148 <&pinctrl_gpio3>, <&pinctr 148 <&pinctrl_gpio3>, <&pinctrl_gpio4>, <&pinctrl_gpio_usbh_oc_n>, 149 <&pinctrl_lpuart1ctrl>, <& 149 <&pinctrl_lpuart1ctrl>, <&pinctrl_lvds0_i2c0_gpio>, 150 <&pinctrl_lvds1_i2c0_gpios 150 <&pinctrl_lvds1_i2c0_gpios>, <&pinctrl_mipi_dsi_0_1_en>, 151 <&pinctrl_mipi_dsi1_gpios> 151 <&pinctrl_mipi_dsi1_gpios>, <&pinctrl_mlb_gpios>, 152 <&pinctrl_qspi1a_gpios>, < 152 <&pinctrl_qspi1a_gpios>, <&pinctrl_sim0_gpios>, 153 <&pinctrl_uart24_forceoff> 153 <&pinctrl_uart24_forceoff>, <&pinctrl_usdhc1_gpios>; 154 154 155 /* PMIC MMC1 power-switch */ 155 /* PMIC MMC1 power-switch */ 156 pinctrl_enable_3v3_vmmc: enable3v3vmmc 156 pinctrl_enable_3v3_vmmc: enable3v3vmmcgrp { 157 fsl,pins = <IMX8QM_USDHC1_DATA 157 fsl,pins = <IMX8QM_USDHC1_DATA4_LSIO_GPIO5_IO19 0x00000021>; /* MXM3_148, PMIC */ 158 }; 158 }; 159 159 160 /* FlexCAN PMIC */ 160 /* FlexCAN PMIC */ 161 pinctrl_enable_can1_power: enablecan1p 161 pinctrl_enable_can1_power: enablecan1powergrp { 162 fsl,pins = <IMX8QM_USDHC1_DATA 162 fsl,pins = <IMX8QM_USDHC1_DATA7_LSIO_GPIO5_IO22 0x00000021>; /* MXM3_158, PMIC */ 163 }; 163 }; 164 164 165 pinctrl_leds_ixora: ledsixoragrp { 165 pinctrl_leds_ixora: ledsixoragrp { 166 fsl,pins = <IMX8QM_USDHC2_DATA 166 fsl,pins = <IMX8QM_USDHC2_DATA1_LSIO_GPIO5_IO27 0x06000061>, /* LED_4_GREEN */ 167 <IMX8QM_USDHC2_DATA 167 <IMX8QM_USDHC2_DATA3_LSIO_GPIO5_IO29 0x06000061>, /* LED_4_RED */ 168 <IMX8QM_USDHC1_DATA 168 <IMX8QM_USDHC1_DATA5_LSIO_GPIO5_IO20 0x06000061>, /* LED_5_GREEN */ 169 <IMX8QM_USDHC1_DATA 169 <IMX8QM_USDHC1_DATA6_LSIO_GPIO5_IO21 0x06000061>; /* LED_5_RED */ 170 }; 170 }; 171 171 172 pinctrl_uart24_forceoff: uart24forceof 172 pinctrl_uart24_forceoff: uart24forceoffgrp { 173 fsl,pins = <IMX8QM_USDHC2_CMD_ 173 fsl,pins = <IMX8QM_USDHC2_CMD_LSIO_GPIO5_IO25 0x00000021>; 174 }; 174 }; 175 }; 175 }; 176 176 177 /* Apalis SPI1 */ 177 /* Apalis SPI1 */ 178 &lpspi0 { 178 &lpspi0 { 179 status = "okay"; 179 status = "okay"; 180 }; 180 }; 181 181 182 /* Apalis SPI2 */ 182 /* Apalis SPI2 */ 183 &lpspi2 { 183 &lpspi2 { 184 status = "okay"; 184 status = "okay"; 185 }; 185 }; 186 186 187 /* Apalis UART3 */ 187 /* Apalis UART3 */ 188 &lpuart0 { 188 &lpuart0 { 189 status = "okay"; 189 status = "okay"; 190 }; 190 }; 191 191 192 /* Apalis UART1 */ 192 /* Apalis UART1 */ 193 &lpuart1 { 193 &lpuart1 { 194 status = "okay"; 194 status = "okay"; 195 }; 195 }; 196 196 197 /* Apalis UART4 */ 197 /* Apalis UART4 */ 198 &lpuart2 { 198 &lpuart2 { 199 status = "okay"; 199 status = "okay"; 200 }; 200 }; 201 201 202 /* Apalis UART2 */ 202 /* Apalis UART2 */ 203 &lpuart3 { 203 &lpuart3 { 204 status = "okay"; 204 status = "okay"; 205 }; 205 }; 206 206 207 &lsio_gpio5 { 207 &lsio_gpio5 { 208 gpio-line-names = "gpio5-00", "gpio5-0 208 gpio-line-names = "gpio5-00", "gpio5-01", "gpio5-02", "gpio5-03", 209 "gpio5-04", "gpio5-0 209 "gpio5-04", "gpio5-05", "gpio5-06", "gpio5-07", 210 "gpio5-08", "gpio5-0 210 "gpio5-08", "gpio5-09", "gpio5-10", "gpio5-11", 211 "gpio5-12", "gpio5-1 211 "gpio5-12", "gpio5-13", "gpio5-14", "gpio5-15", 212 "gpio5-16", "gpio5-1 212 "gpio5-16", "gpio5-17", "gpio5-18", "gpio5-19", 213 "LED-5-GREEN", "LED- 213 "LED-5-GREEN", "LED-5-RED", "gpio5-22", "gpio5-23", 214 "gpio5-24", "UART24- 214 "gpio5-24", "UART24-FORCEOFF", "gpio5-26", 215 "LED-4-GREEN", "gpio 215 "LED-4-GREEN", "gpio5-28", "LED-4-RED", "gpio5-30", 216 "gpio5-31"; 216 "gpio5-31"; 217 }; 217 }; 218 218 219 /* Apalis PWM3, MXM3 pin 6 */ 219 /* Apalis PWM3, MXM3 pin 6 */ 220 &lsio_pwm0 { 220 &lsio_pwm0 { 221 status = "okay"; 221 status = "okay"; 222 }; 222 }; 223 223 224 /* Apalis PWM4, MXM3 pin 8 */ 224 /* Apalis PWM4, MXM3 pin 8 */ 225 &lsio_pwm1 { 225 &lsio_pwm1 { 226 status = "okay"; 226 status = "okay"; 227 }; 227 }; 228 228 229 /* Apalis PWM1, MXM3 pin 2 */ 229 /* Apalis PWM1, MXM3 pin 2 */ 230 &lsio_pwm2 { 230 &lsio_pwm2 { 231 status = "okay"; 231 status = "okay"; 232 }; 232 }; 233 233 234 /* Apalis PWM2, MXM3 pin 4 */ 234 /* Apalis PWM2, MXM3 pin 4 */ 235 &lsio_pwm3 { 235 &lsio_pwm3 { 236 status = "okay"; 236 status = "okay"; 237 }; 237 }; 238 238 239 /* TODO: Apalis PCIE1 */ 239 /* TODO: Apalis PCIE1 */ 240 240 241 /* TODO: Apalis BKL1_PWM */ 241 /* TODO: Apalis BKL1_PWM */ 242 242 243 /* TODO: Apalis DAP1 */ 243 /* TODO: Apalis DAP1 */ 244 244 245 /* TODO: Apalis Analogue Audio */ 245 /* TODO: Apalis Analogue Audio */ 246 246 247 /* TODO: Apalis SATA1 */ 247 /* TODO: Apalis SATA1 */ 248 248 249 /* TODO: Apalis SPDIF1 */ 249 /* TODO: Apalis SPDIF1 */ 250 250 251 /* TODO: Apalis USBH2, Apalis USBH3 and on-mod 251 /* TODO: Apalis USBH2, Apalis USBH3 and on-module Wi-Fi via on-module HSIC Hub */ 252 252 253 /* Apalis USBO1 */ 253 /* Apalis USBO1 */ 254 &usbotg1 { 254 &usbotg1 { 255 status = "okay"; 255 status = "okay"; 256 }; 256 }; 257 257 258 /* TODO: Apalis USBH4 SuperSpeed */ 258 /* TODO: Apalis USBH4 SuperSpeed */ 259 259 260 /* Apalis MMC1 */ 260 /* Apalis MMC1 */ 261 &usdhc2 { 261 &usdhc2 { 262 pinctrl-0 = <&pinctrl_usdhc2_4bit>, <& 262 pinctrl-0 = <&pinctrl_usdhc2_4bit>, <&pinctrl_mmc1_cd>; 263 pinctrl-1 = <&pinctrl_usdhc2_4bit_100m 263 pinctrl-1 = <&pinctrl_usdhc2_4bit_100mhz>, <&pinctrl_mmc1_cd>; 264 pinctrl-2 = <&pinctrl_usdhc2_4bit_200m 264 pinctrl-2 = <&pinctrl_usdhc2_4bit_200mhz>, <&pinctrl_mmc1_cd>; 265 pinctrl-3 = <&pinctrl_usdhc2_4bit_slee 265 pinctrl-3 = <&pinctrl_usdhc2_4bit_sleep>, <&pinctrl_mmc1_cd_sleep>; 266 bus-width = <4>; 266 bus-width = <4>; 267 cap-power-off-card; 267 cap-power-off-card; 268 /delete-property/ no-1-8-v; 268 /delete-property/ no-1-8-v; 269 vmmc-supply = <®_3v3_vmmc>; 269 vmmc-supply = <®_3v3_vmmc>; 270 status = "okay"; 270 status = "okay"; 271 }; 271 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.