ARM: dts: omap3-igep0020: Add SMSC911x LAN chip support
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / omap3-igep0020.dts
1 /*
2  * Device Tree Source for IGEPv2 board
3  *
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
12 /include/ "omap3-igep.dtsi"
13
14 / {
15         model = "IGEPv2";
16         compatible = "isee,omap3-igep0020", "ti,omap3";
17
18         leds {
19                 compatible = "gpio-leds";
20                 boot {
21                          label = "omap3:green:boot";
22                          gpios = <&gpio1 26 0>;
23                          default-state = "on";
24                 };
25
26                 user0 {
27                          label = "omap3:red:user0";
28                          gpios = <&gpio1 27 0>;
29                          default-state = "off";
30                 };
31
32                 user1 {
33                          label = "omap3:red:user1";
34                          gpios = <&gpio1 28 0>;
35                          default-state = "off";
36                 };
37
38                 user2 {
39                         label = "omap3:green:user1";
40                         gpios = <&twl_gpio 19 1>;
41                 };
42         };
43
44         vddvario: regulator-vddvario {
45                   compatible = "regulator-fixed";
46                   regulator-name = "vddvario";
47                   regulator-always-on;
48         };
49
50         vdd33a: regulator-vdd33a {
51                 compatible = "regulator-fixed";
52                 regulator-name = "vdd33a";
53                 regulator-always-on;
54         };
55 };
56
57 &i2c3 {
58         clock-frequency = <100000>;
59
60         /*
61          * Display monitor features are burnt in the EEPROM
62          * as EDID data.
63          */
64         eeprom@50 {
65                 compatible = "ti,eeprom";
66                 reg = <0x50>;
67         };
68 };
69
70 &gpmc {
71         ranges = <5 0 0x2c000000 0x1000000>;
72         ethernet@5,0 {
73                 pinctrl-names = "default";
74                 pinctrl-0 = <&smsc911x_pins>;
75                 compatible = "smsc,lan9221", "smsc,lan9115";
76                 reg = <5 0 0xff>;
77                 bank-width = <2>;
78
79                 gpmc,mux-add-data;
80                 gpmc,cs-on-ns = <0>;
81                 gpmc,cs-rd-off-ns = <186>;
82                 gpmc,cs-wr-off-ns = <186>;
83                 gpmc,adv-on-ns = <12>;
84                 gpmc,adv-rd-off-ns = <48>;
85                 gpmc,adv-wr-off-ns = <48>;
86                 gpmc,oe-on-ns = <54>;
87                 gpmc,oe-off-ns = <168>;
88                 gpmc,we-on-ns = <54>;
89                 gpmc,we-off-ns = <168>;
90                 gpmc,rd-cycle-ns = <186>;
91                 gpmc,wr-cycle-ns = <186>;
92                 gpmc,access-ns = <114>;
93                 gpmc,page-burst-access-ns = <6>;
94                 gpmc,bus-turnaround-ns = <12>;
95                 gpmc,cycle2cycle-delay-ns = <18>;
96                 gpmc,wr-data-mux-bus-ns = <90>;
97                 gpmc,wr-access-ns = <186>;
98                 gpmc,cycle2cycle-samecsen;
99                 gpmc,cycle2cycle-diffcsen;
100
101                 interrupt-parent = <&gpio6>;
102                 interrupts = <16 8>;
103                 vmmc-supply = <&vddvario>;
104                 vmmc_aux-supply = <&vdd33a>;
105                 reg-io-width = <4>;
106
107                 smsc,save-mac-address;
108         };
109 };