blob: 03e6a858a7beca7706d8796ce03d3573fe8102d1 [file] [log] [blame]
Marcel Ziswiler118ad852022-11-07 22:22:36 +01001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
Giulio Benetti85a5cd92020-01-10 15:47:04 +01002/*
3 * Copyright (C) 2019
4 * Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
5 */
6
Giulio Benetti85a5cd92020-01-10 15:47:04 +01007#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 Benetti85a5cd92020-01-10 15:47:04 +010011
12/ {
Giulio Benetti70259982020-04-08 17:11:05 +020013 #address-cells = <1>;
14 #size-cells = <1>;
15
Giulio Benetti85a5cd92020-01-10 15:47:04 +010016 clocks {
Giulio Benetti37a748e2021-05-13 12:18:39 +020017 osc: osc {
Marcel Ziswiler118ad852022-11-07 22:22:36 +010018 compatible = "fixed-clock";
Giulio Benetti85a5cd92020-01-10 15:47:04 +010019 #clock-cells = <0>;
20 clock-frequency = <24000000>;
21 };
Giulio Benetti85a5cd92020-01-10 15:47:04 +010022
Marcel Ziswiler118ad852022-11-07 22:22:36 +010023 osc3M: osc3M {
24 compatible = "fixed-clock";
25 #clock-cells = <0>;
26 clock-frequency = <3000000>;
Giulio Benetti85a5cd92020-01-10 15:47:04 +010027 };
Marcel Ziswiler118ad852022-11-07 22:22:36 +010028 };
Giulio Benetti85a5cd92020-01-10 15:47:04 +010029
Marcel Ziswiler118ad852022-11-07 22:22:36 +010030 soc {
Giulio Benetti85a5cd92020-01-10 15:47:04 +010031 lpuart1: serial@40184000 {
Marcel Ziswiler118ad852022-11-07 22:22:36 +010032 compatible = "fsl,imxrt1050-lpuart", "fsl,imx7ulp-lpuart";
Giulio Benetti85a5cd92020-01-10 15:47:04 +010033 reg = <0x40184000 0x4000>;
Marcel Ziswiler118ad852022-11-07 22:22:36 +010034 interrupts = <20>;
Giulio Benetti85a5cd92020-01-10 15:47:04 +010035 clocks = <&clks IMXRT1050_CLK_LPUART1>;
Marcel Ziswiler118ad852022-11-07 22:22:36 +010036 clock-names = "ipg";
Giulio Benetti85a5cd92020-01-10 15:47:04 +010037 status = "disabled";
38 };
39
Marcel Ziswiler118ad852022-11-07 22:22:36 +010040 iomuxc: pinctrl@401f8000 {
41 compatible = "fsl,imxrt1050-iomuxc";
Giulio Benetti85a5cd92020-01-10 15:47:04 +010042 reg = <0x401f8000 0x4000>;
43 fsl,mux_mask = <0x7>;
44 };
45
Jesse Taube214f4432022-03-17 14:33:18 -040046 anatop: anatop@400d8000 {
47 compatible = "fsl,imxrt-anatop";
48 reg = <0x400d8000 0x4000>;
49 };
50
Marcel Ziswiler118ad852022-11-07 22:22:36 +010051 clks: clock-controller@400fc000 {
Giulio Benetti85a5cd92020-01-10 15:47:04 +010052 compatible = "fsl,imxrt1050-ccm";
53 reg = <0x400fc000 0x4000>;
Marcel Ziswiler118ad852022-11-07 22:22:36 +010054 interrupts = <95>, <96>;
55 clocks = <&osc>;
56 clock-names = "osc";
Giulio Benetti85a5cd92020-01-10 15:47:04 +010057 #clock-cells = <1>;
Marcel Ziswiler118ad852022-11-07 22:22:36 +010058 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 Benetti85a5cd92020-01-10 15:47:04 +010070 };
71
Marcel Ziswiler118ad852022-11-07 22:22:36 +010072 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>,
90 <&clks IMXRT1050_CLK_OSC>,
91 <&clks IMXRT1050_CLK_USDHC1>;
92 clock-names = "ipg", "ahb", "per";
Giulio Benetti85a5cd92020-01-10 15:47:04 +010093 bus-width = <4>;
Marcel Ziswiler118ad852022-11-07 22:22:36 +010094 fsl,wp-controller;
95 no-1-8-v;
96 max-frequency = <4000000>;
Giulio Benetti85a5cd92020-01-10 15:47:04 +010097 fsl,tuning-start-tap = <20>;
Marcel Ziswiler118ad852022-11-07 22:22:36 +010098 fsl,tuning-step = <2>;
Giulio Benetti85a5cd92020-01-10 15:47:04 +010099 status = "disabled";
100 };
101
102 gpio1: gpio@401b8000 {
Marcel Ziswiler118ad852022-11-07 22:22:36 +0100103 compatible = "fsl,imxrt1050-gpio", "fsl,imx35-gpio";
Giulio Benetti85a5cd92020-01-10 15:47:04 +0100104 reg = <0x401b8000 0x4000>;
Marcel Ziswiler118ad852022-11-07 22:22:36 +0100105 interrupts = <80>, <81>;
Giulio Benetti85a5cd92020-01-10 15:47:04 +0100106 gpio-controller;
107 #gpio-cells = <2>;
108 interrupt-controller;
109 #interrupt-cells = <2>;
110 };
111
112 gpio2: gpio@401bc000 {
Marcel Ziswiler118ad852022-11-07 22:22:36 +0100113 compatible = "fsl,imxrt1050-gpio", "fsl,imx35-gpio";
Giulio Benetti85a5cd92020-01-10 15:47:04 +0100114 reg = <0x401bc000 0x4000>;
Marcel Ziswiler118ad852022-11-07 22:22:36 +0100115 interrupts = <82>, <83>;
Giulio Benetti85a5cd92020-01-10 15:47:04 +0100116 gpio-controller;
117 #gpio-cells = <2>;
118 interrupt-controller;
119 #interrupt-cells = <2>;
120 };
121
122 gpio3: gpio@401c0000 {
Marcel Ziswiler118ad852022-11-07 22:22:36 +0100123 compatible = "fsl,imxrt1050-gpio", "fsl,imx35-gpio";
Giulio Benetti85a5cd92020-01-10 15:47:04 +0100124 reg = <0x401c0000 0x4000>;
Marcel Ziswiler118ad852022-11-07 22:22:36 +0100125 interrupts = <84>, <85>;
Giulio Benetti85a5cd92020-01-10 15:47:04 +0100126 gpio-controller;
127 #gpio-cells = <2>;
128 interrupt-controller;
129 #interrupt-cells = <2>;
130 };
131
132 gpio4: gpio@401c4000 {
Marcel Ziswiler118ad852022-11-07 22:22:36 +0100133 compatible = "fsl,imxrt1050-gpio", "fsl,imx35-gpio";
Giulio Benetti85a5cd92020-01-10 15:47:04 +0100134 reg = <0x401c4000 0x4000>;
Marcel Ziswiler118ad852022-11-07 22:22:36 +0100135 interrupts = <86>, <87>;
Giulio Benetti85a5cd92020-01-10 15:47:04 +0100136 gpio-controller;
137 #gpio-cells = <2>;
138 interrupt-controller;
139 #interrupt-cells = <2>;
140 };
141
142 gpio5: gpio@400c0000 {
Marcel Ziswiler118ad852022-11-07 22:22:36 +0100143 compatible = "fsl,imxrt1050-gpio", "fsl,imx35-gpio";
Giulio Benetti85a5cd92020-01-10 15:47:04 +0100144 reg = <0x400c0000 0x4000>;
Marcel Ziswiler118ad852022-11-07 22:22:36 +0100145 interrupts = <88>, <89>;
Giulio Benetti85a5cd92020-01-10 15:47:04 +0100146 gpio-controller;
147 #gpio-cells = <2>;
148 interrupt-controller;
149 #interrupt-cells = <2>;
150 };
Giulio Benetti5595c002020-04-08 17:10:21 +0200151
Marcel Ziswiler118ad852022-11-07 22:22:36 +0100152 gpt: timer@401ec000 {
153 compatible = "fsl,imxrt1050-gpt", "fsl,imx6dl-gpt", "fsl,imx6sl-gpt";
Giulio Benettid61b4d42021-05-13 12:18:40 +0200154 reg = <0x401ec000 0x4000>;
155 interrupts = <100>;
Marcel Ziswiler118ad852022-11-07 22:22:36 +0100156 clocks = <&osc3M>;
157 clock-names = "per";
Giulio Benetti63b49fb2021-05-20 16:10:16 +0200158 };
Giulio Benetti85a5cd92020-01-10 15:47:04 +0100159 };
160};