From patchwork Thu Jul 18 21:29: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: 1133857 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="XDUDuzwD"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45qS6R0QFfz9s3l for ; Fri, 19 Jul 2019 07:33:02 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 8D7C1C21FB9; Thu, 18 Jul 2019 21:32:58 +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 95EEBC21EAE; Thu, 18 Jul 2019 21:32:56 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 44D4CC21E0D; Thu, 18 Jul 2019 21:32:55 +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 E0293C21C8B for ; Thu, 18 Jul 2019 21:32:54 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id n4so30240120wrs.3 for ; Thu, 18 Jul 2019 14:32:54 -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=4FBAexHfTk7XVzOWi97Ije8Wj/uP+SN6E/1XrjR1aE8=; b=XDUDuzwD3RbBe9EO+cSAN6gm8b21zJZVcbsKJOCwoWkUbPHXmuVDtNsn7V/uqvPB/y PgE59V140jCIyOO5jOQYvkJyzYJrToUJ+XyjiWxBeBEfNl3TbY6NlXifq0FCwBKBVSMk 3wHrmFFfLi1TTbk7z2+vFW740wILOHzN2hqMPveuNEXXLDa0p73hQC4l+AJwnQNc3Zgo hcd6dh0VN6XMsstL4eYw/0fRPIuh9MAnFd8THN0/lsSToHVxQ9mgOWUFF1QsEOgh3PHP 6nrNnylsQzczPmN0XZ3PJyFXmxwOd4bfQDsmSy6BFzYCpPsvRJLpGHDjkjhEv741D13W jopQ== 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=4FBAexHfTk7XVzOWi97Ije8Wj/uP+SN6E/1XrjR1aE8=; b=HpiDq+sWNDYwMSZgBTZvBFMp52/RZnpHGyDkPYjAzolPsStkKWF6Zv+f8jOxh1Guoz rt2QYW2OkPv8zD1gS7dhLwZc2PVEXp57Aa93walIhJ7WRRMech8dYXlUOPZDpUvjGhJG fvmjWrYYQKBOLy5aPCuxJhRKlliyKvytDxVkNzpNiyXcC9x4XZF6JES3hgCGLQc909Tp TB1Bs9PL1qnctnY2MiMPQWlBrqVOtLtXR/CDlns4VtFEivHQEAnsQEbJwphNEgEpM1BI S287J+oDClHQt4yMdqOJ/Q9eXqwk9tvJCCV22BD52Hof13oeJz1RK7bl8T9Y4Q8YbOLv X33Q== X-Gm-Message-State: APjAAAU+We81bz4FuI2BsDZij1AgxFPAps4m9y3hjlMbO1zcvyHMYuCc 0U2OsvgezpHS+sdz1/GVdwg= X-Google-Smtp-Source: APXvYqycG2rTg9M8MTqwDTmprRDKrEajg/S7ZHrvjlpakGpJHEaq03yCWjPU84jseoJ5hh4m9fsp9g== X-Received: by 2002:a5d:6182:: with SMTP id j2mr8031520wru.275.1563485573981; Thu, 18 Jul 2019 14:32:53 -0700 (PDT) Received: from localhost.localdomain ([86.126.26.85]) by smtp.gmail.com with ESMTPSA id f10sm19776404wrs.22.2019.07.18.14.32.53 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 18 Jul 2019 14:32:53 -0700 (PDT) From: Vladimir Oltean To: joe.hershberger@ni.com, prabhakar.kushwaha@nxp.com, bmeng.cn@gmail.com, u-boot@lists.denx.de Date: Fri, 19 Jul 2019 00:29:52 +0300 Message-Id: <20190718213001.24815-1-olteanv@gmail.com> X-Mailer: git-send-email 2.17.1 Subject: [U-Boot] [PATCH v3 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 | 260 ++++++++++++++++++ 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 | 79 ++++++ configs/ls1021atsn_sdcard_defconfig | 91 ++++++ 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 | 250 +++++++++++++++++ include/configs/ls1021atwr.h | 30 +- include/tsec.h | 4 +- 29 files changed, 1038 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