0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003 * Copyright (C) 2013 Marek Vasut <marex@denx.de>
0004 */
0005
0006 /dts-v1/;
0007 #include "imx28.dtsi"
0008
0009 / {
0010 model = "MSR M28CU3";
0011 compatible = "msr,m28cu3", "fsl,imx28";
0012
0013 memory@40000000 {
0014 device_type = "memory";
0015 reg = <0x40000000 0x08000000>;
0016 };
0017
0018 apb@80000000 {
0019 apbh@80000000 {
0020 nand-controller@8000c000 {
0021 #address-cells = <1>;
0022 #size-cells = <1>;
0023 pinctrl-names = "default";
0024 pinctrl-0 = <&gpmi_pins_a &gpmi_status_cfg>;
0025 status = "okay";
0026
0027 partition@0 {
0028 label = "gpmi-nfc-0-boot";
0029 reg = <0x00000000 0x01400000>;
0030 read-only;
0031 };
0032
0033 partition@1 {
0034 label = "gpmi-nfc-general-use";
0035 reg = <0x01400000 0x0ec00000>;
0036 };
0037 };
0038
0039 ssp0: spi@80010000 {
0040 compatible = "fsl,imx28-mmc";
0041 pinctrl-names = "default";
0042 pinctrl-0 = <&mmc0_4bit_pins_a
0043 &mmc0_cd_cfg
0044 &mmc0_sck_cfg>;
0045 bus-width = <4>;
0046 vmmc-supply = <®_vddio_sd0>;
0047 status = "okay";
0048 };
0049
0050 ssp2: spi@80014000 {
0051 compatible = "fsl,imx28-mmc";
0052 pinctrl-names = "default";
0053 pinctrl-0 = <&mmc2_4bit_pins_a
0054 &mmc2_cd_cfg
0055 &mmc2_sck_cfg_a>;
0056 bus-width = <4>;
0057 vmmc-supply = <®_vddio_sd1>;
0058 status = "okay";
0059 };
0060
0061 pinctrl@80018000 {
0062 pinctrl-names = "default";
0063 pinctrl-0 = <&hog_pins_a>;
0064
0065 hog_pins_a: hog@0 {
0066 reg = <0>;
0067 fsl,pinmux-ids = <
0068 MX28_PAD_SSP2_SS0__GPIO_2_19
0069 MX28_PAD_PWM4__GPIO_3_29
0070 MX28_PAD_AUART2_RX__GPIO_3_8
0071 MX28_PAD_ENET0_RX_CLK__GPIO_4_13
0072 >;
0073 fsl,drive-strength = <MXS_DRIVE_4mA>;
0074 fsl,voltage = <MXS_VOLTAGE_HIGH>;
0075 fsl,pull-up = <MXS_PULL_DISABLE>;
0076 };
0077
0078 lcdif_pins_m28: lcdif-m28@0 {
0079 reg = <0>;
0080 fsl,pinmux-ids = <
0081 MX28_PAD_LCD_VSYNC__LCD_VSYNC
0082 MX28_PAD_LCD_HSYNC__LCD_HSYNC
0083 MX28_PAD_LCD_DOTCLK__LCD_DOTCLK
0084 MX28_PAD_LCD_RESET__LCD_RESET
0085 MX28_PAD_LCD_CS__LCD_ENABLE
0086 MX28_PAD_AUART1_TX__GPIO_3_5
0087 >;
0088 fsl,drive-strength = <MXS_DRIVE_4mA>;
0089 fsl,voltage = <MXS_VOLTAGE_HIGH>;
0090 fsl,pull-up = <MXS_PULL_DISABLE>;
0091 };
0092
0093 led_pins_gpio: leds-m28@0 {
0094 reg = <0>;
0095 fsl,pinmux-ids = <
0096 MX28_PAD_SSP3_MISO__GPIO_2_26
0097 MX28_PAD_SSP3_SCK__GPIO_2_24
0098 >;
0099 fsl,drive-strength = <MXS_DRIVE_4mA>;
0100 fsl,voltage = <MXS_VOLTAGE_HIGH>;
0101 fsl,pull-up = <MXS_PULL_DISABLE>;
0102 };
0103 };
0104
0105 ocotp@8002c000 {
0106 status = "okay";
0107 };
0108
0109 lcdif@80030000 {
0110 pinctrl-names = "default";
0111 pinctrl-0 = <&lcdif_24bit_pins_a
0112 &lcdif_pins_m28>;
0113 display = <&display0>;
0114 status = "okay";
0115
0116 display0: display0 {
0117 bits-per-pixel = <32>;
0118 bus-width = <24>;
0119
0120 display-timings {
0121 native-mode = <&timing0>;
0122 timing0: timing0 {
0123 clock-frequency = <6410256>;
0124 hactive = <320>;
0125 vactive = <240>;
0126 hback-porch = <38>;
0127 hfront-porch = <20>;
0128 vback-porch = <15>;
0129 vfront-porch = <5>;
0130 hsync-len = <30>;
0131 vsync-len = <3>;
0132 hsync-active = <0>;
0133 vsync-active = <0>;
0134 de-active = <1>;
0135 pixelclk-active = <1>;
0136 };
0137 };
0138 };
0139 };
0140 };
0141
0142 apbx@80040000 {
0143 duart: serial@80074000 {
0144 pinctrl-names = "default";
0145 pinctrl-0 = <&duart_pins_b>;
0146 status = "okay";
0147 };
0148
0149 usbphy1: usbphy@8007e000 {
0150 status = "okay";
0151 };
0152
0153 auart0: serial@8006a000 {
0154 pinctrl-names = "default";
0155 pinctrl-0 = <&auart0_2pins_a>;
0156 status = "okay";
0157 };
0158
0159 auart3: serial@80070000 {
0160 pinctrl-names = "default";
0161 pinctrl-0 = <&auart3_2pins_b>;
0162 status = "okay";
0163 };
0164
0165 pwm: pwm@80064000 {
0166 pinctrl-names = "default";
0167 pinctrl-0 = <&pwm3_pins_a>;
0168 status = "okay";
0169 };
0170 };
0171 };
0172
0173 ahb@80080000 {
0174 usb1: usb@80090000 {
0175 vbus-supply = <®_usb1_vbus>;
0176 pinctrl-names = "default";
0177 pinctrl-0 = <&usb1_pins_a>;
0178 disable-over-current;
0179 status = "okay";
0180 };
0181
0182 mac0: ethernet@800f0000 {
0183 phy-mode = "rmii";
0184 pinctrl-names = "default";
0185 pinctrl-0 = <&mac0_pins_a>;
0186 phy-reset-gpios = <&gpio4 13 GPIO_ACTIVE_LOW>;
0187 phy-reset-duration = <100>;
0188 status = "okay";
0189 };
0190
0191 mac1: ethernet@800f4000 {
0192 phy-mode = "rmii";
0193 pinctrl-names = "default";
0194 pinctrl-0 = <&mac1_pins_a>;
0195 status = "okay";
0196 };
0197 };
0198
0199 backlight {
0200 compatible = "pwm-backlight";
0201 pwms = <&pwm 3 5000000>;
0202 brightness-levels = <0 4 8 16 32 64 128 255>;
0203 default-brightness-level = <6>;
0204 };
0205
0206 leds {
0207 compatible = "gpio-leds";
0208 pinctrl-names = "default";
0209 pinctrl-0 = <&led_pins_gpio>;
0210
0211 user1 {
0212 label = "sd0-led";
0213 gpios = <&gpio2 26 0>;
0214 linux,default-trigger = "mmc0";
0215 };
0216
0217 user2 {
0218 label = "sd1-led";
0219 gpios = <&gpio2 24 0>;
0220 linux,default-trigger = "mmc2";
0221 };
0222 };
0223
0224 regulators {
0225 compatible = "simple-bus";
0226 #address-cells = <1>;
0227 #size-cells = <0>;
0228
0229 reg_3p3v: regulator@0 {
0230 compatible = "regulator-fixed";
0231 reg = <0>;
0232 regulator-name = "3P3V";
0233 regulator-min-microvolt = <3300000>;
0234 regulator-max-microvolt = <3300000>;
0235 regulator-always-on;
0236 };
0237
0238 reg_vddio_sd0: regulator@1 {
0239 compatible = "regulator-fixed";
0240 reg = <1>;
0241 regulator-name = "vddio-sd0";
0242 regulator-min-microvolt = <3300000>;
0243 regulator-max-microvolt = <3300000>;
0244 gpio = <&gpio3 29 0>;
0245 };
0246
0247 reg_vddio_sd1: regulator@2 {
0248 compatible = "regulator-fixed";
0249 reg = <2>;
0250 regulator-name = "vddio-sd1";
0251 regulator-min-microvolt = <3300000>;
0252 regulator-max-microvolt = <3300000>;
0253 gpio = <&gpio2 19 0>;
0254 };
0255
0256 reg_usb1_vbus: regulator@3 {
0257 compatible = "regulator-fixed";
0258 reg = <3>;
0259 regulator-name = "usb1_vbus";
0260 regulator-min-microvolt = <5000000>;
0261 regulator-max-microvolt = <5000000>;
0262 gpio = <&gpio3 8 0>;
0263 enable-active-high;
0264 };
0265 };
0266 };