xref: /openbmc/linux/arch/arm/boot/dts/nxp/mxs/imx23-olinuxino.dts (revision c900529f3d9161bfde5cca0754f83b4d3c3e0220)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-or-later
2724ba675SRob Herring/*
3724ba675SRob Herring * Copyright 2012 Freescale Semiconductor, Inc.
4724ba675SRob Herring *
5724ba675SRob Herring * Author: Fabio Estevam <fabio.estevam@freescale.com>
6724ba675SRob Herring */
7724ba675SRob Herring
8724ba675SRob Herring/dts-v1/;
9724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
10724ba675SRob Herring#include "imx23.dtsi"
11724ba675SRob Herring
12724ba675SRob Herring/ {
13724ba675SRob Herring	model = "i.MX23 Olinuxino Low Cost Board";
14724ba675SRob Herring	compatible = "olimex,imx23-olinuxino", "fsl,imx23";
15724ba675SRob Herring
16724ba675SRob Herring	memory@40000000 {
17724ba675SRob Herring		device_type = "memory";
18724ba675SRob Herring		reg = <0x40000000 0x04000000>;
19724ba675SRob Herring	};
20724ba675SRob Herring
21724ba675SRob Herring	apb@80000000 {
22724ba675SRob Herring		apbh@80000000 {
23724ba675SRob Herring			ssp0: spi@80010000 {
24724ba675SRob Herring				compatible = "fsl,imx23-mmc";
25724ba675SRob Herring				pinctrl-names = "default";
26724ba675SRob Herring				pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_sck_cfg>;
27724ba675SRob Herring				bus-width = <4>;
28724ba675SRob Herring				broken-cd;
29724ba675SRob Herring				status = "okay";
30724ba675SRob Herring			};
31724ba675SRob Herring
32724ba675SRob Herring			pinctrl@80018000 {
33724ba675SRob Herring				pinctrl-names = "default";
34724ba675SRob Herring				pinctrl-0 = <&hog_pins_a>;
35724ba675SRob Herring
36724ba675SRob Herring				hog_pins_a: hog@0 {
37724ba675SRob Herring					reg = <0>;
38724ba675SRob Herring					fsl,pinmux-ids = <
39724ba675SRob Herring						MX23_PAD_GPMI_ALE__GPIO_0_17
40724ba675SRob Herring					>;
41724ba675SRob Herring					fsl,drive-strength = <MXS_DRIVE_4mA>;
42724ba675SRob Herring					fsl,voltage = <MXS_VOLTAGE_HIGH>;
43724ba675SRob Herring					fsl,pull-up = <MXS_PULL_DISABLE>;
44724ba675SRob Herring				};
45724ba675SRob Herring
46724ba675SRob Herring				led_pin_gpio2_1: led_gpio2_1@0 {
47724ba675SRob Herring					reg = <0>;
48724ba675SRob Herring					fsl,pinmux-ids = <
49724ba675SRob Herring						MX23_PAD_SSP1_DETECT__GPIO_2_1
50724ba675SRob Herring					>;
51724ba675SRob Herring					fsl,drive-strength = <MXS_DRIVE_4mA>;
52724ba675SRob Herring					fsl,voltage = <MXS_VOLTAGE_HIGH>;
53724ba675SRob Herring					fsl,pull-up = <MXS_PULL_DISABLE>;
54724ba675SRob Herring				};
55724ba675SRob Herring			};
56724ba675SRob Herring
57724ba675SRob Herring			ssp1: spi@80034000 {
58724ba675SRob Herring				#address-cells = <1>;
59724ba675SRob Herring				#size-cells = <0>;
60724ba675SRob Herring				compatible = "fsl,imx23-spi";
61724ba675SRob Herring				pinctrl-names = "default";
62724ba675SRob Herring				pinctrl-0 = <&spi2_pins_a>;
63724ba675SRob Herring				status = "okay";
64724ba675SRob Herring			};
65724ba675SRob Herring		};
66724ba675SRob Herring
67724ba675SRob Herring		apbx@80040000 {
68724ba675SRob Herring			lradc@80050000 {
69724ba675SRob Herring				status = "okay";
70724ba675SRob Herring			};
71724ba675SRob Herring
72724ba675SRob Herring			i2c: i2c@80058000 {
73724ba675SRob Herring				pinctrl-names = "default";
74724ba675SRob Herring				pinctrl-0 = <&i2c_pins_b>;
75724ba675SRob Herring				status = "okay";
76724ba675SRob Herring			};
77724ba675SRob Herring
78724ba675SRob Herring			duart: serial@80070000 {
79724ba675SRob Herring				pinctrl-names = "default";
80724ba675SRob Herring				pinctrl-0 = <&duart_pins_a>;
81724ba675SRob Herring				status = "okay";
82724ba675SRob Herring			};
83724ba675SRob Herring
84724ba675SRob Herring			auart0: serial@8006c000 {
85724ba675SRob Herring				pinctrl-names = "default";
86724ba675SRob Herring				pinctrl-0 = <&auart0_2pins_a>;
87724ba675SRob Herring				status = "okay";
88724ba675SRob Herring			};
89724ba675SRob Herring
90724ba675SRob Herring			usbphy0: usbphy@8007c000 {
91724ba675SRob Herring				status = "okay";
92724ba675SRob Herring			};
93724ba675SRob Herring		};
94724ba675SRob Herring	};
95724ba675SRob Herring
96724ba675SRob Herring	ahb@80080000 {
97724ba675SRob Herring		usb0: usb@80080000 {
98724ba675SRob Herring			dr_mode = "host";
99724ba675SRob Herring			vbus-supply = <&reg_usb0_vbus>;
100724ba675SRob Herring			status = "okay";
101724ba675SRob Herring		};
102724ba675SRob Herring	};
103724ba675SRob Herring
104*62bb689dSKrzysztof Kozlowski	reg_usb0_vbus: regulator-0 {
105724ba675SRob Herring		compatible = "regulator-fixed";
106724ba675SRob Herring		regulator-name = "usb0_vbus";
107724ba675SRob Herring		regulator-min-microvolt = <5000000>;
108724ba675SRob Herring		regulator-max-microvolt = <5000000>;
109724ba675SRob Herring		enable-active-high;
110724ba675SRob Herring		startup-delay-us = <300>; /* LAN9215 requires a POR of 200us minimum */
111724ba675SRob Herring		gpio = <&gpio0 17 0>;
112724ba675SRob Herring	};
113724ba675SRob Herring
114724ba675SRob Herring	leds {
115724ba675SRob Herring		compatible = "gpio-leds";
116724ba675SRob Herring		pinctrl-names = "default";
117724ba675SRob Herring		pinctrl-0 = <&led_pin_gpio2_1>;
118724ba675SRob Herring
119724ba675SRob Herring		user {
120724ba675SRob Herring			label = "green";
121724ba675SRob Herring			gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
122724ba675SRob Herring		};
123724ba675SRob Herring	};
124724ba675SRob Herring};
125