1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* 3 * Copyright 2013 Eukréa Electromatique <eric@ 4 * Copyright 2013 Eukréa Electromatique <denis 5 */ 6 7 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/gpio/gpio.h> 9 #include "imx28.dtsi" 10 11 / { 12 model = "Eukrea Electromatique MBMX28L 13 compatible = "eukrea,mbmx28lc", "fsl,i 14 15 backlight { 16 compatible = "pwm-backlight"; 17 pwms = <&pwm 4 1000000 0>; 18 brightness-levels = <0 25 50 7 19 default-brightness-level = <10 20 }; 21 22 gpio-keys-0 { 23 compatible = "gpio-keys"; 24 pinctrl-names = "default"; 25 pinctrl-0 = <&gpio_button_sw3_ 26 27 switch-sw3 { 28 label = "SW3"; 29 gpios = <&gpio1 21 GPI 30 linux,code = <BTN_MISC 31 wakeup-source; 32 }; 33 }; 34 35 gpio-keys-1 { 36 compatible = "gpio-keys"; 37 pinctrl-names = "default"; 38 pinctrl-0 = <&gpio_button_sw4_ 39 40 switch-sw4 { 41 label = "SW4"; 42 gpios = <&gpio1 20 GPI 43 linux,code = <BTN_MISC 44 wakeup-source; 45 }; 46 }; 47 48 led-d6 { 49 compatible = "gpio-leds"; 50 pinctrl-names = "default"; 51 pinctrl-0 = <&led_d6_pins_mbmx 52 53 led1 { 54 label = "d6"; 55 gpios = <&gpio1 23 GPI 56 linux,default-trigger 57 }; 58 }; 59 60 led-d7 { 61 compatible = "gpio-leds"; 62 pinctrl-names = "default"; 63 pinctrl-0 = <&led_d7_pins_mbmx 64 65 led1 { 66 label = "d7"; 67 gpios = <&gpio1 22 GPI 68 linux,default-trigger 69 }; 70 }; 71 72 reg_3p3v: regulator-0 { 73 compatible = "regulator-fixed" 74 regulator-name = "3P3V"; 75 regulator-min-microvolt = <330 76 regulator-max-microvolt = <330 77 regulator-always-on; 78 }; 79 80 reg_lcd_3v3: regulator-1 { 81 compatible = "regulator-fixed" 82 pinctrl-names = "default"; 83 pinctrl-0 = <®_lcd_3v3_pins 84 regulator-name = "lcd-3v3"; 85 regulator-min-microvolt = <330 86 regulator-max-microvolt = <330 87 gpio = <&gpio3 30 GPIO_ACTIVE_ 88 enable-active-high; 89 }; 90 91 reg_usb0_vbus: regulator-2 { 92 compatible = "regulator-fixed" 93 pinctrl-names = "default"; 94 pinctrl-0 = <®_usb0_vbus_pi 95 regulator-name = "usb0_vbus"; 96 regulator-min-microvolt = <500 97 regulator-max-microvolt = <500 98 gpio = <&gpio1 18 GPIO_ACTIVE_ 99 enable-active-high; 100 }; 101 102 reg_usb1_vbus: regulator-3 { 103 compatible = "regulator-fixed" 104 pinctrl-names = "default"; 105 pinctrl-0 = <®_usb1_vbus_pi 106 regulator-name = "usb1_vbus"; 107 regulator-min-microvolt = <500 108 regulator-max-microvolt = <500 109 gpio = <&gpio1 19 GPIO_ACTIVE_ 110 enable-active-high; 111 }; 112 113 sound { 114 compatible = "fsl,imx28-mbmx28 115 "fsl,mxs-audio-sg 116 model = "imx28-mbmx28lc-sgtl50 117 saif-controllers = <&saif0 &sa 118 audio-codec = <&sgtl5000>; 119 }; 120 }; 121 122 &duart { 123 pinctrl-names = "default"; 124 pinctrl-0 = <&duart_4pins_a>; 125 status = "okay"; 126 }; 127 128 &i2c0 { 129 pinctrl-names = "default"; 130 pinctrl-0 = <&i2c0_pins_a>; 131 status = "okay"; 132 133 sgtl5000: codec@a { 134 compatible = "fsl,sgtl5000"; 135 reg = <0x0a>; 136 #sound-dai-cells = <0>; 137 VDDA-supply = <®_3p3v>; 138 VDDIO-supply = <®_3p3v>; 139 clocks = <&saif0>; 140 }; 141 }; 142 143 &lcdif { 144 pinctrl-names = "default"; 145 pinctrl-0 = <&lcdif_18bit_pins_a &lcdi 146 lcd-supply = <®_lcd_3v3>; 147 display = <&display0>; 148 status = "okay"; 149 150 display0: display0 { 151 model = "43WVF1G-0"; 152 bits-per-pixel = <16>; 153 bus-width = <18>; 154 155 display-timings { 156 native-mode = <&timing 157 timing0: timing0 { 158 clock-frequenc 159 hactive = <480 160 vactive = <272 161 hback-porch = 162 hfront-porch = 163 vback-porch = 164 vfront-porch = 165 hsync-len = <4 166 vsync-len = <1 167 hsync-active = 168 vsync-active = 169 de-active = <1 170 pixelclk-activ 171 }; 172 }; 173 }; 174 }; 175 176 &lradc { 177 fsl,lradc-touchscreen-wires = <4>; 178 status = "okay"; 179 }; 180 181 &pinctrl { 182 gpio_button_sw3_pins_mbmx28lc: gpio-bu 183 reg = <0>; 184 fsl,pinmux-ids = < 185 MX28_PAD_LCD_D21__GPIO 186 >; 187 fsl,drive-strength = <MXS_DRIV 188 fsl,voltage = <MXS_VOLTAGE_HIG 189 fsl,pull-up = <MXS_PULL_DISABL 190 }; 191 192 gpio_button_sw4_pins_mbmx28lc: gpio-bu 193 reg = <0>; 194 fsl,pinmux-ids = < 195 MX28_PAD_LCD_D20__GPIO 196 >; 197 fsl,drive-strength = <MXS_DRIV 198 fsl,voltage = <MXS_VOLTAGE_HIG 199 fsl,pull-up = <MXS_PULL_DISABL 200 }; 201 202 lcdif_pins_mbmx28lc: lcdif-mbmx28lc@0 203 reg = <0>; 204 fsl,pinmux-ids = < 205 MX28_PAD_LCD_VSYNC__LC 206 MX28_PAD_LCD_HSYNC__LC 207 MX28_PAD_LCD_DOTCLK__L 208 MX28_PAD_LCD_ENABLE__L 209 >; 210 fsl,drive-strength = <MXS_DRIV 211 fsl,voltage = <MXS_VOLTAGE_HIG 212 fsl,pull-up = <MXS_PULL_DISABL 213 }; 214 215 led_d6_pins_mbmx28lc: led-d6-mbmx28lc@ 216 reg = <0>; 217 fsl,pinmux-ids = < 218 MX28_PAD_LCD_D23__GPIO 219 >; 220 fsl,drive-strength = <MXS_DRIV 221 fsl,voltage = <MXS_VOLTAGE_HIG 222 fsl,pull-up = <MXS_PULL_DISABL 223 }; 224 225 led_d7_pins_mbmx28lc: led-d7-mbmx28lc@ 226 reg = <0>; 227 fsl,pinmux-ids = < 228 MX28_PAD_LCD_D22__GPIO 229 >; 230 fsl,drive-strength = <MXS_DRIV 231 fsl,voltage = <MXS_VOLTAGE_HIG 232 fsl,pull-up = <MXS_PULL_DISABL 233 }; 234 235 reg_lcd_3v3_pins_mbmx28lc: lcd-3v3-mbm 236 reg = <0>; 237 fsl,pinmux-ids = < 238 MX28_PAD_LCD_RESET__GP 239 >; 240 fsl,drive-strength = <MXS_DRIV 241 fsl,voltage = <MXS_VOLTAGE_HIG 242 fsl,pull-up = <MXS_PULL_DISABL 243 }; 244 245 reg_usb0_vbus_pins_mbmx28lc: reg-usb0- 246 reg = <0>; 247 fsl,pinmux-ids = < 248 MX28_PAD_LCD_D18__GPIO 249 >; 250 fsl,drive-strength = <MXS_DRIV 251 fsl,voltage = <MXS_VOLTAGE_HIG 252 fsl,pull-up = <MXS_PULL_DISABL 253 }; 254 255 reg_usb1_vbus_pins_mbmx28lc: reg-usb1- 256 reg = <0>; 257 fsl,pinmux-ids = < 258 MX28_PAD_LCD_D19__GPIO 259 >; 260 fsl,drive-strength = <MXS_DRIV 261 fsl,voltage = <MXS_VOLTAGE_HIG 262 fsl,pull-up = <MXS_PULL_DISABL 263 }; 264 }; 265 266 &pwm { 267 pinctrl-names = "default"; 268 pinctrl-0 = <&pwm4_pins_a>; 269 status = "okay"; 270 }; 271 272 &saif0 { 273 pinctrl-names = "default"; 274 pinctrl-0 = <&saif0_pins_a>; 275 status = "okay"; 276 }; 277 278 &saif1 { 279 pinctrl-names = "default"; 280 pinctrl-0 = <&saif1_pins_a>; 281 fsl,saif-master = <&saif0>; 282 status = "okay"; 283 }; 284 285 &ssp0 { 286 compatible = "fsl,imx28-mmc"; 287 pinctrl-names = "default"; 288 pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_c 289 bus-width = <4>; 290 cd-inverted; 291 status = "okay"; 292 }; 293 294 &usb0 { 295 disable-over-current; 296 vbus-supply = <®_usb0_vbus>; 297 status = "okay"; 298 pinctrl-names = "default"; 299 pinctrl-0 = <&usb0_id_pins_b>; 300 }; 301 302 &usb1 { 303 vbus-supply = <®_usb1_vbus>; 304 status = "okay"; 305 }; 306 307 &usbphy0 { 308 status = "okay"; 309 }; 310 311 &usbphy1 { 312 status = "okay"; 313 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.