Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Common file for GPMC connected smsc9221 on omaps
0004  *
0005  * Compared to smsc911x, smsc9221 (and others like smsc9217
0006  * or smsc 9218) has faster timings, leading to higher
0007  * bandwidth.
0008  *
0009  * Note that the board specifc DTS file needs to specify
0010  * ranges, pinctrl, reg, interrupt parent and interrupts.
0011  */
0012 
0013 / {
0014         vddvario: regulator-vddvario {
0015                   compatible = "regulator-fixed";
0016                   regulator-name = "vddvario";
0017                   regulator-always-on;
0018         };
0019 
0020         vdd33a: regulator-vdd33a {
0021                 compatible = "regulator-fixed";
0022                 regulator-name = "vdd33a";
0023                 regulator-always-on;
0024         };
0025 };
0026 
0027 &gpmc {
0028         ethernet@gpmc {
0029                 compatible = "smsc,lan9221","smsc,lan9115";
0030                 bank-width = <2>;
0031 
0032                 gpmc,mux-add-data = <0>;
0033                 gpmc,cs-on-ns = <0>;
0034                 gpmc,cs-rd-off-ns = <42>;
0035                 gpmc,cs-wr-off-ns = <36>;
0036                 gpmc,adv-on-ns = <6>;
0037                 gpmc,adv-rd-off-ns = <12>;
0038                 gpmc,adv-wr-off-ns = <12>;
0039                 gpmc,oe-on-ns = <0>;
0040                 gpmc,oe-off-ns = <42>;
0041                 gpmc,we-on-ns = <0>;
0042                 gpmc,we-off-ns = <36>;
0043                 gpmc,rd-cycle-ns = <60>;
0044                 gpmc,wr-cycle-ns = <54>;
0045                 gpmc,access-ns = <36>;
0046                 gpmc,page-burst-access-ns = <0>;
0047                 gpmc,bus-turnaround-ns = <0>;
0048                 gpmc,cycle2cycle-delay-ns = <0>;
0049                 gpmc,wr-data-mux-bus-ns = <18>;
0050                 gpmc,wr-access-ns = <42>;
0051                 gpmc,cycle2cycle-samecsen;
0052                 gpmc,cycle2cycle-diffcsen;
0053 
0054                 vddvario-supply = <&vddvario>;
0055                 vdd33a-supply = <&vdd33a>;
0056                 reg-io-width = <4>;
0057                 smsc,save-mac-address;
0058         };
0059 };