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 80DE6C43334 for ; Fri, 17 Jun 2022 10:47:50 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E90C384395; Fri, 17 Jun 2022 12:47:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=semihalf.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=semihalf.com header.i=@semihalf.com header.b="J7gUzB5O"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9675D843EF; Fri, 17 Jun 2022 12:47:46 +0200 (CEST) Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) (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 F2354843C3 for ; Fri, 17 Jun 2022 12:47:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=semihalf.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pan@semihalf.com Received: by mail-lj1-x22a.google.com with SMTP id w2so962910lji.5 for ; Fri, 17 Jun 2022 03:47:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JcZVTZgXd6vbEu9eTjHo2vz/ahtGoJvZF00z7RfDveE=; b=J7gUzB5O0YKjXnX0p5+t7dIwyyDuETBGu6RCEvxzAKq7506KuJTPVsAiz3mjHdahxJ hB9VVvLfELICwbrxaOHV6HKV59M+SkdXICeIrE44iZ4eyMS/0PltiIcV5uVWTEJi0WYA PK72buR7taNsVLlR4L9gUNRZWPAdG2S/0mpqbrhjLgl/2xuT00DnsA1dHk4Fb37BqOMQ Qk9z2GL74MoGShU3ZfgbjfY7JFaGhIv03GxpCYClibgQxdOPRV0tMdkScAcCYJ1BV9EC 8oRn8BEvUMm4YPC0Amjxo0YqvgKo2cp4zZZh2qmwAyLbuVlCSmyrbHzd9rga0LWny223 8p4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JcZVTZgXd6vbEu9eTjHo2vz/ahtGoJvZF00z7RfDveE=; b=dSaxDhPPEVktASE9/90r4FXtofTrWfxjErsavCrOXHv+X6GEdUqTbMg3VFxlyxn1om 901dio16VIpRWd28JGRA6L0qe4Qfjbiaqiho0v/yp/ZSOQ8eGt9iV6ALBuJmZSkSLZ5f 9xwN7Hf64y8ut0Q8hr2ShW+vsQ9QnTFQaubiB/fxRiCx4MaSi9mOaC4HSOC6C+c8bvOw jFL3XpjB63mzg3jZO4i+Wukp3cijxLQsrnh2IMUmuIxa7iUQWHjnryRN7b8MropCrthb EhhebWyimzPirtkQf1un17jPnAAqmVzhVib/IyR3GV7fK9yPIv0OhWfN9QJKBkN9/28b HDPQ== X-Gm-Message-State: AJIora8Zwh0g5fzW3fiIdQuFdTpFXgrAZEhe4hHce+Zisxf6NfaSj/Xq Y2QLRKOkaTUSxrWh9EXauObAwg== X-Google-Smtp-Source: AGRyM1vF/6OezPNNpBDO1Z95TtoTIM2Sy35xUciRCuNKKUeJoZon7zX1I2vm4rRtBBhQ1AXtknDpOQ== X-Received: by 2002:a05:651c:546:b0:259:9f4:f5eb with SMTP id q6-20020a05651c054600b0025909f4f5ebmr4719411ljp.452.1655462862287; Fri, 17 Jun 2022 03:47:42 -0700 (PDT) Received: from panikiel.roam.corp.google.com (staticline-31-182-204-250.toya.net.pl. [31.182.204.250]) by smtp.gmail.com with ESMTPSA id a17-20020ac25e71000000b00479342519e5sm592379lfr.210.2022.06.17.03.47.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jun 2022 03:47:41 -0700 (PDT) From: =?UTF-8?q?Pawe=C5=82=20Anikiel?= To: marex@denx.de, simon.k.r.goldschmidt@gmail.com, tien.fong.chee@intel.com, michal.simek@xilinx.com Cc: u-boot@lists.denx.de, sjg@chromium.org, festevam@denx.de, jagan@amarulasolutions.com, andre.przywara@arm.com, narmstrong@baylibre.com, pbrobinson@gmail.com, tharvey@gateworks.com, paul.liu@linaro.org, christianshewitt@gmail.com, adrian.fiergolski@fastree3d.com, marek.behun@nic.cz, wd@denx.de, elly.siew.chin.lim@intel.com, upstream@semihalf.com, amstan@chromium.org, =?UTF-8?q?Pawe=C5=82=20Anikiel?= Subject: [PATCH v3 00/11] Add Chameleon v3 support Date: Fri, 17 Jun 2022 12:47:15 +0200 Message-Id: <20220617104726.158688-1-pan@semihalf.com> X-Mailer: git-send-email 2.36.1.476.g0c4daa206d-goog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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.5 at phobos.denx.de X-Virus-Status: Clean The Google Chameleon v3 is a board made for testing both video and audio interfaces of external devices. It has a connector compatible with the Mercury+ AA1 module, which itself contains an Arria 10 SoCFPGA. The AA1 module comes in a few different configurations, the Chameleon V3 supports ME-AA1-270-3E4-D11 and ME-AA1-480-2I3-D12E. This patchset adds support for the Chameleon v3 (both versions), as well as some bugfixes and optimizations, mostly in Arria 10 code. V3: Move clock manager changes out of socfpga-generic code (aarch64 compilation issue) V2: Adjust devicetrees so that they work both in u-boot and linux Put u-boot-specific parts of devicetrees into *-u-boot.dtsi files Minor changes in Kconfig, defconfig, and config.h Paweł Anikiel (11): arm: dts: Add Mercury+ AA1 devicetrees arm: dts: Add Chameleonv3 handoff headers arm: dts: Add Chameleonv3 devicetrees board: Add Chameleonv3 board dir config: Add Chameleonv3 config misc: atsha204a: Increase wake delay by tWHI sysreset: socfpga: Use parent device for reading base address socfpga: arria10: Replace delays with busy waiting in cm_full_cfg socfpga: arria10: Improve bitstream loading speed socfpga: arria10: Wait for fifo empty after writing bitstream socfpga: arria10: Allow dcache_enable before relocation arch/arm/dts/Makefile | 2 + arch/arm/dts/socfpga_arria10_chameleonv3.dts | 90 ++++++ ...fpga_arria10_chameleonv3_270_3-u-boot.dtsi | 8 + .../dts/socfpga_arria10_chameleonv3_270_3.dts | 5 + ...ocfpga_arria10_chameleonv3_270_3_handoff.h | 305 ++++++++++++++++++ ...fpga_arria10_chameleonv3_480_2-u-boot.dtsi | 8 + .../dts/socfpga_arria10_chameleonv3_480_2.dts | 5 + ...ocfpga_arria10_chameleonv3_480_2_handoff.h | 305 ++++++++++++++++++ .../socfpga_arria10_mercury_aa1-u-boot.dtsi | 54 ++++ arch/arm/dts/socfpga_arria10_mercury_aa1.dtsi | 72 +++++ arch/arm/mach-socfpga/Kconfig | 7 + arch/arm/mach-socfpga/clock_manager_arria10.c | 31 +- arch/arm/mach-socfpga/misc_arria10.c | 26 ++ board/google/chameleonv3/Makefile | 5 + board/google/chameleonv3/board.c | 27 ++ board/google/chameleonv3/fpga.its | 28 ++ board/google/chameleonv3/fpga_early_io.its | 35 ++ board/google/chameleonv3/mercury_aa1.c | 43 +++ board/google/chameleonv3/mercury_aa1.h | 12 + configs/socfpga_chameleonv3_defconfig | 29 ++ drivers/fpga/socfpga_arria10.c | 28 +- drivers/misc/atsha204a-i2c.c | 5 +- drivers/sysreset/sysreset_socfpga.c | 2 +- include/configs/socfpga_chameleonv3.h | 44 +++ 24 files changed, 1162 insertions(+), 14 deletions(-) create mode 100644 arch/arm/dts/socfpga_arria10_chameleonv3.dts create mode 100644 arch/arm/dts/socfpga_arria10_chameleonv3_270_3-u-boot.dtsi create mode 100644 arch/arm/dts/socfpga_arria10_chameleonv3_270_3.dts create mode 100644 arch/arm/dts/socfpga_arria10_chameleonv3_270_3_handoff.h create mode 100644 arch/arm/dts/socfpga_arria10_chameleonv3_480_2-u-boot.dtsi create mode 100644 arch/arm/dts/socfpga_arria10_chameleonv3_480_2.dts create mode 100644 arch/arm/dts/socfpga_arria10_chameleonv3_480_2_handoff.h create mode 100644 arch/arm/dts/socfpga_arria10_mercury_aa1-u-boot.dtsi create mode 100644 arch/arm/dts/socfpga_arria10_mercury_aa1.dtsi create mode 100644 board/google/chameleonv3/Makefile create mode 100644 board/google/chameleonv3/board.c create mode 100644 board/google/chameleonv3/fpga.its create mode 100644 board/google/chameleonv3/fpga_early_io.its create mode 100644 board/google/chameleonv3/mercury_aa1.c create mode 100644 board/google/chameleonv3/mercury_aa1.h create mode 100644 configs/socfpga_chameleonv3_defconfig create mode 100644 include/configs/socfpga_chameleonv3.h -- 2.36.1.476.g0c4daa206d-goog