1 // SPDX-License-Identifier: GPL-2.0+ 1 // SPDX-License-Identifier: GPL-2.0+ 2 /* 2 /* 3 * Copyright 2018 Einfochips 3 * Copyright 2018 Einfochips 4 * Copyright 2019 Linaro Ltd. 4 * Copyright 2019 Linaro Ltd. 5 */ 5 */ 6 6 7 /dts-v1/; 7 /dts-v1/; 8 8 9 #include "imx8qxp.dtsi" 9 #include "imx8qxp.dtsi" 10 10 11 / { 11 / { 12 model = "Einfochips i.MX8QXP AI_ML"; 12 model = "Einfochips i.MX8QXP AI_ML"; 13 compatible = "einfochips,imx8qxp-ai_ml 13 compatible = "einfochips,imx8qxp-ai_ml", "fsl,imx8qxp"; 14 14 15 aliases { 15 aliases { 16 serial1 = &lpuart1; 16 serial1 = &lpuart1; 17 serial2 = &lpuart2; 17 serial2 = &lpuart2; 18 serial3 = &lpuart3; 18 serial3 = &lpuart3; 19 }; 19 }; 20 20 21 chosen { 21 chosen { 22 stdout-path = &lpuart2; 22 stdout-path = &lpuart2; 23 }; 23 }; 24 24 25 memory@80000000 { 25 memory@80000000 { 26 device_type = "memory"; 26 device_type = "memory"; 27 reg = <0x00000000 0x80000000 0 27 reg = <0x00000000 0x80000000 0 0x80000000>; 28 }; 28 }; 29 29 30 leds { 30 leds { 31 compatible = "gpio-leds"; 31 compatible = "gpio-leds"; 32 pinctrl-names = "default"; 32 pinctrl-names = "default"; 33 pinctrl-0 = <&pinctrl_leds>; 33 pinctrl-0 = <&pinctrl_leds>; 34 34 35 user-led1 { 35 user-led1 { 36 label = "green:user1"; 36 label = "green:user1"; 37 gpios = <&lsio_gpio4 1 37 gpios = <&lsio_gpio4 16 GPIO_ACTIVE_HIGH>; 38 linux,default-trigger 38 linux,default-trigger = "heartbeat"; 39 }; 39 }; 40 40 41 user-led2 { 41 user-led2 { 42 label = "green:user2"; 42 label = "green:user2"; 43 gpios = <&lsio_gpio0 6 43 gpios = <&lsio_gpio0 6 GPIO_ACTIVE_HIGH>; 44 linux,default-trigger 44 linux,default-trigger = "none"; 45 }; 45 }; 46 46 47 user-led3 { 47 user-led3 { 48 label = "green:user3"; 48 label = "green:user3"; 49 gpios = <&lsio_gpio0 7 49 gpios = <&lsio_gpio0 7 GPIO_ACTIVE_HIGH>; 50 linux,default-trigger 50 linux,default-trigger = "mmc1"; 51 default-state = "off"; 51 default-state = "off"; 52 }; 52 }; 53 53 54 user-led4 { 54 user-led4 { 55 label = "green:user4"; 55 label = "green:user4"; 56 gpios = <&lsio_gpio4 2 56 gpios = <&lsio_gpio4 21 GPIO_ACTIVE_HIGH>; 57 panic-indicator; 57 panic-indicator; 58 linux,default-trigger 58 linux,default-trigger = "none"; 59 }; 59 }; 60 60 61 wlan-active-led { 61 wlan-active-led { 62 label = "yellow:wlan"; 62 label = "yellow:wlan"; 63 gpios = <&lsio_gpio4 1 63 gpios = <&lsio_gpio4 17 GPIO_ACTIVE_HIGH>; 64 linux,default-trigger 64 linux,default-trigger = "phy0tx"; 65 default-state = "off"; 65 default-state = "off"; 66 }; 66 }; 67 67 68 bt-active-led { 68 bt-active-led { 69 label = "blue:bt"; 69 label = "blue:bt"; 70 gpios = <&lsio_gpio4 1 70 gpios = <&lsio_gpio4 18 GPIO_ACTIVE_HIGH>; 71 linux,default-trigger 71 linux,default-trigger = "hci0-power"; 72 default-state = "off"; 72 default-state = "off"; 73 }; 73 }; 74 }; 74 }; 75 75 76 sdio_pwrseq: sdio-pwrseq { 76 sdio_pwrseq: sdio-pwrseq { 77 compatible = "mmc-pwrseq-simpl 77 compatible = "mmc-pwrseq-simple"; 78 pinctrl-names = "default"; 78 pinctrl-names = "default"; 79 pinctrl-0 = <&pinctrl_wifi_reg 79 pinctrl-0 = <&pinctrl_wifi_reg_on>; 80 reset-gpios = <&lsio_gpio3 24 80 reset-gpios = <&lsio_gpio3 24 GPIO_ACTIVE_LOW>; 81 }; 81 }; 82 }; 82 }; 83 83 84 /* BT */ 84 /* BT */ 85 &lpuart0 { 85 &lpuart0 { 86 pinctrl-names = "default"; 86 pinctrl-names = "default"; 87 pinctrl-0 = <&pinctrl_lpuart0>; 87 pinctrl-0 = <&pinctrl_lpuart0>; 88 uart-has-rtscts; 88 uart-has-rtscts; 89 status = "okay"; 89 status = "okay"; 90 }; 90 }; 91 91 92 /* LS-UART0 */ 92 /* LS-UART0 */ 93 &lpuart1 { 93 &lpuart1 { 94 pinctrl-names = "default"; 94 pinctrl-names = "default"; 95 pinctrl-0 = <&pinctrl_lpuart1>; 95 pinctrl-0 = <&pinctrl_lpuart1>; 96 status = "okay"; 96 status = "okay"; 97 }; 97 }; 98 98 99 /* Debug */ 99 /* Debug */ 100 &lpuart2 { 100 &lpuart2 { 101 pinctrl-names = "default"; 101 pinctrl-names = "default"; 102 pinctrl-0 = <&pinctrl_lpuart2>; 102 pinctrl-0 = <&pinctrl_lpuart2>; 103 status = "okay"; 103 status = "okay"; 104 }; 104 }; 105 105 106 /* PCI-E UART */ 106 /* PCI-E UART */ 107 &lpuart3 { 107 &lpuart3 { 108 pinctrl-names = "default"; 108 pinctrl-names = "default"; 109 pinctrl-0 = <&pinctrl_lpuart3>; 109 pinctrl-0 = <&pinctrl_lpuart3>; 110 status = "okay"; 110 status = "okay"; 111 }; 111 }; 112 112 113 &fec1 { 113 &fec1 { 114 pinctrl-names = "default"; 114 pinctrl-names = "default"; 115 pinctrl-0 = <&pinctrl_fec1>; 115 pinctrl-0 = <&pinctrl_fec1>; 116 phy-mode = "rgmii-id"; 116 phy-mode = "rgmii-id"; 117 phy-handle = <ðphy0>; 117 phy-handle = <ðphy0>; 118 fsl,magic-packet; 118 fsl,magic-packet; 119 status = "okay"; 119 status = "okay"; 120 120 121 mdio { 121 mdio { 122 #address-cells = <1>; 122 #address-cells = <1>; 123 #size-cells = <0>; 123 #size-cells = <0>; 124 124 125 ethphy0: ethernet-phy@0 { 125 ethphy0: ethernet-phy@0 { 126 compatible = "ethernet 126 compatible = "ethernet-phy-ieee802.3-c22"; 127 reg = <0>; 127 reg = <0>; 128 }; 128 }; 129 }; 129 }; 130 }; 130 }; 131 131 132 /* WiFi */ 132 /* WiFi */ 133 &usdhc1 { 133 &usdhc1 { 134 #address-cells = <1>; 134 #address-cells = <1>; 135 #size-cells = <0>; 135 #size-cells = <0>; 136 assigned-clocks = <&clk IMX_SC_R_SDHC_ 136 assigned-clocks = <&clk IMX_SC_R_SDHC_0 IMX_SC_PM_CLK_PER>; 137 assigned-clock-rates = <200000000>; 137 assigned-clock-rates = <200000000>; 138 pinctrl-names = "default"; 138 pinctrl-names = "default"; 139 pinctrl-0 = <&pinctrl_usdhc1>; 139 pinctrl-0 = <&pinctrl_usdhc1>; 140 bus-width = <4>; 140 bus-width = <4>; 141 no-sd; 141 no-sd; 142 non-removable; 142 non-removable; 143 mmc-pwrseq = <&sdio_pwrseq>; 143 mmc-pwrseq = <&sdio_pwrseq>; 144 status = "okay"; 144 status = "okay"; 145 145 146 brcmf: wifi@1 { 146 brcmf: wifi@1 { 147 reg = <1>; 147 reg = <1>; 148 compatible = "brcm,bcm4329-fma 148 compatible = "brcm,bcm4329-fmac"; 149 }; 149 }; 150 }; 150 }; 151 151 152 /* SD */ 152 /* SD */ 153 &usdhc2 { 153 &usdhc2 { 154 assigned-clocks = <&clk IMX_SC_R_SDHC_ 154 assigned-clocks = <&clk IMX_SC_R_SDHC_1 IMX_SC_PM_CLK_PER>; 155 assigned-clock-rates = <200000000>; 155 assigned-clock-rates = <200000000>; 156 pinctrl-names = "default"; 156 pinctrl-names = "default"; 157 pinctrl-0 = <&pinctrl_usdhc2>; 157 pinctrl-0 = <&pinctrl_usdhc2>; 158 bus-width = <4>; 158 bus-width = <4>; 159 cd-gpios = <&lsio_gpio4 22 GPIO_ACTIVE 159 cd-gpios = <&lsio_gpio4 22 GPIO_ACTIVE_LOW>; 160 status = "okay"; 160 status = "okay"; 161 }; 161 }; 162 162 163 &iomuxc { 163 &iomuxc { 164 pinctrl_fec1: fec1grp { 164 pinctrl_fec1: fec1grp { 165 fsl,pins = < 165 fsl,pins = < 166 IMX8QXP_ENET0_MDC_CONN 166 IMX8QXP_ENET0_MDC_CONN_ENET0_MDC 0x06000020 167 IMX8QXP_ENET0_MDIO_CON 167 IMX8QXP_ENET0_MDIO_CONN_ENET0_MDIO 0x06000020 168 IMX8QXP_ENET0_RGMII_TX 168 IMX8QXP_ENET0_RGMII_TX_CTL_CONN_ENET0_RGMII_TX_CTL 0x06000020 169 IMX8QXP_ENET0_RGMII_TX 169 IMX8QXP_ENET0_RGMII_TXC_CONN_ENET0_RGMII_TXC 0x06000020 170 IMX8QXP_ENET0_RGMII_TX 170 IMX8QXP_ENET0_RGMII_TXD0_CONN_ENET0_RGMII_TXD0 0x06000020 171 IMX8QXP_ENET0_RGMII_TX 171 IMX8QXP_ENET0_RGMII_TXD1_CONN_ENET0_RGMII_TXD1 0x06000020 172 IMX8QXP_ENET0_RGMII_TX 172 IMX8QXP_ENET0_RGMII_TXD2_CONN_ENET0_RGMII_TXD2 0x06000020 173 IMX8QXP_ENET0_RGMII_TX 173 IMX8QXP_ENET0_RGMII_TXD3_CONN_ENET0_RGMII_TXD3 0x06000020 174 IMX8QXP_ENET0_RGMII_RX 174 IMX8QXP_ENET0_RGMII_RXC_CONN_ENET0_RGMII_RXC 0x06000020 175 IMX8QXP_ENET0_RGMII_RX 175 IMX8QXP_ENET0_RGMII_RX_CTL_CONN_ENET0_RGMII_RX_CTL 0x06000020 176 IMX8QXP_ENET0_RGMII_RX 176 IMX8QXP_ENET0_RGMII_RXD0_CONN_ENET0_RGMII_RXD0 0x06000020 177 IMX8QXP_ENET0_RGMII_RX 177 IMX8QXP_ENET0_RGMII_RXD1_CONN_ENET0_RGMII_RXD1 0x06000020 178 IMX8QXP_ENET0_RGMII_RX 178 IMX8QXP_ENET0_RGMII_RXD2_CONN_ENET0_RGMII_RXD2 0x06000020 179 IMX8QXP_ENET0_RGMII_RX 179 IMX8QXP_ENET0_RGMII_RXD3_CONN_ENET0_RGMII_RXD3 0x06000020 180 >; 180 >; 181 }; 181 }; 182 182 183 pinctrl_leds: ledsgrp { 183 pinctrl_leds: ledsgrp { 184 fsl,pins = < 184 fsl,pins = < 185 IMX8QXP_ESAI0_TX2_RX3_ 185 IMX8QXP_ESAI0_TX2_RX3_LSIO_GPIO0_IO06 0x00000021 186 IMX8QXP_ESAI0_TX3_RX2_ 186 IMX8QXP_ESAI0_TX3_RX2_LSIO_GPIO0_IO07 0x00000021 187 IMX8QXP_EMMC0_DATA7_LS 187 IMX8QXP_EMMC0_DATA7_LSIO_GPIO4_IO16 0x00000021 188 IMX8QXP_USDHC1_WP_LSIO 188 IMX8QXP_USDHC1_WP_LSIO_GPIO4_IO21 0x00000021 189 IMX8QXP_EMMC0_STROBE_L 189 IMX8QXP_EMMC0_STROBE_LSIO_GPIO4_IO17 0x00000021 190 IMX8QXP_EMMC0_RESET_B_ 190 IMX8QXP_EMMC0_RESET_B_LSIO_GPIO4_IO18 0x00000021 191 >; 191 >; 192 }; 192 }; 193 193 194 pinctrl_lpuart0: lpuart0grp { 194 pinctrl_lpuart0: lpuart0grp { 195 fsl,pins = < 195 fsl,pins = < 196 IMX8QXP_UART0_RX_ADMA_ 196 IMX8QXP_UART0_RX_ADMA_UART0_RX 0X06000020 197 IMX8QXP_UART0_TX_ADMA_ 197 IMX8QXP_UART0_TX_ADMA_UART0_TX 0X06000020 198 IMX8QXP_FLEXCAN0_TX_AD 198 IMX8QXP_FLEXCAN0_TX_ADMA_UART0_CTS_B 0x06000020 199 IMX8QXP_FLEXCAN0_RX_AD 199 IMX8QXP_FLEXCAN0_RX_ADMA_UART0_RTS_B 0x06000020 200 >; 200 >; 201 }; 201 }; 202 202 203 pinctrl_lpuart1: lpuart1grp { 203 pinctrl_lpuart1: lpuart1grp { 204 fsl,pins = < 204 fsl,pins = < 205 IMX8QXP_UART1_RX_ADMA_ 205 IMX8QXP_UART1_RX_ADMA_UART1_RX 0X06000020 206 IMX8QXP_UART1_TX_ADMA_ 206 IMX8QXP_UART1_TX_ADMA_UART1_TX 0X06000020 207 >; 207 >; 208 }; 208 }; 209 209 210 pinctrl_lpuart2: lpuart2grp { 210 pinctrl_lpuart2: lpuart2grp { 211 fsl,pins = < 211 fsl,pins = < 212 IMX8QXP_UART2_RX_ADMA_ 212 IMX8QXP_UART2_RX_ADMA_UART2_RX 0X06000020 213 IMX8QXP_UART2_TX_ADMA_ 213 IMX8QXP_UART2_TX_ADMA_UART2_TX 0X06000020 214 >; 214 >; 215 }; 215 }; 216 216 217 pinctrl_lpuart3: lpuart3grp { 217 pinctrl_lpuart3: lpuart3grp { 218 fsl,pins = < 218 fsl,pins = < 219 IMX8QXP_FLEXCAN2_RX_AD 219 IMX8QXP_FLEXCAN2_RX_ADMA_UART3_RX 0X06000020 220 IMX8QXP_FLEXCAN2_TX_AD 220 IMX8QXP_FLEXCAN2_TX_ADMA_UART3_TX 0X06000020 221 >; 221 >; 222 }; 222 }; 223 223 224 pinctrl_usdhc1: usdhc1grp { 224 pinctrl_usdhc1: usdhc1grp { 225 fsl,pins = < 225 fsl,pins = < 226 IMX8QXP_EMMC0_CLK_CONN 226 IMX8QXP_EMMC0_CLK_CONN_EMMC0_CLK 0x06000041 227 IMX8QXP_EMMC0_CMD_CONN 227 IMX8QXP_EMMC0_CMD_CONN_EMMC0_CMD 0x00000021 228 IMX8QXP_EMMC0_DATA0_CO 228 IMX8QXP_EMMC0_DATA0_CONN_EMMC0_DATA0 0x00000021 229 IMX8QXP_EMMC0_DATA1_CO 229 IMX8QXP_EMMC0_DATA1_CONN_EMMC0_DATA1 0x00000021 230 IMX8QXP_EMMC0_DATA2_CO 230 IMX8QXP_EMMC0_DATA2_CONN_EMMC0_DATA2 0x00000021 231 IMX8QXP_EMMC0_DATA3_CO 231 IMX8QXP_EMMC0_DATA3_CONN_EMMC0_DATA3 0x00000021 232 >; 232 >; 233 }; 233 }; 234 234 235 pinctrl_usdhc2: usdhc2grp { 235 pinctrl_usdhc2: usdhc2grp { 236 fsl,pins = < 236 fsl,pins = < 237 IMX8QXP_USDHC1_CLK_CON 237 IMX8QXP_USDHC1_CLK_CONN_USDHC1_CLK 0x06000041 238 IMX8QXP_USDHC1_CMD_CON 238 IMX8QXP_USDHC1_CMD_CONN_USDHC1_CMD 0x00000021 239 IMX8QXP_USDHC1_DATA0_C 239 IMX8QXP_USDHC1_DATA0_CONN_USDHC1_DATA0 0x00000021 240 IMX8QXP_USDHC1_DATA1_C 240 IMX8QXP_USDHC1_DATA1_CONN_USDHC1_DATA1 0x00000021 241 IMX8QXP_USDHC1_DATA2_C 241 IMX8QXP_USDHC1_DATA2_CONN_USDHC1_DATA2 0x00000021 242 IMX8QXP_USDHC1_DATA3_C 242 IMX8QXP_USDHC1_DATA3_CONN_USDHC1_DATA3 0x00000021 243 IMX8QXP_USDHC1_VSELECT 243 IMX8QXP_USDHC1_VSELECT_CONN_USDHC1_VSELECT 0x00000021 244 IMX8QXP_USDHC1_CD_B_LS 244 IMX8QXP_USDHC1_CD_B_LSIO_GPIO4_IO22 0x00000021 245 >; 245 >; 246 }; 246 }; 247 247 248 pinctrl_wifi_reg_on: wifiregongrp { 248 pinctrl_wifi_reg_on: wifiregongrp { 249 fsl,pins = < 249 fsl,pins = < 250 IMX8QXP_QSPI0B_SS1_B_L 250 IMX8QXP_QSPI0B_SS1_B_LSIO_GPIO3_IO24 0x00000021 251 >; 251 >; 252 }; 252 }; 253 }; 253 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.