xref: /freebsd/sys/contrib/device-tree/src/arm64/freescale/imx8mm-beacon-som.dtsi (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
1// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2/*
3 * Copyright 2020 Compass Electronics Group, LLC
4 */
5
6/ {
7	aliases {
8		rtc0 = &rtc;
9		rtc1 = &snvs_rtc;
10	};
11
12	usdhc1_pwrseq: usdhc1_pwrseq {
13		compatible = "mmc-pwrseq-simple";
14		pinctrl-names = "default";
15		pinctrl-0 = <&pinctrl_usdhc1_gpio>;
16		reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
17		clocks = <&osc_32k>;
18		clock-names = "ext_clock";
19		post-power-on-delay-ms = <80>;
20	};
21
22	memory@40000000 {
23		device_type = "memory";
24		reg = <0x0 0x40000000 0 0x80000000>;
25	};
26};
27
28&A53_0 {
29	cpu-supply = <&buck2_reg>;
30};
31
32&A53_1 {
33	cpu-supply = <&buck2_reg>;
34};
35
36&A53_2 {
37	cpu-supply = <&buck2_reg>;
38};
39
40&A53_3 {
41	cpu-supply = <&buck2_reg>;
42};
43
44&ddrc {
45	operating-points-v2 = <&ddrc_opp_table>;
46
47	ddrc_opp_table: opp-table {
48		compatible = "operating-points-v2";
49
50		opp-25M {
51			opp-hz = /bits/ 64 <25000000>;
52		};
53
54		opp-100M {
55			opp-hz = /bits/ 64 <100000000>;
56		};
57
58		opp-750M {
59			opp-hz = /bits/ 64 <750000000>;
60		};
61	};
62};
63
64&fec1 {
65	pinctrl-names = "default";
66	pinctrl-0 = <&pinctrl_fec1>;
67	phy-mode = "rgmii-id";
68	phy-handle = <&ethphy0>;
69	fsl,magic-packet;
70	status = "okay";
71
72	mdio {
73		#address-cells = <1>;
74		#size-cells = <0>;
75
76		ethphy0: ethernet-phy@0 {
77			compatible = "ethernet-phy-ieee802.3-c22";
78			reg = <0>;
79		};
80	};
81};
82
83&flexspi {
84	pinctrl-names = "default";
85	pinctrl-0 = <&pinctrl_flexspi>;
86	status = "okay";
87
88	flash@0 {
89		reg = <0>;
90		#address-cells = <1>;
91		#size-cells = <1>;
92		compatible = "jedec,spi-nor";
93		spi-max-frequency = <80000000>;
94		spi-tx-bus-width = <4>;
95		spi-rx-bus-width = <4>;
96	};
97};
98
99&i2c1 {
100	clock-frequency = <400000>;
101	pinctrl-names = "default";
102	pinctrl-0 = <&pinctrl_i2c1>;
103	status = "okay";
104
105	pmic@4b {
106		compatible = "rohm,bd71847";
107		reg = <0x4b>;
108		pinctrl-names = "default";
109		pinctrl-0 = <&pinctrl_pmic>;
110		interrupt-parent = <&gpio1>;
111		interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
112		rohm,reset-snvs-powered;
113
114		#clock-cells = <0>;
115		clocks = <&osc_32k 0>;
116		clock-output-names = "clk-32k-out";
117
118		regulators {
119			buck1_reg: BUCK1 {
120				regulator-name = "buck1";
121				regulator-min-microvolt = <700000>;
122				regulator-max-microvolt = <1300000>;
123				regulator-boot-on;
124				regulator-always-on;
125				regulator-ramp-delay = <1250>;
126			};
127
128			buck2_reg: BUCK2 {
129				regulator-name = "buck2";
130				regulator-min-microvolt = <700000>;
131				regulator-max-microvolt = <1300000>;
132				regulator-boot-on;
133				regulator-always-on;
134				regulator-ramp-delay = <1250>;
135				rohm,dvs-run-voltage = <1000000>;
136				rohm,dvs-idle-voltage = <900000>;
137			};
138
139			buck3_reg: BUCK3 {
140				// BUCK5 in datasheet
141				regulator-name = "buck3";
142				regulator-min-microvolt = <700000>;
143				regulator-max-microvolt = <1350000>;
144				regulator-boot-on;
145				regulator-always-on;
146			};
147
148			buck4_reg: BUCK4 {
149				// BUCK6 in datasheet
150				regulator-name = "buck4";
151				regulator-min-microvolt = <3000000>;
152				regulator-max-microvolt = <3300000>;
153				regulator-boot-on;
154				regulator-always-on;
155			};
156
157			buck5_reg: BUCK5 {
158				// BUCK7 in datasheet
159				regulator-name = "buck5";
160				regulator-min-microvolt = <1605000>;
161				regulator-max-microvolt = <1995000>;
162				regulator-boot-on;
163				regulator-always-on;
164			};
165
166			buck6_reg: BUCK6 {
167				// BUCK8 in datasheet
168				regulator-name = "buck6";
169				regulator-min-microvolt = <800000>;
170				regulator-max-microvolt = <1400000>;
171				regulator-boot-on;
172				regulator-always-on;
173			};
174
175			ldo1_reg: LDO1 {
176				regulator-name = "ldo1";
177				regulator-min-microvolt = <1600000>;
178				regulator-max-microvolt = <3300000>;
179				regulator-boot-on;
180				regulator-always-on;
181			};
182
183			ldo2_reg: LDO2 {
184				regulator-name = "ldo2";
185				regulator-min-microvolt = <800000>;
186				regulator-max-microvolt = <900000>;
187				regulator-boot-on;
188				regulator-always-on;
189			};
190
191			ldo3_reg: LDO3 {
192				regulator-name = "ldo3";
193				regulator-min-microvolt = <1800000>;
194				regulator-max-microvolt = <3300000>;
195				regulator-boot-on;
196				regulator-always-on;
197			};
198
199			ldo4_reg: LDO4 {
200				regulator-name = "ldo4";
201				regulator-min-microvolt = <900000>;
202				regulator-max-microvolt = <1800000>;
203				regulator-boot-on;
204				regulator-always-on;
205			};
206
207			ldo6_reg: LDO6 {
208				regulator-name = "ldo6";
209				regulator-min-microvolt = <900000>;
210				regulator-max-microvolt = <1800000>;
211				regulator-boot-on;
212				regulator-always-on;
213			};
214		};
215	};
216};
217
218&i2c3 {
219	clock-frequency = <400000>;
220	pinctrl-names = "default";
221	pinctrl-0 = <&pinctrl_i2c3>;
222	status = "okay";
223
224	eeprom@50 {
225		compatible = "microchip,24c64", "atmel,24c64";
226		pagesize = <32>;
227		read-only;	/* Manufacturing EEPROM programmed at factory */
228		reg = <0x50>;
229	};
230
231	rtc: rtc@51 {
232		compatible = "nxp,pcf85263";
233		reg = <0x51>;
234	};
235};
236
237&uart1 {
238	pinctrl-names = "default";
239	pinctrl-0 = <&pinctrl_uart1>;
240	assigned-clocks = <&clk IMX8MM_CLK_UART1>;
241	assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_80M>;
242	uart-has-rtscts;
243	status = "okay";
244
245	bluetooth {
246		compatible = "brcm,bcm43438-bt";
247		shutdown-gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>;
248		host-wakeup-gpios = <&gpio2 8 GPIO_ACTIVE_HIGH>;
249		device-wakeup-gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>;
250		clocks = <&osc_32k>;
251		max-speed = <4000000>;
252		clock-names = "extclk";
253	};
254};
255
256&usdhc1 {
257	#address-cells = <1>;
258	#size-cells = <0>;
259	pinctrl-names = "default", "state_100mhz", "state_200mhz";
260	pinctrl-0 = <&pinctrl_usdhc1>;
261	pinctrl-1 = <&pinctrl_usdhc1_100mhz>;
262	pinctrl-2 = <&pinctrl_usdhc1_200mhz>;
263	bus-width = <4>;
264	non-removable;
265	cap-power-off-card;
266	pm-ignore-notify;
267	keep-power-in-suspend;
268	mmc-pwrseq = <&usdhc1_pwrseq>;
269	status = "okay";
270
271	brcmf: bcrmf@1 {
272		reg = <1>;
273		compatible = "brcm,bcm4329-fmac";
274		pinctrl-names = "default";
275		pinctrl-0 = <&pinctrl_wlan>;
276		interrupt-parent = <&gpio2>;
277		interrupts = <9 IRQ_TYPE_LEVEL_HIGH>;
278		interrupt-names = "host-wake";
279	};
280};
281
282&usdhc3 {
283	pinctrl-names = "default", "state_100mhz", "state_200mhz";
284	pinctrl-0 = <&pinctrl_usdhc3>;
285	pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
286	pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
287	bus-width = <8>;
288	non-removable;
289	status = "okay";
290};
291
292&wdog1 {
293	pinctrl-names = "default";
294	pinctrl-0 = <&pinctrl_wdog>;
295	fsl,ext-reset-output;
296	status = "okay";
297};
298
299&iomuxc {
300	pinctrl_fec1: fec1grp {
301		fsl,pins = <
302			MX8MM_IOMUXC_ENET_MDC_ENET1_MDC		0x3
303			MX8MM_IOMUXC_ENET_MDIO_ENET1_MDIO	0x3
304			MX8MM_IOMUXC_ENET_TD3_ENET1_RGMII_TD3	0x1f
305			MX8MM_IOMUXC_ENET_TD2_ENET1_RGMII_TD2	0x1f
306			MX8MM_IOMUXC_ENET_TD1_ENET1_RGMII_TD1	0x1f
307			MX8MM_IOMUXC_ENET_TD0_ENET1_RGMII_TD0	0x1f
308			MX8MM_IOMUXC_ENET_RD3_ENET1_RGMII_RD3	0x91
309			MX8MM_IOMUXC_ENET_RD2_ENET1_RGMII_RD2	0x91
310			MX8MM_IOMUXC_ENET_RD1_ENET1_RGMII_RD1	0x91
311			MX8MM_IOMUXC_ENET_RD0_ENET1_RGMII_RD0	0x91
312			MX8MM_IOMUXC_ENET_TXC_ENET1_RGMII_TXC	0x1f
313			MX8MM_IOMUXC_ENET_RXC_ENET1_RGMII_RXC	0x91
314			MX8MM_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL	0x91
315			MX8MM_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL	0x1f
316			MX8MM_IOMUXC_SAI2_RXC_GPIO4_IO22	0x19
317		>;
318	};
319
320	pinctrl_i2c1: i2c1grp {
321		fsl,pins = <
322			MX8MM_IOMUXC_I2C1_SCL_I2C1_SCL		0x400001c3
323			MX8MM_IOMUXC_I2C1_SDA_I2C1_SDA		0x400001c3
324		>;
325	};
326
327	pinctrl_i2c3: i2c3grp {
328		fsl,pins = <
329			MX8MM_IOMUXC_I2C3_SCL_I2C3_SCL		0x400001c3
330			MX8MM_IOMUXC_I2C3_SDA_I2C3_SDA		0x400001c3
331		>;
332	};
333
334	pinctrl_flexspi: flexspigrp {
335		fsl,pins = <
336			MX8MM_IOMUXC_NAND_ALE_QSPI_A_SCLK               0x1c2
337			MX8MM_IOMUXC_NAND_CE0_B_QSPI_A_SS0_B            0x82
338			MX8MM_IOMUXC_NAND_DATA00_QSPI_A_DATA0           0x82
339			MX8MM_IOMUXC_NAND_DATA01_QSPI_A_DATA1           0x82
340			MX8MM_IOMUXC_NAND_DATA02_QSPI_A_DATA2           0x82
341			MX8MM_IOMUXC_NAND_DATA03_QSPI_A_DATA3           0x82
342		>;
343	};
344
345	pinctrl_pmic: pmicirqgrp {
346		fsl,pins = <
347			MX8MM_IOMUXC_GPIO1_IO03_GPIO1_IO3	0x141
348		>;
349	};
350
351	pinctrl_uart1: uart1grp {
352		fsl,pins = <
353			MX8MM_IOMUXC_UART1_RXD_UART1_DCE_RX	0x140
354			MX8MM_IOMUXC_UART1_TXD_UART1_DCE_TX	0x140
355			MX8MM_IOMUXC_UART3_RXD_UART1_DCE_CTS_B	0x140
356			MX8MM_IOMUXC_UART3_TXD_UART1_DCE_RTS_B	0x140
357			MX8MM_IOMUXC_SD1_DATA4_GPIO2_IO6	0x19
358			MX8MM_IOMUXC_SD1_DATA5_GPIO2_IO7	0x19
359			MX8MM_IOMUXC_SD1_DATA6_GPIO2_IO8	0x19
360			MX8MM_IOMUXC_GPIO1_IO00_ANAMIX_REF_CLK_32K	0x141
361		>;
362	};
363
364	pinctrl_usdhc1_gpio: usdhc1gpiogrp {
365		fsl,pins = <
366			MX8MM_IOMUXC_SD1_RESET_B_GPIO2_IO10	0x41
367		>;
368	};
369
370	pinctrl_usdhc1: usdhc1grp {
371		fsl,pins = <
372			MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK		0x190
373			MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD		0x1d0
374			MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0	0x1d0
375			MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1	0x1d0
376			MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2	0x1d0
377			MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3	0x1d0
378		>;
379	};
380
381	pinctrl_usdhc1_100mhz: usdhc1-100mhzgrp {
382		fsl,pins = <
383			MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK		0x194
384			MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD		0x1d4
385			MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0	0x1d4
386			MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1	0x1d4
387			MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2	0x1d4
388			MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3	0x1d4
389		>;
390	};
391
392	pinctrl_usdhc1_200mhz: usdhc1-200mhzgrp {
393		fsl,pins = <
394			MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK		0x196
395			MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD		0x1d6
396			MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0	0x1d6
397			MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1	0x1d6
398			MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2	0x1d6
399			MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3	0x1d6
400		>;
401	};
402
403	pinctrl_usdhc3: usdhc3grp {
404		fsl,pins = <
405			MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK		0x190
406			MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD		0x1d0
407			MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0		0x1d0
408			MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1		0x1d0
409			MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2		0x1d0
410			MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3		0x1d0
411			MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4		0x1d0
412			MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5		0x1d0
413			MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6		0x1d0
414			MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7		0x1d0
415			MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE		0x190
416		>;
417	};
418
419	pinctrl_usdhc3_100mhz: usdhc3-100mhzgrp {
420		fsl,pins = <
421			MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK		0x194
422			MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD		0x1d4
423			MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0		0x1d4
424			MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1		0x1d4
425			MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2		0x1d4
426			MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3		0x1d4
427			MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4		0x1d4
428			MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5		0x1d4
429			MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6		0x1d4
430			MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7		0x1d4
431			MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE		0x194
432		>;
433	};
434
435	pinctrl_usdhc3_200mhz: usdhc3-200mhzgrp {
436		fsl,pins = <
437			MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK		0x196
438			MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD		0x1d6
439			MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0		0x1d6
440			MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1		0x1d6
441			MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2		0x1d6
442			MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3		0x1d6
443			MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4		0x1d6
444			MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5		0x1d6
445			MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6		0x1d6
446			MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7		0x1d6
447			MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE		0x196
448		>;
449	};
450
451	pinctrl_wdog: wdoggrp {
452		fsl,pins = <
453			MX8MM_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B		0x166
454		>;
455	};
456
457	pinctrl_wlan: wlangrp {
458		fsl,pins = <
459			MX8MM_IOMUXC_SD1_DATA7_GPIO2_IO9		0x111
460		>;
461	};
462};
463