treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / arm64 / boot / dts / freescale / imx8mq-sr-som.dtsi
blob3dc44114da0e00bfdf40672a39244cd16b562cae
1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
2 /*
3  * Copyright (C) 2018 Jon Nettleton <jon@solid-run.com>
4  */
6 #include "imx8mq.dtsi"
8 / {
9         reg_vdd_3v3: regulator-vdd-3v3 {
10                 compatible = "regulator-fixed";
11                 regulator-always-on;
12                 regulator-name = "vdd_3v3";
13                 regulator-min-microvolt = <3300000>;
14                 regulator-max-microvolt = <3300000>;
15         };
18 &fec1 {
19         pinctrl-names = "default";
20         pinctrl-0 = <&pinctrl_fec1>;
21         phy-mode = "rgmii-id";
22         phy-handle = <&ethphy0>;
23         phy-reset-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
24         phy-reset-duration = <2>;
25         fsl,magic-packet;
26         status = "okay";
28         mdio {
29                 #address-cells = <1>;
30                 #size-cells = <0>;
32                 ethphy0: ethernet-phy@4 {
33                         compatible = "ethernet-phy-ieee802.3-c22";
34                         reg = <4>;
35                 };
36         };
39 &i2c1 {
40         pinctrl-names = "default";
41         pinctrl-0 = <&pinctrl_i2c1>;
42         clock-frequency = <400000>;
43         status = "okay";
45         pmic: pmic@8 {
46                 compatible = "fsl,pfuze100";
47                 reg = <0x08>;
49                 regulators {
50                         sw1a_reg: sw1ab {
51                                 regulator-min-microvolt = <300000>;
52                                 regulator-max-microvolt = <1875000>;
53                         };
55                         sw1c_reg: sw1c {
56                                 regulator-min-microvolt = <300000>;
57                                 regulator-max-microvolt = <1875000>;
58                         };
60                         sw2_reg: sw2 {
61                                 regulator-min-microvolt = <800000>;
62                                 regulator-max-microvolt = <3300000>;
63                                 regulator-always-on;
64                         };
66                         sw3a_reg: sw3ab {
67                                 regulator-min-microvolt = <400000>;
68                                 regulator-max-microvolt = <1975000>;
69                                 regulator-always-on;
70                         };
72                         sw4_reg: sw4 {
73                                 regulator-min-microvolt = <800000>;
74                                 regulator-max-microvolt = <3300000>;
75                                 regulator-always-on;
76                         };
78                         swbst_reg: swbst {
79                                 regulator-min-microvolt = <5000000>;
80                                 regulator-max-microvolt = <5150000>;
81                         };
83                         snvs_reg: vsnvs {
84                                 regulator-min-microvolt = <1000000>;
85                                 regulator-max-microvolt = <3000000>;
86                                 regulator-always-on;
87                         };
89                         vref_reg: vrefddr {
90                                 regulator-always-on;
91                         };
93                         vgen1_reg: vgen1 {
94                                 regulator-min-microvolt = <800000>;
95                                 regulator-max-microvolt = <1550000>;
96                         };
98                         vgen2_reg: vgen2 {
99                                 regulator-min-microvolt = <800000>;
100                                 regulator-max-microvolt = <1550000>;
101                                 regulator-always-on;
102                         };
104                         vgen3_reg: vgen3 {
105                                 regulator-min-microvolt = <1800000>;
106                                 regulator-max-microvolt = <3300000>;
107                                 regulator-always-on;
108                         };
110                         vgen4_reg: vgen4 {
111                                 regulator-min-microvolt = <1800000>;
112                                 regulator-max-microvolt = <3300000>;
113                                 regulator-always-on;
114                         };
116                         vgen5_reg: vgen5 {
117                                 regulator-min-microvolt = <1800000>;
118                                 regulator-max-microvolt = <3300000>;
119                                 regulator-always-on;
120                         };
122                         vgen6_reg: vgen6 {
123                                 regulator-min-microvolt = <1800000>;
124                                 regulator-max-microvolt = <3300000>;
125                         };
126                 };
127         };
130 &pgc_gpu{
131         power-supply = <&sw1a_reg>;
134 &pgc_vpu {
135         power-supply = <&sw1c_reg>;
138 &qspi0 {
139         pinctrl-names = "default";
140         pinctrl-0 = <&pinctrl_qspi>;
141         status = "okay";
143         /* SPI flash; not assembled by default */
144         spi_flash: flash@0 {
145                 #address-cells = <1>;
146                 #size-cells = <1>;
147                 reg = <0>;
148                 compatible = "micron,n25q256a", "jedec,spi-nor";
149                 spi-max-frequency = <29000000>;
150                 status = "disabled";
151         };
154 &uart1 { /* console */
155         pinctrl-names = "default";
156         pinctrl-0 = <&pinctrl_uart1>;
157         assigned-clocks = <&clk IMX8MQ_CLK_UART1>;
158         assigned-clock-parents = <&clk IMX8MQ_CLK_25M>;
159         assigned-clock-rates = <25000000>;
160         status = "okay";
163 &uart4 { /* ublox BT */
164         pinctrl-names = "default";
165         pinctrl-0 = <&pinctrl_uart4>;
166         assigned-clocks = <&clk IMX8MQ_CLK_UART4>;
167         assigned-clock-parents = <&clk IMX8MQ_SYS1_PLL_80M>;
168         assigned-clock-rates = <80000000>;
169         status = "okay";
172 &usdhc1 {
173         assigned-clocks = <&clk IMX8MQ_CLK_USDHC1>;
174         assigned-clock-rates = <400000000>;
175         pinctrl-names = "default", "state_100mhz", "state_200mhz";
176         pinctrl-0 = <&pinctrl_usdhc1>;
177         pinctrl-1 = <&pinctrl_usdhc1_100mhz>;
178         pinctrl-2 = <&pinctrl_usdhc1_200mhz>;
179         bus-width = <8>;
180         non-removable;
181         status = "okay";
184 &wdog1 {
185         pinctrl-names = "default";
186         pinctrl-0 = <&pinctrl_wdog>;
187         fsl,ext-reset-output;
188         status = "okay";
191 &iomuxc {
192         pinctrl_fec1: fec1grp {
193                 fsl,pins = <
194                         MX8MQ_IOMUXC_ENET_MDC_ENET1_MDC         0x3
195                         MX8MQ_IOMUXC_ENET_MDIO_ENET1_MDIO       0x23
196                         MX8MQ_IOMUXC_ENET_TD3_ENET1_RGMII_TD3   0x1f
197                         MX8MQ_IOMUXC_ENET_TD2_ENET1_RGMII_TD2   0x1f
198                         MX8MQ_IOMUXC_ENET_TD1_ENET1_RGMII_TD1   0x1f
199                         MX8MQ_IOMUXC_ENET_TD0_ENET1_RGMII_TD0   0x1f
200                         MX8MQ_IOMUXC_ENET_RD3_ENET1_RGMII_RD3   0x91
201                         MX8MQ_IOMUXC_ENET_RD2_ENET1_RGMII_RD2   0x91
202                         MX8MQ_IOMUXC_ENET_RD1_ENET1_RGMII_RD1   0x91
203                         MX8MQ_IOMUXC_ENET_RD0_ENET1_RGMII_RD0   0x91
204                         MX8MQ_IOMUXC_ENET_TXC_ENET1_RGMII_TXC   0x1f
205                         MX8MQ_IOMUXC_ENET_RXC_ENET1_RGMII_RXC   0x91
206                         MX8MQ_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL     0x91
207                         MX8MQ_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL     0x1f
208                         MX8MQ_IOMUXC_GPIO1_IO09_GPIO1_IO9       0x19
209                 >;
210         };
212         pinctrl_i2c1: i2c1grp {
213                 fsl,pins = <
214                         MX8MQ_IOMUXC_I2C1_SCL_I2C1_SCL                  0x4000007f
215                         MX8MQ_IOMUXC_I2C1_SDA_I2C1_SDA                  0x4000007f
216                 >;
217         };
219         pinctrl_pcie0: pcie0grp {
220                 fsl,pins = <
221                         MX8MQ_IOMUXC_I2C4_SCL_PCIE1_CLKREQ_B    0x74
222                         MX8MQ_IOMUXC_SPDIF_EXT_CLK_GPIO5_IO5    0x16
223                         MX8MQ_IOMUXC_SAI2_RXFS_GPIO4_IO21       0x16
224                 >;
225         };
227         pinctrl_qspi: qspigrp {
228                 fsl,pins = <
229                         MX8MQ_IOMUXC_NAND_ALE_QSPI_A_SCLK       0x82
230                         MX8MQ_IOMUXC_NAND_CE0_B_QSPI_A_SS0_B    0x82
231                         MX8MQ_IOMUXC_NAND_DATA00_QSPI_A_DATA0   0x82
232                         MX8MQ_IOMUXC_NAND_DATA01_QSPI_A_DATA1   0x82
233                         MX8MQ_IOMUXC_NAND_DATA02_QSPI_A_DATA2   0x82
234                         MX8MQ_IOMUXC_NAND_DATA03_QSPI_A_DATA3   0x82
236                 >;
237         };
239         pinctrl_uart1: uart1grp {
240                 fsl,pins = <
241                         MX8MQ_IOMUXC_UART1_RXD_UART1_DCE_RX             0x49
242                         MX8MQ_IOMUXC_UART1_TXD_UART1_DCE_TX             0x49
243                         MX8MQ_IOMUXC_NAND_CE1_B_GPIO3_IO2               0x19
244                 >;
245         };
247         pinctrl_uart4: uart4grp {
248                 fsl,pins = <
249                         MX8MQ_IOMUXC_UART4_TXD_UART4_DCE_TX             0x49
250                         MX8MQ_IOMUXC_UART4_RXD_UART4_DCE_RX             0x49
251                         MX8MQ_IOMUXC_SAI3_TXD_GPIO5_IO1                 0x19
252                 >;
253         };
255         pinctrl_usdhc1: usdhc1grp {
256                 fsl,pins = <
257                         MX8MQ_IOMUXC_SD1_CLK_USDHC1_CLK                 0x83
258                         MX8MQ_IOMUXC_SD1_CMD_USDHC1_CMD                 0xc3
259                         MX8MQ_IOMUXC_SD1_DATA0_USDHC1_DATA0             0xc3
260                         MX8MQ_IOMUXC_SD1_DATA1_USDHC1_DATA1             0xc3
261                         MX8MQ_IOMUXC_SD1_DATA2_USDHC1_DATA2             0xc3
262                         MX8MQ_IOMUXC_SD1_DATA3_USDHC1_DATA3             0xc3
263                         MX8MQ_IOMUXC_SD1_DATA4_USDHC1_DATA4             0xc3
264                         MX8MQ_IOMUXC_SD1_DATA5_USDHC1_DATA5             0xc3
265                         MX8MQ_IOMUXC_SD1_DATA6_USDHC1_DATA6             0xc3
266                         MX8MQ_IOMUXC_SD1_DATA7_USDHC1_DATA7             0xc3
267                         MX8MQ_IOMUXC_SD1_STROBE_USDHC1_STROBE           0x83
268                         MX8MQ_IOMUXC_SD1_RESET_B_USDHC1_RESET_B         0xc1
269                 >;
270         };
272         pinctrl_usdhc1_100mhz: usdhc1grp100mhz {
273                 fsl,pins = <
274                         MX8MQ_IOMUXC_SD1_CLK_USDHC1_CLK                 0x8d
275                         MX8MQ_IOMUXC_SD1_CMD_USDHC1_CMD                 0xcd
276                         MX8MQ_IOMUXC_SD1_DATA0_USDHC1_DATA0             0xcd
277                         MX8MQ_IOMUXC_SD1_DATA1_USDHC1_DATA1             0xcd
278                         MX8MQ_IOMUXC_SD1_DATA2_USDHC1_DATA2             0xcd
279                         MX8MQ_IOMUXC_SD1_DATA3_USDHC1_DATA3             0xcd
280                         MX8MQ_IOMUXC_SD1_DATA4_USDHC1_DATA4             0xcd
281                         MX8MQ_IOMUXC_SD1_DATA5_USDHC1_DATA5             0xcd
282                         MX8MQ_IOMUXC_SD1_DATA6_USDHC1_DATA6             0xcd
283                         MX8MQ_IOMUXC_SD1_DATA7_USDHC1_DATA7             0xcd
284                         MX8MQ_IOMUXC_SD1_STROBE_USDHC1_STROBE           0x8d
285                         MX8MQ_IOMUXC_SD1_RESET_B_USDHC1_RESET_B         0xc1
286                 >;
287         };
289         pinctrl_usdhc1_200mhz: usdhc1grp200mhz {
290                 fsl,pins = <
291                         MX8MQ_IOMUXC_SD1_CLK_USDHC1_CLK                 0x9f
292                         MX8MQ_IOMUXC_SD1_CMD_USDHC1_CMD                 0xdf
293                         MX8MQ_IOMUXC_SD1_DATA0_USDHC1_DATA0             0xdf
294                         MX8MQ_IOMUXC_SD1_DATA1_USDHC1_DATA1             0xdf
295                         MX8MQ_IOMUXC_SD1_DATA2_USDHC1_DATA2             0xdf
296                         MX8MQ_IOMUXC_SD1_DATA3_USDHC1_DATA3             0xdf
297                         MX8MQ_IOMUXC_SD1_DATA4_USDHC1_DATA4             0xdf
298                         MX8MQ_IOMUXC_SD1_DATA5_USDHC1_DATA5             0xdf
299                         MX8MQ_IOMUXC_SD1_DATA6_USDHC1_DATA6             0xdf
300                         MX8MQ_IOMUXC_SD1_DATA7_USDHC1_DATA7             0xdf
301                         MX8MQ_IOMUXC_SD1_STROBE_USDHC1_STROBE           0x9f
302                         MX8MQ_IOMUXC_SD1_RESET_B_USDHC1_RESET_B         0xc1
303                 >;
304         };
306         pinctrl_wdog: wdoggrp {
307                 fsl,pins = <
308                         MX8MQ_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0xc6
309                 >;
310         };