1// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2//
3// Device Tree file for LX2160A Clearfog ITX board; this contains the
4// common parts shared between the Clearfog CX and Honeycomb builds.
5//
6// Copyright 2019 SolidRun Ltd.
7
8/dts-v1/;
9
10#include "fsl-lx2160a-cex7.dtsi"
11#include <dt-bindings/input/linux-event-codes.h>
12
13/ {
14	aliases {
15		serial0 = &uart0;
16		serial1 = &uart1;
17	};
18
19	chosen {
20		stdout-path = "serial0:115200n8";
21	};
22
23	gpio-keys {
24		compatible = "gpio-keys";
25
26		key {
27			label = "power";
28			linux,can-disable;
29			linux,code = <KEY_POWER>;
30			gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
31		};
32	};
33
34	sfp0: sfp-0 {
35		compatible = "sff,sfp";
36		i2c-bus = <&sfp0_i2c>;
37		mod-def0-gpio = <&gpio2 0 GPIO_ACTIVE_LOW>;
38		maximum-power-milliwatt = <2000>;
39	};
40
41	sfp1: sfp-1 {
42		compatible = "sff,sfp";
43		i2c-bus = <&sfp1_i2c>;
44		mod-def0-gpio = <&gpio2 9 GPIO_ACTIVE_LOW>;
45		maximum-power-milliwatt = <2000>;
46	};
47
48	sfp2: sfp-2 {
49		compatible = "sff,sfp";
50		i2c-bus = <&sfp2_i2c>;
51		mod-def0-gpio = <&gpio2 10 GPIO_ACTIVE_LOW>;
52		maximum-power-milliwatt = <2000>;
53	};
54
55	sfp3: sfp-3 {
56		compatible = "sff,sfp";
57		i2c-bus = <&sfp3_i2c>;
58		mod-def0-gpio = <&gpio2 11 GPIO_ACTIVE_LOW>;
59		maximum-power-milliwatt = <2000>;
60	};
61};
62
63&dpmac7 {
64	sfp = <&sfp0>;
65	managed = "in-band-status";
66};
67
68&dpmac8 {
69	sfp = <&sfp1>;
70	managed = "in-band-status";
71};
72
73&dpmac9 {
74	sfp = <&sfp2>;
75	managed = "in-band-status";
76};
77
78&dpmac10 {
79	sfp = <&sfp3>;
80	managed = "in-band-status";
81};
82
83&emdio2 {
84	status = "okay";
85};
86
87&esdhc0 {
88	sd-uhs-sdr104;
89	sd-uhs-sdr50;
90	sd-uhs-sdr25;
91	sd-uhs-sdr12;
92	status = "okay";
93};
94
95&pcs_mdio7 {
96	status = "okay";
97};
98
99&pcs_mdio8 {
100	status = "okay";
101};
102
103&pcs_mdio9 {
104	status = "okay";
105};
106
107&pcs_mdio10 {
108	status = "okay";
109};
110
111&sata0 {
112	status = "okay";
113};
114
115&sata1 {
116	status = "okay";
117};
118
119&sata2 {
120	status = "okay";
121};
122
123&sata3 {
124	status = "okay";
125};
126
127&uart0 {
128	status = "okay";
129};
130
131&uart1 {
132	status = "okay";
133};
134