WIP FPC-III support
[linux/fpc-iii.git] / arch / arm64 / boot / dts / freescale / imx8mm-kontron-n801x-som.dtsi
blobd0456daefda8830bbc46bbfacec716651090101c
1 // SPDX-License-Identifier: GPL-2.0+ OR MIT
2 /*
3  * Copyright (C) 2019 Kontron Electronics GmbH
4  */
6 #include "imx8mm.dtsi"
8 / {
9         model = "Kontron i.MX8MM N801X SoM";
10         compatible = "kontron,imx8mm-n801x-som", "fsl,imx8mm";
12         memory@40000000 {
13                 device_type = "memory";
14                 /*
15                  * There are multiple SoM flavors with different DDR sizes.
16                  * The smallest is 1GB. For larger sizes the bootloader will
17                  * update the reg property.
18                  */
19                 reg = <0x0 0x40000000 0 0x80000000>;
20         };
22         chosen {
23                 stdout-path = &uart3;
24         };
27 &A53_0 {
28         cpu-supply = <&reg_vdd_arm>;
31 &A53_1 {
32         cpu-supply = <&reg_vdd_arm>;
35 &A53_2 {
36         cpu-supply = <&reg_vdd_arm>;
39 &A53_3 {
40         cpu-supply = <&reg_vdd_arm>;
43 &ddrc {
44         operating-points-v2 = <&ddrc_opp_table>;
46         ddrc_opp_table: opp-table {
47                 compatible = "operating-points-v2";
49                 opp-25M {
50                         opp-hz = /bits/ 64 <25000000>;
51                 };
53                 opp-100M {
54                         opp-hz = /bits/ 64 <100000000>;
55                 };
57                 opp-750M {
58                         opp-hz = /bits/ 64 <750000000>;
59                 };
60         };
63 &ecspi1 {
64         pinctrl-names = "default";
65         pinctrl-0 = <&pinctrl_ecspi1>;
66         cs-gpios = <&gpio5 9 GPIO_ACTIVE_HIGH>;
67         status = "okay";
69         spi-flash@0 {
70                 compatible = "mxicy,mx25r1635f", "jedec,spi-nor";
71                 spi-max-frequency = <80000000>;
72                 reg = <0>;
73         };
76 &i2c1 {
77         clock-frequency = <400000>;
78         pinctrl-names = "default";
79         pinctrl-0 = <&pinctrl_i2c1>;
80         status = "okay";
82         pca9450: pmic@25 {
83                 compatible = "nxp,pca9450a";
84                 reg = <0x25>;
85                 pinctrl-names = "default";
86                 pinctrl-0 = <&pinctrl_pmic>;
87                 interrupt-parent = <&gpio1>;
88                 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
90                 regulators {
91                         reg_vdd_soc: BUCK1 {
92                                 regulator-name = "buck1";
93                                 regulator-min-microvolt = <800000>;
94                                 regulator-max-microvolt = <900000>;
95                                 regulator-boot-on;
96                                 regulator-always-on;
97                                 regulator-ramp-delay = <3125>;
98                         };
100                         reg_vdd_arm: BUCK2 {
101                                 regulator-name = "buck2";
102                                 regulator-min-microvolt = <850000>;
103                                 regulator-max-microvolt = <950000>;
104                                 regulator-boot-on;
105                                 regulator-ramp-delay = <3125>;
106                                 nxp,dvs-run-voltage = <950000>;
107                                 nxp,dvs-standby-voltage = <850000>;
108                         };
110                         reg_vdd_dram: BUCK3 {
111                                 regulator-name = "buck3";
112                                 regulator-min-microvolt = <850000>;
113                                 regulator-max-microvolt = <900000>;
114                                 regulator-boot-on;
115                                 regulator-always-on;
116                         };
118                         reg_vdd_3v3: BUCK4 {
119                                 regulator-name = "buck4";
120                                 regulator-min-microvolt = <3300000>;
121                                 regulator-max-microvolt = <3300000>;
122                                 regulator-boot-on;
123                                 regulator-always-on;
124                         };
126                         reg_vdd_1v8: BUCK5 {
127                                 regulator-name = "buck5";
128                                 regulator-min-microvolt = <1800000>;
129                                 regulator-max-microvolt = <1800000>;
130                                 regulator-boot-on;
131                                 regulator-always-on;
132                         };
134                         reg_nvcc_dram: BUCK6 {
135                                 regulator-name = "buck6";
136                                 regulator-min-microvolt = <1100000>;
137                                 regulator-max-microvolt = <1100000>;
138                                 regulator-boot-on;
139                                 regulator-always-on;
140                         };
142                         reg_nvcc_snvs: LDO1 {
143                                 regulator-name = "ldo1";
144                                 regulator-min-microvolt = <1800000>;
145                                 regulator-max-microvolt = <1800000>;
146                                 regulator-boot-on;
147                                 regulator-always-on;
148                         };
150                         reg_vdd_snvs: LDO2 {
151                                 regulator-name = "ldo2";
152                                 regulator-min-microvolt = <850000>;
153                                 regulator-max-microvolt = <900000>;
154                                 regulator-boot-on;
155                                 regulator-always-on;
156                         };
158                         reg_vdda: LDO3 {
159                                 regulator-name = "ldo3";
160                                 regulator-min-microvolt = <1800000>;
161                                 regulator-max-microvolt = <1800000>;
162                                 regulator-boot-on;
163                                 regulator-always-on;
164                         };
166                         reg_vdd_phy: LDO4 {
167                                 regulator-name = "ldo4";
168                                 regulator-min-microvolt = <900000>;
169                                 regulator-max-microvolt = <900000>;
170                                 regulator-boot-on;
171                                 regulator-always-on;
172                         };
174                         reg_nvcc_sd: LDO5 {
175                                 regulator-name = "ldo5";
176                                 regulator-min-microvolt = <1800000>;
177                                 regulator-max-microvolt = <3300000>;
178                         };
179                 };
180         };
183 &uart3 { /* console */
184         pinctrl-names = "default";
185         pinctrl-0 = <&pinctrl_uart3>;
186         status = "okay";
189 &usdhc1 {
190         pinctrl-names = "default", "state_100mhz", "state_200mhz";
191         pinctrl-0 = <&pinctrl_usdhc1>;
192         pinctrl-1 = <&pinctrl_usdhc1_100mhz>;
193         pinctrl-2 = <&pinctrl_usdhc1_200mhz>;
194         vmmc-supply = <&reg_vdd_3v3>;
195         vqmmc-supply = <&reg_vdd_1v8>;
196         bus-width = <8>;
197         non-removable;
198         status = "okay";
201 &wdog1 {
202         pinctrl-names = "default";
203         pinctrl-0 = <&pinctrl_wdog>;
204         fsl,ext-reset-output;
205         status = "okay";
208 &iomuxc {
209         pinctrl_ecspi1: ecspi1grp {
210                 fsl,pins = <
211                         MX8MM_IOMUXC_ECSPI1_MISO_ECSPI1_MISO            0x82
212                         MX8MM_IOMUXC_ECSPI1_MOSI_ECSPI1_MOSI            0x82
213                         MX8MM_IOMUXC_ECSPI1_SCLK_ECSPI1_SCLK            0x82
214                         MX8MM_IOMUXC_ECSPI1_SS0_GPIO5_IO9               0x19
215                 >;
216         };
218         pinctrl_i2c1: i2c1grp {
219                 fsl,pins = <
220                         MX8MM_IOMUXC_I2C1_SCL_I2C1_SCL                  0x400001c3
221                         MX8MM_IOMUXC_I2C1_SDA_I2C1_SDA                  0x400001c3
222                 >;
223         };
225         pinctrl_pmic: pmicgrp {
226                 fsl,pins = <
227                         MX8MM_IOMUXC_GPIO1_IO00_GPIO1_IO0               0x141
228                 >;
229         };
231         pinctrl_uart3: uart3grp {
232                 fsl,pins = <
233                         MX8MM_IOMUXC_UART3_RXD_UART3_DCE_RX             0x140
234                         MX8MM_IOMUXC_UART3_TXD_UART3_DCE_TX             0x140
235                 >;
236         };
238         pinctrl_usdhc1: usdhc1grp {
239                 fsl,pins = <
240                         MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK                 0x190
241                         MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD                 0x1d0
242                         MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0             0x1d0
243                         MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1             0x1d0
244                         MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2             0x1d0
245                         MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3             0x1d0
246                         MX8MM_IOMUXC_SD1_DATA4_USDHC1_DATA4             0x1d0
247                         MX8MM_IOMUXC_SD1_DATA5_USDHC1_DATA5             0x1d0
248                         MX8MM_IOMUXC_SD1_DATA6_USDHC1_DATA6             0x1d0
249                         MX8MM_IOMUXC_SD1_DATA7_USDHC1_DATA7             0x1d0
250                         MX8MM_IOMUXC_SD1_RESET_B_USDHC1_RESET_B         0x019
251                         MX8MM_IOMUXC_SD1_STROBE_USDHC1_STROBE           0x190
252                 >;
253         };
255         pinctrl_usdhc1_100mhz: usdhc1-100mhzgrp {
256                 fsl,pins = <
257                         MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK                 0x194
258                         MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD                 0x1d4
259                         MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0             0x1d4
260                         MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1             0x1d4
261                         MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2             0x1d4
262                         MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3             0x1d4
263                         MX8MM_IOMUXC_SD1_DATA4_USDHC1_DATA4             0x1d4
264                         MX8MM_IOMUXC_SD1_DATA5_USDHC1_DATA5             0x1d4
265                         MX8MM_IOMUXC_SD1_DATA6_USDHC1_DATA6             0x1d4
266                         MX8MM_IOMUXC_SD1_DATA7_USDHC1_DATA7             0x1d4
267                         MX8MM_IOMUXC_SD1_RESET_B_USDHC1_RESET_B         0x019
268                         MX8MM_IOMUXC_SD1_STROBE_USDHC1_STROBE           0x194
269                 >;
270         };
272         pinctrl_usdhc1_200mhz: usdhc1-200mhzgrp {
273                 fsl,pins = <
274                         MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK                 0x196
275                         MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD                 0x1d6
276                         MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0             0x1d6
277                         MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1             0x1d6
278                         MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2             0x1d6
279                         MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3             0x1d6
280                         MX8MM_IOMUXC_SD1_DATA4_USDHC1_DATA4             0x1d6
281                         MX8MM_IOMUXC_SD1_DATA5_USDHC1_DATA5             0x1d6
282                         MX8MM_IOMUXC_SD1_DATA6_USDHC1_DATA6             0x1d6
283                         MX8MM_IOMUXC_SD1_DATA7_USDHC1_DATA7             0x1d6
284                         MX8MM_IOMUXC_SD1_RESET_B_USDHC1_RESET_B         0x019
285                         MX8MM_IOMUXC_SD1_STROBE_USDHC1_STROBE           0x196
286                 >;
287         };
289         pinctrl_wdog: wdoggrp {
290                 fsl,pins = <
291                         MX8MM_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B            0xc6
292                 >;
293         };