blob: 7e6eef2488e807c12c36aaebfd3e64b076f7622f [file] [log] [blame]
Fabio Estevamb9df4492012-07-04 13:22:53 -03001/*
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/;
Lothar Waßmannbc3875f2013-09-19 08:59:48 +020015#include "imx23.dtsi"
Fabio Estevamb9df4492012-07-04 13:22:53 -030016
17/ {
18 model = "i.MX23 Olinuxino Low Cost Board";
19 compatible = "olimex,imx23-olinuxino", "fsl,imx23";
20
21 memory {
22 reg = <0x40000000 0x04000000>;
23 };
24
25 apb@80000000 {
26 apbh@80000000 {
27 ssp0: ssp@80010000 {
28 compatible = "fsl,imx23-mmc";
29 pinctrl-names = "default";
30 pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_pins_fixup>;
31 bus-width = <4>;
Alexandre Pereira da Silva1897fda2013-04-06 10:42:10 -030032 broken-cd;
Fabio Estevamb9df4492012-07-04 13:22:53 -030033 status = "okay";
34 };
Fabio Estevamba5db492012-08-22 13:25:33 -030035
36 pinctrl@80018000 {
37 pinctrl-names = "default";
38 pinctrl-0 = <&hog_pins_a>;
39
40 hog_pins_a: hog@0 {
41 reg = <0>;
42 fsl,pinmux-ids = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +020043 MX23_PAD_GPMI_ALE__GPIO_0_17
Fabio Estevam098e7522012-09-24 23:52:20 -030044 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +080045 fsl,drive-strength = <MXS_DRIVE_4mA>;
46 fsl,voltage = <MXS_VOLTAGE_HIGH>;
47 fsl,pull-up = <MXS_PULL_DISABLE>;
Fabio Estevam098e7522012-09-24 23:52:20 -030048 };
49
Fabio Estevam664e9e42012-12-24 16:01:39 -020050 led_pin_gpio2_1: led_gpio2_1@0 {
Fabio Estevam098e7522012-09-24 23:52:20 -030051 reg = <0>;
52 fsl,pinmux-ids = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +020053 MX23_PAD_SSP1_DETECT__GPIO_2_1
Fabio Estevamba5db492012-08-22 13:25:33 -030054 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +080055 fsl,drive-strength = <MXS_DRIVE_4mA>;
56 fsl,voltage = <MXS_VOLTAGE_HIGH>;
57 fsl,pull-up = <MXS_PULL_DISABLE>;
Fabio Estevamba5db492012-08-22 13:25:33 -030058 };
59 };
Fadil Berishaa0487862012-11-17 16:52:32 -050060
61 ssp1: ssp@80034000 {
62 #address-cells = <1>;
63 #size-cells = <0>;
64 compatible = "fsl,imx23-spi";
65 pinctrl-names = "default";
66 pinctrl-0 = <&spi2_pins_a>;
67 status = "okay";
68 };
Fabio Estevamb9df4492012-07-04 13:22:53 -030069 };
70
71 apbx@80040000 {
Otavio Salvadorf9f09e882013-07-16 09:56:14 -030072 lradc@80050000 {
73 status = "okay";
74 };
75
Fabio Estevamb9df4492012-07-04 13:22:53 -030076 duart: serial@80070000 {
77 pinctrl-names = "default";
78 pinctrl-0 = <&duart_pins_a>;
79 status = "okay";
80 };
Fabio Estevam98916a22012-07-30 16:33:44 -030081
82 auart0: serial@8006c000 {
83 pinctrl-names = "default";
84 pinctrl-0 = <&auart0_2pins_a>;
85 status = "okay";
86 };
Fabio Estevamb4931292012-09-17 10:01:45 -030087
88 usbphy0: usbphy@8007c000 {
89 status = "okay";
90 };
91 };
92 };
93
94 ahb@80080000 {
95 usb0: usb@80080000 {
96 vbus-supply = <&reg_usb0_vbus>;
97 status = "okay";
98 };
99 };
100
101 regulators {
102 compatible = "simple-bus";
Shawn Guo352d3182014-02-07 23:18:30 +0800103 #address-cells = <1>;
104 #size-cells = <0>;
Fabio Estevamb4931292012-09-17 10:01:45 -0300105
Shawn Guo352d3182014-02-07 23:18:30 +0800106 reg_usb0_vbus: regulator@0 {
Fabio Estevamb4931292012-09-17 10:01:45 -0300107 compatible = "regulator-fixed";
Shawn Guo352d3182014-02-07 23:18:30 +0800108 reg = <0>;
Fabio Estevamb4931292012-09-17 10:01:45 -0300109 regulator-name = "usb0_vbus";
110 regulator-min-microvolt = <5000000>;
111 regulator-max-microvolt = <5000000>;
112 enable-active-high;
113 startup-delay-us = <300>; /* LAN9215 requires a POR of 200us minimum */
114 gpio = <&gpio0 17 0>;
Fabio Estevamb9df4492012-07-04 13:22:53 -0300115 };
116 };
Fabio Estevamba5db492012-08-22 13:25:33 -0300117
118 leds {
119 compatible = "gpio-leds";
Fabio Estevam098e7522012-09-24 23:52:20 -0300120 pinctrl-names = "default";
Fabio Estevam664e9e42012-12-24 16:01:39 -0200121 pinctrl-0 = <&led_pin_gpio2_1>;
Fabio Estevamba5db492012-08-22 13:25:33 -0300122
123 user {
124 label = "green";
Fabio Estevamb34aa182012-09-24 23:52:19 -0300125 gpios = <&gpio2 1 1>;
Fabio Estevamba5db492012-08-22 13:25:33 -0300126 };
127 };
Fabio Estevamb9df4492012-07-04 13:22:53 -0300128};