10e8322dcSRabeeh Khoury// SPDX-License-Identifier: (GPL-2.0 OR MIT)
20e8322dcSRabeeh Khoury//
30e8322dcSRabeeh Khoury// Device Tree file for LX2160A Clearfog ITX board; this contains the
40e8322dcSRabeeh Khoury// common parts shared between the Clearfog CX and Honeycomb builds.
50e8322dcSRabeeh Khoury//
60e8322dcSRabeeh Khoury// Copyright 2019 SolidRun Ltd.
70e8322dcSRabeeh Khoury
80e8322dcSRabeeh Khoury/dts-v1/;
90e8322dcSRabeeh Khoury
100e8322dcSRabeeh Khoury#include "fsl-lx2160a-cex7.dtsi"
118900d0d5SRussell King#include <dt-bindings/input/linux-event-codes.h>
120e8322dcSRabeeh Khoury
130e8322dcSRabeeh Khoury/ {
140e8322dcSRabeeh Khoury	aliases {
150e8322dcSRabeeh Khoury		serial0 = &uart0;
160e8322dcSRabeeh Khoury		serial1 = &uart1;
170e8322dcSRabeeh Khoury	};
180e8322dcSRabeeh Khoury
190e8322dcSRabeeh Khoury	chosen {
200e8322dcSRabeeh Khoury		stdout-path = "serial0:115200n8";
210e8322dcSRabeeh Khoury	};
228900d0d5SRussell King
238900d0d5SRussell King	gpio-keys {
248900d0d5SRussell King		compatible = "gpio-keys";
258900d0d5SRussell King
268900d0d5SRussell King		key {
278900d0d5SRussell King			label = "power";
288900d0d5SRussell King			linux,can-disable;
298900d0d5SRussell King			linux,code = <KEY_POWER>;
308900d0d5SRussell King			gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
318900d0d5SRussell King		};
328900d0d5SRussell King	};
33312a4614SRussell King
34312a4614SRussell King	sfp0: sfp-0 {
35312a4614SRussell King		compatible = "sff,sfp";
36312a4614SRussell King		i2c-bus = <&sfp0_i2c>;
37*dfa2854cSIoana Ciornei		mod-def0-gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
38312a4614SRussell King		maximum-power-milliwatt = <2000>;
39312a4614SRussell King	};
40312a4614SRussell King
41312a4614SRussell King	sfp1: sfp-1 {
42312a4614SRussell King		compatible = "sff,sfp";
43312a4614SRussell King		i2c-bus = <&sfp1_i2c>;
44*dfa2854cSIoana Ciornei		mod-def0-gpios = <&gpio2 9 GPIO_ACTIVE_LOW>;
45312a4614SRussell King		maximum-power-milliwatt = <2000>;
46312a4614SRussell King	};
47312a4614SRussell King
48312a4614SRussell King	sfp2: sfp-2 {
49312a4614SRussell King		compatible = "sff,sfp";
50312a4614SRussell King		i2c-bus = <&sfp2_i2c>;
51*dfa2854cSIoana Ciornei		mod-def0-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
52312a4614SRussell King		maximum-power-milliwatt = <2000>;
53312a4614SRussell King	};
54312a4614SRussell King
55312a4614SRussell King	sfp3: sfp-3 {
56312a4614SRussell King		compatible = "sff,sfp";
57312a4614SRussell King		i2c-bus = <&sfp3_i2c>;
58*dfa2854cSIoana Ciornei		mod-def0-gpios = <&gpio2 11 GPIO_ACTIVE_LOW>;
59312a4614SRussell King		maximum-power-milliwatt = <2000>;
60312a4614SRussell King	};
61312a4614SRussell King};
62312a4614SRussell King
63312a4614SRussell King&dpmac7 {
64312a4614SRussell King	sfp = <&sfp0>;
65312a4614SRussell King	managed = "in-band-status";
663cbe93a1SIoana Ciornei	phys = <&serdes_1 3>;
67312a4614SRussell King};
68312a4614SRussell King
69312a4614SRussell King&dpmac8 {
70312a4614SRussell King	sfp = <&sfp1>;
71312a4614SRussell King	managed = "in-band-status";
723cbe93a1SIoana Ciornei	phys = <&serdes_1 2>;
73312a4614SRussell King};
74312a4614SRussell King
75312a4614SRussell King&dpmac9 {
76312a4614SRussell King	sfp = <&sfp2>;
77312a4614SRussell King	managed = "in-band-status";
783cbe93a1SIoana Ciornei	phys = <&serdes_1 1>;
79312a4614SRussell King};
80312a4614SRussell King
81312a4614SRussell King&dpmac10 {
82312a4614SRussell King	sfp = <&sfp3>;
83312a4614SRussell King	managed = "in-band-status";
843cbe93a1SIoana Ciornei	phys = <&serdes_1 0>;
850e8322dcSRabeeh Khoury};
860e8322dcSRabeeh Khoury
870e8322dcSRabeeh Khoury&emdio2 {
880e8322dcSRabeeh Khoury	status = "okay";
890e8322dcSRabeeh Khoury};
900e8322dcSRabeeh Khoury
910e8322dcSRabeeh Khoury&esdhc0 {
920e8322dcSRabeeh Khoury	sd-uhs-sdr104;
930e8322dcSRabeeh Khoury	sd-uhs-sdr50;
940e8322dcSRabeeh Khoury	sd-uhs-sdr25;
950e8322dcSRabeeh Khoury	sd-uhs-sdr12;
960e8322dcSRabeeh Khoury	status = "okay";
970e8322dcSRabeeh Khoury};
980e8322dcSRabeeh Khoury
99312a4614SRussell King&pcs_mdio7 {
100312a4614SRussell King	status = "okay";
101312a4614SRussell King};
102312a4614SRussell King
103312a4614SRussell King&pcs_mdio8 {
104312a4614SRussell King	status = "okay";
105312a4614SRussell King};
106312a4614SRussell King
107312a4614SRussell King&pcs_mdio9 {
108312a4614SRussell King	status = "okay";
109312a4614SRussell King};
110312a4614SRussell King
111312a4614SRussell King&pcs_mdio10 {
112312a4614SRussell King	status = "okay";
113312a4614SRussell King};
114312a4614SRussell King
1150e8322dcSRabeeh Khoury&sata0 {
1160e8322dcSRabeeh Khoury	status = "okay";
1170e8322dcSRabeeh Khoury};
1180e8322dcSRabeeh Khoury
1190e8322dcSRabeeh Khoury&sata1 {
1200e8322dcSRabeeh Khoury	status = "okay";
1210e8322dcSRabeeh Khoury};
1220e8322dcSRabeeh Khoury
1230e8322dcSRabeeh Khoury&sata2 {
1240e8322dcSRabeeh Khoury	status = "okay";
1250e8322dcSRabeeh Khoury};
1260e8322dcSRabeeh Khoury
1270e8322dcSRabeeh Khoury&sata3 {
1280e8322dcSRabeeh Khoury	status = "okay";
1290e8322dcSRabeeh Khoury};
1300e8322dcSRabeeh Khoury
1310e8322dcSRabeeh Khoury&uart0 {
1320e8322dcSRabeeh Khoury	status = "okay";
1330e8322dcSRabeeh Khoury};
1340e8322dcSRabeeh Khoury
1350e8322dcSRabeeh Khoury&uart1 {
1360e8322dcSRabeeh Khoury	status = "okay";
1370e8322dcSRabeeh Khoury};
138