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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0A6DF106FD66 for ; Fri, 13 Mar 2026 02:45:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=iSe5UvRoNIjilncVOeKf8HYNdIXHPW/64eBhtdMG84o=; b=Z90LPdJEs+4d4sgZwIvKmeSR57 73T2jwO283rXJozrNoaT9EP1U66PUB0LzYhB4v5YeLvex+ryKlRf4tyTAtEgvq52fkh/uAVmOX3MQ ts7Je+oIzgEZ55v0vIZMFIyGq7cEeUTGvemd14jIkcTh4ORpv2usSm5G0uYF5RxYDPlKA0KIzYv2R 63jF0HwAF03Hr0wldgkEHMWINIEHa5vgwwMVC4B8rvjCqIjp0Gmb2YkN9iaiw4SeT0NR0sT7+BEXd EsJCH6CAZxWAca1XSP0qJCichM8wyAZGGpSHeQwrRoq9PBB+n68dfqvd+AATDC3wCYc8ExR7EECis QnFfuqbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1w0sWk-0000000GHli-1CFd; Fri, 13 Mar 2026 02:45:26 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1w0sWh-0000000GHiq-3OVt for linux-arm-kernel@bombadil.infradead.org; Fri, 13 Mar 2026 02:45:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=iSe5UvRoNIjilncVOeKf8HYNdIXHPW/64eBhtdMG84o=; b=crXRDViTVC0LPA6hkwQF61BpcM Mdx3zWku5t6mA4Yrzc2zH7XgPnHmXL/WBWgZLnKoDTvjf3hvKilK71SKyvLlZNuf6Dyrtv0o1xIro Nwq6flbR6A5wAiPRL2DuXmvdxdoa0ZMoTgO68yJtSSFXysaR9QKZnQy/ZUg6xXKRvOjd9W8FAS0c+ Oh1EUR7549tZNcrOLX8zoCb40lQubDgeRJ+F+1Bl3lwAeJLwHFJA/HP8n2Nm5E56outn1x5TbdeHc QDK0ob8Kgx5Y3nkFAlOvqplOAJ8FbXhAigCYmRYhSztkZ44pJXh0iYgLCBOlUUvFM26Dr9Z9AHE5t dsHyhYdQ==; Received: from mail-dy1-x1331.google.com ([2607:f8b0:4864:20::1331]) by desiato.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1w0sWb-00000002Te5-00NZ for linux-arm-kernel@lists.infradead.org; Fri, 13 Mar 2026 02:45:20 +0000 Received: by mail-dy1-x1331.google.com with SMTP id 5a478bee46e88-2beab594d8eso483864eec.0 for ; Thu, 12 Mar 2026 19:45:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773369914; x=1773974714; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iSe5UvRoNIjilncVOeKf8HYNdIXHPW/64eBhtdMG84o=; b=XQX4h8V54X4Sg2RlzslqlCWY0YV1k0YI2XyITmu+V7R5yTa5PriMhde1glqMmVzTNx 0u/dZTxeCWGjgdtq8qxenAgGA1nOaVZlXx5TcovuhlSrTh4K87e3pMLb6PpMkecPGSGY 4sa2lmPnf/MIaDkjey/kPrCCTH8veVWYrfja2QB7u/SHchWGDn6KKP434hJT1nvk/zaf 0s56j8I+KEBMnoEB0LFeQSUxT1QqYex5LlsazNvIWk6DUGTnEg8a/9+6oXRb4JQd4E7J nIBTZqZoSFVfuagk4eXH+dwUbLTv5YNXXvJe7ePZOKd16BASOMUe8cmnEMT5Aet3KGwK 4CeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773369914; x=1773974714; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=iSe5UvRoNIjilncVOeKf8HYNdIXHPW/64eBhtdMG84o=; b=SFemn2na5fejTr5i/6TnOd65bWvhMSKH8KuUPXwsH6tdP7B7WkLV0H14ufttGiVi0s tk42+M2zRUEDvIG1YGomlsNLp62ddxb91xQEwr38WsT0vcUDkNipfgU7CoHtIQ8UXjgQ h+hVGnzLcEgdJF/H87Nx9hEnv2qoFLR1TCB6096nFhJKRJ+2Fl72YQM3brJ468GqvbeJ NY1fNutqt3ItffrzD+VSne4XROEWtYruD20nMQ11ZItPtaozFp6L6FDo9mDYyLPq8aUi OfxQZLOIohiTb1whIq7F4mkWvGhQA5Kzqfcn5nTUnZETCDqWaepZ1TfTR/8zg7t0eugc DBLg== X-Forwarded-Encrypted: i=1; AJvYcCWrv1cPz7CRZMWhVahDEsKHmNOY001i0WTU7D9WJzgG9FHGzXI6rXCpHNeIpaXzzUb0SAUkOGWcEiH4nk1C8bHx@lists.infradead.org X-Gm-Message-State: AOJu0YxCNQktOF7fnKyx+HEQ1fJt6ENnsl9rS8kZ/SXRg1HHl0cpn3kt gs1ca1FkTjKZ6fZIqQBzsgpl0llpoJqwT5M3bn5BZcSNjAu8QJbd9wtHrvG85Q== X-Gm-Gg: ATEYQzyfvFy/dKsOSL7NJ7D1gidD3PQbuK7y7nyOlqaMioLyEUyk5UPylsbiCaAzbxT Iyq8sJMJXaHz8gJnvJAGGOkHcPV7A9/aODtzPIE07f6bvRxG+6jdbz4U0aovlclPIuu7P1s5puQ uyefOrZ8osUzu9mhaYbeLaBVkQV/G2u2vxHhwcHQ4RC5aM8GFMvVGOcyJCVRGdCqPJ+yTOB3hE4 BAV1uysB/H3gPaXX+/DoGm6eOx3DfA4IBauxhhZAU8SQIXFQ+nvHF7G/U0s75VNThEOVOraSMI5 GFlQEVSH26F/kI1CQdGcyVtdjqNU8aTI0OatvmD23iTOS6GA+dzElvp0AJ0NWCF2IDuu3k3dvQn T9xxSOdkakI5uTpqDyybylWcCuHgutjw7lME0CNm6YjI4YAZ3TTStOtZzmcfCDbLLC+tROGSBLh EhtWbQehvFPeGxR+rXloWlyFcm30ybW/m4qKGoWbEmRs16qvNHCDBsmO4bTqbxbMqc2zo9 X-Received: by 2002:a05:7301:5f09:b0:2be:ca4:e118 with SMTP id 5a478bee46e88-2bea55ef377mr990892eec.28.1773369913687; Thu, 12 Mar 2026 19:45:13 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:1b3:a803:148f:62cd:a5bc:7e0f:18c]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2beab526db0sm947919eec.20.2026.03.12.19.45.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Mar 2026 19:45:13 -0700 (PDT) From: Fabio Estevam To: heiko@sntech.de Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Fabio Estevam Subject: [PATCH v6 4/4] ARM: dts: rockchip: Add Onion Omega4 Evaluation Board Date: Thu, 12 Mar 2026 23:44:51 -0300 Message-ID: <20260313024452.625064-4-festevam@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260313024452.625064-1-festevam@gmail.com> References: <20260313024452.625064-1-festevam@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260313_024517_314172_78CE98C7 X-CRM114-Status: GOOD ( 18.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Fabio Estevam The Onion Omega4 Evaluation Board is based on the RV1103B SoC and has: - 256 MB of RAM - 256 MB of SPI-NAND - Ethernet - USB OTG - Wifi - SD card - Camera connector The details can be found at: https://documentation.onioniot.com/omega4/getting-started/ Add the initial support for this board so that it can fully boot into Linux with the root file system stored in the SPI NAND. Signed-off-by: Fabio Estevam --- Changes since v5: - None. arch/arm/boot/dts/rockchip/Makefile | 1 + .../boot/dts/rockchip/rv1103b-omega4-evb.dts | 55 ++++++++++++++++ .../arm/boot/dts/rockchip/rv1103b-omega4.dtsi | 65 +++++++++++++++++++ 3 files changed, 121 insertions(+) create mode 100644 arch/arm/boot/dts/rockchip/rv1103b-omega4-evb.dts create mode 100644 arch/arm/boot/dts/rockchip/rv1103b-omega4.dtsi diff --git a/arch/arm/boot/dts/rockchip/Makefile b/arch/arm/boot/dts/rockchip/Makefile index 716f5540e438..d0154fd7ff24 100644 --- a/arch/arm/boot/dts/rockchip/Makefile +++ b/arch/arm/boot/dts/rockchip/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_ARCH_ROCKCHIP) += \ + rv1103b-omega4-evb.dtb \ rv1108-elgin-r1.dtb \ rv1108-evb.dtb \ rv1109-relfor-saib.dtb \ diff --git a/arch/arm/boot/dts/rockchip/rv1103b-omega4-evb.dts b/arch/arm/boot/dts/rockchip/rv1103b-omega4-evb.dts new file mode 100644 index 000000000000..3016492e15d3 --- /dev/null +++ b/arch/arm/boot/dts/rockchip/rv1103b-omega4-evb.dts @@ -0,0 +1,55 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2022 Rockchip Electronics Co., Ltd. + * Copyright (c) 2025 plan44.ch/luz + * Copyright (c) 2025 Onion Corporation + */ + +/dts-v1/; + +#include +#include +#include "rv1103b-omega4.dtsi" + +/ { + model = "Onion Omega4 Evaluation Board"; + compatible = "onion,omega4-evb", "onion,omega4", "rockchip,rv1103b"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + leds { + compatible = "gpio-leds"; + + led-0 { + pinctrl-names = "default"; + pinctrl-0 = <&led>; + gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>; + function = LED_FUNCTION_STATUS; + color = ; + label = "sys"; + default-state = "on"; + }; + }; +}; + +&fspi0 { + status = "okay"; +}; + +&uart0 { + status = "okay"; +}; + +&pinctrl { + leds { + led: led { + rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +}; diff --git a/arch/arm/boot/dts/rockchip/rv1103b-omega4.dtsi b/arch/arm/boot/dts/rockchip/rv1103b-omega4.dtsi new file mode 100644 index 000000000000..58aebffda9cd --- /dev/null +++ b/arch/arm/boot/dts/rockchip/rv1103b-omega4.dtsi @@ -0,0 +1,65 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2022 Rockchip Electronics Co., Ltd. + * Copyright (c) 2025 plan44.ch/luz + * Copyright (c) 2025 Onion Corporation + */ + +/dts-v1/; + +#include "rv1103b.dtsi" + +&uart0 { + bootph-all; + pinctrl-names = "default"; + pinctrl-0 = <&uart0m0_xfer>; +}; + +&fspi0 { + spi_nand: flash@0 { + compatible = "spi-nand"; + reg = <0>; + bootph-pre-ram; + bootph-some-ram; + spi-max-frequency = <75000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <1>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "env"; + reg = <0x00000000 0x00040000>; + }; + + partition@40000 { + label = "idblock"; + reg = <0x00040000 0x00100000>; + read-only; + }; + + partition@140000 { + label = "uboot"; + reg = <0x00140000 0x00100000>; + read-only; + }; + + partition@240000 { + label = "boot"; + reg = <0x00240000 0x00800000>; + }; + + partition@a40000 { + label = "ubi"; + reg = <0x00a40000 0x0f5c0000>; + }; + }; + }; +}; + +&wdt { + status = "okay"; +}; -- 2.43.0