1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright 2013 Eukréa Electromatique <eric@eukrea.com>
4 * Copyright 2013 Eukréa Electromatique <denis@eukrea.com>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/gpio/gpio.h>
12 model = "Eukrea Electromatique MBMX28LC";
13 compatible = "eukrea,mbmx28lc", "fsl,imx28";
16 compatible = "pwm-backlight";
17 pwms = <&pwm 4 1000000>;
18 brightness-levels = <0 25 50 75 100 125 150 175 200 225 255>;
19 default-brightness-level = <10>;
23 compatible = "gpio-keys";
24 pinctrl-names = "default";
25 pinctrl-0 = <&gpio_button_sw3_pins_mbmx28lc>;
29 gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
30 linux,code = <BTN_MISC>;
36 compatible = "gpio-keys";
37 pinctrl-names = "default";
38 pinctrl-0 = <&gpio_button_sw4_pins_mbmx28lc>;
42 gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;
43 linux,code = <BTN_MISC>;
49 compatible = "gpio-leds";
50 pinctrl-names = "default";
51 pinctrl-0 = <&led_d6_pins_mbmx28lc>;
55 gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
56 linux,default-trigger = "heartbeat";
61 compatible = "gpio-leds";
62 pinctrl-names = "default";
63 pinctrl-0 = <&led_d7_pins_mbmx28lc>;
67 gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
68 linux,default-trigger = "default-on";
73 compatible = "simple-bus";
77 reg_3p3v: regulator@0 {
78 compatible = "regulator-fixed";
80 regulator-name = "3P3V";
81 regulator-min-microvolt = <3300000>;
82 regulator-max-microvolt = <3300000>;
86 reg_lcd_3v3: regulator@1 {
87 compatible = "regulator-fixed";
89 pinctrl-names = "default";
90 pinctrl-0 = <®_lcd_3v3_pins_mbmx28lc>;
91 regulator-name = "lcd-3v3";
92 regulator-min-microvolt = <3300000>;
93 regulator-max-microvolt = <3300000>;
94 gpio = <&gpio3 30 GPIO_ACTIVE_HIGH>;
98 reg_usb0_vbus: regulator@2 {
99 compatible = "regulator-fixed";
101 pinctrl-names = "default";
102 pinctrl-0 = <®_usb0_vbus_pins_mbmx28lc>;
103 regulator-name = "usb0_vbus";
104 regulator-min-microvolt = <5000000>;
105 regulator-max-microvolt = <5000000>;
106 gpio = <&gpio1 18 GPIO_ACTIVE_HIGH>;
110 reg_usb1_vbus: regulator@3 {
111 compatible = "regulator-fixed";
113 pinctrl-names = "default";
114 pinctrl-0 = <®_usb1_vbus_pins_mbmx28lc>;
115 regulator-name = "usb1_vbus";
116 regulator-min-microvolt = <5000000>;
117 regulator-max-microvolt = <5000000>;
118 gpio = <&gpio1 19 GPIO_ACTIVE_HIGH>;
124 compatible = "fsl,imx28-mbmx28lc-sgtl5000",
125 "fsl,mxs-audio-sgtl5000";
126 model = "imx28-mbmx28lc-sgtl5000";
127 saif-controllers = <&saif0 &saif1>;
128 audio-codec = <&sgtl5000>;
133 pinctrl-names = "default";
134 pinctrl-0 = <&duart_4pins_a>;
139 pinctrl-names = "default";
140 pinctrl-0 = <&i2c0_pins_a>;
144 compatible = "fsl,sgtl5000";
146 #sound-dai-cells = <0>;
147 VDDA-supply = <®_3p3v>;
148 VDDIO-supply = <®_3p3v>;
154 pinctrl-names = "default";
155 pinctrl-0 = <&lcdif_18bit_pins_a &lcdif_pins_mbmx28lc>;
156 lcd-supply = <®_lcd_3v3>;
157 display = <&display0>;
162 bits-per-pixel = <16>;
166 native-mode = <&timing0>;
168 clock-frequency = <9072000>;
180 pixelclk-active = <1>;
187 fsl,lradc-touchscreen-wires = <4>;
192 gpio_button_sw3_pins_mbmx28lc: gpio-button-sw3-mbmx28lc@0 {
195 MX28_PAD_LCD_D21__GPIO_1_21
197 fsl,drive-strength = <MXS_DRIVE_4mA>;
198 fsl,voltage = <MXS_VOLTAGE_HIGH>;
199 fsl,pull-up = <MXS_PULL_DISABLE>;
202 gpio_button_sw4_pins_mbmx28lc: gpio-button-sw4-mbmx28lc@0 {
205 MX28_PAD_LCD_D20__GPIO_1_20
207 fsl,drive-strength = <MXS_DRIVE_4mA>;
208 fsl,voltage = <MXS_VOLTAGE_HIGH>;
209 fsl,pull-up = <MXS_PULL_DISABLE>;
212 lcdif_pins_mbmx28lc: lcdif-mbmx28lc@0 {
215 MX28_PAD_LCD_VSYNC__LCD_VSYNC
216 MX28_PAD_LCD_HSYNC__LCD_HSYNC
217 MX28_PAD_LCD_DOTCLK__LCD_DOTCLK
218 MX28_PAD_LCD_ENABLE__LCD_ENABLE
220 fsl,drive-strength = <MXS_DRIVE_4mA>;
221 fsl,voltage = <MXS_VOLTAGE_HIGH>;
222 fsl,pull-up = <MXS_PULL_DISABLE>;
225 led_d6_pins_mbmx28lc: led-d6-mbmx28lc@0 {
228 MX28_PAD_LCD_D23__GPIO_1_23
230 fsl,drive-strength = <MXS_DRIVE_4mA>;
231 fsl,voltage = <MXS_VOLTAGE_HIGH>;
232 fsl,pull-up = <MXS_PULL_DISABLE>;
235 led_d7_pins_mbmx28lc: led-d7-mbmx28lc@0 {
238 MX28_PAD_LCD_D22__GPIO_1_22
240 fsl,drive-strength = <MXS_DRIVE_4mA>;
241 fsl,voltage = <MXS_VOLTAGE_HIGH>;
242 fsl,pull-up = <MXS_PULL_DISABLE>;
245 reg_lcd_3v3_pins_mbmx28lc: lcd-3v3-mbmx28lc@0 {
248 MX28_PAD_LCD_RESET__GPIO_3_30
250 fsl,drive-strength = <MXS_DRIVE_4mA>;
251 fsl,voltage = <MXS_VOLTAGE_HIGH>;
252 fsl,pull-up = <MXS_PULL_DISABLE>;
255 reg_usb0_vbus_pins_mbmx28lc: reg-usb0-vbus-mbmx28lc@0 {
258 MX28_PAD_LCD_D18__GPIO_1_18
260 fsl,drive-strength = <MXS_DRIVE_4mA>;
261 fsl,voltage = <MXS_VOLTAGE_HIGH>;
262 fsl,pull-up = <MXS_PULL_DISABLE>;
265 reg_usb1_vbus_pins_mbmx28lc: reg-usb1-vbus-mbmx28lc@0 {
268 MX28_PAD_LCD_D19__GPIO_1_19
270 fsl,drive-strength = <MXS_DRIVE_4mA>;
271 fsl,voltage = <MXS_VOLTAGE_HIGH>;
272 fsl,pull-up = <MXS_PULL_DISABLE>;
277 pinctrl-names = "default";
278 pinctrl-0 = <&pwm4_pins_a>;
283 pinctrl-names = "default";
284 pinctrl-0 = <&saif0_pins_a>;
289 pinctrl-names = "default";
290 pinctrl-0 = <&saif1_pins_a>;
291 fsl,saif-master = <&saif0>;
296 compatible = "fsl,imx28-mmc";
297 pinctrl-names = "default";
298 pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_cd_cfg &mmc0_sck_cfg>;
305 disable-over-current;
306 vbus-supply = <®_usb0_vbus>;
308 pinctrl-names = "default";
309 pinctrl-0 = <&usb0_id_pins_b>;
313 vbus-supply = <®_usb1_vbus>;