xref: /freebsd/sys/contrib/device-tree/src/arm/nxp/mxs/imx28-cfa10057.dts (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Copyright 2013 Crystalfontz America, Inc.
4f126890aSEmmanuel Vadot * Copyright 2012 Free Electrons
5f126890aSEmmanuel Vadot */
6f126890aSEmmanuel Vadot
7f126890aSEmmanuel Vadot/*
8f126890aSEmmanuel Vadot * The CFA-10057 is an expansion board for the CFA-10036 module, thus we
9f126890aSEmmanuel Vadot * need to include the CFA-10036 DTS.
10f126890aSEmmanuel Vadot */
11f126890aSEmmanuel Vadot#include "imx28-cfa10036.dts"
12f126890aSEmmanuel Vadot
13f126890aSEmmanuel Vadot/ {
14f126890aSEmmanuel Vadot	model = "Crystalfontz CFA-10057 Board";
15f126890aSEmmanuel Vadot	compatible = "crystalfontz,cfa10057", "crystalfontz,cfa10036", "fsl,imx28";
16f126890aSEmmanuel Vadot
17aa1a8ff2SEmmanuel Vadot	reg_usb1_vbus: regulator-0 {
18f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
19f126890aSEmmanuel Vadot		pinctrl-names = "default";
20f126890aSEmmanuel Vadot		pinctrl-0 = <&usb_pins_cfa10057>;
21f126890aSEmmanuel Vadot		regulator-name = "usb1_vbus";
22f126890aSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
23f126890aSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
24f126890aSEmmanuel Vadot		gpio = <&gpio0 7 1>;
25f126890aSEmmanuel Vadot	};
26f126890aSEmmanuel Vadot
27f126890aSEmmanuel Vadot	backlight {
28f126890aSEmmanuel Vadot		compatible = "pwm-backlight";
29*84943d6fSEmmanuel Vadot		pwms = <&pwm 4 5000000 0>;
30f126890aSEmmanuel Vadot		brightness-levels = <0 4 8 16 32 64 128 255>;
31f126890aSEmmanuel Vadot		default-brightness-level = <7>;
32f126890aSEmmanuel Vadot	};
33f126890aSEmmanuel Vadot};
34f126890aSEmmanuel Vadot
35f126890aSEmmanuel Vadot&lcdif {
36f126890aSEmmanuel Vadot	pinctrl-names = "default";
37f126890aSEmmanuel Vadot	pinctrl-0 = <&lcdif_18bit_pins_cfa10057
38f126890aSEmmanuel Vadot		     &lcdif_pins_cfa10057>;
39f126890aSEmmanuel Vadot	display = <&display0>;
40f126890aSEmmanuel Vadot	status = "okay";
41f126890aSEmmanuel Vadot
42f126890aSEmmanuel Vadot	display0: display0 {
43f126890aSEmmanuel Vadot		bits-per-pixel = <32>;
44f126890aSEmmanuel Vadot		bus-width = <18>;
45f126890aSEmmanuel Vadot
46f126890aSEmmanuel Vadot		display-timings {
47f126890aSEmmanuel Vadot			native-mode = <&timing0>;
48f126890aSEmmanuel Vadot			timing0: timing0 {
49f126890aSEmmanuel Vadot				clock-frequency = <30000000>;
50f126890aSEmmanuel Vadot				hactive = <480>;
51f126890aSEmmanuel Vadot				vactive = <800>;
52f126890aSEmmanuel Vadot				hfront-porch = <12>;
53f126890aSEmmanuel Vadot				hback-porch = <2>;
54f126890aSEmmanuel Vadot				vfront-porch = <5>;
55f126890aSEmmanuel Vadot				vback-porch = <3>;
56f126890aSEmmanuel Vadot				hsync-len = <2>;
57f126890aSEmmanuel Vadot				vsync-len = <2>;
58f126890aSEmmanuel Vadot				hsync-active = <0>;
59f126890aSEmmanuel Vadot				vsync-active = <0>;
60f126890aSEmmanuel Vadot				de-active = <1>;
61f126890aSEmmanuel Vadot				pixelclk-active = <1>;
62f126890aSEmmanuel Vadot			};
63f126890aSEmmanuel Vadot		};
64f126890aSEmmanuel Vadot	};
65f126890aSEmmanuel Vadot};
66f126890aSEmmanuel Vadot
67f126890aSEmmanuel Vadot&lradc {
68f126890aSEmmanuel Vadot	fsl,lradc-touchscreen-wires = <4>;
69f126890aSEmmanuel Vadot	status = "okay";
70f126890aSEmmanuel Vadot};
71f126890aSEmmanuel Vadot
72f126890aSEmmanuel Vadot&i2c1 {
73f126890aSEmmanuel Vadot	pinctrl-names = "default";
74f126890aSEmmanuel Vadot	pinctrl-0 = <&i2c1_pins_a>;
75f126890aSEmmanuel Vadot	status = "okay";
76f126890aSEmmanuel Vadot};
77f126890aSEmmanuel Vadot
78f126890aSEmmanuel Vadot&mac0 {
79f126890aSEmmanuel Vadot	phy-mode = "rmii";
80f126890aSEmmanuel Vadot	pinctrl-names = "default";
81f126890aSEmmanuel Vadot	pinctrl-0 = <&mac0_pins_a>;
82f126890aSEmmanuel Vadot	phy-reset-gpios = <&gpio2 21 GPIO_ACTIVE_LOW>;
83f126890aSEmmanuel Vadot	phy-reset-duration = <100>;
84f126890aSEmmanuel Vadot	status = "okay";
85f126890aSEmmanuel Vadot};
86f126890aSEmmanuel Vadot
87f126890aSEmmanuel Vadot&pinctrl {
88f126890aSEmmanuel Vadot	usb_pins_cfa10057: usb-10057@0 {
89f126890aSEmmanuel Vadot		reg = <0>;
90f126890aSEmmanuel Vadot		fsl,pinmux-ids = <
91f126890aSEmmanuel Vadot			MX28_PAD_GPMI_D07__GPIO_0_7
92f126890aSEmmanuel Vadot		>;
93f126890aSEmmanuel Vadot		fsl,drive-strength = <MXS_DRIVE_4mA>;
94f126890aSEmmanuel Vadot		fsl,voltage = <MXS_VOLTAGE_HIGH>;
95f126890aSEmmanuel Vadot		fsl,pull-up = <MXS_PULL_DISABLE>;
96f126890aSEmmanuel Vadot	};
97f126890aSEmmanuel Vadot
98f126890aSEmmanuel Vadot	lcdif_18bit_pins_cfa10057: lcdif-18bit@0 {
99f126890aSEmmanuel Vadot		reg = <0>;
100f126890aSEmmanuel Vadot		fsl,pinmux-ids = <
101f126890aSEmmanuel Vadot			MX28_PAD_LCD_D00__LCD_D0
102f126890aSEmmanuel Vadot			MX28_PAD_LCD_D01__LCD_D1
103f126890aSEmmanuel Vadot			MX28_PAD_LCD_D02__LCD_D2
104f126890aSEmmanuel Vadot			MX28_PAD_LCD_D03__LCD_D3
105f126890aSEmmanuel Vadot			MX28_PAD_LCD_D04__LCD_D4
106f126890aSEmmanuel Vadot			MX28_PAD_LCD_D05__LCD_D5
107f126890aSEmmanuel Vadot			MX28_PAD_LCD_D06__LCD_D6
108f126890aSEmmanuel Vadot			MX28_PAD_LCD_D07__LCD_D7
109f126890aSEmmanuel Vadot			MX28_PAD_LCD_D08__LCD_D8
110f126890aSEmmanuel Vadot			MX28_PAD_LCD_D09__LCD_D9
111f126890aSEmmanuel Vadot			MX28_PAD_LCD_D10__LCD_D10
112f126890aSEmmanuel Vadot			MX28_PAD_LCD_D11__LCD_D11
113f126890aSEmmanuel Vadot			MX28_PAD_LCD_D12__LCD_D12
114f126890aSEmmanuel Vadot			MX28_PAD_LCD_D13__LCD_D13
115f126890aSEmmanuel Vadot			MX28_PAD_LCD_D14__LCD_D14
116f126890aSEmmanuel Vadot			MX28_PAD_LCD_D15__LCD_D15
117f126890aSEmmanuel Vadot			MX28_PAD_LCD_D16__LCD_D16
118f126890aSEmmanuel Vadot			MX28_PAD_LCD_D17__LCD_D17
119f126890aSEmmanuel Vadot		>;
120f126890aSEmmanuel Vadot		fsl,drive-strength = <MXS_DRIVE_4mA>;
121f126890aSEmmanuel Vadot		fsl,voltage = <MXS_VOLTAGE_HIGH>;
122f126890aSEmmanuel Vadot		fsl,pull-up = <MXS_PULL_DISABLE>;
123f126890aSEmmanuel Vadot	};
124f126890aSEmmanuel Vadot
125f126890aSEmmanuel Vadot	lcdif_pins_cfa10057: lcdif-evk@0 {
126f126890aSEmmanuel Vadot		reg = <0>;
127f126890aSEmmanuel Vadot		fsl,pinmux-ids = <
128f126890aSEmmanuel Vadot			MX28_PAD_LCD_RD_E__LCD_VSYNC
129f126890aSEmmanuel Vadot			MX28_PAD_LCD_WR_RWN__LCD_HSYNC
130f126890aSEmmanuel Vadot			MX28_PAD_LCD_RS__LCD_DOTCLK
131f126890aSEmmanuel Vadot			MX28_PAD_LCD_CS__LCD_ENABLE
132f126890aSEmmanuel Vadot		>;
133f126890aSEmmanuel Vadot		fsl,drive-strength = <MXS_DRIVE_4mA>;
134f126890aSEmmanuel Vadot		fsl,voltage = <MXS_VOLTAGE_HIGH>;
135f126890aSEmmanuel Vadot		fsl,pull-up = <MXS_PULL_DISABLE>;
136f126890aSEmmanuel Vadot	};
137f126890aSEmmanuel Vadot};
138f126890aSEmmanuel Vadot
139f126890aSEmmanuel Vadot&pwm {
140f126890aSEmmanuel Vadot	pinctrl-names = "default";
141f126890aSEmmanuel Vadot	pinctrl-0 = <&pwm4_pins_a>;
142f126890aSEmmanuel Vadot	status = "okay";
143f126890aSEmmanuel Vadot};
144f126890aSEmmanuel Vadot
145f126890aSEmmanuel Vadot&usb1 {
146f126890aSEmmanuel Vadot	vbus-supply = <&reg_usb1_vbus>;
147f126890aSEmmanuel Vadot	pinctrl-0 = <&usb1_pins_a>;
148f126890aSEmmanuel Vadot	pinctrl-names = "default";
149f126890aSEmmanuel Vadot	status = "okay";
150f126890aSEmmanuel Vadot};
151f126890aSEmmanuel Vadot
152f126890aSEmmanuel Vadot&usbphy1 {
153f126890aSEmmanuel Vadot	status = "okay";
154f126890aSEmmanuel Vadot};
155