blob: 0e5d329b1499da02773aad299171bdc954d860e9 [file] [log] [blame]
Marek Vasuteaee3032023-09-21 20:44:20 +02001// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2/*
3 * Copyright (C) 2023 Marek Vasut <marex@denx.de>
4 */
5/dts-v1/;
6/plugin/;
7
8#include <dt-bindings/gpio/gpio.h>
9#include <dt-bindings/interrupt-controller/irq.h>
10
11#include "imx8mp-pinfunc.h"
12
13&brcmf {
14 reset-gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
15};
16
17&eeprom0 { /* EEPROM with EQoS MAC address */
18 compatible = "atmel,24c02";
19 pagesize = <16>;
20};
21
22&eeprom1 { /* EEPROM with FEC MAC address */
23 compatible = "atmel,24c02";
24 pagesize = <16>;
25};
26
Marek Vasut3d9a20d2023-10-16 02:05:25 +020027&eeprom0wl {
28 status = "disabled";
29};
30
31&eeprom1wl {
32 status = "disabled";
33};
34
Marek Vasuteaee3032023-09-21 20:44:20 +020035&ethphy0f { /* SMSC LAN8740Ai */
36 pinctrl-0 = <&pinctrl_ethphy0 &pinctrl_ioexp>;
37 reset-gpios = <&gpio3 20 GPIO_ACTIVE_LOW>;
38};
39
40&ethphy0g { /* Micrel KSZ9131RNXI */
41 pinctrl-0 = <&pinctrl_ethphy0 &pinctrl_ioexp>;
42 reset-gpios = <&gpio3 20 GPIO_ACTIVE_LOW>;
43};
44
45&i2c3 {
46 adc@48 {
47 compatible = "ti,tla2024";
48 interrupts-extended;
49 };
50};
51
52&ioexp {
53 status = "disabled";
54};
55
56&reg_eth_vio {
57 gpio = <&gpio2 10 GPIO_ACTIVE_LOW>;
58 pinctrl-0 = <&pinctrl_enet_vio>;
59 pinctrl-names = "default";
60};
61
62&rv3032 {
63 pinctrl-names = "default";
64 pinctrl-0 = <&pinctrl_rtc>;
65 interrupts-extended = <&gpio5 5 IRQ_TYPE_LEVEL_LOW>;
66};
67
68&uart2 {
69 bluetooth {
70 pinctrl-names = "default";
71 pinctrl-0 = <&pinctrl_uart2_bt>;
72 shutdown-gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
73 };
74};
75
76&usb_dwc3_0 {
77 pinctrl-names = "default";
78 pinctrl-0 = <&pinctrl_usb0_vbus>;
79};
80
81&usdhc1 {
82 pinctrl-0 = <&pinctrl_usdhc1 &pinctrl_usdhc1_wl_reg_en>;
83 pinctrl-1 = <&pinctrl_usdhc1_100mhz &pinctrl_usdhc1_wl_reg_en>;
84 pinctrl-2 = <&pinctrl_usdhc1_200mhz &pinctrl_usdhc1_wl_reg_en>;
85};
86
87&iomuxc {
88 pinctrl-0 = <&pinctrl_hog_base
89 &pinctrl_dhcom_a &pinctrl_dhcom_b &pinctrl_dhcom_c
90 &pinctrl_dhcom_d &pinctrl_dhcom_e &pinctrl_dhcom_f
91 &pinctrl_dhcom_g &pinctrl_dhcom_h &pinctrl_dhcom_i
92 &pinctrl_dhcom_j &pinctrl_dhcom_k &pinctrl_dhcom_l
93 /* GPIO_M is connected to CLKOUT2 */
94 &pinctrl_dhcom_int>;
95
96 pinctrl_enet_vio: dhcom-enet-vio-grp {
97 fsl,pins = <
98 MX8MP_IOMUXC_SD1_RESET_B__GPIO2_IO10 0x22
99 >;
100 };
101
102 pinctrl_rtc: dhcom-rtc-grp {
103 fsl,pins = <
104 /* RTC_#INT Interrupt */
105 MX8MP_IOMUXC_SPDIF_EXT_CLK__GPIO5_IO05 0x400001c6
106 >;
107 };
108
109 pinctrl_uart2_bt: dhcom-uart2-bt-grp {
110 fsl,pins = <
111 /* BT_REG_EN */
112 MX8MP_IOMUXC_GPIO1_IO12__GPIO1_IO12 0x144
113 >;
114 };
115
116 pinctrl_usb0_vbus: dhcom-usb0-grp {
117 fsl,pins = <
118 MX8MP_IOMUXC_GPIO1_IO10__USB1_OTG_ID 0x0
119 >;
120 };
121
122 pinctrl_usdhc1_wl_reg_en: dhcom-usdhc1-wl-reg-en-grp {
123 fsl,pins = <
124 /* WL_REG_EN */
125 MX8MP_IOMUXC_GPIO1_IO13__GPIO1_IO13 0x144
126 >;
127 };
128};