Fabio Estevam | b9df449 | 2012-07-04 13:22:53 -0300 | [diff] [blame] | 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/; |
Fabio Estevam | cfe8c59 | 2015-04-14 11:05:04 -0300 | [diff] [blame] | 15 | #include <dt-bindings/gpio/gpio.h> |
Lothar Waßmann | bc3875f | 2013-09-19 08:59:48 +0200 | [diff] [blame] | 16 | #include "imx23.dtsi" |
Fabio Estevam | b9df449 | 2012-07-04 13:22:53 -0300 | [diff] [blame] | 17 | |
| 18 | / { |
| 19 | model = "i.MX23 Olinuxino Low Cost Board"; |
| 20 | compatible = "olimex,imx23-olinuxino", "fsl,imx23"; |
| 21 | |
Marco Franchi | ad00e08 | 2018-01-24 11:22:14 -0200 | [diff] [blame] | 22 | memory@40000000 { |
Fabio Estevam | b9df449 | 2012-07-04 13:22:53 -0300 | [diff] [blame] | 23 | reg = <0x40000000 0x04000000>; |
| 24 | }; |
| 25 | |
| 26 | apb@80000000 { |
| 27 | apbh@80000000 { |
| 28 | ssp0: ssp@80010000 { |
| 29 | compatible = "fsl,imx23-mmc"; |
| 30 | pinctrl-names = "default"; |
| 31 | pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_pins_fixup>; |
| 32 | bus-width = <4>; |
Alexandre Pereira da Silva | 1897fda | 2013-04-06 10:42:10 -0300 | [diff] [blame] | 33 | broken-cd; |
Fabio Estevam | b9df449 | 2012-07-04 13:22:53 -0300 | [diff] [blame] | 34 | status = "okay"; |
| 35 | }; |
Fabio Estevam | ba5db49 | 2012-08-22 13:25:33 -0300 | [diff] [blame] | 36 | |
| 37 | pinctrl@80018000 { |
| 38 | pinctrl-names = "default"; |
| 39 | pinctrl-0 = <&hog_pins_a>; |
| 40 | |
| 41 | hog_pins_a: hog@0 { |
| 42 | reg = <0>; |
| 43 | fsl,pinmux-ids = < |
Lothar Waßmann | bc3875f | 2013-09-19 08:59:48 +0200 | [diff] [blame] | 44 | MX23_PAD_GPMI_ALE__GPIO_0_17 |
Fabio Estevam | 098e752 | 2012-09-24 23:52:20 -0300 | [diff] [blame] | 45 | >; |
Lothar Waßmann | 4191c34 | 2013-09-22 14:02:59 +0800 | [diff] [blame] | 46 | fsl,drive-strength = <MXS_DRIVE_4mA>; |
| 47 | fsl,voltage = <MXS_VOLTAGE_HIGH>; |
| 48 | fsl,pull-up = <MXS_PULL_DISABLE>; |
Fabio Estevam | 098e752 | 2012-09-24 23:52:20 -0300 | [diff] [blame] | 49 | }; |
| 50 | |
Fabio Estevam | 664e9e4 | 2012-12-24 16:01:39 -0200 | [diff] [blame] | 51 | led_pin_gpio2_1: led_gpio2_1@0 { |
Fabio Estevam | 098e752 | 2012-09-24 23:52:20 -0300 | [diff] [blame] | 52 | reg = <0>; |
| 53 | fsl,pinmux-ids = < |
Lothar Waßmann | bc3875f | 2013-09-19 08:59:48 +0200 | [diff] [blame] | 54 | MX23_PAD_SSP1_DETECT__GPIO_2_1 |
Fabio Estevam | ba5db49 | 2012-08-22 13:25:33 -0300 | [diff] [blame] | 55 | >; |
Lothar Waßmann | 4191c34 | 2013-09-22 14:02:59 +0800 | [diff] [blame] | 56 | fsl,drive-strength = <MXS_DRIVE_4mA>; |
| 57 | fsl,voltage = <MXS_VOLTAGE_HIGH>; |
| 58 | fsl,pull-up = <MXS_PULL_DISABLE>; |
Fabio Estevam | ba5db49 | 2012-08-22 13:25:33 -0300 | [diff] [blame] | 59 | }; |
| 60 | }; |
Fadil Berisha | a048786 | 2012-11-17 16:52:32 -0500 | [diff] [blame] | 61 | |
| 62 | ssp1: ssp@80034000 { |
| 63 | #address-cells = <1>; |
| 64 | #size-cells = <0>; |
| 65 | compatible = "fsl,imx23-spi"; |
| 66 | pinctrl-names = "default"; |
| 67 | pinctrl-0 = <&spi2_pins_a>; |
| 68 | status = "okay"; |
| 69 | }; |
Fabio Estevam | b9df449 | 2012-07-04 13:22:53 -0300 | [diff] [blame] | 70 | }; |
| 71 | |
| 72 | apbx@80040000 { |
Otavio Salvador | f9f09e88 | 2013-07-16 09:56:14 -0300 | [diff] [blame] | 73 | lradc@80050000 { |
| 74 | status = "okay"; |
| 75 | }; |
| 76 | |
Harald Geyer | 27a14c9 | 2015-04-17 14:43:25 +0000 | [diff] [blame] | 77 | i2c: i2c@80058000 { |
| 78 | pinctrl-names = "default"; |
| 79 | pinctrl-0 = <&i2c_pins_b>; |
| 80 | status = "okay"; |
| 81 | }; |
| 82 | |
Fabio Estevam | b9df449 | 2012-07-04 13:22:53 -0300 | [diff] [blame] | 83 | duart: serial@80070000 { |
| 84 | pinctrl-names = "default"; |
| 85 | pinctrl-0 = <&duart_pins_a>; |
| 86 | status = "okay"; |
| 87 | }; |
Fabio Estevam | 98916a2 | 2012-07-30 16:33:44 -0300 | [diff] [blame] | 88 | |
| 89 | auart0: serial@8006c000 { |
| 90 | pinctrl-names = "default"; |
| 91 | pinctrl-0 = <&auart0_2pins_a>; |
| 92 | status = "okay"; |
| 93 | }; |
Fabio Estevam | b493129 | 2012-09-17 10:01:45 -0300 | [diff] [blame] | 94 | |
| 95 | usbphy0: usbphy@8007c000 { |
| 96 | status = "okay"; |
| 97 | }; |
| 98 | }; |
| 99 | }; |
| 100 | |
| 101 | ahb@80080000 { |
| 102 | usb0: usb@80080000 { |
Stefan Wahren | 0fdebe1 | 2015-04-14 20:37:26 +0000 | [diff] [blame] | 103 | dr_mode = "host"; |
Fabio Estevam | b493129 | 2012-09-17 10:01:45 -0300 | [diff] [blame] | 104 | vbus-supply = <®_usb0_vbus>; |
| 105 | status = "okay"; |
| 106 | }; |
| 107 | }; |
| 108 | |
| 109 | regulators { |
| 110 | compatible = "simple-bus"; |
Shawn Guo | 352d318 | 2014-02-07 23:18:30 +0800 | [diff] [blame] | 111 | #address-cells = <1>; |
| 112 | #size-cells = <0>; |
Fabio Estevam | b493129 | 2012-09-17 10:01:45 -0300 | [diff] [blame] | 113 | |
Shawn Guo | 352d318 | 2014-02-07 23:18:30 +0800 | [diff] [blame] | 114 | reg_usb0_vbus: regulator@0 { |
Fabio Estevam | b493129 | 2012-09-17 10:01:45 -0300 | [diff] [blame] | 115 | compatible = "regulator-fixed"; |
Shawn Guo | 352d318 | 2014-02-07 23:18:30 +0800 | [diff] [blame] | 116 | reg = <0>; |
Fabio Estevam | b493129 | 2012-09-17 10:01:45 -0300 | [diff] [blame] | 117 | regulator-name = "usb0_vbus"; |
| 118 | regulator-min-microvolt = <5000000>; |
| 119 | regulator-max-microvolt = <5000000>; |
| 120 | enable-active-high; |
| 121 | startup-delay-us = <300>; /* LAN9215 requires a POR of 200us minimum */ |
| 122 | gpio = <&gpio0 17 0>; |
Fabio Estevam | b9df449 | 2012-07-04 13:22:53 -0300 | [diff] [blame] | 123 | }; |
| 124 | }; |
Fabio Estevam | ba5db49 | 2012-08-22 13:25:33 -0300 | [diff] [blame] | 125 | |
| 126 | leds { |
| 127 | compatible = "gpio-leds"; |
Fabio Estevam | 098e752 | 2012-09-24 23:52:20 -0300 | [diff] [blame] | 128 | pinctrl-names = "default"; |
Fabio Estevam | 664e9e4 | 2012-12-24 16:01:39 -0200 | [diff] [blame] | 129 | pinctrl-0 = <&led_pin_gpio2_1>; |
Fabio Estevam | ba5db49 | 2012-08-22 13:25:33 -0300 | [diff] [blame] | 130 | |
| 131 | user { |
| 132 | label = "green"; |
Fabio Estevam | cfe8c59 | 2015-04-14 11:05:04 -0300 | [diff] [blame] | 133 | gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>; |
Fabio Estevam | ba5db49 | 2012-08-22 13:25:33 -0300 | [diff] [blame] | 134 | }; |
| 135 | }; |
Fabio Estevam | b9df449 | 2012-07-04 13:22:53 -0300 | [diff] [blame] | 136 | }; |