Message ID | 20220727174050.2214617-1-jagan@edgeble.ai |
---|---|
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=edgeble-ai.20210112.gappssmtp.com header.i=@edgeble-ai.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=ktijHeRf; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LtMc20q8kz9s2R for <incoming@patchwork.ozlabs.org>; Thu, 28 Jul 2022 04:23:46 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9716A84038; Wed, 27 Jul 2022 20:23:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=edgeble.ai 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=edgeble-ai.20210112.gappssmtp.com header.i=@edgeble-ai.20210112.gappssmtp.com header.b="ktijHeRf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 655238407F; Wed, 27 Jul 2022 19:41:01 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) (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 CEF05817E6 for <u-boot@lists.denx.de>; Wed, 27 Jul 2022 19:40:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=edgeble.ai Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=jagan@edgeble.ai Received: by mail-pj1-x1032.google.com with SMTP id t2-20020a17090a4e4200b001f21572f3a4so2871320pjl.0 for <u-boot@lists.denx.de>; Wed, 27 Jul 2022 10:40:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=edgeble-ai.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KQ+bradgnIfj1jxT1ECYoZ2iqj/RYVk2t+MWDhJ641g=; b=ktijHeRfK5Verir5ww2I3nFx4Uz0I+NGxaXjsxb2/76t3vIi/a/AnQnd2CwjQ5QRu5 9LtSrmWNYxO1C3X/YiHJnWMddsJYs+9nom1dFisuXQHubcToLPIzYyDwFu/keZ/eUZRz KTLVLawbjnkeB+uGCl+KSA4bIFdDq8m4uyI2n5H9gO19RmuhotLhaBxZK6D4M+QfnRPJ +WW39Stu9iG5RhdHsMkWv9+KEVggwpAIaXD7ZN4HLrKM1c4s5xIGtDUH4Fwai43/tNrp svhNFKcMyPVUp0VRP7XjbQQHmh5eb4BIgI1fq6vHBcfmvvVwDDBHXfkpdv1u9fqT/DhS 2IsQ== 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=KQ+bradgnIfj1jxT1ECYoZ2iqj/RYVk2t+MWDhJ641g=; b=bynas0xiODvQS2Jh9SwjW1VYd2Rm3g7JA+AOvt3lV2NDGe+avwoZcGMzjdhS0DHQVV q2cz1y0/sOfElO0vFTf+GjJhJwqyMPMPdi4bsXqzmFne3U9LMLdLP6RBZGIO1KONCQve C5eLHAuzcE/i2IkqHiC/2D5mRfarKbPi9PLLu2mPP8bYFA+MP/1Mp7zCgixORacg4VUS ar+rHWgd0Z/fIQggoicQgjrFJB0lCpKzhK72wrHzmWIenOupOLZguaJjxbQUXf/rF5dL kwD4fW5JvvSvrlnaWnscrNZYWH4s3TGH6jGWmUrfYU3bdzq/Z4/UwWKa4lIVV5jWk4fl 3Rxw== X-Gm-Message-State: AJIora9bxZ5/riH3Wf6BJ0txxpsVGq1iX6Fuw0w7AH/MgQ1eqgP+6i9h /XMfMLM1HNB7Hj0zdjKv3G/xQA== X-Google-Smtp-Source: AGRyM1tLX/rzx4+EJLdpdFj9P7jP2GlTVt2hlf1IrKa3pHhg7MwEJa57erERrdlfxlylPZkQiAAEsQ== X-Received: by 2002:a17:90a:fec:b0:1f2:8c1f:210b with SMTP id 99-20020a17090a0fec00b001f28c1f210bmr5831715pjz.114.1658943655952; Wed, 27 Jul 2022 10:40:55 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a073:7b77:efa3:a08f:c6d8]) by smtp.gmail.com with ESMTPSA id d4-20020a621d04000000b00528c8ed356dsm14492958pfd.96.2022.07.27.10.40.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Jul 2022 10:40:55 -0700 (PDT) From: Jagan Teki <jagan@edgeble.ai> To: Kever Yang <kever.yang@rock-chips.com>, Philipp Tomsich <philipp.tomsich@vrull.eu>, Simon Glass <sjg@chromium.org> Cc: u-boot@lists.denx.de, Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH 00/28] ARM: Add Rockchip RV1126 support Date: Wed, 27 Jul 2022 23:10:22 +0530 Message-Id: <20220727174050.2214617-1-jagan@edgeble.ai> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Wed, 27 Jul 2022 20:23:40 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean |
Series |
ARM: Add Rockchip RV1126 support
|
expand
|
From: Jagan Teki <jagan@amarulasolutions.com> RV1126 is a high-performance vision processor SoC for IPC/CVR, especially for AI related application. This patch series add basic core support for Rockchip RV1126 and boot from eMMC and SD. Linux support is under review for the same [2]. Tested RV1126 in Edgeble AI Edge Compute Module 0. Anyone interested, please have a look on this repo [1] Note: I was little late to push this MW due to some issues, hope these would land as soon as possible. [1] https://github.com/edgeble/u-boot/commits/ecm0-v4 [2] https://patchwork.kernel.org/project/linux-arm-kernel/cover/20220723204335.750095-1-jagan@edgeble.ai/ Any inputs? Jagan. Jagan Teki (28): ram: Mark ram-uclass depend on TPL_DM or SPL_DM ram: rockchip: Add common ddr type configs tools: rkcommon: Correct SPL size for px30 ram: rockchip: Compute ddr capacity based on grf split ram: rockchip: Update high row detection for full bw ram: rockchip: Update ddr pctl regs for px30 ram: rockchip: Add rv1126 ddr3 support ram: rockchip: Add rv1126 ddr loader params ram: rockchip: Add rv1126 ddr driver support ram: rockchip: rv1126: Control ddr init prints via DEBUG ram: rockchip: Add rv1126 lpddr4 support pinctrl: rockchip: Add pinctrl route types pinctrl: rockchip: Add rv1126 support arch: rockchip: Add cru header for rv1126 clk: rockchip: Add rv1126 clk support dt-bindings: power: Add power-domain header for rv1126 dt-bindings: clk: Add dt-binding header for RV1126 arm: rockchip: Add grf header for rv1126 ARM: dts: rockchip: Add Rockchip RV1126 pinctrl ARM: dts: rockchip: Add Rockchip RV1126 SoC arm: rockchip: Add RV1126 arch core support arm: rockchip: rv1126: Set dram area unsecure for SPL configs: rockchip: Add rv1126 common config rockchip: mkimage: Add rv1126 support ARM: dts: rockchip: rv1126: Add Edgeble AI Edge Compute Module 0 ARM: dts: rockchip: rv1126: Add Edgeble AI Edge Compute Module 0 Carrier ARM: dts: rockchip: Add rv1126-u-boot.dtsi board: Add Edgeble AI Edge Compute Module 0 Carrier arch/arm/dts/Makefile | 3 + .../rv1126-edgeble-ecm0-carrier-u-boot.dtsi | 10 + arch/arm/dts/rv1126-edgeble-ecm0-carrier.dts | 38 + .../rv1126-edgeble-edge-compute-module-0.dtsi | 329 ++ arch/arm/dts/rv1126-pinctrl.dtsi | 302 ++ arch/arm/dts/rv1126-u-boot.dtsi | 62 + arch/arm/dts/rv1126.dtsi | 500 +++ .../include/asm/arch-rockchip/cru_rv1126.h | 459 +++ .../asm/arch-rockchip/dram_spec_timing.h | 452 +++ .../include/asm/arch-rockchip/grf_rv1126.h | 251 ++ .../include/asm/arch-rockchip/sdram_common.h | 216 +- .../include/asm/arch-rockchip/sdram_msch.h | 12 + .../asm/arch-rockchip/sdram_pctl_px30.h | 100 +- .../asm/arch-rockchip/sdram_phy_rv1126.h | 93 + .../include/asm/arch-rockchip/sdram_rv1126.h | 420 ++ arch/arm/include/asm/arch-rv1126/boot0.h | 11 + arch/arm/include/asm/arch-rv1126/gpio.h | 11 + arch/arm/mach-rockchip/Kconfig | 46 + arch/arm/mach-rockchip/Makefile | 1 + arch/arm/mach-rockchip/rv1126/Kconfig | 55 + arch/arm/mach-rockchip/rv1126/Makefile | 13 + arch/arm/mach-rockchip/rv1126/clk_rv1126.c | 33 + arch/arm/mach-rockchip/rv1126/rv1126.c | 76 + arch/arm/mach-rockchip/rv1126/syscon_rv1126.c | 47 + board/edgeble/edge-compute-module-0/Kconfig | 16 + .../edgeble/edge-compute-module-0/MAINTAINERS | 6 + board/edgeble/edge-compute-module-0/Makefile | 7 + board/edgeble/edge-compute-module-0/ecm0.c | 4 + board/engicam/px30_core/Kconfig | 2 +- common/spl/Kconfig.tpl | 2 +- configs/ecm0-carrier-rv1126_defconfig | 56 + configs/khadas-edge-captain-rk3399_defconfig | 2 +- configs/khadas-edge-rk3399_defconfig | 2 +- configs/khadas-edge-v-rk3399_defconfig | 2 +- configs/leez-rk3399_defconfig | 2 +- configs/nanopi-r4s-rk3399_defconfig | 2 +- configs/pinebook-pro-rk3399_defconfig | 2 +- configs/roc-pc-mezzanine-rk3399_defconfig | 2 +- configs/roc-pc-rk3399_defconfig | 2 +- configs/rock-pi-4-rk3399_defconfig | 2 +- configs/rock-pi-4c-rk3399_defconfig | 2 +- configs/rockpro64-rk3399_defconfig | 2 +- drivers/clk/rockchip/Makefile | 1 + drivers/clk/rockchip/clk_rv1126.c | 1889 +++++++++ drivers/pinctrl/rockchip/Makefile | 1 + drivers/pinctrl/rockchip/pinctrl-px30.c | 11 +- drivers/pinctrl/rockchip/pinctrl-rk3128.c | 11 +- drivers/pinctrl/rockchip/pinctrl-rk322x.c | 11 +- drivers/pinctrl/rockchip/pinctrl-rk3288.c | 11 +- drivers/pinctrl/rockchip/pinctrl-rk3308.c | 11 +- drivers/pinctrl/rockchip/pinctrl-rk3328.c | 11 +- drivers/pinctrl/rockchip/pinctrl-rk3399.c | 11 +- .../pinctrl/rockchip/pinctrl-rockchip-core.c | 45 +- drivers/pinctrl/rockchip/pinctrl-rockchip.h | 58 +- drivers/pinctrl/rockchip/pinctrl-rv1126.c | 416 ++ drivers/ram/Makefile | 2 +- drivers/ram/rockchip/Kconfig | 32 +- drivers/ram/rockchip/Makefile | 1 + .../sdram-rv1126-ddr3-detect-1056.inc | 72 + .../rockchip/sdram-rv1126-ddr3-detect-328.inc | 72 + .../rockchip/sdram-rv1126-ddr3-detect-396.inc | 72 + .../rockchip/sdram-rv1126-ddr3-detect-528.inc | 72 + .../rockchip/sdram-rv1126-ddr3-detect-664.inc | 72 + .../rockchip/sdram-rv1126-ddr3-detect-784.inc | 72 + .../rockchip/sdram-rv1126-ddr3-detect-924.inc | 72 + .../rockchip/sdram-rv1126-loader_params.inc | 198 + .../sdram-rv1126-lpddr4-detect-1056.inc | 78 + .../sdram-rv1126-lpddr4-detect-328.inc | 78 + .../sdram-rv1126-lpddr4-detect-396.inc | 78 + .../sdram-rv1126-lpddr4-detect-528.inc | 78 + .../sdram-rv1126-lpddr4-detect-664.inc | 78 + .../sdram-rv1126-lpddr4-detect-784.inc | 78 + .../sdram-rv1126-lpddr4-detect-924.inc | 78 + drivers/ram/rockchip/sdram_common.c | 62 +- drivers/ram/rockchip/sdram_pctl_px30.c | 6 +- drivers/ram/rockchip/sdram_px30.c | 10 +- drivers/ram/rockchip/sdram_rk3328.c | 2 +- drivers/ram/rockchip/sdram_rk3399.c | 8 +- drivers/ram/rockchip/sdram_rv1126.c | 3543 +++++++++++++++++ include/configs/edge-compute-module-0.h | 21 + include/configs/rv1126_common.h | 42 + include/dt-bindings/clock/rv1126-cru.h | 632 +++ include/dt-bindings/power/rv1126-power.h | 35 + tools/rkcommon.c | 3 +- 84 files changed, 11657 insertions(+), 132 deletions(-) create mode 100644 arch/arm/dts/rv1126-edgeble-ecm0-carrier-u-boot.dtsi create mode 100644 arch/arm/dts/rv1126-edgeble-ecm0-carrier.dts create mode 100644 arch/arm/dts/rv1126-edgeble-edge-compute-module-0.dtsi create mode 100644 arch/arm/dts/rv1126-pinctrl.dtsi create mode 100644 arch/arm/dts/rv1126-u-boot.dtsi create mode 100644 arch/arm/dts/rv1126.dtsi create mode 100644 arch/arm/include/asm/arch-rockchip/cru_rv1126.h create mode 100644 arch/arm/include/asm/arch-rockchip/dram_spec_timing.h create mode 100644 arch/arm/include/asm/arch-rockchip/grf_rv1126.h create mode 100644 arch/arm/include/asm/arch-rockchip/sdram_phy_rv1126.h create mode 100644 arch/arm/include/asm/arch-rockchip/sdram_rv1126.h create mode 100644 arch/arm/include/asm/arch-rv1126/boot0.h create mode 100644 arch/arm/include/asm/arch-rv1126/gpio.h create mode 100644 arch/arm/mach-rockchip/rv1126/Kconfig create mode 100644 arch/arm/mach-rockchip/rv1126/Makefile create mode 100644 arch/arm/mach-rockchip/rv1126/clk_rv1126.c create mode 100644 arch/arm/mach-rockchip/rv1126/rv1126.c create mode 100644 arch/arm/mach-rockchip/rv1126/syscon_rv1126.c create mode 100644 board/edgeble/edge-compute-module-0/Kconfig create mode 100644 board/edgeble/edge-compute-module-0/MAINTAINERS create mode 100644 board/edgeble/edge-compute-module-0/Makefile create mode 100644 board/edgeble/edge-compute-module-0/ecm0.c create mode 100644 configs/ecm0-carrier-rv1126_defconfig create mode 100644 drivers/clk/rockchip/clk_rv1126.c create mode 100644 drivers/pinctrl/rockchip/pinctrl-rv1126.c create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr3-detect-1056.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr3-detect-328.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr3-detect-396.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr3-detect-528.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr3-detect-664.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr3-detect-784.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr3-detect-924.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-loader_params.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-lpddr4-detect-1056.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-lpddr4-detect-328.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-lpddr4-detect-396.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-lpddr4-detect-528.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-lpddr4-detect-664.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-lpddr4-detect-784.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-lpddr4-detect-924.inc create mode 100644 drivers/ram/rockchip/sdram_rv1126.c create mode 100644 include/configs/edge-compute-module-0.h create mode 100644 include/configs/rv1126_common.h create mode 100644 include/dt-bindings/clock/rv1126-cru.h create mode 100644 include/dt-bindings/power/rv1126-power.h