Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) |
| 2 | /* |
| 3 | * Copyright (C) 2019 |
| 4 | * Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com> |
| 5 | */ |
| 6 | |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 7 | #include "armv7-m.dtsi" |
| 8 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 9 | #include <dt-bindings/clock/imxrt1050-clock.h> |
| 10 | #include <dt-bindings/gpio/gpio.h> |
| 11 | #include <dt-bindings/memory/imxrt-sdram.h> |
| 12 | |
| 13 | / { |
Giulio Benetti | 7025998 | 2020-04-08 17:11:05 +0200 | [diff] [blame] | 14 | #address-cells = <1>; |
| 15 | #size-cells = <1>; |
| 16 | |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 17 | aliases { |
Giulio Benetti | 5595c00 | 2020-04-08 17:10:21 +0200 | [diff] [blame] | 18 | display0 = &lcdif; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 19 | gpio0 = &gpio1; |
| 20 | gpio1 = &gpio2; |
| 21 | gpio2 = &gpio3; |
| 22 | gpio3 = &gpio4; |
| 23 | gpio4 = &gpio5; |
| 24 | mmc0 = &usdhc1; |
| 25 | serial0 = &lpuart1; |
Giulio Benetti | 63b49fb | 2021-05-20 16:10:16 +0200 | [diff] [blame] | 26 | usbphy0 = &usbphy1; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 27 | }; |
| 28 | |
| 29 | clocks { |
Giulio Benetti | 37a748e | 2021-05-13 12:18:39 +0200 | [diff] [blame] | 30 | osc: osc { |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 31 | compatible = "fsl,imx-osc", "fixed-clock"; |
| 32 | #clock-cells = <0>; |
| 33 | clock-frequency = <24000000>; |
| 34 | }; |
| 35 | }; |
| 36 | |
| 37 | soc { |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 38 | semc: semc@402f0000 { |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 39 | compatible = "fsl,imxrt-semc"; |
| 40 | reg = <0x402f0000 0x4000>; |
| 41 | clocks = <&clks IMXRT1050_CLK_SEMC>; |
| 42 | pinctrl-0 = <&pinctrl_semc>; |
| 43 | pinctrl-names = "default"; |
| 44 | status = "okay"; |
| 45 | }; |
| 46 | |
| 47 | lpuart1: serial@40184000 { |
| 48 | compatible = "fsl,imxrt-lpuart"; |
| 49 | reg = <0x40184000 0x4000>; |
| 50 | interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>; |
| 51 | clocks = <&clks IMXRT1050_CLK_LPUART1>; |
| 52 | clock-names = "per"; |
| 53 | status = "disabled"; |
| 54 | }; |
| 55 | |
| 56 | iomuxc: iomuxc@401f8000 { |
| 57 | compatible = "fsl,imxrt-iomuxc"; |
| 58 | reg = <0x401f8000 0x4000>; |
| 59 | fsl,mux_mask = <0x7>; |
| 60 | }; |
| 61 | |
Jesse Taube | 214f443 | 2022-03-17 14:33:18 -0400 | [diff] [blame] | 62 | anatop: anatop@400d8000 { |
| 63 | compatible = "fsl,imxrt-anatop"; |
| 64 | reg = <0x400d8000 0x4000>; |
| 65 | }; |
| 66 | |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 67 | clks: ccm@400fc000 { |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 68 | compatible = "fsl,imxrt1050-ccm"; |
| 69 | reg = <0x400fc000 0x4000>; |
| 70 | interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>, |
| 71 | <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>; |
| 72 | #clock-cells = <1>; |
| 73 | }; |
| 74 | |
| 75 | usdhc1: usdhc@402c0000 { |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 76 | compatible = "fsl,imxrt-usdhc"; |
| 77 | reg = <0x402c0000 0x10000>; |
| 78 | interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>; |
| 79 | clocks = <&clks IMXRT1050_CLK_USDHC1>; |
| 80 | clock-names = "per"; |
| 81 | bus-width = <4>; |
| 82 | fsl,tuning-start-tap = <20>; |
| 83 | fsl,tuning-step= <2>; |
| 84 | status = "disabled"; |
| 85 | }; |
| 86 | |
| 87 | gpio1: gpio@401b8000 { |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 88 | compatible = "fsl,imxrt-gpio", "fsl,imx35-gpio"; |
| 89 | reg = <0x401b8000 0x4000>; |
| 90 | interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>, |
| 91 | <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>; |
| 92 | gpio-controller; |
| 93 | #gpio-cells = <2>; |
| 94 | interrupt-controller; |
| 95 | #interrupt-cells = <2>; |
| 96 | }; |
| 97 | |
| 98 | gpio2: gpio@401bc000 { |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 99 | compatible = "fsl,imxrt-gpio", "fsl,imx35-gpio"; |
| 100 | reg = <0x401bc000 0x4000>; |
| 101 | interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>, |
| 102 | <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>; |
| 103 | gpio-controller; |
| 104 | #gpio-cells = <2>; |
| 105 | interrupt-controller; |
| 106 | #interrupt-cells = <2>; |
| 107 | }; |
| 108 | |
| 109 | gpio3: gpio@401c0000 { |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 110 | compatible = "fsl,imxrt-gpio", "fsl,imx35-gpio"; |
| 111 | reg = <0x401c0000 0x4000>; |
| 112 | interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>, |
| 113 | <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>; |
| 114 | gpio-controller; |
| 115 | #gpio-cells = <2>; |
| 116 | interrupt-controller; |
| 117 | #interrupt-cells = <2>; |
| 118 | }; |
| 119 | |
| 120 | gpio4: gpio@401c4000 { |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 121 | compatible = "fsl,imxrt-gpio", "fsl,imx35-gpio"; |
| 122 | reg = <0x401c4000 0x4000>; |
| 123 | interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>, |
| 124 | <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>; |
| 125 | gpio-controller; |
| 126 | #gpio-cells = <2>; |
| 127 | interrupt-controller; |
| 128 | #interrupt-cells = <2>; |
| 129 | }; |
| 130 | |
| 131 | gpio5: gpio@400c0000 { |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 132 | compatible = "fsl,imxrt-gpio", "fsl,imx35-gpio"; |
| 133 | reg = <0x400c0000 0x4000>; |
| 134 | interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>, |
| 135 | <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>; |
| 136 | gpio-controller; |
| 137 | #gpio-cells = <2>; |
| 138 | interrupt-controller; |
| 139 | #interrupt-cells = <2>; |
| 140 | }; |
Giulio Benetti | 5595c00 | 2020-04-08 17:10:21 +0200 | [diff] [blame] | 141 | |
| 142 | lcdif: lcdif@402b8000 { |
Giulio Benetti | 1c0cb07 | 2020-04-28 18:20:11 +0200 | [diff] [blame] | 143 | compatible = "fsl,imxrt-lcdif"; |
| 144 | reg = <0x402b8000 0x4000>; |
| 145 | interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>; |
Giulio Benetti | 586ec09 | 2021-05-13 12:19:35 +0200 | [diff] [blame] | 146 | clocks = <&clks IMXRT1050_CLK_LCDIF_PIX>, |
| 147 | <&clks IMXRT1050_CLK_LCDIF_APB>; |
| 148 | clock-names = "pix", "axi"; |
Giulio Benetti | ca71228 | 2021-05-13 12:19:34 +0200 | [diff] [blame] | 149 | assigned-clocks = <&clks IMXRT1050_CLK_LCDIF_SEL>; |
| 150 | assigned-clock-parents = <&clks IMXRT1050_CLK_PLL5_VIDEO>; |
Giulio Benetti | 1c0cb07 | 2020-04-28 18:20:11 +0200 | [diff] [blame] | 151 | status = "disabled"; |
Giulio Benetti | 5595c00 | 2020-04-08 17:10:21 +0200 | [diff] [blame] | 152 | }; |
Giulio Benetti | d61b4d4 | 2021-05-13 12:18:40 +0200 | [diff] [blame] | 153 | |
| 154 | gpt1: gpt1@401ec000 { |
| 155 | compatible = "fsl,imxrt-gpt"; |
| 156 | reg = <0x401ec000 0x4000>; |
| 157 | interrupts = <100>; |
| 158 | clocks = <&osc>; |
| 159 | status = "disabled"; |
| 160 | }; |
Giulio Benetti | 63b49fb | 2021-05-20 16:10:16 +0200 | [diff] [blame] | 161 | |
| 162 | usbphy1: usbphy@400d9000 { |
| 163 | compatible = "fsl,imxrt-usbphy"; |
| 164 | reg = <0x400d9000 0x1000>; |
| 165 | interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>; |
| 166 | }; |
| 167 | |
| 168 | usbmisc: usbmisc@402e0800 { |
| 169 | #index-cells = <1>; |
| 170 | compatible = "fsl,imxrt-usbmisc"; |
| 171 | reg = <0x402e0800 0x200>; |
| 172 | clocks = <&clks IMXRT1050_CLK_USBOH3>; |
| 173 | }; |
| 174 | |
| 175 | usbotg1: usb@402e0000 { |
| 176 | compatible = "fsl,imxrt-usb", "fsl,imx27-usb"; |
| 177 | reg = <0x402e0000 0x200>; |
| 178 | interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>; |
| 179 | clocks = <&clks IMXRT1050_CLK_USBOH3>; |
| 180 | fsl,usbphy = <&usbphy1>; |
| 181 | fsl,usbmisc = <&usbmisc 0>; |
| 182 | ahb-burst-config = <0x0>; |
| 183 | tx-burst-size-dword = <0x10>; |
| 184 | rx-burst-size-dword = <0x10>; |
| 185 | status = "disabled"; |
| 186 | }; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 187 | }; |
| 188 | }; |