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