Commit | Line | Data |
---|---|---|
330eaaf9 MR |
1 | /* |
2 | * Copyright 2012 Free Electrons | |
3 | * | |
4 | * The code contained herein is licensed under the GNU General Public | |
5 | * License. You may obtain a copy of the GNU General Public License | |
6 | * Version 2 or later at the following locations: | |
7 | * | |
8 | * http://www.opensource.org/licenses/gpl-license.html | |
9 | * http://www.gnu.org/copyleft/gpl.html | |
10 | */ | |
11 | ||
12 | /dts-v1/; | |
bc3875f1 | 13 | #include "imx28.dtsi" |
330eaaf9 MR |
14 | |
15 | / { | |
16 | model = "Crystalfontz CFA-10036 Board"; | |
17 | compatible = "crystalfontz,cfa10036", "fsl,imx28"; | |
18 | ||
ad00e080 | 19 | memory@40000000 { |
32018d15 | 20 | device_type = "memory"; |
330eaaf9 MR |
21 | reg = <0x40000000 0x08000000>; |
22 | }; | |
23 | ||
24 | apb@80000000 { | |
25 | apbh@80000000 { | |
c241d0a3 | 26 | pinctrl@80018000 { |
a74d2ec7 | 27 | ssd1306_cfa10036: ssd1306-10036@0 { |
24196d5c MR |
28 | reg = <0>; |
29 | fsl,pinmux-ids = < | |
bc3875f1 | 30 | MX28_PAD_SSP0_DATA7__GPIO_2_7 |
24196d5c | 31 | >; |
4191c340 LW |
32 | fsl,drive-strength = <MXS_DRIVE_4mA>; |
33 | fsl,voltage = <MXS_VOLTAGE_HIGH>; | |
34 | fsl,pull-up = <MXS_PULL_DISABLE>; | |
24196d5c MR |
35 | }; |
36 | ||
c241d0a3 MR |
37 | led_pins_cfa10036: leds-10036@0 { |
38 | reg = <0>; | |
39 | fsl,pinmux-ids = < | |
bc3875f1 | 40 | MX28_PAD_AUART1_RX__GPIO_3_4 |
c241d0a3 | 41 | >; |
4191c340 LW |
42 | fsl,drive-strength = <MXS_DRIVE_4mA>; |
43 | fsl,voltage = <MXS_VOLTAGE_HIGH>; | |
44 | fsl,pull-up = <MXS_PULL_DISABLE>; | |
c241d0a3 | 45 | }; |
17a21638 MR |
46 | |
47 | usb0_otg_cfa10036: otg-10036@0 { | |
48 | reg = <0>; | |
49 | fsl,pinmux-ids = < | |
bc3875f1 | 50 | MX28_PAD_GPMI_RDY0__USB0_ID |
17a21638 | 51 | >; |
4191c340 LW |
52 | fsl,drive-strength = <MXS_DRIVE_4mA>; |
53 | fsl,voltage = <MXS_VOLTAGE_HIGH>; | |
54 | fsl,pull-up = <MXS_PULL_DISABLE>; | |
17a21638 MR |
55 | }; |
56 | ||
a3f8c564 AB |
57 | mmc_pwr_cfa10036: mmc_pwr_cfa10036@0 { |
58 | reg = <0>; | |
59 | fsl,pinmux-ids = < | |
60 | 0x31c3 /* | |
61 | MX28_PAD_PWM3__GPIO_3_28 */ | |
62 | >; | |
63 | fsl,drive-strength = <0>; | |
64 | fsl,voltage = <1>; | |
65 | fsl,pull-up = <0>; | |
66 | }; | |
67 | ||
c241d0a3 MR |
68 | }; |
69 | ||
5a2ecf0d | 70 | ssp0: spi@80010000 { |
330eaaf9 MR |
71 | compatible = "fsl,imx28-mmc"; |
72 | pinctrl-names = "default"; | |
73 | pinctrl-0 = <&mmc0_4bit_pins_a | |
74 | &mmc0_cd_cfg &mmc0_sck_cfg>; | |
a3f8c564 | 75 | vmmc-supply = <®_vddio_sd0>; |
330eaaf9 MR |
76 | bus-width = <4>; |
77 | status = "okay"; | |
78 | }; | |
79 | }; | |
80 | ||
81 | apbx@80040000 { | |
82 | duart: serial@80074000 { | |
83 | pinctrl-names = "default"; | |
84 | pinctrl-0 = <&duart_pins_b>; | |
85 | status = "okay"; | |
86 | }; | |
25d6dd85 MR |
87 | |
88 | i2c0: i2c@80058000 { | |
89 | pinctrl-names = "default"; | |
90 | pinctrl-0 = <&i2c0_pins_b>; | |
b55cb191 | 91 | clock-frequency = <400000>; |
25d6dd85 MR |
92 | status = "okay"; |
93 | ||
b400932c MR |
94 | ssd1306: oled@3c { |
95 | compatible = "solomon,ssd1306fb-i2c"; | |
a74d2ec7 AB |
96 | pinctrl-names = "default"; |
97 | pinctrl-0 = <&ssd1306_cfa10036>; | |
25d6dd85 | 98 | reg = <0x3c>; |
25d6dd85 | 99 | reset-gpios = <&gpio2 7 0>; |
b400932c MR |
100 | solomon,height = <32>; |
101 | solomon,width = <128>; | |
102 | solomon,page-offset = <0>; | |
20400851 TN |
103 | solomon,com-lrremap; |
104 | solomon,com-invdir; | |
105 | solomon,com-offset = <32>; | |
25d6dd85 MR |
106 | }; |
107 | }; | |
17a21638 MR |
108 | |
109 | usbphy0: usbphy@8007c000 { | |
110 | status = "okay"; | |
111 | }; | |
112 | }; | |
113 | }; | |
114 | ||
115 | ahb@80080000 { | |
116 | usb0: usb@80080000 { | |
117 | pinctrl-names = "default"; | |
118 | pinctrl-0 = <&usb0_otg_cfa10036>; | |
c896238c MR |
119 | dr_mode = "peripheral"; |
120 | phy_type = "utmi"; | |
17a21638 | 121 | status = "okay"; |
330eaaf9 MR |
122 | }; |
123 | }; | |
f34ffc9e MR |
124 | |
125 | leds { | |
126 | compatible = "gpio-leds"; | |
c241d0a3 MR |
127 | pinctrl-names = "default"; |
128 | pinctrl-0 = <&led_pins_cfa10036>; | |
f34ffc9e MR |
129 | |
130 | power { | |
131 | gpios = <&gpio3 4 1>; | |
132 | default-state = "on"; | |
133 | }; | |
134 | }; | |
a3f8c564 AB |
135 | |
136 | reg_vddio_sd0: vddio-sd0 { | |
137 | compatible = "regulator-fixed"; | |
138 | pinctrl-names = "default"; | |
139 | pinctrl-0 = <&mmc_pwr_cfa10036>; | |
140 | regulator-name = "vddio-sd0"; | |
141 | regulator-min-microvolt = <3300000>; | |
142 | regulator-max-microvolt = <3300000>; | |
143 | gpio = <&gpio3 28 0>; | |
144 | }; | |
330eaaf9 | 145 | }; |