]>
Commit | Line | Data |
---|---|---|
5eb9b5e5 FV |
1 | /* |
2 | * Copyright (C) 2014 Florian Vaussard, EPFL Mobots group | |
3 | * | |
4 | * This program is free software; you can redistribute it and/or modify | |
5 | * it under the terms of the GNU General Public License version 2 as | |
6 | * published by the Free Software Foundation. | |
7 | */ | |
8 | /dts-v1/; | |
9 | ||
10 | #include "omap4-duovero.dtsi" | |
11 | ||
12 | #include <dt-bindings/input/input.h> | |
13 | ||
14 | / { | |
15 | model = "OMAP4430 Gumstix Duovero on Parlor"; | |
16 | compatible = "gumstix,omap4-duovero-parlor", "gumstix,omap4-duovero", "ti,omap4430", "ti,omap4"; | |
17 | ||
18 | leds { | |
19 | compatible = "gpio-leds"; | |
20 | led0 { | |
21 | label = "duovero:blue:led0"; | |
22 | gpios = <&gpio4 26 GPIO_ACTIVE_HIGH>; /* gpio_122 */ | |
23 | linux,default-trigger = "heartbeat"; | |
24 | }; | |
25 | }; | |
26 | ||
27 | gpio_keys { | |
28 | compatible = "gpio-keys"; | |
29 | #address-cells = <1>; | |
30 | #size-cells = <0>; | |
31 | button0@121 { | |
32 | label = "button0"; | |
33 | linux,code = <BTN_0>; | |
34 | gpios = <&gpio4 25 GPIO_ACTIVE_LOW>; /* gpio_121 */ | |
35 | gpio-key,wakeup; | |
36 | }; | |
37 | }; | |
38 | }; | |
39 | ||
40 | &omap4_pmx_core { | |
41 | pinctrl-0 = < | |
42 | &led_pins | |
43 | &button_pins | |
44 | &smsc_pins | |
45 | >; | |
46 | ||
47 | led_pins: pinmux_led_pins { | |
48 | pinctrl-single,pins = < | |
5efa994b | 49 | OMAP4_IOPAD(0x116, PIN_OUTPUT | MUX_MODE3) /* abe_dmic_din3.gpio_122 */ |
5eb9b5e5 FV |
50 | >; |
51 | }; | |
52 | ||
53 | button_pins: pinmux_button_pins { | |
54 | pinctrl-single,pins = < | |
5efa994b | 55 | OMAP4_IOPAD(0x114, PIN_INPUT_PULLUP | MUX_MODE3) /* abe_dmic_din2.gpio_121 */ |
5eb9b5e5 FV |
56 | >; |
57 | }; | |
58 | ||
59 | i2c2_pins: pinmux_i2c2_pins { | |
60 | pinctrl-single,pins = < | |
5efa994b JE |
61 | OMAP4_IOPAD(0x126, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_scl */ |
62 | OMAP4_IOPAD(0x128, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_sda */ | |
5eb9b5e5 FV |
63 | >; |
64 | }; | |
65 | ||
66 | i2c3_pins: pinmux_i2c3_pins { | |
67 | pinctrl-single,pins = < | |
5efa994b JE |
68 | OMAP4_IOPAD(0x12a, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */ |
69 | OMAP4_IOPAD(0x12c, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */ | |
5eb9b5e5 FV |
70 | >; |
71 | }; | |
72 | ||
73 | smsc_pins: pinmux_smsc_pins { | |
74 | pinctrl-single,pins = < | |
5efa994b JE |
75 | OMAP4_IOPAD(0x068, PIN_INPUT | MUX_MODE3) /* gpmc_a20.gpio_44: IRQ */ |
76 | OMAP4_IOPAD(0x06a, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a21.gpio_45: nReset */ | |
77 | OMAP4_IOPAD(0x070, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a24.gpio_48: amdix enabled */ | |
5eb9b5e5 FV |
78 | >; |
79 | }; | |
80 | }; | |
81 | ||
82 | &i2c2 { | |
83 | pinctrl-names = "default"; | |
84 | pinctrl-0 = <&i2c2_pins>; | |
85 | ||
86 | clock-frequency = <400000>; | |
87 | }; | |
88 | ||
89 | &i2c3 { | |
90 | pinctrl-names = "default"; | |
91 | pinctrl-0 = <&i2c3_pins>; | |
92 | ||
93 | clock-frequency = <100000>; | |
94 | ||
95 | /* optional 1K EEPROM with revision information */ | |
96 | eeprom@51 { | |
97 | compatible = "atmel,24c01"; | |
98 | reg = <0x51>; | |
99 | pagesize = <8>; | |
100 | }; | |
101 | }; | |
102 | ||
103 | &mmc3 { | |
104 | status = "disabled"; | |
105 | }; | |
106 | ||
107 | #include "omap-gpmc-smsc911x.dtsi" | |
108 | ||
109 | &gpmc { | |
110 | ranges = <5 0 0x2c000000 0x1000000>; /* CS5 */ | |
111 | ||
112 | ethernet@gpmc { | |
113 | reg = <5 0 0xff>; | |
114 | interrupt-parent = <&gpio2>; | |
115 | interrupts = <12 IRQ_TYPE_LEVEL_LOW>; /* gpio_44 */ | |
116 | ||
117 | phy-mode = "mii"; | |
118 | ||
119 | gpmc,cs-on-ns = <10>; | |
120 | gpmc,cs-rd-off-ns = <50>; | |
121 | gpmc,cs-wr-off-ns = <50>; | |
122 | gpmc,adv-on-ns = <0>; | |
123 | gpmc,adv-rd-off-ns = <10>; | |
124 | gpmc,adv-wr-off-ns = <10>; | |
125 | gpmc,oe-on-ns = <15>; | |
126 | gpmc,oe-off-ns = <50>; | |
127 | gpmc,we-on-ns = <15>; | |
128 | gpmc,we-off-ns = <50>; | |
129 | gpmc,rd-cycle-ns = <50>; | |
130 | gpmc,wr-cycle-ns = <50>; | |
131 | gpmc,access-ns = <50>; | |
132 | gpmc,page-burst-access-ns = <0>; | |
133 | gpmc,bus-turnaround-ns = <35>; | |
134 | gpmc,cycle2cycle-delay-ns = <35>; | |
135 | gpmc,wr-data-mux-bus-ns = <35>; | |
136 | gpmc,wr-access-ns = <50>; | |
137 | ||
138 | gpmc,mux-add-data = <2>; | |
139 | gpmc,sync-read; | |
140 | gpmc,sync-write; | |
141 | gpmc,clk-activation-ns = <5>; | |
142 | gpmc,sync-clk-ps = <20000>; | |
143 | }; | |
144 | }; | |
145 | ||
146 |