From patchwork Wed Jan 24 03:25:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Lunn X-Patchwork-Id: 1889975 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=feathertop.org header.i=@feathertop.org header.a=rsa-sha256 header.s=fm2 header.b=XsCEM60f; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=H37CriM8; dkim-atps=neutral Authentication-Results: legolas.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=patchwork.ozlabs.org) 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 ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TKTrj3ZSmz23dy for ; Wed, 24 Jan 2024 14:26:29 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7844F87B63; Wed, 24 Jan 2024 04:26:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=feathertop.org 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=feathertop.org header.i=@feathertop.org header.b="XsCEM60f"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="H37CriM8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2491B87B6C; Wed, 24 Jan 2024 04:26:22 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B63CD870B5 for ; Wed, 24 Jan 2024 04:26:17 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=feathertop.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tim@feathertop.org Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id B05C73200AC5; Tue, 23 Jan 2024 22:26:13 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 23 Jan 2024 22:26:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=feathertop.org; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to; s=fm2; t=1706066773; x=1706153173; bh=QDBLFqY7QJ qXP25Yh0OfqlL/5e6bvpXZD+QZfam26xE=; b=XsCEM60f55IG43igNTYU5yqGMp msZtHtpmOLM9aMs8VgWkmnMr1ZaaOgJsfj391nuucTcdQw6wt7litos5TKObRQAi XtA6SE+hhwAeHgxSmmsv/O07/JL/Ytl5ezGnuFrK10xBgKvmzVBwoBd4PmkAP1aD RM5XNz5YS5yk+tcOxfRow1CG4D5Pbsute5LZqMuRFxyxmU3TNXF9Xl973PbwwRwn t94uCx4MkYc0QRvZ0Jfw5e5SjMWIflNaLyIG/MObNzBRgOt8rC32QasMQBHJ2tE2 as+TZ6fJdjhhuTXRNoExxNkyKCb1ia5Xf24oFYGWUkgOGM4V9EmqJ6qGDJLw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1706066773; x=1706153173; bh=QDBLFqY7QJqXP25Yh0OfqlL/5e6b vpXZD+QZfam26xE=; b=H37CriM8/3S6geefDPiGx4AYv4C3ElW3rDzm+W32fDVj GZdgSPFY7u66VMJ/ZUOXpjxE3w2iOBCraQ8KUnTNdHucKK5wgixbNM4pFd6SMubJ mR5S3Hkvm7eRXFJMkqDO6TegMo9q3Igmvsed14WIB8wsvxpHd6byX5AUdVOBtE// hHnPOJR5EVi2T3yEub7IOVn0mrp9y0ccXdwiuRJwJX5bxTv71Mc5BylB+G3lwhkB sTjvau8JPlxsnrF8cKi1RIUUmMbaXOP5cG3oHpikBzTLFtuzzaNSVj4xb5Kq7+qs tP+EyqD1AwcmnoQw64z4rSF2mZnmzYr5F/9j+APBhg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeltddgvdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepvfhimhcunfhu nhhnuceothhimhesfhgvrghthhgvrhhtohhprdhorhhgqeenucggtffrrghtthgvrhhnpe duhfdtveeujeejjeffieevgfdtudegfeffvedugfetteehudevteehtefgieeitdenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehtihhmsehfvg grthhhvghrthhophdrohhrgh X-ME-Proxy: Feedback-ID: i1f8241ce:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 23 Jan 2024 22:26:06 -0500 (EST) Received: by feathertop.org (sSMTP sendmail emulation); Wed, 24 Jan 2024 14:26:03 +1100 From: Tim Lunn To: u-boot@lists.denx.de Cc: Tim Lunn , Chris Morgan , Eugen Hristev , Jagan Teki , Johan Jonker , John Keeping , Jonas Karlman , Kever Yang , Massimo Pegorer , Michal Simek , Nicolas Frattaroli , Philipp Tomsich , Quentin Schulz , Simon Glass , Tom Rini Subject: [PATCH v2 0/6] rockchip: Add support for rv1126 based Sonoff iHost Gateway Date: Wed, 24 Jan 2024 14:25:56 +1100 Message-Id: <20240124032602.126059-1-tim@feathertop.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 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.8 at phobos.denx.de X-Virus-Status: Clean Sonoff iHost is gateway device designed to provide a Smart Home Hub, it is based on Rockchip RV1126. It features Wifi, BT and Zigbee radios as required by many smart home devices. Features: - Rockchip RV1126 - 4GB DDR4 - 8GB eMMC - microSD slot - RMII Ethernet PHY - 1x USB 2.0 Host - 1x USB 2.0 OTG - Realtek RTL8723DS WiFi/BT - EFR32MG21 Silabs Zigbee radio - Speaker/Microphone Sync rv1126 dts from linux v6.8-rc1, add support for ddr4 ram and add board support for the Sonoff ihost. Changes in v2: - New patch to clean up distro boot from rv1126_common.h - Remove board config not required with standard boot Tim Lunn (6): arm: dts: rockchip: Sync rv1126 dts from linux 6.8-rc1 ram: rockchip: Add rv1126 ddr4 support rockchip: Convert rv1126 to standard boot board: rockchip: Add Sonoff iHost board rockchip: rv1126: select SPL_OPTEE_IMAGE rockchip: rv1126: Move RAM disk address arch/arm/dts/rv1126-edgeble-neu2-io.dts | 70 +++ arch/arm/dts/rv1126-edgeble-neu2.dtsi | 27 +- arch/arm/dts/rv1126-pinctrl.dtsi | 130 ++++++ arch/arm/dts/rv1126-sonoff-ihost-u-boot.dtsi | 13 + arch/arm/dts/rv1126-sonoff-ihost.dts | 29 ++ arch/arm/dts/rv1126-sonoff-ihost.dtsi | 404 ++++++++++++++++++ arch/arm/dts/rv1126.dtsi | 185 ++++++++ arch/arm/mach-rockchip/Kconfig | 1 + arch/arm/mach-rockchip/rv1126/Kconfig | 8 + board/itead/sonoff-ihost/Kconfig | 16 + board/itead/sonoff-ihost/MAINTAINERS | 6 + configs/sonoff-ihost-rv1126_defconfig | 60 +++ doc/board/rockchip/rockchip.rst | 1 + .../sdram-rv1126-ddr4-detect-1056.inc | 75 ++++ .../rockchip/sdram-rv1126-ddr4-detect-328.inc | 75 ++++ .../rockchip/sdram-rv1126-ddr4-detect-396.inc | 75 ++++ .../rockchip/sdram-rv1126-ddr4-detect-528.inc | 75 ++++ .../rockchip/sdram-rv1126-ddr4-detect-664.inc | 75 ++++ .../rockchip/sdram-rv1126-ddr4-detect-784.inc | 75 ++++ .../rockchip/sdram-rv1126-ddr4-detect-924.inc | 75 ++++ drivers/ram/rockchip/sdram_rv1126.c | 8 + include/configs/neural-compute-module-2.h | 6 - include/configs/rv1126_common.h | 5 +- include/configs/sonoff-ihost.h | 10 + 24 files changed, 1485 insertions(+), 19 deletions(-) create mode 100644 arch/arm/dts/rv1126-sonoff-ihost-u-boot.dtsi create mode 100644 arch/arm/dts/rv1126-sonoff-ihost.dts create mode 100644 arch/arm/dts/rv1126-sonoff-ihost.dtsi create mode 100644 board/itead/sonoff-ihost/Kconfig create mode 100644 board/itead/sonoff-ihost/MAINTAINERS create mode 100644 configs/sonoff-ihost-rv1126_defconfig create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr4-detect-1056.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr4-detect-328.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr4-detect-396.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr4-detect-528.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr4-detect-664.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr4-detect-784.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr4-detect-924.inc create mode 100644 include/configs/sonoff-ihost.h