1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Common file for GPMC connected smsc9221 on omaps
4 *
5 * Compared to smsc911x, smsc9221 (and others like smsc9217
6 * or smsc 9218) has faster timings, leading to higher
7 * bandwidth.
8 *
9 * Note that the board specifc DTS file needs to specify
10 * ranges, pinctrl, reg, interrupt parent and interrupts.
11 */
12
13/ {
14	vddvario: regulator-vddvario {
15		  compatible = "regulator-fixed";
16		  regulator-name = "vddvario";
17		  regulator-always-on;
18	};
19
20	vdd33a: regulator-vdd33a {
21		compatible = "regulator-fixed";
22		regulator-name = "vdd33a";
23		regulator-always-on;
24	};
25};
26
27&gpmc {
28	ethernet@gpmc {
29		compatible = "smsc,lan9221","smsc,lan9115";
30		bank-width = <2>;
31
32		gpmc,mux-add-data;
33		gpmc,cs-on-ns = <0>;
34		gpmc,cs-rd-off-ns = <42>;
35		gpmc,cs-wr-off-ns = <36>;
36		gpmc,adv-on-ns = <6>;
37		gpmc,adv-rd-off-ns = <12>;
38		gpmc,adv-wr-off-ns = <12>;
39		gpmc,oe-on-ns = <0>;
40		gpmc,oe-off-ns = <42>;
41		gpmc,we-on-ns = <0>;
42		gpmc,we-off-ns = <36>;
43		gpmc,rd-cycle-ns = <60>;
44		gpmc,wr-cycle-ns = <54>;
45		gpmc,access-ns = <36>;
46		gpmc,page-burst-access-ns = <0>;
47		gpmc,bus-turnaround-ns = <0>;
48		gpmc,cycle2cycle-delay-ns = <0>;
49		gpmc,wr-data-mux-bus-ns = <18>;
50		gpmc,wr-access-ns = <42>;
51		gpmc,cycle2cycle-samecsen;
52		gpmc,cycle2cycle-diffcsen;
53
54		vddvario-supply = <&vddvario>;
55		vdd33a-supply = <&vdd33a>;
56		reg-io-width = <4>;
57		smsc,save-mac-address;
58	};
59};
60