From 08714738d2c8d7710f8fd2b7deac795f49e7d7c2 Mon Sep 17 00:00:00 2001 From: Mathew McBride Date: Mon, 30 Apr 2018 22:42:39 +1000 Subject: layerscape: add Traverse LS1043-S support The Traverse LS1043-S board is a router board based on NXP/Freescale's LS1043 SoC, with 4x1GBase-T, 1 SFP and 1 SFP+, as well as miniPCIe and M.2 LTE. Unlike the Layerscape reference boards, the LS1043-S board has NAND flash and uses the mainline U-Boot. This patch implements support for the LS1043-S board, as well as the earlier LS1043-V board. It is our intention that all boards in this family (LS1043-S and later, Five64) will boot the same binary. Not included in this patchset are the hwmon drivers not in the kernel (emc1704,pac1934) or the bootloader. Signed-off-by: Mathew McBride --- .../arm64/boot/dts/freescale/traverse-ls1043v.dts | 253 +++++++++++++++++++++ 1 file changed, 253 insertions(+) create mode 100644 target/linux/layerscape/files/arch/arm64/boot/dts/freescale/traverse-ls1043v.dts (limited to 'target/linux/layerscape/files/arch/arm64/boot/dts/freescale/traverse-ls1043v.dts') diff --git a/target/linux/layerscape/files/arch/arm64/boot/dts/freescale/traverse-ls1043v.dts b/target/linux/layerscape/files/arch/arm64/boot/dts/freescale/traverse-ls1043v.dts new file mode 100644 index 0000000000..de9aa62d2f --- /dev/null +++ b/target/linux/layerscape/files/arch/arm64/boot/dts/freescale/traverse-ls1043v.dts @@ -0,0 +1,253 @@ +/* + * Device Tree Include file for Traverse LS1043V board. + * + * Copyright 2014-2015, Freescale Semiconductor + * Copyright 2017, Traverse Technologies + * + * This file is dual-licensed: you can use it either under the terms + * of the GPLv2 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. + * + * 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 "fsl-ls1043a.dtsi" +#include +#include + +/ { + model = "Traverse LS1043V"; + compatible = "traverse,ls1043v"; + + aliases { + crypto = &crypto; + ethernet0 = &EMAC0; + ethernet1 = &EMAC1; + ethernet2 = &EMAC2; + ethernet3 = &EMAC3; + ethernet4 = &EMAC4; + ethernet5 = &EMAC5; + pca9555 = &pca9555; + }; + + leds { + compatible = "gpio-leds"; + gpio0 { + label = "ls1043v:green:user0"; + gpios = <&pca9555 0 GPIO_ACTIVE_LOW>; + }; + gpio1 { + label = "ls1043v:yellow:user0"; + gpios = <&pca9555 1 GPIO_ACTIVE_LOW>; + }; + gpio2 { + label = "ls1043v:green:user1"; + gpios = <&pca9555 2 GPIO_ACTIVE_LOW>; + }; + gpio3 { + label = "ls1043v:yellow:user1"; + gpios = <&pca9555 3 GPIO_ACTIVE_LOW>; + }; + gpio4 { + label = "ls1043v:green:user2"; + gpios = <&pca9555 4 GPIO_ACTIVE_HIGH>; + }; + gpio5 { + label = "ls1043v:yellow:wlan"; + gpios = <&pca9555 5 GPIO_ACTIVE_HIGH>; + }; + gpio6 { + label = "ls1043v:yellow:wan"; + gpios = <&pca9555 6 GPIO_ACTIVE_HIGH>; + }; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <1000>; + button@0 { + label = "Front button"; + linux,code = ; + gpios = <&pca9555 14 GPIO_ACTIVE_LOW>; + }; + button@1 { + label = "Rear button"; + linux,code = ; + gpios = <&pca9555 15 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&i2c0 { + status = "okay"; + rtc@6f { + compatible = "intersil,isl1208"; + reg = <0x6f>; + }; + + pca9555: pca9555@20 { + compatible = "nxp,pca9555"; + gpio-controller; + #gpio-cells = <2>; + reg = <0x20>; + gpio-base = <0>; + }; + + /* CPU core temp sensor and VDD (1.0V) sensor */ + ltc2990@4c { + compatible = "lltc,ltc2990"; + reg = <0x4C>; + lltc,meas-mode = <4 3>; + }; + + /* 3.3V and 5V monitor (may not be loaded on some SKUs) */ + ltc2990@4f { + compatible = "lltc,ltc2990"; + reg = <0x4F>; + lltc,meas-mode = <6 3>; + }; +}; + +&ifc { + status = "okay"; + #address-cells = <2>; + #size-cells = <1>; + /* Only NAND flash is used on this board */ + ranges = <0x0 0x0 0x0 0x7e800000 0x00010000>; + + nand@1,0 { + compatible = "fsl,ifc-nand"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x0 0x0 0x10000>; + }; +}; + +&duart0 { + status = "okay"; +}; + +&duart1 { + status = "okay"; +}; + +#include "fsl-ls1043-post.dtsi" + +&fman0 { + EMAC0: ethernet@e0000 { + phy-handle = <&qsgmii_phy1>; + phy-connection-type = "qsgmii"; + local-mac-address = [0A 00 00 00 00 01]; + }; + + EMAC1: ethernet@e2000 { + phy-handle = <&qsgmii_phy2>; + phy-connection-type = "qsgmii"; + local-mac-address = [0A 00 00 00 00 02]; + }; + + EMAC2: ethernet@e8000 { + phy-handle = <&qsgmii_phy3>; + phy-connection-type = "qsgmii"; + local-mac-address = [0A 00 00 00 00 03]; + }; + + EMAC3: ethernet@ea000 { + phy-handle = <&qsgmii_phy4>; + phy-connection-type = "qsgmii"; + local-mac-address = [0A 00 00 00 00 04]; + }; + EMAC4: ethernet@e4000 { + phy-handle = <&rgmii_phy1>; + phy-connection-type = "rgmii"; + local-mac-address = [0A 00 00 00 00 05]; + }; + + /* Connection to VDSL SoC */ + EMAC5: ethernet@e6000 { + phy-connection-type = "rgmii-id"; + local-mac-address = [00 00 00 00 00 06]; + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + + /* 10G XFI interface - not in use on this platform */ + TENSFP: ethernet@f0000 { + status = "disabled"; + + phy-connection-type = "sgmii"; + fixed-link { + /* NB: speed = 1000 and sgmii allows forward compatibility + * with both 1G and 10G, the same is not true + * in the reverse. + */ + speed = <1000>; + full-duplex; + }; + }; + + mdio@fc000 { + rgmii_phy1: ethernet-phy@3 { + reg = <0x3>; + }; + qsgmii_phy1: ethernet-phy@4 { + reg = <0x4>; + }; + qsgmii_phy2: ethernet-phy@5 { + reg = <0x5>; + }; + qsgmii_phy3: ethernet-phy@6 { + reg = <0x6>; + }; + qsgmii_phy4: ethernet-phy@7 { + reg = <0x7>; + }; + }; +}; + +/* No QUICC engine functions on this board */ +&uqe { + status = "disabled"; +}; + +/* No SATA/AHCI on this board */ +&sata { + status = "disabled"; +}; -- cgit v1.2.3