1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright 2013 Crystalfontz America, Inc.
4 * Copyright 2013 Free Electrons
5 */
6
7/*
8 * The CFA-10058 is an expansion board for the CFA-10036 module, thus we
9 * need to include the CFA-10036 DTS.
10 */
11#include "imx28-cfa10036.dts"
12
13/ {
14	model = "Crystalfontz CFA-10058 Board";
15	compatible = "crystalfontz,cfa10058", "crystalfontz,cfa10036", "fsl,imx28";
16
17	reg_usb1_vbus: regulator-0 {
18		compatible = "regulator-fixed";
19		pinctrl-names = "default";
20		pinctrl-0 = <&usb_pins_cfa10058>;
21		regulator-name = "usb1_vbus";
22		regulator-min-microvolt = <5000000>;
23		regulator-max-microvolt = <5000000>;
24		gpio = <&gpio0 7 1>;
25	};
26
27	backlight {
28		compatible = "pwm-backlight";
29		pwms = <&pwm 3 5000000 0>;
30		brightness-levels = <0 4 8 16 32 64 128 255>;
31		default-brightness-level = <6>;
32	};
33};
34
35&lcdif {
36	pinctrl-names = "default";
37	pinctrl-0 = <&lcdif_24bit_pins_a
38			 &lcdif_pins_cfa10058>;
39	display = <&display0>;
40	status = "okay";
41
42	display0: display0 {
43		bits-per-pixel = <32>;
44		bus-width = <24>;
45
46		display-timings {
47			native-mode = <&timing0>;
48			timing0: timing0 {
49				clock-frequency = <30000000>;
50				hactive = <800>;
51				vactive = <480>;
52				hback-porch = <40>;
53				hfront-porch = <40>;
54				vback-porch = <13>;
55				vfront-porch = <29>;
56				hsync-len = <8>;
57				vsync-len = <8>;
58				hsync-active = <0>;
59				vsync-active = <0>;
60				de-active = <1>;
61				pixelclk-active = <1>;
62			};
63		};
64	};
65};
66
67&lradc {
68	fsl,lradc-touchscreen-wires = <4>;
69	status = "okay";
70};
71
72&mac0 {
73	phy-mode = "rmii";
74	pinctrl-names = "default";
75	pinctrl-0 = <&mac0_pins_a>;
76	phy-reset-gpios = <&gpio2 21 GPIO_ACTIVE_LOW>;
77	phy-reset-duration = <100>;
78	status = "okay";
79};
80
81&pinctrl {
82	usb_pins_cfa10058: usb-10058@0 {
83		reg = <0>;
84		fsl,pinmux-ids = <
85			MX28_PAD_GPMI_D07__GPIO_0_7
86		>;
87		fsl,drive-strength = <MXS_DRIVE_4mA>;
88		fsl,voltage = <MXS_VOLTAGE_HIGH>;
89		fsl,pull-up = <MXS_PULL_DISABLE>;
90	};
91
92	lcdif_pins_cfa10058: lcdif-10058@0 {
93		reg = <0>;
94		fsl,pinmux-ids = <
95			MX28_PAD_LCD_RD_E__LCD_VSYNC
96			MX28_PAD_LCD_WR_RWN__LCD_HSYNC
97			MX28_PAD_LCD_RS__LCD_DOTCLK
98			MX28_PAD_LCD_CS__LCD_ENABLE
99		>;
100		fsl,drive-strength = <MXS_DRIVE_4mA>;
101		fsl,voltage = <MXS_VOLTAGE_HIGH>;
102		fsl,pull-up = <MXS_PULL_DISABLE>;
103	};
104};
105
106&pwm {
107	pinctrl-names = "default";
108	pinctrl-0 = <&pwm3_pins_b>;
109	status = "okay";
110};
111
112&usb1 {
113	vbus-supply = <&reg_usb1_vbus>;
114	pinctrl-0 = <&usb1_pins_a>;
115	pinctrl-names = "default";
116	status = "okay";
117};
118
119&usbphy1 {
120	status = "okay";
121};
122