Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright 2016 Linaro Ltd
0003  *
0004  * Permission is hereby granted, free of charge, to any person obtaining a copy
0005  * of this software and associated documentation files (the "Software"), to deal
0006  * in the Software without restriction, including without limitation the rights
0007  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
0008  * copies of the Software, and to permit persons to whom the Software is
0009  * furnished to do so, subject to the following conditions:
0010  *
0011  * The above copyright notice and this permission notice shall be included in
0012  * all copies or substantial portions of the Software.
0013  *
0014  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
0017  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0018  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
0019  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
0020  * THE SOFTWARE.
0021  */
0022 
0023 / {
0024         /* Introduce a fixed regulator for the new ethernet controller */
0025         veth: fixedregulator@0 {
0026                 compatible = "regulator-fixed";
0027                 regulator-name = "veth";
0028                 regulator-min-microvolt = <3300000>;
0029                 regulator-max-microvolt = <3300000>;
0030                 regulator-boot-on;
0031         };
0032 };
0033 
0034 /*
0035  * The revision D has a different ethernet controller that the elder boards:
0036  * the older board uses LAN91C111 but the new one uses LAN9118.
0037  */
0038 &ethernet {
0039         compatible = "smsc,lan9118", "smsc,lan9115";
0040         phy-mode = "mii";
0041         smsc,irq-active-high;
0042         smsc,irq-push-pull;
0043         vdd33a-supply = <&veth>;
0044         vddvario-supply = <&veth>;
0045 };