blob: 0729e72f228320d0cdc5bc63e63aa2ccc29d6a08 [file] [log] [blame]
Thomas Gleixnerfcaf2032019-05-27 08:55:08 +02001// SPDX-License-Identifier: GPL-2.0-or-later
Fabio Estevamb9df4492012-07-04 13:22:53 -03002/*
3 * Copyright 2012 Freescale Semiconductor, Inc.
4 *
5 * Author: Fabio Estevam <fabio.estevam@freescale.com>
Fabio Estevamb9df4492012-07-04 13:22:53 -03006 */
7
8/dts-v1/;
Fabio Estevamcfe8c592015-04-14 11:05:04 -03009#include <dt-bindings/gpio/gpio.h>
Lothar Waßmannbc3875f2013-09-19 08:59:48 +020010#include "imx23.dtsi"
Fabio Estevamb9df4492012-07-04 13:22:53 -030011
12/ {
13 model = "i.MX23 Olinuxino Low Cost Board";
14 compatible = "olimex,imx23-olinuxino", "fsl,imx23";
15
Marco Franchiad00e082018-01-24 11:22:14 -020016 memory@40000000 {
Fabio Estevamb629e832018-11-26 10:08:55 -020017 device_type = "memory";
Fabio Estevamb9df4492012-07-04 13:22:53 -030018 reg = <0x40000000 0x04000000>;
19 };
20
21 apb@80000000 {
22 apbh@80000000 {
Rob Herring5a2ecf02018-09-13 13:12:29 -050023 ssp0: spi@80010000 {
Fabio Estevamb9df4492012-07-04 13:22:53 -030024 compatible = "fsl,imx23-mmc";
25 pinctrl-names = "default";
Michael Heimpolde4fdac52020-03-08 23:21:44 +010026 pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_sck_cfg>;
Fabio Estevamb9df4492012-07-04 13:22:53 -030027 bus-width = <4>;
Alexandre Pereira da Silva1897fda2013-04-06 10:42:10 -030028 broken-cd;
Fabio Estevamb9df4492012-07-04 13:22:53 -030029 status = "okay";
30 };
Fabio Estevamba5db492012-08-22 13:25:33 -030031
32 pinctrl@80018000 {
33 pinctrl-names = "default";
34 pinctrl-0 = <&hog_pins_a>;
35
36 hog_pins_a: hog@0 {
37 reg = <0>;
38 fsl,pinmux-ids = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +020039 MX23_PAD_GPMI_ALE__GPIO_0_17
Fabio Estevam098e7522012-09-24 23:52:20 -030040 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +080041 fsl,drive-strength = <MXS_DRIVE_4mA>;
42 fsl,voltage = <MXS_VOLTAGE_HIGH>;
43 fsl,pull-up = <MXS_PULL_DISABLE>;
Fabio Estevam098e7522012-09-24 23:52:20 -030044 };
45
Fabio Estevam664e9e42012-12-24 16:01:39 -020046 led_pin_gpio2_1: led_gpio2_1@0 {
Fabio Estevam098e7522012-09-24 23:52:20 -030047 reg = <0>;
48 fsl,pinmux-ids = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +020049 MX23_PAD_SSP1_DETECT__GPIO_2_1
Fabio Estevamba5db492012-08-22 13:25:33 -030050 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +080051 fsl,drive-strength = <MXS_DRIVE_4mA>;
52 fsl,voltage = <MXS_VOLTAGE_HIGH>;
53 fsl,pull-up = <MXS_PULL_DISABLE>;
Fabio Estevamba5db492012-08-22 13:25:33 -030054 };
55 };
Fadil Berishaa0487862012-11-17 16:52:32 -050056
Rob Herring5a2ecf02018-09-13 13:12:29 -050057 ssp1: spi@80034000 {
Fadil Berishaa0487862012-11-17 16:52:32 -050058 #address-cells = <1>;
59 #size-cells = <0>;
60 compatible = "fsl,imx23-spi";
61 pinctrl-names = "default";
62 pinctrl-0 = <&spi2_pins_a>;
63 status = "okay";
64 };
Fabio Estevamb9df4492012-07-04 13:22:53 -030065 };
66
67 apbx@80040000 {
Otavio Salvadorf9f09e882013-07-16 09:56:14 -030068 lradc@80050000 {
69 status = "okay";
70 };
71
Harald Geyer27a14c92015-04-17 14:43:25 +000072 i2c: i2c@80058000 {
73 pinctrl-names = "default";
74 pinctrl-0 = <&i2c_pins_b>;
75 status = "okay";
76 };
77
Fabio Estevamb9df4492012-07-04 13:22:53 -030078 duart: serial@80070000 {
79 pinctrl-names = "default";
80 pinctrl-0 = <&duart_pins_a>;
81 status = "okay";
82 };
Fabio Estevam98916a22012-07-30 16:33:44 -030083
84 auart0: serial@8006c000 {
85 pinctrl-names = "default";
86 pinctrl-0 = <&auart0_2pins_a>;
87 status = "okay";
88 };
Fabio Estevamb4931292012-09-17 10:01:45 -030089
90 usbphy0: usbphy@8007c000 {
91 status = "okay";
92 };
93 };
94 };
95
96 ahb@80080000 {
97 usb0: usb@80080000 {
Stefan Wahren0fdebe12015-04-14 20:37:26 +000098 dr_mode = "host";
Fabio Estevamb4931292012-09-17 10:01:45 -030099 vbus-supply = <&reg_usb0_vbus>;
100 status = "okay";
101 };
102 };
103
104 regulators {
105 compatible = "simple-bus";
Shawn Guo352d3182014-02-07 23:18:30 +0800106 #address-cells = <1>;
107 #size-cells = <0>;
Fabio Estevamb4931292012-09-17 10:01:45 -0300108
Shawn Guo352d3182014-02-07 23:18:30 +0800109 reg_usb0_vbus: regulator@0 {
Fabio Estevamb4931292012-09-17 10:01:45 -0300110 compatible = "regulator-fixed";
Shawn Guo352d3182014-02-07 23:18:30 +0800111 reg = <0>;
Fabio Estevamb4931292012-09-17 10:01:45 -0300112 regulator-name = "usb0_vbus";
113 regulator-min-microvolt = <5000000>;
114 regulator-max-microvolt = <5000000>;
115 enable-active-high;
116 startup-delay-us = <300>; /* LAN9215 requires a POR of 200us minimum */
117 gpio = <&gpio0 17 0>;
Fabio Estevamb9df4492012-07-04 13:22:53 -0300118 };
119 };
Fabio Estevamba5db492012-08-22 13:25:33 -0300120
121 leds {
122 compatible = "gpio-leds";
Fabio Estevam098e7522012-09-24 23:52:20 -0300123 pinctrl-names = "default";
Fabio Estevam664e9e42012-12-24 16:01:39 -0200124 pinctrl-0 = <&led_pin_gpio2_1>;
Fabio Estevamba5db492012-08-22 13:25:33 -0300125
126 user {
127 label = "green";
Fabio Estevamcfe8c592015-04-14 11:05:04 -0300128 gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
Fabio Estevamba5db492012-08-22 13:25:33 -0300129 };
130 };
Fabio Estevamb9df4492012-07-04 13:22:53 -0300131};