imx23-olinuxino.dts 2.8 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
/*
 * Copyright 2012 Freescale Semiconductor, Inc.
 *
 * Author: Fabio Estevam <fabio.estevam@freescale.com>
 *
 * The code contained herein is licensed under the GNU General Public
 * License. You may obtain a copy of the GNU General Public License
 * Version 2 or later at the following locations:
 *
 * http://www.opensource.org/licenses/gpl-license.html
 * http://www.gnu.org/copyleft/gpl.html
 */

/dts-v1/;
15
#include <dt-bindings/gpio/gpio.h>
16
#include "imx23.dtsi"
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32

/ {
	model = "i.MX23 Olinuxino Low Cost Board";
	compatible = "olimex,imx23-olinuxino", "fsl,imx23";

	memory {
		reg = <0x40000000 0x04000000>;
	};

	apb@80000000 {
		apbh@80000000 {
			ssp0: ssp@80010000 {
				compatible = "fsl,imx23-mmc";
				pinctrl-names = "default";
				pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_pins_fixup>;
				bus-width = <4>;
33
				broken-cd;
34 35
				status = "okay";
			};
36 37 38 39 40 41 42 43

			pinctrl@80018000 {
				pinctrl-names = "default";
				pinctrl-0 = <&hog_pins_a>;

				hog_pins_a: hog@0 {
					reg = <0>;
					fsl,pinmux-ids = <
44
						MX23_PAD_GPMI_ALE__GPIO_0_17
45
					>;
46 47 48
					fsl,drive-strength = <MXS_DRIVE_4mA>;
					fsl,voltage = <MXS_VOLTAGE_HIGH>;
					fsl,pull-up = <MXS_PULL_DISABLE>;
49 50
				};

51
				led_pin_gpio2_1: led_gpio2_1@0 {
52 53
					reg = <0>;
					fsl,pinmux-ids = <
54
						MX23_PAD_SSP1_DETECT__GPIO_2_1
55
					>;
56 57 58
					fsl,drive-strength = <MXS_DRIVE_4mA>;
					fsl,voltage = <MXS_VOLTAGE_HIGH>;
					fsl,pull-up = <MXS_PULL_DISABLE>;
59 60
				};
			};
61 62 63 64 65 66 67 68 69

			ssp1: ssp@80034000 {
				#address-cells = <1>;
				#size-cells = <0>;
				compatible = "fsl,imx23-spi";
				pinctrl-names = "default";
				pinctrl-0 = <&spi2_pins_a>;
				status = "okay";
			};
70 71 72
		};

		apbx@80040000 {
73 74 75 76
			lradc@80050000 {
				status = "okay";
			};

77 78 79
			i2c: i2c@80058000 {
				pinctrl-names = "default";
				pinctrl-0 = <&i2c_pins_b>;
80 81 82
				status = "okay";
			};

83 84 85 86 87
			duart: serial@80070000 {
				pinctrl-names = "default";
				pinctrl-0 = <&duart_pins_a>;
				status = "okay";
			};
88 89 90 91 92 93

			auart0: serial@8006c000 {
				pinctrl-names = "default";
				pinctrl-0 = <&auart0_2pins_a>;
				status = "okay";
			};
94 95 96 97 98 99 100 101 102

			usbphy0: usbphy@8007c000 {
				status = "okay";
			};
		};
	};

	ahb@80080000 {
		usb0: usb@80080000 {
103
			dr_mode = "host";
104 105 106 107 108 109 110
			vbus-supply = <&reg_usb0_vbus>;
			status = "okay";
		};
	};

	regulators {
		compatible = "simple-bus";
111 112
		#address-cells = <1>;
		#size-cells = <0>;
113

114
		reg_usb0_vbus: regulator@0 {
115
			compatible = "regulator-fixed";
116
			reg = <0>;
117 118 119 120 121 122
			regulator-name = "usb0_vbus";
			regulator-min-microvolt = <5000000>;
			regulator-max-microvolt = <5000000>;
			enable-active-high;
			startup-delay-us = <300>; /* LAN9215 requires a POR of 200us minimum */
			gpio = <&gpio0 17 0>;
123 124
		};
	};
125 126 127

	leds {
		compatible = "gpio-leds";
128
		pinctrl-names = "default";
129
		pinctrl-0 = <&led_pin_gpio2_1>;
130 131 132

		user {
			label = "green";
133
			gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
134 135
		};
	};
136
};