From patchwork Mon Jan 22 12:45:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Lunn X-Patchwork-Id: 1889158 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=Hq+7PmPt; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=QQxgZEcr; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TJVMv0Xd8z20VD for ; Mon, 22 Jan 2024 23:46:35 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B8016879B2; Mon, 22 Jan 2024 13:46:31 +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="Hq+7PmPt"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="QQxgZEcr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3F690879B2; Mon, 22 Jan 2024 13:46:30 +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,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (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 E2B0487812 for ; Mon, 22 Jan 2024 13:46:25 +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 compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.nyi.internal (Postfix) with ESMTP id D48AB5C00F8; Mon, 22 Jan 2024 07:46:22 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Mon, 22 Jan 2024 07:46:22 -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=1705927582; x=1706013982; bh=2Ne8UAzm5r 1mGzhY6AmzMFprZYLOl3p4uaaEzDzbG7s=; b=Hq+7PmPtgGHqm/i4jQu2BQVsab Kl1Ysy/PIumoOZVe/u1FLZu7TDRamNZGcMHZMBksRQoT9o4Z54sqO6qb4gq5euE/ G/H1JUessQn5U85da6t+IVGbzxorgUQjhbi55YS5Xmldv3J9+UxQ6WHqhFIUoLW6 8Vy43/4GbZ7JoVWMYsaQX8Gt0Qinm0ObMDg+uqSwjdFeI7cxTkr/ODSoUYr31TPn Z56Z7il6agC+KRh6ZmtJtFiwgDvbgJsaM6YnkNm4ZQlI9q2t2i7iVF+BR/8K4Uu8 JhvzmIZ35WAZybitvhNJ2t3LSdLFd7LwHz9BnfWUZUWrefJRp48u/NlqppJg== 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=1705927582; x=1706013982; bh=2Ne8UAzm5r1mGzhY6AmzMFprZYLO l3p4uaaEzDzbG7s=; b=QQxgZEcrskKnzaXtrhjrWJBXtjKaRKGRwJWPKfJcyu+d WEQLf+CtSHh/YfB1QDNTWsdQeGd/oxrnGBesCjfE3+KNaK2r7rBnU1jGX62+WE27 w7qykxuZlOTpG2PsZx/0m8Rj9ShfWOLWh94b3lK65CCqFWnYvAXulUt2bNIZHaxV WKCi2DV+zFnYEZJO3uRKpcSWnjI3zkV15AZ4M0LiSfJLdTC8KTIsdqhEVmuDp2Om 94WxLF/uSuRCruOW8NqY9twc0GDHqn0F5aRsdRLcbQig7wDkLpM6yJeo/Kdyaa1q +9DALBENRbegjeHDtjFfX6lGMPb8s3PTbfvsvHGxjg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdekiedggedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepvfhimhcunfhu nhhnuceothhimhesfhgvrghthhgvrhhtohhprdhorhhgqeenucggtffrrghtthgvrhhnpe duhfdtveeujeejjeffieevgfdtudegfeffvedugfetteehudevteehtefgieeitdenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehtihhmsehfvg grthhhvghrthhophdrohhrgh X-ME-Proxy: Feedback-ID: i1f8241ce:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 22 Jan 2024 07:46:15 -0500 (EST) Received: by feathertop.org (sSMTP sendmail emulation); Mon, 22 Jan 2024 23:46:11 +1100 From: Tim Lunn To: u-boot@lists.denx.de Cc: Tim Lunn , Jagan Teki , Johan Jonker , Jonas Karlman , Kever Yang , Massimo Pegorer , Michal Simek , Philipp Tomsich , Philipp Tomsich , Quentin Schulz , Simon Glass , Tom Rini Subject: [PATCH 0/5] rockchip: Add support for rv1126 based Sonoff iHost Gateway Date: Mon, 22 Jan 2024 23:45:58 +1100 Message-Id: <20240122124603.3341988-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. Tim Lunn (5): arm: dts: rockchip: Sync rv1126 dts from linux 6.8-rc1 ram: rockchip: Add rv1126 ddr4 support 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 +++ .../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/rv1126_common.h | 2 +- include/configs/sonoff-ihost.h | 18 + 22 files changed, 1491 insertions(+), 11 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