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