GNU Linux-libre 4.19.245-gnu1
[releases.git] / arch / arm / boot / dts / imx23-olinuxino.dts
1 /*
2  * Copyright 2012 Freescale Semiconductor, Inc.
3  *
4  * Author: Fabio Estevam <fabio.estevam@freescale.com>
5  *
6  * The code contained herein is licensed under the GNU General Public
7  * License. You may obtain a copy of the GNU General Public License
8  * Version 2 or later at the following locations:
9  *
10  * http://www.opensource.org/licenses/gpl-license.html
11  * http://www.gnu.org/copyleft/gpl.html
12  */
13
14 /dts-v1/;
15 #include <dt-bindings/gpio/gpio.h>
16 #include "imx23.dtsi"
17
18 / {
19         model = "i.MX23 Olinuxino Low Cost Board";
20         compatible = "olimex,imx23-olinuxino", "fsl,imx23";
21
22         memory@40000000 {
23                 device_type = "memory";
24                 reg = <0x40000000 0x04000000>;
25         };
26
27         apb@80000000 {
28                 apbh@80000000 {
29                         ssp0: ssp@80010000 {
30                                 compatible = "fsl,imx23-mmc";
31                                 pinctrl-names = "default";
32                                 pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_pins_fixup>;
33                                 bus-width = <4>;
34                                 broken-cd;
35                                 status = "okay";
36                         };
37
38                         pinctrl@80018000 {
39                                 pinctrl-names = "default";
40                                 pinctrl-0 = <&hog_pins_a>;
41
42                                 hog_pins_a: hog@0 {
43                                         reg = <0>;
44                                         fsl,pinmux-ids = <
45                                                 MX23_PAD_GPMI_ALE__GPIO_0_17
46                                         >;
47                                         fsl,drive-strength = <MXS_DRIVE_4mA>;
48                                         fsl,voltage = <MXS_VOLTAGE_HIGH>;
49                                         fsl,pull-up = <MXS_PULL_DISABLE>;
50                                 };
51
52                                 led_pin_gpio2_1: led_gpio2_1@0 {
53                                         reg = <0>;
54                                         fsl,pinmux-ids = <
55                                                 MX23_PAD_SSP1_DETECT__GPIO_2_1
56                                         >;
57                                         fsl,drive-strength = <MXS_DRIVE_4mA>;
58                                         fsl,voltage = <MXS_VOLTAGE_HIGH>;
59                                         fsl,pull-up = <MXS_PULL_DISABLE>;
60                                 };
61                         };
62
63                         ssp1: ssp@80034000 {
64                                 #address-cells = <1>;
65                                 #size-cells = <0>;
66                                 compatible = "fsl,imx23-spi";
67                                 pinctrl-names = "default";
68                                 pinctrl-0 = <&spi2_pins_a>;
69                                 status = "okay";
70                         };
71                 };
72
73                 apbx@80040000 {
74                         lradc@80050000 {
75                                 status = "okay";
76                         };
77
78                         i2c: i2c@80058000 {
79                                 pinctrl-names = "default";
80                                 pinctrl-0 = <&i2c_pins_b>;
81                                 status = "okay";
82                         };
83
84                         duart: serial@80070000 {
85                                 pinctrl-names = "default";
86                                 pinctrl-0 = <&duart_pins_a>;
87                                 status = "okay";
88                         };
89
90                         auart0: serial@8006c000 {
91                                 pinctrl-names = "default";
92                                 pinctrl-0 = <&auart0_2pins_a>;
93                                 status = "okay";
94                         };
95
96                         usbphy0: usbphy@8007c000 {
97                                 status = "okay";
98                         };
99                 };
100         };
101
102         ahb@80080000 {
103                 usb0: usb@80080000 {
104                         dr_mode = "host";
105                         vbus-supply = <&reg_usb0_vbus>;
106                         status = "okay";
107                 };
108         };
109
110         regulators {
111                 compatible = "simple-bus";
112                 #address-cells = <1>;
113                 #size-cells = <0>;
114
115                 reg_usb0_vbus: regulator@0 {
116                         compatible = "regulator-fixed";
117                         reg = <0>;
118                         regulator-name = "usb0_vbus";
119                         regulator-min-microvolt = <5000000>;
120                         regulator-max-microvolt = <5000000>;
121                         enable-active-high;
122                         startup-delay-us = <300>; /* LAN9215 requires a POR of 200us minimum */
123                         gpio = <&gpio0 17 0>;
124                 };
125         };
126
127         leds {
128                 compatible = "gpio-leds";
129                 pinctrl-names = "default";
130                 pinctrl-0 = <&led_pin_gpio2_1>;
131
132                 user {
133                         label = "green";
134                         gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
135                 };
136         };
137 };