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 0109BECAAD8 for ; Wed, 21 Sep 2022 05:00:15 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 438B784915; Wed, 21 Sep 2022 07:00:13 +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="n7gXE/s/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2307084915; Wed, 21 Sep 2022 07:00:11 +0200 (CEST) Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) (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 3506C8498B for ; Wed, 21 Sep 2022 07:00:02 +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-pg1-x52c.google.com with SMTP id q9so4783579pgq.8 for ; Tue, 20 Sep 2022 22:00:02 -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=q5EFhi5E+H5Kkv6ITeNOD5yXmavUZbGewvn//m8ZL1s=; b=n7gXE/s/QRS/unWf2fnKdCOVM5pasuvQ8WZTL+Y4i/YIN/6I//BJEj38NhAgZPIqBQ d1mquPCBMknQgz9kGcG5M9+9wZjZ6ktFEFQYvVKyuQmYaRJr7hxWoPcdpC6CpaRLH4fE qZm2XBMV8vfw8aFnMap4oWqoPmT5DsTg3a63dXTByCh3AdK7jPdWixrdmTjrOb7NaHxQ Pera83bjO0AMydt1ijOvqf1Bn/Ozt1GTK1fDAKpluh+4+R24jI2urVKNi22HDck9+Qg6 xbWMeVT9D0yPsLl9b3aMyRGxpVz9pvX6wF4cGF3TNxURUWxcXOB9bYYAk7Q/z3NUJdL1 pYGQ== 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=q5EFhi5E+H5Kkv6ITeNOD5yXmavUZbGewvn//m8ZL1s=; b=O2T6u/9jk0wO0nc6Oe0y6TgSJVNbawKwH92eNIP2BxNei2je1NZ2ji5oADqUyb7gVF /3LvMKgjlRJ5kQvIJBBL6vKyMFTXvgTFDYTrz1ErRff3+y2F52NR4B7NzDpicmr3QEFr 7F9jLwX0jPAturiaBlpeLP8bnQhL3s+j4Qxe959oMsimSteJrBNvCxUZx4ARfL4VhMGw RYUH062bzTWRRWjIFqCQB09DkJDVtX9JUVaB65rUeFjwOk3xO00Z1NgFrpUIB873DfhM VGeuOj6iQ957h12GX0p6RlIP+uVnQ+wJScxdfJE6haYlQ7CQMRl5AD0pa//VtAuTJCMF HeMg== X-Gm-Message-State: ACrzQf3/xDfpioYUPqQ10kZ3V/kye6PXffzkwcETLDH7kZ5yUcnWWL48 Jgr10nfGMZUQSLE9SYWmIJ8= X-Google-Smtp-Source: AMsMyM7MN9LsUbPcmUSPlInXAqM60Lc9W2oBYqcQp0gsHuKEOJsoSo0qKflXhY6JtzKmdjHSX5dZAg== X-Received: by 2002:a05:6a00:2402:b0:52c:81cf:8df8 with SMTP id z2-20020a056a00240200b0052c81cf8df8mr27247093pfh.60.1663736400217; Tue, 20 Sep 2022 22:00:00 -0700 (PDT) Received: from chrisp-dl.atlnz.lc ([2001:df5:b000:22:b311:e18b:2dd6:19b7]) by smtp.gmail.com with ESMTPSA id b20-20020a630c14000000b0043ab80adf63sm858059pgl.36.2022.09.20.21.59.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Sep 2022 21:59:59 -0700 (PDT) From: Chris Packham To: Stefan Roese Cc: Vadym Kochan , Elad Nachman , Chris Packham , Adam Ford , Alice Guo , Amjad Ouled-Ameur , Andre Przywara , Chris Packham , Christian Hewitt , Fabio Estevam , Jim Liu , Joe Hershberger , Lukasz Majewski , Marcel Ziswiler , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Marek Vasut , Michael Scott , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Peng Fan , Priyanka Jain , Ramon Fried , Samuel Holland , Sean Anderson , Simon Glass , Tim Harvey , Tom Rini , Weijie Gao , Ye Li , "Ying-Chun Liu (PaulLiu)" , u-boot@lists.denx.de Subject: [PATCH v3 0/6] arm: mvebu: Support for 98DX25xx/98DX35xx (AlleyCat5) Date: Wed, 21 Sep 2022 16:59:35 +1200 Message-Id: <20220921045941.571980-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 v3: - Remove unnecessary changes to RX descriptor handling - Use dev_get_dma_range() to parse dma-ranges property from parent device. - None. Note some changes related to this have been requested and will be looked into I just wanted to get v3 out so the other changes could be reviewed. - Remove unnecessary dma-ranges property from ethernet nodes (mvneta now correctly parses the property from the parent node). - Keep soc_print_clock_info and soc_print_device_info local to alleycat5. - Remove MMC and UBIFS distroboot options (MMC driver is not currently functional, NAND is not populated on the RD-AC5X board) - Remove unnecessary Ethernet configuration - Remove unnecessary NAND configuration - Remove memory node from dts so the value passed by the DDR FW will be used 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 | 290 +++++++++++++++++++++ arch/arm/dts/ac5-98dx35xx-rd.dts | 135 ++++++++++ arch/arm/dts/ac5-98dx35xx.dtsi | 17 ++ arch/arm/mach-mvebu/Kconfig | 13 +- 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/clock.h | 11 + arch/arm/mach-mvebu/alleycat5/cpu.c | 129 +++++++++ arch/arm/mach-mvebu/alleycat5/soc.c | 229 ++++++++++++++++ arch/arm/mach-mvebu/alleycat5/soc.h | 6 + arch/arm/mach-mvebu/arm64-common.c | 5 + arch/arm/mach-mvebu/include/mach/cpu.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 | 43 ++- drivers/pinctrl/mvebu/Kconfig | 2 +- drivers/usb/host/Kconfig | 1 + drivers/usb/host/ehci-marvell.c | 57 +++- include/configs/mvebu_alleycat-5.h | 57 ++++ 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, 1647 insertions(+), 16 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/clock.h 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/alleycat5/soc.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