Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 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> |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 11 | |
| 12 | / { |
Giulio Benetti | 7025998 | 2020-04-08 17:11:05 +0200 | [diff] [blame] | 13 | #address-cells = <1>; |
| 14 | #size-cells = <1>; |
| 15 | |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 16 | clocks { |
Giulio Benetti | 37a748e | 2021-05-13 12:18:39 +0200 | [diff] [blame] | 17 | osc: osc { |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 18 | compatible = "fixed-clock"; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 19 | #clock-cells = <0>; |
| 20 | clock-frequency = <24000000>; |
| 21 | }; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 22 | |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 23 | osc3M: osc3M { |
| 24 | compatible = "fixed-clock"; |
| 25 | #clock-cells = <0>; |
| 26 | clock-frequency = <3000000>; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 27 | }; |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 28 | }; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 29 | |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 30 | soc { |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 31 | lpuart1: serial@40184000 { |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 32 | compatible = "fsl,imxrt1050-lpuart", "fsl,imx7ulp-lpuart"; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 33 | reg = <0x40184000 0x4000>; |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 34 | interrupts = <20>; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 35 | clocks = <&clks IMXRT1050_CLK_LPUART1>; |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 36 | clock-names = "ipg"; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 37 | status = "disabled"; |
| 38 | }; |
| 39 | |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 40 | iomuxc: pinctrl@401f8000 { |
| 41 | compatible = "fsl,imxrt1050-iomuxc"; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 42 | reg = <0x401f8000 0x4000>; |
| 43 | fsl,mux_mask = <0x7>; |
| 44 | }; |
| 45 | |
Jesse Taube | 214f443 | 2022-03-17 14:33:18 -0400 | [diff] [blame] | 46 | anatop: anatop@400d8000 { |
| 47 | compatible = "fsl,imxrt-anatop"; |
| 48 | reg = <0x400d8000 0x4000>; |
| 49 | }; |
| 50 | |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 51 | clks: clock-controller@400fc000 { |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 52 | compatible = "fsl,imxrt1050-ccm"; |
| 53 | reg = <0x400fc000 0x4000>; |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 54 | interrupts = <95>, <96>; |
| 55 | clocks = <&osc>; |
| 56 | clock-names = "osc"; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 57 | #clock-cells = <1>; |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 58 | assigned-clocks = <&clks IMXRT1050_CLK_PLL1_BYPASS>, |
| 59 | <&clks IMXRT1050_CLK_PLL1_BYPASS>, |
| 60 | <&clks IMXRT1050_CLK_PLL2_BYPASS>, |
| 61 | <&clks IMXRT1050_CLK_PLL3_BYPASS>, |
| 62 | <&clks IMXRT1050_CLK_PLL3_PFD1_664_62M>, |
| 63 | <&clks IMXRT1050_CLK_PLL2_PFD2_396M>; |
| 64 | assigned-clock-parents = <&clks IMXRT1050_CLK_PLL1_REF_SEL>, |
| 65 | <&clks IMXRT1050_CLK_PLL1_ARM>, |
| 66 | <&clks IMXRT1050_CLK_PLL2_SYS>, |
| 67 | <&clks IMXRT1050_CLK_PLL3_USB_OTG>, |
| 68 | <&clks IMXRT1050_CLK_PLL3_USB_OTG>, |
| 69 | <&clks IMXRT1050_CLK_PLL2_SYS>; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 70 | }; |
| 71 | |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 72 | edma1: dma-controller@400e8000 { |
| 73 | #dma-cells = <2>; |
| 74 | compatible = "fsl,imx7ulp-edma"; |
| 75 | reg = <0x400e8000 0x4000>, |
| 76 | <0x400ec000 0x4000>; |
| 77 | dma-channels = <32>; |
| 78 | interrupts = <0>, <1>, <2>, <3>, <4>, <5>, <6>, <7>, <8>, |
| 79 | <9>, <10>, <11>, <12>, <13>, <14>, <15>, <16>; |
| 80 | clock-names = "dma", "dmamux0"; |
| 81 | clocks = <&clks IMXRT1050_CLK_DMA>, |
| 82 | <&clks IMXRT1050_CLK_DMA_MUX>; |
| 83 | }; |
| 84 | |
| 85 | usdhc1: mmc@402c0000 { |
| 86 | compatible = "fsl,imxrt1050-usdhc", "fsl,imx6sl-usdhc"; |
| 87 | reg = <0x402c0000 0x4000>; |
| 88 | interrupts = <110>; |
| 89 | clocks = <&clks IMXRT1050_CLK_IPG_PDOF>, |
Jesse Taube | 2b25084 | 2024-10-24 22:02:26 -0400 | [diff] [blame] | 90 | <&clks IMXRT1050_CLK_AHB_PODF>, |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 91 | <&clks IMXRT1050_CLK_USDHC1>; |
| 92 | clock-names = "ipg", "ahb", "per"; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 93 | bus-width = <4>; |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 94 | fsl,wp-controller; |
| 95 | no-1-8-v; |
| 96 | max-frequency = <4000000>; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 97 | fsl,tuning-start-tap = <20>; |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 98 | fsl,tuning-step = <2>; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 99 | status = "disabled"; |
| 100 | }; |
| 101 | |
| 102 | gpio1: gpio@401b8000 { |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 103 | compatible = "fsl,imxrt1050-gpio", "fsl,imx35-gpio"; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 104 | reg = <0x401b8000 0x4000>; |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 105 | interrupts = <80>, <81>; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 106 | gpio-controller; |
| 107 | #gpio-cells = <2>; |
| 108 | interrupt-controller; |
| 109 | #interrupt-cells = <2>; |
| 110 | }; |
| 111 | |
| 112 | gpio2: gpio@401bc000 { |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 113 | compatible = "fsl,imxrt1050-gpio", "fsl,imx35-gpio"; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 114 | reg = <0x401bc000 0x4000>; |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 115 | interrupts = <82>, <83>; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 116 | gpio-controller; |
| 117 | #gpio-cells = <2>; |
| 118 | interrupt-controller; |
| 119 | #interrupt-cells = <2>; |
| 120 | }; |
| 121 | |
| 122 | gpio3: gpio@401c0000 { |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 123 | compatible = "fsl,imxrt1050-gpio", "fsl,imx35-gpio"; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 124 | reg = <0x401c0000 0x4000>; |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 125 | interrupts = <84>, <85>; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 126 | gpio-controller; |
| 127 | #gpio-cells = <2>; |
| 128 | interrupt-controller; |
| 129 | #interrupt-cells = <2>; |
| 130 | }; |
| 131 | |
| 132 | gpio4: gpio@401c4000 { |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 133 | compatible = "fsl,imxrt1050-gpio", "fsl,imx35-gpio"; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 134 | reg = <0x401c4000 0x4000>; |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 135 | interrupts = <86>, <87>; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 136 | gpio-controller; |
| 137 | #gpio-cells = <2>; |
| 138 | interrupt-controller; |
| 139 | #interrupt-cells = <2>; |
| 140 | }; |
| 141 | |
| 142 | gpio5: gpio@400c0000 { |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 143 | compatible = "fsl,imxrt1050-gpio", "fsl,imx35-gpio"; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 144 | reg = <0x400c0000 0x4000>; |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 145 | interrupts = <88>, <89>; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 146 | gpio-controller; |
| 147 | #gpio-cells = <2>; |
| 148 | interrupt-controller; |
| 149 | #interrupt-cells = <2>; |
| 150 | }; |
Giulio Benetti | 5595c00 | 2020-04-08 17:10:21 +0200 | [diff] [blame] | 151 | |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 152 | gpt: timer@401ec000 { |
| 153 | compatible = "fsl,imxrt1050-gpt", "fsl,imx6dl-gpt", "fsl,imx6sl-gpt"; |
Giulio Benetti | d61b4d4 | 2021-05-13 12:18:40 +0200 | [diff] [blame] | 154 | reg = <0x401ec000 0x4000>; |
| 155 | interrupts = <100>; |
Marcel Ziswiler | 118ad85 | 2022-11-07 22:22:36 +0100 | [diff] [blame] | 156 | clocks = <&osc3M>; |
| 157 | clock-names = "per"; |
Giulio Benetti | 63b49fb | 2021-05-20 16:10:16 +0200 | [diff] [blame] | 158 | }; |
Giulio Benetti | 85a5cd9 | 2020-01-10 15:47:04 +0100 | [diff] [blame] | 159 | }; |
| 160 | }; |