1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
4 * Copyright (C) 2020 Krzysztof Kozlowski <krzk@kernel.org>
10 model = "Variscite VAR-SOM-MX8MM module";
11 compatible = "variscite,var-som-mx8mm", "fsl,imx8mm";
18 device_type = "memory";
19 reg = <0x0 0x40000000 0 0x80000000>;
22 reg_eth_phy: regulator-eth-phy {
23 compatible = "regulator-fixed";
24 pinctrl-names = "default";
25 pinctrl-0 = <&pinctrl_reg_eth_phy>;
26 regulator-name = "eth_phy_pwr";
27 regulator-min-microvolt = <3300000>;
28 regulator-max-microvolt = <3300000>;
29 gpio = <&gpio2 9 GPIO_ACTIVE_HIGH>;
35 cpu-supply = <&buck2_reg>;
39 cpu-supply = <&buck2_reg>;
43 cpu-supply = <&buck2_reg>;
47 cpu-supply = <&buck2_reg>;
51 operating-points-v2 = <&ddrc_opp_table>;
53 ddrc_opp_table: opp-table {
54 compatible = "operating-points-v2";
57 opp-hz = /bits/ 64 <25000000>;
61 opp-hz = /bits/ 64 <100000000>;
65 opp-hz = /bits/ 64 <750000000>;
71 pinctrl-names = "default";
72 pinctrl-0 = <&pinctrl_ecspi1>;
73 cs-gpios = <&gpio1 14 GPIO_ACTIVE_LOW>,
74 <&gpio1 0 GPIO_ACTIVE_LOW>;
75 /delete-property/ dmas;
76 /delete-property/ dma-names;
79 /* Resistive touch controller */
82 compatible = "ti,ads7846";
83 pinctrl-names = "default";
84 pinctrl-0 = <&pinctrl_restouch>;
85 interrupt-parent = <&gpio1>;
86 interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
88 spi-max-frequency = <1500000>;
89 pendown-gpio = <&gpio1 3 GPIO_ACTIVE_LOW>;
91 ti,x-min = /bits/ 16 <125>;
92 touchscreen-size-x = /bits/ 16 <4008>;
93 ti,y-min = /bits/ 16 <282>;
94 touchscreen-size-y = /bits/ 16 <3864>;
95 ti,x-plate-ohms = /bits/ 16 <180>;
96 touchscreen-max-pressure = /bits/ 16 <255>;
97 touchscreen-average-samples = /bits/ 16 <10>;
98 ti,debounce-tol = /bits/ 16 <3>;
99 ti,debounce-rep = /bits/ 16 <1>;
100 ti,settle-delay-usec = /bits/ 16 <150>;
107 pinctrl-names = "default";
108 pinctrl-0 = <&pinctrl_fec1>;
110 phy-handle = <ðphy>;
111 phy-supply = <®_eth_phy>;
116 #address-cells = <1>;
119 ethphy: ethernet-phy@4 {
120 compatible = "ethernet-phy-ieee802.3-c22";
122 reset-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
123 reset-assert-us = <10000>;
124 reset-deassert-us = <10000>;
130 clock-frequency = <400000>;
131 pinctrl-names = "default";
132 pinctrl-0 = <&pinctrl_i2c1>;
136 compatible = "rohm,bd71847";
138 pinctrl-names = "default";
139 pinctrl-0 = <&pinctrl_pmic>;
140 interrupt-parent = <&gpio2>;
141 interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
142 rohm,reset-snvs-powered;
145 clocks = <&osc_32k 0>;
146 clock-output-names = "clk-32k-out";
150 regulator-name = "buck1";
151 regulator-min-microvolt = <700000>;
152 regulator-max-microvolt = <1300000>;
155 regulator-ramp-delay = <1250>;
159 regulator-name = "buck2";
160 regulator-min-microvolt = <700000>;
161 regulator-max-microvolt = <1300000>;
164 regulator-ramp-delay = <1250>;
165 rohm,dvs-run-voltage = <1000000>;
166 rohm,dvs-idle-voltage = <900000>;
170 regulator-name = "buck3";
171 regulator-min-microvolt = <700000>;
172 regulator-max-microvolt = <1350000>;
178 regulator-name = "buck4";
179 regulator-min-microvolt = <3000000>;
180 regulator-max-microvolt = <3300000>;
186 regulator-name = "buck5";
187 regulator-min-microvolt = <1605000>;
188 regulator-max-microvolt = <1995000>;
194 regulator-name = "buck6";
195 regulator-min-microvolt = <800000>;
196 regulator-max-microvolt = <1400000>;
202 regulator-name = "ldo1";
203 regulator-min-microvolt = <1600000>;
204 regulator-max-microvolt = <1900000>;
210 regulator-name = "ldo2";
211 regulator-min-microvolt = <800000>;
212 regulator-max-microvolt = <900000>;
218 regulator-name = "ldo3";
219 regulator-min-microvolt = <1800000>;
220 regulator-max-microvolt = <3300000>;
226 regulator-name = "ldo4";
227 regulator-min-microvolt = <900000>;
228 regulator-max-microvolt = <1800000>;
234 regulator-compatible = "ldo5";
235 regulator-min-microvolt = <1800000>;
236 regulator-max-microvolt = <1800000>;
241 regulator-name = "ldo6";
242 regulator-min-microvolt = <900000>;
243 regulator-max-microvolt = <1800000>;
252 clock-frequency = <400000>;
253 pinctrl-names = "default";
254 pinctrl-0 = <&pinctrl_i2c3>;
257 /* TODO: configure audio, as of now just put a placeholder */
259 compatible = "wlf,wm8904";
271 pinctrl-names = "default";
272 pinctrl-0 = <&pinctrl_uart2>;
273 assigned-clocks = <&clk IMX8MM_CLK_UART2>;
274 assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_80M>;
281 pinctrl-names = "default";
282 pinctrl-0 = <&pinctrl_uart4>;
300 #address-cells = <1>;
302 pinctrl-names = "default", "state_100mhz", "state_200mhz";
303 pinctrl-0 = <&pinctrl_usdhc1>;
304 pinctrl-1 = <&pinctrl_usdhc1_100mhz>;
305 pinctrl-2 = <&pinctrl_usdhc1_200mhz>;
308 keep-power-in-suspend;
313 compatible = "brcm,bcm4329-fmac";
319 assigned-clocks = <&clk IMX8MM_CLK_USDHC2>;
320 assigned-clock-rates = <200000000>;
321 pinctrl-names = "default", "state_100mhz", "state_200mhz";
322 pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
323 pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>;
324 pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>;
325 cd-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
327 vmmc-supply = <®_usdhc2_vmmc>;
333 assigned-clocks = <&clk IMX8MM_CLK_USDHC3_ROOT>;
334 assigned-clock-rates = <400000000>;
335 pinctrl-names = "default", "state_100mhz", "state_200mhz";
336 pinctrl-0 = <&pinctrl_usdhc3>;
337 pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
338 pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
345 pinctrl-names = "default";
346 pinctrl-0 = <&pinctrl_wdog>;
347 fsl,ext-reset-output;
352 pinctrl_ecspi1: ecspi1grp {
354 MX8MM_IOMUXC_ECSPI1_SCLK_ECSPI1_SCLK 0x13
355 MX8MM_IOMUXC_ECSPI1_MOSI_ECSPI1_MOSI 0x13
356 MX8MM_IOMUXC_ECSPI1_MISO_ECSPI1_MISO 0x13
357 MX8MM_IOMUXC_GPIO1_IO14_GPIO1_IO14 0x13
358 MX8MM_IOMUXC_GPIO1_IO00_GPIO1_IO0 0x13
362 pinctrl_fec1: fec1grp {
364 MX8MM_IOMUXC_ENET_MDC_ENET1_MDC 0x3
365 MX8MM_IOMUXC_ENET_MDIO_ENET1_MDIO 0x3
366 MX8MM_IOMUXC_ENET_TD3_ENET1_RGMII_TD3 0x1f
367 MX8MM_IOMUXC_ENET_TD2_ENET1_RGMII_TD2 0x1f
368 MX8MM_IOMUXC_ENET_TD1_ENET1_RGMII_TD1 0x1f
369 MX8MM_IOMUXC_ENET_TD0_ENET1_RGMII_TD0 0x1f
370 MX8MM_IOMUXC_ENET_RD3_ENET1_RGMII_RD3 0x91
371 MX8MM_IOMUXC_ENET_RD2_ENET1_RGMII_RD2 0x91
372 MX8MM_IOMUXC_ENET_RD1_ENET1_RGMII_RD1 0x91
373 MX8MM_IOMUXC_ENET_RD0_ENET1_RGMII_RD0 0x91
374 MX8MM_IOMUXC_ENET_TXC_ENET1_RGMII_TXC 0x1f
375 MX8MM_IOMUXC_ENET_RXC_ENET1_RGMII_RXC 0x91
376 MX8MM_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL 0x91
377 MX8MM_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL 0x1f
378 MX8MM_IOMUXC_GPIO1_IO09_GPIO1_IO9 0x19
382 pinctrl_i2c1: i2c1grp {
384 MX8MM_IOMUXC_I2C1_SCL_I2C1_SCL 0x400001c3
385 MX8MM_IOMUXC_I2C1_SDA_I2C1_SDA 0x400001c3
389 pinctrl_i2c3: i2c3grp {
391 MX8MM_IOMUXC_I2C3_SCL_I2C3_SCL 0x400001c3
392 MX8MM_IOMUXC_I2C3_SDA_I2C3_SDA 0x400001c3
396 pinctrl_pmic: pmicirqgrp {
398 MX8MM_IOMUXC_SD1_DATA6_GPIO2_IO8 0x141
402 pinctrl_reg_eth_phy: regethphygrp {
404 MX8MM_IOMUXC_SD1_DATA7_GPIO2_IO9 0x41
408 pinctrl_restouch: restouchgrp {
410 MX8MM_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x1c0
414 pinctrl_uart2: uart2grp {
416 MX8MM_IOMUXC_SAI3_TXFS_UART2_DCE_RX 0x140
417 MX8MM_IOMUXC_SAI3_TXC_UART2_DCE_TX 0x140
418 MX8MM_IOMUXC_SAI3_RXC_UART2_DCE_CTS_B 0x140
419 MX8MM_IOMUXC_SAI3_RXD_UART2_DCE_RTS_B 0x140
423 pinctrl_uart4: uart4grp {
425 MX8MM_IOMUXC_UART4_RXD_UART4_DCE_RX 0x140
426 MX8MM_IOMUXC_UART4_TXD_UART4_DCE_TX 0x140
430 pinctrl_usdhc1: usdhc1grp {
432 MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK 0x190
433 MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD 0x1d0
434 MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0 0x1d0
435 MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1 0x1d0
436 MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2 0x1d0
437 MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3 0x1d0
441 pinctrl_usdhc1_100mhz: usdhc1-100mhzgrp {
443 MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK 0x194
444 MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD 0x1d4
445 MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0 0x1d4
446 MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1 0x1d4
447 MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2 0x1d4
448 MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3 0x1d4
452 pinctrl_usdhc1_200mhz: usdhc1-200mhzgrp {
454 MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK 0x196
455 MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD 0x1d6
456 MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0 0x1d6
457 MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1 0x1d6
458 MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2 0x1d6
459 MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3 0x1d6
463 pinctrl_usdhc2_gpio: usdhc2gpiogrp {
465 MX8MM_IOMUXC_GPIO1_IO10_GPIO1_IO10 0xc1
469 pinctrl_usdhc2: usdhc2grp {
471 MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x190
472 MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d0
473 MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d0
474 MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d0
475 MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d0
476 MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d0
477 MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x1d0
481 pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp {
483 MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x194
484 MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d4
485 MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d4
486 MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d4
487 MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d4
488 MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d4
489 MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x1d0
493 pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp {
495 MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x196
496 MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d6
497 MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d6
498 MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d6
499 MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d6
500 MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d6
501 MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x1d0
505 pinctrl_usdhc3: usdhc3grp {
507 MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK 0x190
508 MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d0
509 MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d0
510 MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d0
511 MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d0
512 MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d0
513 MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d0
514 MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d0
515 MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d0
516 MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d0
517 MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x190
521 pinctrl_usdhc3_100mhz: usdhc3-100mhzgrp {
523 MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK 0x194
524 MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d4
525 MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d4
526 MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d4
527 MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d4
528 MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d4
529 MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d4
530 MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d4
531 MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d4
532 MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d4
533 MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x194
537 pinctrl_usdhc3_200mhz: usdhc3-200mhzgrp {
539 MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK 0x196
540 MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d6
541 MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d6
542 MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d6
543 MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d6
544 MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d6
545 MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d6
546 MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d6
547 MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d6
548 MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d6
549 MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x196
553 pinctrl_wdog: wdoggrp {
555 MX8MM_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0x166