Thomas Gleixner | fcaf203 | 2019-05-27 08:55:08 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
Brian Lilly | 95678322 | 2013-07-01 15:23:24 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2013 Crystalfontz America, Inc. |
| 4 | * Copyright 2013 Free Electrons |
Brian Lilly | 95678322 | 2013-07-01 15:23:24 +0200 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | /* |
| 8 | * The CFA-10058 is an expansion board for the CFA-10036 module, thus we |
| 9 | * need to include the CFA-10036 DTS. |
| 10 | */ |
Lothar Waßmann | bc3875f | 2013-09-19 08:59:48 +0200 | [diff] [blame] | 11 | #include "imx28-cfa10036.dts" |
Brian Lilly | 95678322 | 2013-07-01 15:23:24 +0200 | [diff] [blame] | 12 | |
| 13 | / { |
| 14 | model = "Crystalfontz CFA-10058 Board"; |
| 15 | compatible = "crystalfontz,cfa10058", "crystalfontz,cfa10036", "fsl,imx28"; |
| 16 | |
| 17 | apb@80000000 { |
| 18 | apbh@80000000 { |
| 19 | pinctrl@80018000 { |
| 20 | usb_pins_cfa10058: usb-10058@0 { |
| 21 | reg = <0>; |
| 22 | fsl,pinmux-ids = < |
Lothar Waßmann | bc3875f | 2013-09-19 08:59:48 +0200 | [diff] [blame] | 23 | MX28_PAD_GPMI_D07__GPIO_0_7 |
Brian Lilly | 95678322 | 2013-07-01 15:23:24 +0200 | [diff] [blame] | 24 | >; |
Lothar Waßmann | 4191c34 | 2013-09-22 14:02:59 +0800 | [diff] [blame] | 25 | fsl,drive-strength = <MXS_DRIVE_4mA>; |
| 26 | fsl,voltage = <MXS_VOLTAGE_HIGH>; |
| 27 | fsl,pull-up = <MXS_PULL_DISABLE>; |
Brian Lilly | 95678322 | 2013-07-01 15:23:24 +0200 | [diff] [blame] | 28 | }; |
| 29 | |
| 30 | lcdif_pins_cfa10058: lcdif-10058@0 { |
| 31 | reg = <0>; |
| 32 | fsl,pinmux-ids = < |
Lothar Waßmann | bc3875f | 2013-09-19 08:59:48 +0200 | [diff] [blame] | 33 | MX28_PAD_LCD_RD_E__LCD_VSYNC |
| 34 | MX28_PAD_LCD_WR_RWN__LCD_HSYNC |
| 35 | MX28_PAD_LCD_RS__LCD_DOTCLK |
| 36 | MX28_PAD_LCD_CS__LCD_ENABLE |
Brian Lilly | 95678322 | 2013-07-01 15:23:24 +0200 | [diff] [blame] | 37 | >; |
Lothar Waßmann | 4191c34 | 2013-09-22 14:02:59 +0800 | [diff] [blame] | 38 | fsl,drive-strength = <MXS_DRIVE_4mA>; |
| 39 | fsl,voltage = <MXS_VOLTAGE_HIGH>; |
| 40 | fsl,pull-up = <MXS_PULL_DISABLE>; |
Brian Lilly | 95678322 | 2013-07-01 15:23:24 +0200 | [diff] [blame] | 41 | }; |
| 42 | }; |
| 43 | |
| 44 | lcdif@80030000 { |
| 45 | pinctrl-names = "default"; |
| 46 | pinctrl-0 = <&lcdif_24bit_pins_a |
| 47 | &lcdif_pins_cfa10058>; |
Fabio Estevam | 7029b39 | 2014-09-04 22:31:20 -0300 | [diff] [blame] | 48 | display = <&display0>; |
Brian Lilly | 95678322 | 2013-07-01 15:23:24 +0200 | [diff] [blame] | 49 | status = "okay"; |
| 50 | |
Fabio Estevam | 7029b39 | 2014-09-04 22:31:20 -0300 | [diff] [blame] | 51 | display0: display0 { |
Brian Lilly | 95678322 | 2013-07-01 15:23:24 +0200 | [diff] [blame] | 52 | bits-per-pixel = <32>; |
| 53 | bus-width = <24>; |
| 54 | |
| 55 | display-timings { |
| 56 | native-mode = <&timing0>; |
| 57 | timing0: timing0 { |
| 58 | clock-frequency = <30000000>; |
| 59 | hactive = <800>; |
| 60 | vactive = <480>; |
| 61 | hback-porch = <40>; |
| 62 | hfront-porch = <40>; |
| 63 | vback-porch = <13>; |
| 64 | vfront-porch = <29>; |
| 65 | hsync-len = <8>; |
| 66 | vsync-len = <8>; |
| 67 | hsync-active = <0>; |
| 68 | vsync-active = <0>; |
| 69 | de-active = <1>; |
| 70 | pixelclk-active = <1>; |
| 71 | }; |
| 72 | }; |
| 73 | }; |
| 74 | }; |
| 75 | }; |
| 76 | |
| 77 | apbx@80040000 { |
| 78 | lradc@80050000 { |
| 79 | fsl,lradc-touchscreen-wires = <4>; |
| 80 | status = "okay"; |
| 81 | }; |
| 82 | |
| 83 | pwm: pwm@80064000 { |
| 84 | pinctrl-names = "default"; |
| 85 | pinctrl-0 = <&pwm3_pins_b>; |
| 86 | status = "okay"; |
| 87 | }; |
| 88 | |
| 89 | usbphy1: usbphy@8007e000 { |
| 90 | status = "okay"; |
| 91 | }; |
| 92 | }; |
| 93 | }; |
| 94 | |
| 95 | ahb@80080000 { |
| 96 | usb1: usb@80090000 { |
| 97 | vbus-supply = <®_usb1_vbus>; |
Michael Grzeschik | c8e42bc | 2013-12-06 15:56:40 +0100 | [diff] [blame] | 98 | pinctrl-0 = <&usb1_pins_a>; |
Brian Lilly | 95678322 | 2013-07-01 15:23:24 +0200 | [diff] [blame] | 99 | pinctrl-names = "default"; |
| 100 | status = "okay"; |
| 101 | }; |
| 102 | }; |
| 103 | |
| 104 | regulators { |
| 105 | compatible = "simple-bus"; |
Shawn Guo | 352d318 | 2014-02-07 23:18:30 +0800 | [diff] [blame] | 106 | #address-cells = <1>; |
| 107 | #size-cells = <0>; |
Brian Lilly | 95678322 | 2013-07-01 15:23:24 +0200 | [diff] [blame] | 108 | |
Shawn Guo | 352d318 | 2014-02-07 23:18:30 +0800 | [diff] [blame] | 109 | reg_usb1_vbus: regulator@0 { |
Brian Lilly | 95678322 | 2013-07-01 15:23:24 +0200 | [diff] [blame] | 110 | pinctrl-names = "default"; |
| 111 | pinctrl-0 = <&usb_pins_cfa10058>; |
| 112 | compatible = "regulator-fixed"; |
Shawn Guo | 352d318 | 2014-02-07 23:18:30 +0800 | [diff] [blame] | 113 | reg = <0>; |
Brian Lilly | 95678322 | 2013-07-01 15:23:24 +0200 | [diff] [blame] | 114 | regulator-name = "usb1_vbus"; |
| 115 | regulator-min-microvolt = <5000000>; |
| 116 | regulator-max-microvolt = <5000000>; |
| 117 | gpio = <&gpio0 7 1>; |
| 118 | }; |
| 119 | }; |
| 120 | |
| 121 | ahb@80080000 { |
| 122 | mac0: ethernet@800f0000 { |
| 123 | phy-mode = "rmii"; |
| 124 | pinctrl-names = "default"; |
| 125 | pinctrl-0 = <&mac0_pins_a>; |
Fabio Estevam | 12de44f | 2017-06-04 14:31:15 -0300 | [diff] [blame] | 126 | phy-reset-gpios = <&gpio2 21 GPIO_ACTIVE_LOW>; |
Brian Lilly | 95678322 | 2013-07-01 15:23:24 +0200 | [diff] [blame] | 127 | phy-reset-duration = <100>; |
| 128 | status = "okay"; |
| 129 | }; |
| 130 | }; |
| 131 | |
| 132 | backlight { |
| 133 | compatible = "pwm-backlight"; |
| 134 | pwms = <&pwm 3 5000000>; |
| 135 | brightness-levels = <0 4 8 16 32 64 128 255>; |
| 136 | default-brightness-level = <6>; |
| 137 | }; |
| 138 | }; |