From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C4B63C54EE9 for ; Tue, 20 Sep 2022 08:32:19 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 26C1484C5D; Tue, 20 Sep 2022 10:32:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="CaSu2r2j"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A478684C5C; Tue, 20 Sep 2022 10:32:14 +0200 (CEST) Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B22E484922 for ; Tue, 20 Sep 2022 10:32:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=judge.packham@gmail.com Received: by mail-pj1-x102a.google.com with SMTP id bu5-20020a17090aee4500b00202e9ca2182so1016767pjb.0 for ; Tue, 20 Sep 2022 01:32:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=O5ziKjNCdkFDUPrXr2WbstvY70j8+pHjV35XTfGjpYc=; b=CaSu2r2jLxXxkvaGN20vIL9NCA0EjPxwQR/2nOb8yiXokxrkTSYn7nj++CFaluynv9 XFBlSSKd1yr5z03XFMqsv8BXhrEBmBmPL17SLHLB1o8FKYS/YkyhMHy9ZwvsGYTESViM YGbyas2eNNkxHq/BS2Z3A1XvAtmcnUcVjvtU+wSPHP6RbVjRzEtwvJNlY2rr7xbNQS6+ Ir50+maaPXqtH1UJF9gHhoFDq1+/nPk1YOE34FN+qjCTh29P25A6I8DkTWtu8S8j6OiQ V81QiwMXDW31ocXx/oZ0t+fwbPo4xdoqU2vdx9kgtHv6Uzsx4eyeGL7bfsN7q7w1ClmK e9FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=O5ziKjNCdkFDUPrXr2WbstvY70j8+pHjV35XTfGjpYc=; b=DhRMfD7UCZgMXMMhlwqQEZ/QQnoj6n6ZADlLOMaLXu5mvu8v20Hvny07vG4i0SuPIk gpoUpg2xHnJSeARV2PKyE8UaMFYnhhnB7qefOjLPl1lmCQQno/ePaJLxOkgOpt3kZD5f 5qIcp3F1qdtIqC4NLBRffbAH8fjF3ozBB9xAPSdJIgE7vJE3UNQ/VQgC1I2FN79791oT 3lWz7nSCn1fi5w8W7QB4jaQVHpBuoVILx48twpm6e0HSDnzTZMgj20YW6D8K+3KEBJd1 QKD8BPH2fhlqgNHdD2mv3B3qHnYcTWLcseUSbQU94yEQrnVR3KM7J128H4ioD3rMlQXR ldKw== X-Gm-Message-State: ACrzQf1jdsj4JMx2hcP/a73Zx13vN/HpB3WBliGtc/XOjZ3ViITbTUH4 NPpS/JWY9McEBxqYXtFcd0U= X-Google-Smtp-Source: AMsMyM7/qNq65WJfiZAL+F57lFA2KhhhlusXEptmyJJCymd69nH1PM24FYrCdQvvCBuDLzYOTC4fJw== X-Received: by 2002:a17:902:e494:b0:178:5b6d:636 with SMTP id i20-20020a170902e49400b001785b6d0636mr3714628ple.64.1663662729976; Tue, 20 Sep 2022 01:32:09 -0700 (PDT) Received: from chrisp-dl.atlnz.lc ([2001:df5:b000:22:b6db:9da9:4800:1de4]) by smtp.gmail.com with ESMTPSA id 20-20020a631154000000b0041d6d37deb5sm901700pgr.81.2022.09.20.01.31.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Sep 2022 01:32:08 -0700 (PDT) From: Chris Packham To: Stefan Roese Cc: Elad Nachman , Vadym Kochan , Chris Packham , Adam Ford , Alice Guo , Andre Przywara , Chris Packham , Christian Hewitt , Jim Liu , Joe Hershberger , Keerthy , Lukasz Majewski , Marcel Ziswiler , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Marek Vasut , Michael Scott , Michael Walle , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Peng Fan , Ramon Fried , Samuel Holland , Sean Anderson , Simon Glass , Tom Rini , Weijie Gao , Ye Li , "Ying-Chun Liu (PaulLiu)" , u-boot@lists.denx.de Subject: [PATCH v2 0/6] arm: mvebu: Support for 98DX25xx/98DX35xx (AlleyCat5) Date: Tue, 20 Sep 2022 20:31:47 +1200 Message-Id: <20220920083153.319370-1-judge.packham@gmail.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean These patches are based on Marvell's bootloader for the AlleyCat5/5X which was based on u-boot 2018.03. I've split that code into consumable chunks and dropped as much unnecessary stuff as I can. I've also tried to sync the device trees as much as possible with the support that will land in Linux 6.0 although there are still some differences Changes in v2: - Use distro boot by default - remove unnecessary SPI-NOR partitions Chris Packham (6): net: mvneta: Add support for AlleyCat5 usb: ehci: ehci-marvell: Support for marvell,ac5-ehci pinctrl: mvebu: Add AlleyCat5 support misc: mvebu: Add sample at reset driver arm: mvebu: Support for 98DX25xx/98DX35xx SoC arm: mvebu: Add RD-AC5X board arch/arm/dts/Makefile | 3 +- arch/arm/dts/ac5-98dx25xx.dtsi | 292 +++++++++++++++++++++ arch/arm/dts/ac5-98dx35xx-rd.dts | 140 ++++++++++ arch/arm/dts/ac5-98dx35xx.dtsi | 17 ++ arch/arm/mach-mvebu/Kconfig | 14 +- arch/arm/mach-mvebu/Makefile | 1 + arch/arm/mach-mvebu/alleycat5/Makefile | 9 + arch/arm/mach-mvebu/alleycat5/clock.c | 49 ++++ arch/arm/mach-mvebu/alleycat5/cpu.c | 129 +++++++++ arch/arm/mach-mvebu/alleycat5/soc.c | 229 ++++++++++++++++ arch/arm/mach-mvebu/arm64-common.c | 15 ++ arch/arm/mach-mvebu/include/mach/clock.h | 11 + arch/arm/mach-mvebu/include/mach/cpu.h | 4 + arch/arm/mach-mvebu/include/mach/soc.h | 4 + board/Marvell/mvebu_alleycat-5/MAINTAINERS | 6 + board/Marvell/mvebu_alleycat-5/Makefile | 3 + board/Marvell/mvebu_alleycat-5/board.c | 35 +++ configs/mvebu_ac5_rd_defconfig | 88 +++++++ drivers/misc/Kconfig | 6 + drivers/misc/Makefile | 1 + drivers/misc/mvebu_sar/Makefile | 4 + drivers/misc/mvebu_sar/ac5_sar.c | 119 +++++++++ drivers/misc/mvebu_sar/sar-uclass.c | 146 +++++++++++ drivers/net/Kconfig | 2 +- drivers/net/mvneta.c | 66 ++++- drivers/pinctrl/mvebu/Kconfig | 2 +- drivers/usb/host/Kconfig | 1 + drivers/usb/host/ehci-marvell.c | 57 +++- include/configs/mvebu_alleycat-5.h | 71 +++++ include/dm/uclass-id.h | 1 + include/fdtdec.h | 4 + include/mvebu/mvebu_chip_sar.h | 73 ++++++ include/mvebu/sar.h | 57 ++++ include/mvebu/var.h | 28 ++ include/sar-uclass.h | 23 ++ lib/fdtdec.c | 6 +- 36 files changed, 1698 insertions(+), 18 deletions(-) create mode 100644 arch/arm/dts/ac5-98dx25xx.dtsi create mode 100644 arch/arm/dts/ac5-98dx35xx-rd.dts create mode 100644 arch/arm/dts/ac5-98dx35xx.dtsi create mode 100644 arch/arm/mach-mvebu/alleycat5/Makefile create mode 100644 arch/arm/mach-mvebu/alleycat5/clock.c create mode 100644 arch/arm/mach-mvebu/alleycat5/cpu.c create mode 100644 arch/arm/mach-mvebu/alleycat5/soc.c create mode 100644 arch/arm/mach-mvebu/include/mach/clock.h create mode 100644 board/Marvell/mvebu_alleycat-5/MAINTAINERS create mode 100644 board/Marvell/mvebu_alleycat-5/Makefile create mode 100644 board/Marvell/mvebu_alleycat-5/board.c create mode 100644 configs/mvebu_ac5_rd_defconfig create mode 100644 drivers/misc/mvebu_sar/Makefile create mode 100644 drivers/misc/mvebu_sar/ac5_sar.c create mode 100644 drivers/misc/mvebu_sar/sar-uclass.c create mode 100644 include/configs/mvebu_alleycat-5.h create mode 100644 include/mvebu/mvebu_chip_sar.h create mode 100644 include/mvebu/sar.h create mode 100644 include/mvebu/var.h create mode 100644 include/sar-uclass.h -- 2.37.3