xref: /freebsd/sys/contrib/device-tree/src/arm/nxp/imx/imx31-lite.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0+
2*f126890aSEmmanuel Vadot//
3*f126890aSEmmanuel Vadot// Copyright (C) 2016-2018 Vladimir Zapolskiy <vz@mleia.com>
4*f126890aSEmmanuel Vadot
5*f126890aSEmmanuel Vadot/dts-v1/;
6*f126890aSEmmanuel Vadot
7*f126890aSEmmanuel Vadot#include "imx31.dtsi"
8*f126890aSEmmanuel Vadot
9*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
10*f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
11*f126890aSEmmanuel Vadot
12*f126890aSEmmanuel Vadot/ {
13*f126890aSEmmanuel Vadot	model = "LogicPD i.MX31 Lite";
14*f126890aSEmmanuel Vadot	compatible = "logicpd,imx31-lite", "fsl,imx31";
15*f126890aSEmmanuel Vadot
16*f126890aSEmmanuel Vadot	chosen {
17*f126890aSEmmanuel Vadot		stdout-path = &uart1;
18*f126890aSEmmanuel Vadot	};
19*f126890aSEmmanuel Vadot
20*f126890aSEmmanuel Vadot	memory@80000000 {
21*f126890aSEmmanuel Vadot		device_type = "memory";
22*f126890aSEmmanuel Vadot		reg = <0x80000000 0x8000000>;
23*f126890aSEmmanuel Vadot	};
24*f126890aSEmmanuel Vadot
25*f126890aSEmmanuel Vadot	leds {
26*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
27*f126890aSEmmanuel Vadot
28*f126890aSEmmanuel Vadot		led0 {
29*f126890aSEmmanuel Vadot			gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
30*f126890aSEmmanuel Vadot		};
31*f126890aSEmmanuel Vadot
32*f126890aSEmmanuel Vadot		led1 {
33*f126890aSEmmanuel Vadot			gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
34*f126890aSEmmanuel Vadot		};
35*f126890aSEmmanuel Vadot	};
36*f126890aSEmmanuel Vadot};
37*f126890aSEmmanuel Vadot
38*f126890aSEmmanuel Vadot&ata {
39*f126890aSEmmanuel Vadot	status = "okay";
40*f126890aSEmmanuel Vadot};
41*f126890aSEmmanuel Vadot
42*f126890aSEmmanuel Vadot&nfc {
43*f126890aSEmmanuel Vadot	nand-bus-width = <8>;
44*f126890aSEmmanuel Vadot	nand-ecc-mode = "hw";
45*f126890aSEmmanuel Vadot	nand-on-flash-bbt;
46*f126890aSEmmanuel Vadot	status = "okay";
47*f126890aSEmmanuel Vadot};
48*f126890aSEmmanuel Vadot
49*f126890aSEmmanuel Vadot&sdhci1 {
50*f126890aSEmmanuel Vadot	bus-width = <4>;
51*f126890aSEmmanuel Vadot	cd-gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>;
52*f126890aSEmmanuel Vadot	wp-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
53*f126890aSEmmanuel Vadot	status = "okay";
54*f126890aSEmmanuel Vadot};
55*f126890aSEmmanuel Vadot
56*f126890aSEmmanuel Vadot&spi2 {
57*f126890aSEmmanuel Vadot	status = "okay";
58*f126890aSEmmanuel Vadot
59*f126890aSEmmanuel Vadot	pmic@0 {
60*f126890aSEmmanuel Vadot		compatible = "fsl,mc13783";
61*f126890aSEmmanuel Vadot		reg = <0>;
62*f126890aSEmmanuel Vadot		spi-cs-high;
63*f126890aSEmmanuel Vadot		spi-max-frequency = <1000000>;
64*f126890aSEmmanuel Vadot		interrupt-parent = <&gpio1>;
65*f126890aSEmmanuel Vadot		interrupts = <3 IRQ_TYPE_EDGE_RISING>;
66*f126890aSEmmanuel Vadot
67*f126890aSEmmanuel Vadot		fsl,mc13xxx-uses-adc;
68*f126890aSEmmanuel Vadot		fsl,mc13xxx-uses-rtc;
69*f126890aSEmmanuel Vadot
70*f126890aSEmmanuel Vadot		regulators {
71*f126890aSEmmanuel Vadot			sw1a {		/* QVCC */
72*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1200000>;
73*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1500000>;
74*f126890aSEmmanuel Vadot				regulator-always-on;
75*f126890aSEmmanuel Vadot				regulator-boot-on;
76*f126890aSEmmanuel Vadot			};
77*f126890aSEmmanuel Vadot
78*f126890aSEmmanuel Vadot			sw1b {		/* QVCC */
79*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1200000>;
80*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1500000>;
81*f126890aSEmmanuel Vadot				regulator-always-on;
82*f126890aSEmmanuel Vadot				regulator-boot-on;
83*f126890aSEmmanuel Vadot			};
84*f126890aSEmmanuel Vadot
85*f126890aSEmmanuel Vadot			sw2a {		/* 1.8V_DDR, NVCC2, NVCC21 and NVCC22 */
86*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
87*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
88*f126890aSEmmanuel Vadot				regulator-always-on;
89*f126890aSEmmanuel Vadot				regulator-boot-on;
90*f126890aSEmmanuel Vadot			};
91*f126890aSEmmanuel Vadot
92*f126890aSEmmanuel Vadot			sw2b {		/* NVCC10 */
93*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
94*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
95*f126890aSEmmanuel Vadot				regulator-always-on;
96*f126890aSEmmanuel Vadot				regulator-boot-on;
97*f126890aSEmmanuel Vadot			};
98*f126890aSEmmanuel Vadot
99*f126890aSEmmanuel Vadot			violo {		/* NVCC1 and NVCC7 */
100*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
101*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
102*f126890aSEmmanuel Vadot				regulator-always-on;
103*f126890aSEmmanuel Vadot				regulator-boot-on;
104*f126890aSEmmanuel Vadot			};
105*f126890aSEmmanuel Vadot
106*f126890aSEmmanuel Vadot			viohi {		/* VIOHI */
107*f126890aSEmmanuel Vadot				regulator-min-microvolt = <2775000>;
108*f126890aSEmmanuel Vadot				regulator-max-microvolt = <2775000>;
109*f126890aSEmmanuel Vadot				regulator-always-on;
110*f126890aSEmmanuel Vadot				regulator-boot-on;
111*f126890aSEmmanuel Vadot			};
112*f126890aSEmmanuel Vadot
113*f126890aSEmmanuel Vadot			vaudio {	/* VAUDIO */
114*f126890aSEmmanuel Vadot				regulator-min-microvolt = <2775000>;
115*f126890aSEmmanuel Vadot				regulator-max-microvolt = <2775000>;
116*f126890aSEmmanuel Vadot			};
117*f126890aSEmmanuel Vadot
118*f126890aSEmmanuel Vadot			vcam {		/* NVCC4 */
119*f126890aSEmmanuel Vadot				regulator-min-microvolt = <2800000>;
120*f126890aSEmmanuel Vadot				regulator-max-microvolt = <2800000>;
121*f126890aSEmmanuel Vadot			};
122*f126890aSEmmanuel Vadot
123*f126890aSEmmanuel Vadot			vgen {		/* NVCC5 / NVCC8 and NVCC6 / NVCC9 */
124*f126890aSEmmanuel Vadot				regulator-min-microvolt = <2775000>;
125*f126890aSEmmanuel Vadot				regulator-max-microvolt = <2775000>;
126*f126890aSEmmanuel Vadot				regulator-always-on;
127*f126890aSEmmanuel Vadot				regulator-boot-on;
128*f126890aSEmmanuel Vadot			};
129*f126890aSEmmanuel Vadot
130*f126890aSEmmanuel Vadot			vmmc2 {		/* NVCC3 */
131*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1600000>;
132*f126890aSEmmanuel Vadot				regulator-max-microvolt = <3000000>;
133*f126890aSEmmanuel Vadot				regulator-always-on;
134*f126890aSEmmanuel Vadot				regulator-boot-on;
135*f126890aSEmmanuel Vadot			};
136*f126890aSEmmanuel Vadot		};
137*f126890aSEmmanuel Vadot	};
138*f126890aSEmmanuel Vadot};
139*f126890aSEmmanuel Vadot
140*f126890aSEmmanuel Vadot&uart1 {
141*f126890aSEmmanuel Vadot	uart-has-rtscts;
142*f126890aSEmmanuel Vadot	status = "okay";
143*f126890aSEmmanuel Vadot};
144*f126890aSEmmanuel Vadot
145*f126890aSEmmanuel Vadot/* Routed to the extension board */
146*f126890aSEmmanuel Vadot&uart2 {
147*f126890aSEmmanuel Vadot	uart-has-rtscts;
148*f126890aSEmmanuel Vadot	status = "okay";
149*f126890aSEmmanuel Vadot};
150*f126890aSEmmanuel Vadot
151*f126890aSEmmanuel Vadot/* Routed to the extension board */
152*f126890aSEmmanuel Vadot&uart3 {
153*f126890aSEmmanuel Vadot	uart-has-rtscts;
154*f126890aSEmmanuel Vadot	status = "okay";
155*f126890aSEmmanuel Vadot};
156*f126890aSEmmanuel Vadot
157*f126890aSEmmanuel Vadot&weim {
158*f126890aSEmmanuel Vadot	status = "okay";
159*f126890aSEmmanuel Vadot
160*f126890aSEmmanuel Vadot	nor@0,0 {
161*f126890aSEmmanuel Vadot		compatible = "cfi-flash";
162*f126890aSEmmanuel Vadot		reg = <0 0x0 0x200000>;
163*f126890aSEmmanuel Vadot		bank-width = <2>;
164*f126890aSEmmanuel Vadot		linux,mtd-name = "physmap-flash.0";
165*f126890aSEmmanuel Vadot		fsl,weim-cs-timing = <0x0000cf03 0xa0330d01 0x00220800>;
166*f126890aSEmmanuel Vadot	};
167*f126890aSEmmanuel Vadot
168*f126890aSEmmanuel Vadot	ethernet@4,0 {
169*f126890aSEmmanuel Vadot		compatible = "smsc,lan9117", "smsc,lan9115";
170*f126890aSEmmanuel Vadot		reg = <4 0x0 0x100>;
171*f126890aSEmmanuel Vadot		interrupt-parent = <&gpio1>;
172*f126890aSEmmanuel Vadot		interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
173*f126890aSEmmanuel Vadot		phy-mode = "mii";
174*f126890aSEmmanuel Vadot		reg-io-width = <2>;
175*f126890aSEmmanuel Vadot		smsc,irq-push-pull;
176*f126890aSEmmanuel Vadot		fsl,weim-cs-timing = <0x00008701 0x04000541 0x00010000>;
177*f126890aSEmmanuel Vadot	};
178*f126890aSEmmanuel Vadot};
179