blob: 85eb3d8da17b3409fb4530e7478aab68428c90d2 [file] [log] [blame]
Michael Krummsdorfacdbe522020-04-09 15:21:37 +02001// SPDX-License-Identifier: GPL-2.0+
2//
3// Copyright (C) 2020 TQ-Systems GmbH
4
5/ {
6 aliases {
7 mmc0 = &usdhc3;
8 /delete-property/ mmc1;
9 /delete-property/ mmc2;
10 };
11
12 regulators {
13 compatible = "simple-bus";
14 #address-cells = <1>;
15 #size-cells = <0>;
16
17 reg_3p3v: regulator@0 {
18 compatible = "regulator-fixed";
19 regulator-name = "supply-3p3v";
20 reg = <0>;
21 regulator-min-microvolt = <3300000>;
22 regulator-max-microvolt = <3300000>;
23 regulator-always-on;
24 };
25 };
26};
27
28&ecspi1 {
29 pinctrl-names = "default";
30 pinctrl-0 = <&pinctrl_ecspi1>;
31 fsl,spi-num-chipselects = <1>;
32 cs-gpios = <&gpio3 19 0>;
33 status = "okay";
34
35 flash: m25p80@0 {
36 status = "okay";
37 compatible = "micron,n25q128a13", "n25q128a13";
38 spi-max-frequency = <50000000>;
39 reg = <0>;
40 #address-cells = <1>;
41 #size-cells = <1>;
42 m25p,fast-read;
43 };
44};
45
46&iomuxc {
47 tqma6 {
48 pinctrl_ecspi1: ecspi1grp {
49 fsl,pins = <
50 /* HYS, SPEED = MED, 100k up, DSE = 011, SRE_FAST */
51 MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x1b099
52 MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0xb099
53 MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0xb099
54 /* eCSPI1 SS1 */
55 MX6QDL_PAD_EIM_D19__GPIO3_IO19 0xb099
56 >;
57 };
58
59 pinctrl_i2c1_tqma6: i2c1-tqma6grp {
60 fsl,pins = <
61 MX6QDL_PAD_CSI0_DAT8__I2C1_SDA 0x4001b899
62 MX6QDL_PAD_CSI0_DAT9__I2C1_SCL 0x4001b899
63 >;
64 };
65
66 pinctrl_i2c3_tqma6: i2c3-tqma6grp {
67 fsl,pins = <
68 MX6QDL_PAD_GPIO_5__I2C3_SCL 0x4001b899
69 MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b899
70 >;
71 };
72
73 pinctrl_pmic: pmicgrp {
74 fsl,pins = <
75 MX6QDL_PAD_NANDF_RB0__GPIO6_IO10 0x1b099 /* PMIC irq */
76 >;
77 };
78
79 pinctrl_usdhc3: usdhc3grp {
80 fsl,pins = <
81 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059
82 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059
83 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059
84 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059
85 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059
86 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059
87 MX6QDL_PAD_SD3_DAT4__SD3_DATA4 0x17059
88 MX6QDL_PAD_SD3_DAT5__SD3_DATA5 0x17059
89 MX6QDL_PAD_SD3_DAT6__SD3_DATA6 0x17059
90 MX6QDL_PAD_SD3_DAT7__SD3_DATA7 0x17059
91 >;
92 };
93 };
94};
95
96&pmic {
97 pinctrl-names = "default";
98 pinctrl-0 = <&pinctrl_pmic>;
99 interrupt-parent = <&gpio6>;
100 interrupts = <10 8>;
101
102 regulators {
103 reg_vddcore: sw1ab {
104 regulator-min-microvolt = <300000>;
105 regulator-max-microvolt = <1875000>;
106 regulator-always-on;
107 };
108
109 reg_vddsoc: sw1c {
110 regulator-min-microvolt = <300000>;
111 regulator-max-microvolt = <1875000>;
112 regulator-always-on;
113 };
114
115 reg_gen_3v3: sw2 {
116 regulator-min-microvolt = <800000>;
117 regulator-max-microvolt = <3300000>;
118 regulator-always-on;
119 };
120
121 reg_ddr_1v5a: sw3a {
122 regulator-min-microvolt = <400000>;
123 regulator-max-microvolt = <1975000>;
124 regulator-always-on;
125 };
126
127 reg_ddr_1v5b: sw3b {
128 regulator-min-microvolt = <400000>;
129 regulator-max-microvolt = <1975000>;
130 regulator-always-on;
131 };
132
133 sw4_reg: sw4 {
134 regulator-min-microvolt = <800000>;
135 regulator-max-microvolt = <3300000>;
136 regulator-always-on;
137 };
138
139 reg_5v_600mA: swbst {
140 regulator-min-microvolt = <5000000>;
141 regulator-max-microvolt = <5150000>;
142 regulator-always-on;
143 };
144
145 reg_snvs_3v: vsnvs {
146 regulator-min-microvolt = <1500000>;
147 regulator-max-microvolt = <3000000>;
148 regulator-always-on;
149 };
150
151 reg_vrefddr: vrefddr {
152 regulator-boot-on;
153 regulator-always-on;
154 };
155
156 reg_vgen1_1v5: vgen1 {
157 regulator-min-microvolt = <800000>;
158 regulator-max-microvolt = <1550000>;
159 /* not used */
160 };
161
162 reg_vgen2_1v2_eth: vgen2 {
163 regulator-min-microvolt = <800000>;
164 regulator-max-microvolt = <1550000>;
165 regulator-always-on;
166 };
167
168 reg_vgen3_2v8: vgen3 {
169 regulator-min-microvolt = <1800000>;
170 regulator-max-microvolt = <3300000>;
171 regulator-always-on;
172 };
173
174 reg_vgen4_1v8: vgen4 {
175 regulator-min-microvolt = <1800000>;
176 regulator-max-microvolt = <3300000>;
177 regulator-always-on;
178 };
179
180 reg_vgen5_1v8_eth: vgen5 {
181 regulator-min-microvolt = <1800000>;
182 regulator-max-microvolt = <3300000>;
183 regulator-always-on;
184 };
185
186 reg_vgen6_3v3: vgen6 {
187 regulator-min-microvolt = <1800000>;
188 regulator-max-microvolt = <3300000>;
189 regulator-always-on;
190 };
191 };
192};
193
194/* eMMC */
195&usdhc3 {
196 pinctrl-names = "default";
197 pinctrl-0 = <&pinctrl_usdhc3>;
198 vmmc-supply = <&reg_3p3v>;
199 non-removable;
200 disable-wp;
201 bus-width = <8>;
202 #address-cells = <1>;
203 #size-cells = <0>;
204 status = "okay";
205
206 mmccard: mmccard@0 {
207 reg = <0>;
208 compatible = "mmc-card";
209 broken-hpi;
210 };
211};