1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright 2013 Crystalfontz America, Inc. 4 * Copyright 2012 Free Electrons 5 */ 6 7/* 8 * The CFA-10057 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-10057 Board"; 15 compatible = "crystalfontz,cfa10057", "crystalfontz,cfa10036", "fsl,imx28"; 16 17 apb@80000000 { 18 apbh@80000000 { 19 pinctrl@80018000 { 20 usb_pins_cfa10057: usb-10057@0 { 21 reg = <0>; 22 fsl,pinmux-ids = < 23 MX28_PAD_GPMI_D07__GPIO_0_7 24 >; 25 fsl,drive-strength = <MXS_DRIVE_4mA>; 26 fsl,voltage = <MXS_VOLTAGE_HIGH>; 27 fsl,pull-up = <MXS_PULL_DISABLE>; 28 }; 29 30 lcdif_18bit_pins_cfa10057: lcdif-18bit@0 { 31 reg = <0>; 32 fsl,pinmux-ids = < 33 MX28_PAD_LCD_D00__LCD_D0 34 MX28_PAD_LCD_D01__LCD_D1 35 MX28_PAD_LCD_D02__LCD_D2 36 MX28_PAD_LCD_D03__LCD_D3 37 MX28_PAD_LCD_D04__LCD_D4 38 MX28_PAD_LCD_D05__LCD_D5 39 MX28_PAD_LCD_D06__LCD_D6 40 MX28_PAD_LCD_D07__LCD_D7 41 MX28_PAD_LCD_D08__LCD_D8 42 MX28_PAD_LCD_D09__LCD_D9 43 MX28_PAD_LCD_D10__LCD_D10 44 MX28_PAD_LCD_D11__LCD_D11 45 MX28_PAD_LCD_D12__LCD_D12 46 MX28_PAD_LCD_D13__LCD_D13 47 MX28_PAD_LCD_D14__LCD_D14 48 MX28_PAD_LCD_D15__LCD_D15 49 MX28_PAD_LCD_D16__LCD_D16 50 MX28_PAD_LCD_D17__LCD_D17 51 >; 52 fsl,drive-strength = <MXS_DRIVE_4mA>; 53 fsl,voltage = <MXS_VOLTAGE_HIGH>; 54 fsl,pull-up = <MXS_PULL_DISABLE>; 55 }; 56 57 lcdif_pins_cfa10057: lcdif-evk@0 { 58 reg = <0>; 59 fsl,pinmux-ids = < 60 MX28_PAD_LCD_RD_E__LCD_VSYNC 61 MX28_PAD_LCD_WR_RWN__LCD_HSYNC 62 MX28_PAD_LCD_RS__LCD_DOTCLK 63 MX28_PAD_LCD_CS__LCD_ENABLE 64 >; 65 fsl,drive-strength = <MXS_DRIVE_4mA>; 66 fsl,voltage = <MXS_VOLTAGE_HIGH>; 67 fsl,pull-up = <MXS_PULL_DISABLE>; 68 }; 69 }; 70 71 lcdif@80030000 { 72 pinctrl-names = "default"; 73 pinctrl-0 = <&lcdif_18bit_pins_cfa10057 74 &lcdif_pins_cfa10057>; 75 display = <&display0>; 76 status = "okay"; 77 78 display0: display0 { 79 bits-per-pixel = <32>; 80 bus-width = <18>; 81 82 display-timings { 83 native-mode = <&timing0>; 84 timing0: timing0 { 85 clock-frequency = <30000000>; 86 hactive = <480>; 87 vactive = <800>; 88 hfront-porch = <12>; 89 hback-porch = <2>; 90 vfront-porch = <5>; 91 vback-porch = <3>; 92 hsync-len = <2>; 93 vsync-len = <2>; 94 hsync-active = <0>; 95 vsync-active = <0>; 96 de-active = <1>; 97 pixelclk-active = <1>; 98 }; 99 }; 100 }; 101 }; 102 }; 103 104 apbx@80040000 { 105 lradc@80050000 { 106 fsl,lradc-touchscreen-wires = <4>; 107 status = "okay"; 108 }; 109 110 pwm: pwm@80064000 { 111 pinctrl-names = "default"; 112 pinctrl-0 = <&pwm4_pins_a>; 113 status = "okay"; 114 }; 115 116 i2c1: i2c@8005a000 { 117 pinctrl-names = "default"; 118 pinctrl-0 = <&i2c1_pins_a>; 119 status = "okay"; 120 }; 121 122 usbphy1: usbphy@8007e000 { 123 status = "okay"; 124 }; 125 }; 126 }; 127 128 ahb@80080000 { 129 usb1: usb@80090000 { 130 vbus-supply = <®_usb1_vbus>; 131 pinctrl-0 = <&usb1_pins_a>; 132 pinctrl-names = "default"; 133 status = "okay"; 134 }; 135 }; 136 137 regulators { 138 compatible = "simple-bus"; 139 #address-cells = <1>; 140 #size-cells = <0>; 141 142 reg_usb1_vbus: regulator@0 { 143 compatible = "regulator-fixed"; 144 reg = <0>; 145 pinctrl-names = "default"; 146 pinctrl-0 = <&usb_pins_cfa10057>; 147 regulator-name = "usb1_vbus"; 148 regulator-min-microvolt = <5000000>; 149 regulator-max-microvolt = <5000000>; 150 gpio = <&gpio0 7 1>; 151 }; 152 }; 153 154 ahb@80080000 { 155 mac0: ethernet@800f0000 { 156 phy-mode = "rmii"; 157 pinctrl-names = "default"; 158 pinctrl-0 = <&mac0_pins_a>; 159 phy-reset-gpios = <&gpio2 21 GPIO_ACTIVE_LOW>; 160 phy-reset-duration = <100>; 161 status = "okay"; 162 }; 163 }; 164 165 backlight { 166 compatible = "pwm-backlight"; 167 pwms = <&pwm 4 5000000>; 168 brightness-levels = <0 4 8 16 32 64 128 255>; 169 default-brightness-level = <7>; 170 }; 171}; 172