xref: /freebsd-src/sys/contrib/device-tree/src/arm/nxp/imx/imx6q-b450v3.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot/*
2*f126890aSEmmanuel Vadot * Copyright 2015 Timesys Corporation.
3*f126890aSEmmanuel Vadot * Copyright 2015 General Electric Company
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot * This file is dual-licensed: you can use it either under the terms
6*f126890aSEmmanuel Vadot * of the GPL or the X11 license, at your option. Note that this dual
7*f126890aSEmmanuel Vadot * licensing only applies to this file, and not this project as a
8*f126890aSEmmanuel Vadot * whole.
9*f126890aSEmmanuel Vadot *
10*f126890aSEmmanuel Vadot *  a) This file is free software; you can redistribute it and/or
11*f126890aSEmmanuel Vadot *     modify it under the terms of the GNU General Public License
12*f126890aSEmmanuel Vadot *     version 2 as published by the Free Software Foundation.
13*f126890aSEmmanuel Vadot *
14*f126890aSEmmanuel Vadot *     This file is distributed in the hope that it will be useful,
15*f126890aSEmmanuel Vadot *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16*f126890aSEmmanuel Vadot *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17*f126890aSEmmanuel Vadot *     GNU General Public License for more details.
18*f126890aSEmmanuel Vadot *
19*f126890aSEmmanuel Vadot * Or, alternatively,
20*f126890aSEmmanuel Vadot *
21*f126890aSEmmanuel Vadot *  b) Permission is hereby granted, free of charge, to any person
22*f126890aSEmmanuel Vadot *     obtaining a copy of this software and associated documentation
23*f126890aSEmmanuel Vadot *     files (the "Software"), to deal in the Software without
24*f126890aSEmmanuel Vadot *     restriction, including without limitation the rights to use,
25*f126890aSEmmanuel Vadot *     copy, modify, merge, publish, distribute, sublicense, and/or
26*f126890aSEmmanuel Vadot *     sell copies of the Software, and to permit persons to whom the
27*f126890aSEmmanuel Vadot *     Software is furnished to do so, subject to the following
28*f126890aSEmmanuel Vadot *     conditions:
29*f126890aSEmmanuel Vadot *
30*f126890aSEmmanuel Vadot *     The above copyright notice and this permission notice shall be
31*f126890aSEmmanuel Vadot *     included in all copies or substantial portions of the Software.
32*f126890aSEmmanuel Vadot *
33*f126890aSEmmanuel Vadot *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34*f126890aSEmmanuel Vadot *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35*f126890aSEmmanuel Vadot *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36*f126890aSEmmanuel Vadot *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37*f126890aSEmmanuel Vadot *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38*f126890aSEmmanuel Vadot *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39*f126890aSEmmanuel Vadot *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40*f126890aSEmmanuel Vadot *     OTHER DEALINGS IN THE SOFTWARE.
41*f126890aSEmmanuel Vadot */
42*f126890aSEmmanuel Vadot
43*f126890aSEmmanuel Vadot/dts-v1/;
44*f126890aSEmmanuel Vadot
45*f126890aSEmmanuel Vadot#include "imx6q-bx50v3.dtsi"
46*f126890aSEmmanuel Vadot
47*f126890aSEmmanuel Vadot/ {
48*f126890aSEmmanuel Vadot	model = "General Electric B450v3";
49*f126890aSEmmanuel Vadot	compatible = "ge,imx6q-b450v3", "advantech,imx6q-ba16", "fsl,imx6q";
50*f126890aSEmmanuel Vadot
51*f126890aSEmmanuel Vadot	chosen {
52*f126890aSEmmanuel Vadot		stdout-path = &uart3;
53*f126890aSEmmanuel Vadot	};
54*f126890aSEmmanuel Vadot
55*f126890aSEmmanuel Vadot	panel-lvds0 {
56*f126890aSEmmanuel Vadot		compatible = "innolux,g121x1-l03";
57*f126890aSEmmanuel Vadot		backlight = <&backlight_lvds>;
58*f126890aSEmmanuel Vadot		power-supply = <&reg_lvds>;
59*f126890aSEmmanuel Vadot
60*f126890aSEmmanuel Vadot		port {
61*f126890aSEmmanuel Vadot			panel_in_lvds0: endpoint {
62*f126890aSEmmanuel Vadot				remote-endpoint = <&lvds0_out>;
63*f126890aSEmmanuel Vadot			};
64*f126890aSEmmanuel Vadot		};
65*f126890aSEmmanuel Vadot	};
66*f126890aSEmmanuel Vadot};
67*f126890aSEmmanuel Vadot
68*f126890aSEmmanuel Vadot&ldb {
69*f126890aSEmmanuel Vadot	status = "okay";
70*f126890aSEmmanuel Vadot
71*f126890aSEmmanuel Vadot	lvds0: lvds-channel@0 {
72*f126890aSEmmanuel Vadot		fsl,data-mapping = "spwg";
73*f126890aSEmmanuel Vadot		fsl,data-width = <24>;
74*f126890aSEmmanuel Vadot		status = "okay";
75*f126890aSEmmanuel Vadot
76*f126890aSEmmanuel Vadot		port@4 {
77*f126890aSEmmanuel Vadot			reg = <4>;
78*f126890aSEmmanuel Vadot
79*f126890aSEmmanuel Vadot			lvds0_out: endpoint {
80*f126890aSEmmanuel Vadot				remote-endpoint = <&panel_in_lvds0>;
81*f126890aSEmmanuel Vadot			};
82*f126890aSEmmanuel Vadot		};
83*f126890aSEmmanuel Vadot	};
84*f126890aSEmmanuel Vadot};
85*f126890aSEmmanuel Vadot
86*f126890aSEmmanuel Vadot&pca9539 {
87*f126890aSEmmanuel Vadot	gpio-line-names = "AMB_P_INT1#", "AMB_P_INT2#", "BT_EN", "WLAN_EN",
88*f126890aSEmmanuel Vadot			  "", "SM_D_ACT", "DP1_RST#", "",
89*f126890aSEmmanuel Vadot			  "WD15S_EN", "WD15S_DIS#", "", "",
90*f126890aSEmmanuel Vadot			  "", "", "", "";
91*f126890aSEmmanuel Vadot
92*f126890aSEmmanuel Vadot	P04-hog {
93*f126890aSEmmanuel Vadot		gpio-hog;
94*f126890aSEmmanuel Vadot		gpios = <4 0>;
95*f126890aSEmmanuel Vadot		output-low;
96*f126890aSEmmanuel Vadot		line-name = "PCA9539-P04";
97*f126890aSEmmanuel Vadot	};
98*f126890aSEmmanuel Vadot
99*f126890aSEmmanuel Vadot	P07-hog {
100*f126890aSEmmanuel Vadot		gpio-hog;
101*f126890aSEmmanuel Vadot		gpios = <7 0>;
102*f126890aSEmmanuel Vadot		output-low;
103*f126890aSEmmanuel Vadot		line-name = "PCA9539-P07";
104*f126890aSEmmanuel Vadot	};
105*f126890aSEmmanuel Vadot};
106*f126890aSEmmanuel Vadot
107*f126890aSEmmanuel Vadot&pci_root {
108*f126890aSEmmanuel Vadot	/* Intel Corporation I210 Gigabit Network Connection */
109*f126890aSEmmanuel Vadot	switch_nic: ethernet@3,0 {
110*f126890aSEmmanuel Vadot		compatible = "pci8086,1533";
111*f126890aSEmmanuel Vadot		reg = <0x00010000 0 0 0 0>;
112*f126890aSEmmanuel Vadot	};
113*f126890aSEmmanuel Vadot};
114*f126890aSEmmanuel Vadot
115*f126890aSEmmanuel Vadot&switch_ports {
116*f126890aSEmmanuel Vadot	port@0 {
117*f126890aSEmmanuel Vadot		reg = <0>;
118*f126890aSEmmanuel Vadot		label = "enacq";
119*f126890aSEmmanuel Vadot		phy-handle = <&switchphy0>;
120*f126890aSEmmanuel Vadot	};
121*f126890aSEmmanuel Vadot
122*f126890aSEmmanuel Vadot	port@1 {
123*f126890aSEmmanuel Vadot		reg = <1>;
124*f126890aSEmmanuel Vadot		label = "eneport1";
125*f126890aSEmmanuel Vadot		phy-handle = <&switchphy1>;
126*f126890aSEmmanuel Vadot	};
127*f126890aSEmmanuel Vadot
128*f126890aSEmmanuel Vadot	port@2 {
129*f126890aSEmmanuel Vadot		reg = <2>;
130*f126890aSEmmanuel Vadot		label = "enix";
131*f126890aSEmmanuel Vadot		phy-handle = <&switchphy2>;
132*f126890aSEmmanuel Vadot	};
133*f126890aSEmmanuel Vadot
134*f126890aSEmmanuel Vadot	port@3 {
135*f126890aSEmmanuel Vadot		reg = <3>;
136*f126890aSEmmanuel Vadot		label = "enid";
137*f126890aSEmmanuel Vadot		phy-handle = <&switchphy3>;
138*f126890aSEmmanuel Vadot	};
139*f126890aSEmmanuel Vadot
140*f126890aSEmmanuel Vadot	port@4 {
141*f126890aSEmmanuel Vadot		reg = <4>;
142*f126890aSEmmanuel Vadot		label = "cpu";
143*f126890aSEmmanuel Vadot		ethernet = <&switch_nic>;
144*f126890aSEmmanuel Vadot		phy-handle = <&switchphy4>;
145*f126890aSEmmanuel Vadot	};
146*f126890aSEmmanuel Vadot
147*f126890aSEmmanuel Vadot	port@5 {
148*f126890aSEmmanuel Vadot		reg = <5>;
149*f126890aSEmmanuel Vadot		label = "enembc";
150*f126890aSEmmanuel Vadot
151*f126890aSEmmanuel Vadot		/* connected to Ethernet MAC of AT91RM9200 in MII mode */
152*f126890aSEmmanuel Vadot		fixed-link {
153*f126890aSEmmanuel Vadot			speed = <100>;
154*f126890aSEmmanuel Vadot			full-duplex;
155*f126890aSEmmanuel Vadot		};
156*f126890aSEmmanuel Vadot	};
157*f126890aSEmmanuel Vadot};
158