blob: e95abfb3e89216e299957aad945f37a1d5a6b9b8 [file] [log] [blame]
Marek Vasut4d573d52022-05-21 16:56:26 +02001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (C) 2022 Marek Vasut <marex@denx.de>
4 */
5
6/dts-v1/;
7
8#include <dt-bindings/leds/common.h>
9#include <dt-bindings/net/qca-ar803x.h>
10#include <dt-bindings/phy/phy-imx8-pcie.h>
11#include "imx8mp-dhcom-som.dtsi"
12
13/ {
14 model = "DH electronics i.MX8M Plus DHCOM Premium Developer Kit (2)";
15 compatible = "dh,imx8mp-dhcom-pdk2", "fsl,imx8mp";
16
17 chosen {
18 stdout-path = &uart1;
19 };
20
21 gpio-keys {
22 #size-cells = <0>;
23 compatible = "gpio-keys";
24
25 button-0 {
26 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; /* GPIO A */
27 label = "TA1-GPIO-A";
28 linux,code = <KEY_A>;
29 pinctrl-0 = <&pinctrl_dhcom_a>;
30 pinctrl-names = "default";
31 wakeup-source;
32 };
33
34 button-1 {
35 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; /* GPIO B */
36 label = "TA2-GPIO-B";
37 linux,code = <KEY_B>;
38 pinctrl-0 = <&pinctrl_dhcom_b>;
39 pinctrl-names = "default";
40 wakeup-source;
41 };
42
43 button-2 {
44 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>; /* GPIO C */
45 label = "TA3-GPIO-C";
46 linux,code = <KEY_C>;
47 pinctrl-0 = <&pinctrl_dhcom_c>;
48 pinctrl-names = "default";
49 wakeup-source;
50 };
51
52 button-3 {
53 gpios = <&gpio4 27 GPIO_ACTIVE_LOW>; /* GPIO D */
54 label = "TA4-GPIO-D";
55 linux,code = <KEY_D>;
56 pinctrl-0 = <&pinctrl_dhcom_d>;
57 pinctrl-names = "default";
58 wakeup-source;
59 };
60 };
61
62 led {
63 compatible = "gpio-leds";
64
65 led-5 {
66 color = <LED_COLOR_ID_GREEN>;
67 default-state = "off";
68 function = LED_FUNCTION_INDICATOR;
69 gpios = <&gpio5 22 GPIO_ACTIVE_HIGH>; /* GPIO E */
70 pinctrl-0 = <&pinctrl_dhcom_e>;
71 pinctrl-names = "default";
72 };
73
74 led-6 {
75 color = <LED_COLOR_ID_GREEN>;
76 default-state = "off";
77 function = LED_FUNCTION_INDICATOR;
78 gpios = <&gpio5 23 GPIO_ACTIVE_HIGH>; /* GPIO F */
79 pinctrl-0 = <&pinctrl_dhcom_f>;
80 pinctrl-names = "default";
81 };
82
83 led-7 {
84 color = <LED_COLOR_ID_GREEN>;
85 default-state = "off";
86 function = LED_FUNCTION_INDICATOR;
87 gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>; /* GPIO H */
88 pinctrl-0 = <&pinctrl_dhcom_h>;
89 pinctrl-names = "default";
90 };
91
92 led-8 {
93 color = <LED_COLOR_ID_GREEN>;
94 default-state = "off";
95 function = LED_FUNCTION_INDICATOR;
96 gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; /* GPIO I */
97 pinctrl-0 = <&pinctrl_dhcom_i>;
98 pinctrl-names = "default";
99 };
100 };
101};
102
103/*
104 * PDK2 carrier board uses SoM with KSZ9131 populated and connected to
105 * SoM EQoS ethernet RGMII interface. Remove the other SoM PHY DT node.
106 */
107/delete-node/ &ethphy0f;
108
109/*
110 * PDK2 carrier board has KSZ9021 PHY populated and connected to SoM FEC
111 * ethernet RGMII interface. The SoM is not populated with second FEC PHY.
112 */
113/delete-node/ &ethphy1f;
114
115&fec { /* Second ethernet */
116 phy-handle = <&ethphypdk>;
117
118 mdio {
119 ethphypdk: ethernet-phy@7 { /* KSZ 9021 */
120 compatible = "ethernet-phy-ieee802.3-c22";
121 interrupt-parent = <&gpio4>;
122 interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
123 pinctrl-0 = <&pinctrl_ethphy1>;
124 pinctrl-names = "default";
125 reg = <7>;
126 reset-assert-us = <1000>;
127 reset-deassert-us = <1000>;
128 reset-gpios = <&gpio4 2 GPIO_ACTIVE_LOW>;
129 rxc-skew-ps = <3000>;
130 rxd0-skew-ps = <0>;
131 rxd1-skew-ps = <0>;
132 rxd2-skew-ps = <0>;
133 rxd3-skew-ps = <0>;
134 rxdv-skew-ps = <0>;
135 txc-skew-ps = <3000>;
136 txd0-skew-ps = <0>;
137 txd1-skew-ps = <0>;
138 txd2-skew-ps = <0>;
139 txd3-skew-ps = <0>;
140 txen-skew-ps = <0>;
141 max-speed = <100>;
142 };
143 };
144};
145
146&flexcan1 {
147 status = "okay";
148};
149
150&usb3_1 {
151 fsl,over-current-active-low;
152};