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 50FE0C433F5 for ; Fri, 1 Apr 2022 13:42:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E57BD83F9D; Fri, 1 Apr 2022 15:42:19 +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.20210112.gappssmtp.com header.i=@semihalf-com.20210112.gappssmtp.com header.b="Rk1ghtJo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2489E8429F; Fri, 1 Apr 2022 14:44:01 +0200 (CEST) Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) (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 428AC8429F for ; Fri, 1 Apr 2022 14:43:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=semihalf.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=pan@semihalf.com Received: by mail-wr1-x42e.google.com with SMTP id h23so4077265wrb.8 for ; Fri, 01 Apr 2022 05:43:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tJ4vllV0BqxGWV9a+bRRu70CvVz0uBktAoraZKrjS9c=; b=Rk1ghtJoD000c22rN5PYMyxUIFaPopFZXUab0DBb7Kn8mp4YEsL8mi3s6zgqpKbuAA 0lU/vIkfmUbOv4EeBf+ccW8NH3ymA8KGyDuSiJdzAk+I/M4P9KdhVUFGQ4qFNuZoik2X WjEpLMYmDdonpBfbTGCv02zLzZO9FbzfrAhLUF+p3zfC/BgAO71eOaC57KzAQpHlQKGI HDIVERnezwicGYR2DoFnukyicSOZL+itwN2EOU5lVrfS0d72EbPlqr/ps6zUOCKXqhqc 7FtqkZFbGfQJYP+tWSB+JAujCtIy4mP61YKLbHVNvZtoGxZvLGZ+vCQogrXHMDZOu61c vypQ== 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=tJ4vllV0BqxGWV9a+bRRu70CvVz0uBktAoraZKrjS9c=; b=mcOZsO4aTZnDQ/98lcKaPpgQRiRjsKNroy3FcnX59ZwvpFXqTvHyBmu9zQ+MVxXTMi ZZf2NsLNYJr7jpOQSqowoV6jB43Cy+u8kvkVWQolv6rcpu5Qliht5OYFKuc7QYxk5cKw FEyK7wdHOEx9Mem4tEV1MmNUvNa4eAkJOySHGxqPwsjlUbPRQDqkUMIVRSXq3ZX5de8/ nvs1dHIPdBza62f4l2wv2if7MuxaAVVG72HMwdtaEyb7Mup4UKdCCChJvOiKBcD5X3Yl qKNjA4+f/eRCTN3tAVTFDQKqFtzqKCPipcH40jonbF34GDma3zjnfhUIB9YfzzNpkLgm ++YA== X-Gm-Message-State: AOAM533QX7RIMoP2kvoMn0aVRg+D1R0pWjwWMN6QJwit1IfrTf9Py4Yk rQXuVj7Jv8Duxu89y4A/lp6NPA== X-Google-Smtp-Source: ABdhPJw4bPJIYi9VpINCeg1Ab1Pm+YhGBy9sS4PxVUhT6FiiIDunblB7mtvCCkwLAV+vZPuExOF9Bw== X-Received: by 2002:a5d:640a:0:b0:204:619:4354 with SMTP id z10-20020a5d640a000000b0020406194354mr7586924wru.43.1648817037825; Fri, 01 Apr 2022 05:43:57 -0700 (PDT) Received: from localhost.localdomain ([85.191.191.191]) by smtp.gmail.com with ESMTPSA id o10-20020a5d47ca000000b00203fb25165esm2478175wrc.6.2022.04.01.05.43.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Apr 2022 05:43:57 -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, mw@semihalf.com, =?UTF-8?q?Pawe=C5=82=20Anikiel?= Subject: [PATCH 00/11] Add Chameleon V3 support Date: Fri, 1 Apr 2022 14:43:14 +0200 Message-Id: <20220401124325.1810108-1-pan@semihalf.com> X-Mailer: git-send-email 2.35.1.1094.g7c7d902a7c-goog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Fri, 01 Apr 2022 15:42:19 +0200 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. Paweł Anikiel (11): arm: dts: Add Mercury+ AA1 devicetree arm: dts: Add Chameleonv3 handoff headers arm: dts: Add Chameleonv3 devicetree 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_chameleonv3.dtsi | 21 ++ arch/arm/dts/socfpga_chameleonv3_270_3.dts | 9 + .../dts/socfpga_chameleonv3_270_3_handoff.h | 305 ++++++++++++++++++ arch/arm/dts/socfpga_chameleonv3_480_2.dts | 9 + .../dts/socfpga_chameleonv3_480_2_handoff.h | 305 ++++++++++++++++++ arch/arm/dts/socfpga_mercury_aa1.dtsi | 103 ++++++ arch/arm/mach-socfpga/Kconfig | 15 + arch/arm/mach-socfpga/clock_manager.c | 7 +- arch/arm/mach-socfpga/clock_manager_arria10.c | 12 +- .../mach-socfpga/include/mach/clock_manager.h | 4 + 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 | 49 +++ 23 files changed, 1067 insertions(+), 14 deletions(-) create mode 100644 arch/arm/dts/socfpga_chameleonv3.dtsi create mode 100644 arch/arm/dts/socfpga_chameleonv3_270_3.dts create mode 100644 arch/arm/dts/socfpga_chameleonv3_270_3_handoff.h create mode 100644 arch/arm/dts/socfpga_chameleonv3_480_2.dts create mode 100644 arch/arm/dts/socfpga_chameleonv3_480_2_handoff.h create mode 100644 arch/arm/dts/socfpga_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.35.1.1094.g7c7d902a7c-goog