blob: cc2a37437196199a2dec5cc672a7d54f86f737fa [file] [log] [blame]
Javier Martinez Canillas9ad1df22012-12-19 14:33:10 +01001/*
Enric Balletbo i Serraa1f4d202014-11-06 13:01:43 +01002 * Device Tree Source for IGEP COM MODULE Rev. E (TI OMAP AM/DM37x)
Javier Martinez Canillas9ad1df22012-12-19 14:33:10 +01003 *
4 * Copyright (C) 2012 Javier Martinez Canillas <javier@collabora.co.uk>
5 * Copyright (C) 2012 Enric Balletbo i Serra <eballetbo@gmail.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11
Florian Vaussard98ef79572013-05-31 14:32:55 +020012#include "omap3-igep.dtsi"
Javier Martinez Canillas9ad1df22012-12-19 14:33:10 +010013
14/ {
Enric Balletbo i Serraa1f4d202014-11-06 13:01:43 +010015 model = "IGEP COM MODULE Rev. E (TI OMAP AM/DM37x)";
Javier Martinez Canillasfb0cfec2014-02-22 10:59:36 -030016 compatible = "isee,omap3-igep0030", "ti,omap36xx", "ti,omap3";
Javier Martinez Canillas9ad1df22012-12-19 14:33:10 +010017
18 leds {
Javier Martinez Canillas78132032013-06-20 16:42:32 +020019 pinctrl-names = "default";
20 pinctrl-0 = <&leds_pins>;
Javier Martinez Canillas9ad1df22012-12-19 14:33:10 +010021 compatible = "gpio-leds";
Javier Martinez Canillas78132032013-06-20 16:42:32 +020022
Javier Martinez Canillas9ad1df22012-12-19 14:33:10 +010023 boot {
24 label = "omap3:green:boot";
Florian Vaussard6d624ea2013-05-31 14:32:56 +020025 gpios = <&twl_gpio 13 GPIO_ACTIVE_LOW>;
Javier Martinez Canillas9ad1df22012-12-19 14:33:10 +010026 default-state = "on";
27 };
28
29 user0 {
30 label = "omap3:red:user0";
Florian Vaussard6d624ea2013-05-31 14:32:56 +020031 gpios = <&twl_gpio 18 GPIO_ACTIVE_LOW>; /* LEDA */
Javier Martinez Canillas9ad1df22012-12-19 14:33:10 +010032 default-state = "off";
33 };
34
35 user1 {
36 label = "omap3:green:user1";
Florian Vaussard6d624ea2013-05-31 14:32:56 +020037 gpios = <&twl_gpio 19 GPIO_ACTIVE_LOW>; /* LEDB */
Javier Martinez Canillas9ad1df22012-12-19 14:33:10 +010038 default-state = "off";
39 };
40
41 user2 {
42 label = "omap3:red:user1";
Florian Vaussard6d624ea2013-05-31 14:32:56 +020043 gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
Javier Martinez Canillas9ad1df22012-12-19 14:33:10 +010044 default-state = "off";
45 };
46 };
Enric Balletbo i Serra2de584e2014-11-06 13:01:45 +010047
48 /* Regulator to trigger the WIFI_PDN signal of the Wifi module */
49 lbee1usjyc_pdn: lbee1usjyc_pdn {
50 compatible = "regulator-fixed";
51 regulator-name = "regulator-lbee1usjyc-pdn";
52 regulator-min-microvolt = <3300000>;
53 regulator-max-microvolt = <3300000>;
54 gpio = <&gpio5 10 GPIO_ACTIVE_HIGH>; /* gpio_138 - WIFI_PDN */
55 startup-delay-us = <10000>;
56 enable-active-high;
57 };
58
59 /* Regulator to trigger the RESET_N_W signal of the Wifi module */
60 lbee1usjyc_reset_n_w: lbee1usjyc_reset_n_w {
61 compatible = "regulator-fixed";
62 regulator-name = "regulator-lbee1usjyc-reset-n-w";
63 regulator-min-microvolt = <3300000>;
64 regulator-max-microvolt = <3300000>;
65 gpio = <&gpio5 11 GPIO_ACTIVE_HIGH>; /* gpio_139 - RESET_N_W */
66 enable-active-high;
67 };
Javier Martinez Canillas9ad1df22012-12-19 14:33:10 +010068};
Javier Martinez Canillasbc6b8202013-05-10 21:40:59 +020069
Enric Balletbo i Serra86f9abb2014-11-06 13:01:41 +010070&omap3_pmx_core {
Enric Balletbo i Serra2de584e2014-11-06 13:01:45 +010071 lbee1usjyc_pins: pinmux_lbee1usjyc_pins {
72 pinctrl-single,pins = <
73 OMAP3_CORE1_IOPAD(0x2166, PIN_OUTPUT | MUX_MODE4) /* sdmmc2_dat5.gpio_137 - RESET_N_W */
74 OMAP3_CORE1_IOPAD(0x2168, PIN_OUTPUT | MUX_MODE4) /* sdmmc2_dat6.gpio_138 - WIFI_PDN */
75 OMAP3_CORE1_IOPAD(0x216a, PIN_OUTPUT | MUX_MODE4) /* sdmmc2_dat7.gpio_139 - RST_N_B */
76 >;
77 };
78
Enric Balletbo i Serra86f9abb2014-11-06 13:01:41 +010079 uart2_pins: pinmux_uart2_pins {
80 pinctrl-single,pins = <
81 OMAP3_CORE1_IOPAD(0x216c, PIN_INPUT | MUX_MODE1) /* mcbsp3_dx.uart2_cts */
82 OMAP3_CORE1_IOPAD(0x216e, PIN_OUTPUT | MUX_MODE1) /* mcbsp3_dr.uart2_rts */
83 OMAP3_CORE1_IOPAD(0x2170, PIN_OUTPUT | MUX_MODE1) /* mcbsp3_clk.uart2_tx */
84 OMAP3_CORE1_IOPAD(0x2172, PIN_INPUT | MUX_MODE1) /* mcbsp3_fsx.uart2_rx */
85 >;
86 };
87};
88
Laurent Pinchart3d4953832014-01-07 14:01:39 -080089&omap3_pmx_core2 {
90 leds_pins: pinmux_leds_pins {
91 pinctrl-single,pins = <
92 OMAP3630_CORE2_IOPAD(0x25e0, PIN_OUTPUT | MUX_MODE4) /* etk_d2.gpio_16 */
93 >;
94 };
Javier Martinez Canillas78132032013-06-20 16:42:32 +020095};
96
Enric Balletbo i Serra2de584e2014-11-06 13:01:45 +010097/* On board Wifi module */
98&mmc2 {
99 pinctrl-names = "default";
100 pinctrl-0 = <&mmc2_pins &lbee1usjyc_pins>;
101 vmmc-supply = <&lbee1usjyc_pdn>;
102 vmmc_aux-supply = <&lbee1usjyc_reset_n_w>;
103 bus-width = <4>;
104 non-removable;
105};
106
Enric Balletbo i Serra86f9abb2014-11-06 13:01:41 +0100107&uart2 {
108 pinctrl-names = "default";
109 pinctrl-0 = <&uart2_pins>;
110};