/* * Cavium Thunder DTS file - Thunder board description * * Copyright (C) 2016, Cavium Inc. * * This file is dual-licensed: you can use it either under the terms * of the GPL or the X11 license, at your option. Note that this dual * licensing only applies to this file, and not this project as a * whole. * * a) This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, * MA 02110-1301 USA * * Or, alternatively, * * b) Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following * conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ /dts-v1/; /include/ "cn81xx-linux.dtsi" &mrml_bridge { mdio-nexus@1,3 { mdio0@87e005003800 { sgmii00: sgmii00 { qlm-mode = "0x000,sgmii"; reg = <0x0> ; compatible = "marvell,88e1510", "ethernet-phy-ieee802.3-c22"; }; sgmii01: sgmii01 { qlm-mode = "0x001,sgmii"; reg = <0x1> ; compatible = "marvell,88e1510", "ethernet-phy-ieee802.3-c22"; }; }; mdio1@87e005003880 { xfi10: xfi10 { qlm-mode = "0x010,xfi"; reg = <0x0>; compatible = "aquantia,aqr105", "ethernet-phy-ieee802.3-c45"; }; }; }; bgx0 { /* typename+qlm+typenumber eg : sgmii+bgx0+sgmmi0 */ sgmii00 { reg = <0>; qlm-mode = "0x000,sgmii"; local-mac-address = [00 00 00 00 00 00]; phy-handle = <&sgmii00>; }; sgmii01 { reg = <1>; qlm-mode = "0x001,sgmii"; local-mac-address = [00 00 00 00 00 00]; phy-handle = <&sgmii01>; }; }; bgx1 { xfi10 { reg = <0>; qlm-mode = "0x010,xfi"; local-mac-address = [00 00 00 00 00 00]; phy-handle = <&xfi10>; }; }; }; &mmc_1_4 { /* NOTE: the BDK is responsible for swapping the two slots. * Unfortunately there does not appear to be any way to read the * position of SW2-7 in software. */ /* Power on GPIO 8, active high, shared */ power-gpios = <&gpio_6_0 8 0>; mmc-slot@0 { compatible = "cavium,thunder-8890-mmc-slot"; reg = <0>; /* Only 3.3v is supported */ voltage-ranges = <3300 3300>; max-frequency = <26000000>; /* 1.8v is not supported */ no-1-8-v; /* Bus width is only 4 bits maximum */ bus-width = <4>; /* No write-protect switch is present */ disable-wp; /* There is no card detection available; polling must be used. */ broken-cd; /* SD UHS SDR25 is supported */ sd-uhs-sdr25; /* SD UHS SDR50 is supported */ sd-uhs-ddr50; /* SD UHS DDR50 is supported */ sd-uhs-sdr50; /* High-speed mode is supported */ cap-sd-highspeed; }; mmc-slot@1 { compatible = "cavium,thunder-8890-mmc-slot"; reg = <1>; voltage-ranges = <3300 3300>; max-frequency = <26000000>; /* 1.8v is not supported */ no-1-8-v; /* Bus width is only 8 bits maximum */ bus-width = <8>; /* No write-protect switch is present */ disable-wp; /* There is no card detection available; polling must be used. */ broken-cd; /* High-speed mode is supported */ cap-mmc-highspeed; /* eMMC device is soldered onto the board */ non-removable; }; }; &spi_7_0 { flash@0 { compatible = "macronix,mx25l3206e", "jedec,spi-nor"; reg = <0x0>; spi-max-frequency = <16000000>; #address-cells = <1>; #size-cells = <1>; }; };