]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - src/arm/imx28-cfa10036.dts
Import DTS files from Linux 5.0
[FreeBSD/FreeBSD.git] / src / arm / imx28-cfa10036.dts
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/;
13 #include "imx28.dtsi"
14
15 / {
16         model = "Crystalfontz CFA-10036 Board";
17         compatible = "crystalfontz,cfa10036", "fsl,imx28";
18
19         memory@40000000 {
20                 device_type = "memory";
21                 reg = <0x40000000 0x08000000>;
22         };
23
24         apb@80000000 {
25                 apbh@80000000 {
26                         pinctrl@80018000 {
27                                 ssd1306_cfa10036: ssd1306-10036@0 {
28                                         reg = <0>;
29                                         fsl,pinmux-ids = <
30                                                 MX28_PAD_SSP0_DATA7__GPIO_2_7
31                                         >;
32                                         fsl,drive-strength = <MXS_DRIVE_4mA>;
33                                         fsl,voltage = <MXS_VOLTAGE_HIGH>;
34                                         fsl,pull-up = <MXS_PULL_DISABLE>;
35                                 };
36
37                                 led_pins_cfa10036: leds-10036@0 {
38                                         reg = <0>;
39                                         fsl,pinmux-ids = <
40                                                 MX28_PAD_AUART1_RX__GPIO_3_4
41                                         >;
42                                         fsl,drive-strength = <MXS_DRIVE_4mA>;
43                                         fsl,voltage = <MXS_VOLTAGE_HIGH>;
44                                         fsl,pull-up = <MXS_PULL_DISABLE>;
45                                 };
46
47                                 usb0_otg_cfa10036: otg-10036@0 {
48                                         reg = <0>;
49                                         fsl,pinmux-ids = <
50                                                 MX28_PAD_GPMI_RDY0__USB0_ID
51                                         >;
52                                         fsl,drive-strength = <MXS_DRIVE_4mA>;
53                                         fsl,voltage = <MXS_VOLTAGE_HIGH>;
54                                         fsl,pull-up = <MXS_PULL_DISABLE>;
55                                 };
56
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
68                         };
69
70                         ssp0: spi@80010000 {
71                                 compatible = "fsl,imx28-mmc";
72                                 pinctrl-names = "default";
73                                 pinctrl-0 = <&mmc0_4bit_pins_a
74                                         &mmc0_cd_cfg &mmc0_sck_cfg>;
75                                 vmmc-supply = <&reg_vddio_sd0>;
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                         };
87
88                         i2c0: i2c@80058000 {
89                                 pinctrl-names = "default";
90                                 pinctrl-0 = <&i2c0_pins_b>;
91                                 clock-frequency = <400000>;
92                                 status = "okay";
93
94                                 ssd1306: oled@3c {
95                                         compatible = "solomon,ssd1306fb-i2c";
96                                         pinctrl-names = "default";
97                                         pinctrl-0 = <&ssd1306_cfa10036>;
98                                         reg = <0x3c>;
99                                         reset-gpios = <&gpio2 7 0>;
100                                         solomon,height = <32>;
101                                         solomon,width = <128>;
102                                         solomon,page-offset = <0>;
103                                         solomon,com-lrremap;
104                                         solomon,com-invdir;
105                                         solomon,com-offset = <32>;
106                                 };
107                         };
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>;
119                         dr_mode = "peripheral";
120                         phy_type = "utmi";
121                         status = "okay";
122                 };
123         };
124
125         leds {
126                 compatible = "gpio-leds";
127                 pinctrl-names = "default";
128                 pinctrl-0 = <&led_pins_cfa10036>;
129
130                 power {
131                         gpios = <&gpio3 4 1>;
132                         default-state = "on";
133                 };
134         };
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         };
145 };