From patchwork Sun Jul 14 00:16:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 1131666 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="t/S9RYmP"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45mS3P5Qtzz9sDQ for ; Sun, 14 Jul 2019 10:19:59 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 7DE99C21E1E; Sun, 14 Jul 2019 00:19:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 3A42FC21C51; Sun, 14 Jul 2019 00:19:52 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5704CC21C50; Sun, 14 Jul 2019 00:19:51 +0000 (UTC) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by lists.denx.de (Postfix) with ESMTPS id 0FC27C21BE5 for ; Sun, 14 Jul 2019 00:19:51 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id n9so13457263wrr.4 for ; Sat, 13 Jul 2019 17:19:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=EJv9RqVPCwnuTUxWNaCJbWfWrchzd1oVDmKMvdEVyOY=; b=t/S9RYmP/XbrCLI7cSOjzWnh1CjCi0LvICL1C6q2YvnApArpEFFhLE3bjX3bBneIQR 530JOrfvp8K6/mAG9OV8rfYSeQZdOIqRHGEvZ4zXT1JEYlUCbQdx86/tHLRwHEqLQDgn oKJYBrMyonhqNENmbfVcRk6C2p16PYvYUo6QPTuMepEwALTgrD2c3aQ/m5n0OhBN/qYB u1dohEMWDORjCMSqaTlyT9w7VYzbThdkLFeIPNIthzTvyGSCjdmzODTl3k/zqHWT85UV cxTrURR4vRnYpyJX5RT3tiyLu8hymqkiQvhlZIdgA7NtXyW9zBKlGwOETuDj81Sj4sW6 RmOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=EJv9RqVPCwnuTUxWNaCJbWfWrchzd1oVDmKMvdEVyOY=; b=hYF19pAjvL84A47yx2hGIF+KoQkI2msLODB9Va9NOddBAYNl7JfoxpR4owqwdeqZmV rfnBKirI+7dey7o00E1E4nlKrYSUzL42CIyh4gxrKF4dE0ax4U2sZ1dXyzUcDpiGXTkc wbo5q99ufGip6o74ExKYS+vCa1yj3CqhlD5a7vqszfo2JM7X/uk9LruxHWWBrzsY2x3J 4Pb8/cbvr0IkXru1MxLDfiDMhxTdiXHwA5yRdKh35Ic/AvX49iOLqJS4BxwZBI65DBSi XlF1OxxiOMNJQr98jVRxQ7sAJghv/SMdFjqTdt75bcP2N5eBbB+jciLquoY7P4hyDUOZ Ja5w== X-Gm-Message-State: APjAAAUoCagZc3IOByvqcQn83is/y7+fBsB77M/BjhXCXandnjjmPQH0 Vo5D2l5XvCxqDGyEH7DNwA8= X-Google-Smtp-Source: APXvYqxU3M7f3xKWMI43YSbMUojNmJXcO4/O8d5u9z4P3i73CyrgnSrti0ZNb+zO45GiW0IlcLw8nw== X-Received: by 2002:a5d:6284:: with SMTP id k4mr19912578wru.179.1563063590539; Sat, 13 Jul 2019 17:19:50 -0700 (PDT) Received: from localhost.localdomain ([188.26.252.192]) by smtp.gmail.com with ESMTPSA id m24sm7801973wmi.39.2019.07.13.17.19.48 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 13 Jul 2019 17:19:49 -0700 (PDT) From: Vladimir Oltean To: joe.hershberger@ni.com, prabhakar.kushwaha@nxp.com, bmeng.cn@gmail.com, u-boot@lists.denx.de Date: Sun, 14 Jul 2019 03:16:52 +0300 Message-Id: <20190714001701.2781-1-olteanv@gmail.com> X-Mailer: git-send-email 2.17.1 Subject: [U-Boot] [PATCH v2 0/9] NXP LS1021A-TSN Board X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This patchset adds initial support for the NXP LS1021A-TSN board, an evaluation platform built in partnership with VVDN/Argonboards for some IEEE 802.1 TSN features. It features a cleaned-up U-Boot board support taken from OpenIL, as well as an eTSEC migration to DM_ETH. I picked up Bin Meng's patch that converts the LS1021A-TWR (different board, same SoC): https://lists.denx.de/pipermail/u-boot/2018-May/330096.html verified it on the LS1021A-TSN board I am submitting, and made a few adjustments where necessary. TODO items: - Make the eTSEC driver support fixed-link interfaces (necessary for the enet2 <-> sja1105 internal port) - Add driver for SJA1105 switch - Potentially migrate the eTSEC MDIO bus driver to DM_MDIO and expose the TBI PHY to mdio commands (useful for debugging), once https://lists.denx.de/pipermail/u-boot/2019-June/371563.html is merged. Bin Meng (1): arm: ls1021atwr: Convert to use driver model TSEC driver Jianchao Wang (1): Add support for the NXP LS1021A-TSN board Vladimir Oltean (7): net: tsec: Refactor the readout of the tbi-handle property net: tsec: Fix offset of MDIO registers for DM_ETH net: tsec: Reverse Christmas tree notation net: tsec: Make errors visible net: tsec: Common handling of MAC station address for DM_ETH net: tsec: Change compatible strings to match Linux configs: ls1021atwr: Fix distro_bootcmd for QSPI boot arch/arm/Kconfig | 14 + arch/arm/cpu/armv7/ls102xa/cpu.c | 2 +- arch/arm/cpu/armv7/ls102xa/fdt.c | 10 + arch/arm/dts/Makefile | 2 +- arch/arm/dts/ls1021a-tsn.dts | 77 +++++ arch/arm/dts/ls1021a-twr.dtsi | 32 ++ arch/arm/dts/ls1021a.dtsi | 30 +- board/freescale/ls1021atsn/Kconfig | 18 ++ board/freescale/ls1021atsn/MAINTAINERS | 8 + board/freescale/ls1021atsn/Makefile | 3 + board/freescale/ls1021atsn/README.rst | 97 ++++++ board/freescale/ls1021atsn/ls1021atsn.c | 259 ++++++++++++++++ board/freescale/ls1021atsn/ls102xa_pbi.cfg | 15 + board/freescale/ls1021atsn/ls102xa_rcw_sd.cfg | 8 + board/freescale/ls1021atwr/ls1021atwr.c | 38 --- configs/ls1021atsn_qspi_defconfig | 77 +++++ configs/ls1021atsn_sdcard_defconfig | 86 ++++++ configs/ls1021atwr_nor_SECURE_BOOT_defconfig | 2 + configs/ls1021atwr_nor_defconfig | 2 + configs/ls1021atwr_nor_lpuart_defconfig | 2 + configs/ls1021atwr_qspi_defconfig | 2 + ...s1021atwr_sdcard_ifc_SECURE_BOOT_defconfig | 2 + configs/ls1021atwr_sdcard_ifc_defconfig | 2 + configs/ls1021atwr_sdcard_qspi_defconfig | 2 + doc/device-tree-bindings/net/fsl-tsec-phy.txt | 4 +- drivers/net/tsec.c | 59 ++-- include/configs/ls1021atsn.h | 289 ++++++++++++++++++ include/configs/ls1021atwr.h | 30 +- include/tsec.h | 4 +- 29 files changed, 1069 insertions(+), 107 deletions(-) create mode 100644 arch/arm/dts/ls1021a-tsn.dts create mode 100644 board/freescale/ls1021atsn/Kconfig create mode 100644 board/freescale/ls1021atsn/MAINTAINERS create mode 100644 board/freescale/ls1021atsn/Makefile create mode 100644 board/freescale/ls1021atsn/README.rst create mode 100644 board/freescale/ls1021atsn/ls1021atsn.c create mode 100644 board/freescale/ls1021atsn/ls102xa_pbi.cfg create mode 100644 board/freescale/ls1021atsn/ls102xa_rcw_sd.cfg create mode 100644 configs/ls1021atsn_qspi_defconfig create mode 100644 configs/ls1021atsn_sdcard_defconfig create mode 100644 include/configs/ls1021atsn.h