From patchwork Wed Dec 8 21:43:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sander Vanheule X-Patchwork-Id: 1565506 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=jp9HwQ5K; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=svanheule.net header.i=@svanheule.net header.a=rsa-sha256 header.s=mail1707 header.b=F3HPwkZw; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4J8W643JV3z9sXS for ; Thu, 9 Dec 2021 08:49:32 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=74+fj+rYsfXVtueClRA6AJVbNCzixuxBeTOUf78qylA=; b=jp9HwQ5Kss0Pf7 AojqNGY79p/aFZjMeWCowqx5/Q0b0s+tY1lfv5tIG8jySRHrPmKdq3ZkkEj3NzE/YFjge/xoRQCIN f8jcDfRPrA/0fcVdsH+9OOMGuMG9zKUBb9+0zjKI8BuZwEyFqUH8KVfXFNh81rlOzcSDWOpxjKYe0 x6xGkcvpbaqLkp7AgJpJGB8C0dfxlhKdx7zTF0eXx74Q9myN+9GcxF0PCXDrbR9LaNALQGPLyybrj 9JRsrdiSpz1EYzlRf4IxHTV8MHxOKWhm53OVsC+UVwC0lzW9xRZRE2iZ7jPFvMr8efmshJ+rnhh3i vJTURfDBw7wEcqDgkEmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mv4kq-00EHsK-2G; Wed, 08 Dec 2021 21:45:36 +0000 Received: from polaris.svanheule.net ([84.16.241.116]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mv4iq-00EHRE-8V for openwrt-devel@lists.openwrt.org; Wed, 08 Dec 2021 21:43:34 +0000 Received: from terra.local.svanheule.net (unknown [IPv6:2a02:a03f:eafe:c901:4e6f:a4e9:6d71:a770]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sander@svanheule.net) by polaris.svanheule.net (Postfix) with ESMTPSA id 65F9827E141; Wed, 8 Dec 2021 22:43:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1638999803; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VdsAwlVDdsmo1Cq9rExhbAVhIZHh9KkIw5/1a5X5mhM=; b=F3HPwkZwIgHN26rVZJrMFUEKKd6V7gwU1vwksVwSvNW815y2eUHfwBHwfWcWva0jtEG3fp GrZKjPm8yTPuXyPNMQXWdpWpzykmttDQkEZPEzS6d++ZHqhDtxfjkZ4F8ErJFnmLxT2G+g tFufL9+K1d7KXXcVGWSCH7q9KTFTvv7tS1mC/SMsID499IURessZRW6wWrolpPkldnzt/z 6+Mf2hd4CngSBxgCsR/PLCga9tRFRStR1Ip5/jpXsdkqLDAwpFoajx3poOwfUuAAxb6MvS KfMjP7Ep9TGALrmiydHQyezheE/uYerz73DPw11NpQaY3zHmxJirLx/izysg0w== From: Sander Vanheule To: openwrt-devel@lists.openwrt.org Cc: INAGAKI Hiroshi , Birger Koblitz , John Crispin , Sander Vanheule Subject: [PATCH 07/13] realtek: backport upstream platform Date: Wed, 8 Dec 2021 22:43:03 +0100 Message-Id: <20211208214309.233041-8-sander@svanheule.net> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211208214309.233041-1-sander@svanheule.net> References: <20211208214309.233041-1-sander@svanheule.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211208_134332_507668_23E8746B X-CRM114-Status: GOOD ( 11.65 ) X-Spam-Score: -2.5 (--) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Backport the patch that introduced the MACH_REALTEK_RTL platform in 5.12, which is based on MIPS_GENERIC. This will allow some custom platform code to be dropped from the realtek target. Co-developed-by: INAGAKI Hiroshi Signed-off-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule --- ...-add-realtek-rtl838x- [...] Content analysis details: (-2.5 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [84.16.241.116 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Backport the patch that introduced the MACH_REALTEK_RTL platform in 5.12, which is based on MIPS_GENERIC. This will allow some custom platform code to be dropped from the realtek target. Co-developed-by: INAGAKI Hiroshi Signed-off-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule --- ...-add-realtek-rtl838x-rtl839x-support.patch | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 target/linux/realtek/patches-5.10/009-5.12-MIPS-add-realtek-rtl838x-rtl839x-support.patch diff --git a/target/linux/realtek/patches-5.10/009-5.12-MIPS-add-realtek-rtl838x-rtl839x-support.patch b/target/linux/realtek/patches-5.10/009-5.12-MIPS-add-realtek-rtl838x-rtl839x-support.patch new file mode 100644 index 000000000000..f343251d2341 --- /dev/null +++ b/target/linux/realtek/patches-5.10/009-5.12-MIPS-add-realtek-rtl838x-rtl839x-support.patch @@ -0,0 +1,45 @@ +From 4042147a0cc6af5a400b5e12a7855e893dec01b4 Mon Sep 17 00:00:00 2001 +From: Bert Vermeulen +Date: Tue, 19 Jan 2021 10:21:07 +0100 +Subject: [PATCH] MIPS: Add Realtek RTL838x/RTL839x support as generic MIPS + system + +This is just enough system to boot the kernel with earlycon working. + +Signed-off-by: Bert Vermeulen +Signed-off-by: Sander Vanheule +Signed-off-by: Thomas Bogendoerfer +--- + arch/mips/Kconfig | 21 +++++++++++++++++++++ + 1 file changed, 21 insertions(+) + +--- a/arch/mips/Kconfig ++++ b/arch/mips/Kconfig +@@ -632,6 +632,27 @@ config RALINK + select ARCH_HAS_RESET_CONTROLLER + select RESET_CONTROLLER + ++config MACH_REALTEK_RTL ++ bool "Realtek RTL838x/RTL839x based machines" ++ select MIPS_GENERIC ++ select DMA_NONCOHERENT ++ select IRQ_MIPS_CPU ++ select CSRC_R4K ++ select CEVT_R4K ++ select SYS_HAS_CPU_MIPS32_R1 ++ select SYS_HAS_CPU_MIPS32_R2 ++ select SYS_SUPPORTS_BIG_ENDIAN ++ select SYS_SUPPORTS_32BIT_KERNEL ++ select SYS_SUPPORTS_MIPS16 ++ select SYS_SUPPORTS_MULTITHREADING ++ select SYS_SUPPORTS_VPE_LOADER ++ select SYS_HAS_EARLY_PRINTK ++ select SYS_HAS_EARLY_PRINTK_8250 ++ select USE_GENERIC_EARLY_PRINTK_8250 ++ select BOOT_RAW ++ select PINCTRL ++ select USE_OF ++ + config SGI_IP22 + bool "SGI IP22 (Indy/Indigo2)" + select ARC_MEMORY