From patchwork Sun Dec 12 20:01:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sander Vanheule X-Patchwork-Id: 1567028 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=zBmjI8Ms; 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=3OFJg7yS; 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 4JBwZd2YxFz9s3q for ; Mon, 13 Dec 2021 07:04:09 +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=RLPYOtasznvuzzhT1NqNJaET4avjtYj7K2KMM5t7UWQ=; b=zBmjI8Ms/oeHg7 jZCmeYFayOSrEMNLlX9E8bsF5gtLIO6urBOGHO3Ry/V0rnESpwYs5kcrFe1cRu/er81G8jvH2fhWM ooxEWhOdqFrlsvsFnW7ZEHlSa7AzarSZRg54w2GntbrmI88ACNsNQG2eev8r12PGGZkPz/igMd9pT kAy6JzFSbnAD25yNwHmEq08c6MEX9A92dEDAER/xTxbibMX7ws6RhKFoR+z8H13YiarQueaTy+JdJ 0MIxc6OJEBtwVeym89jnaBJejwBUDfaABQAN2hJeT5rlh5HUb3f1+W7Akj60wacMpw0+Z3v64jDCB 1fybJ6H5afAe8mJYcHPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwV33-0076uT-NE; Sun, 12 Dec 2021 20:02:17 +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 1mwV2q-0076ot-UD for openwrt-devel@lists.openwrt.org; Sun, 12 Dec 2021 20:02:06 +0000 Received: from terra.local.svanheule.net (unknown [IPv6:2a02:a03f:eafe:c901:9d78:c664:81ab:1c5b]) (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 2A447280107; Sun, 12 Dec 2021 21:02:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1639339323; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tC1h1hgfQHlIJtReej7dBK7j++NkRT6D+StohvFlBwY=; b=3OFJg7ySq4i144TnERbx4C0IrQwqPl2OMupXEB6e6XU0eLxqoAFzMpZ//sMbuPMjxWIaL3 HgEBoqaD8P1iO1R7ZNkSiOpdkOEPBtsgyb14pOzNwqn5K1loRDRmM8rekl8mAJqd4ptstQ Sd2w9RPeSU447uy7UXO6bZp3kd0KzbUfBNgv6Yn5F5ppMlI1Z6G/Vo0ZpejAT5N+3O6HkH PpJwR0R+wXeSydBb/h1OT+Gtywe+Zf4b8f2skouoZV58sK8HkVTC1duqF+t/qX7hyQiXQg WXFvolshY1yLzMaVHX10JJmbU3HGZLhDg1LGnFhhp4zjayCjEHoZ5mpQnJ14+Q== From: Sander Vanheule To: openwrt-devel@lists.openwrt.org Cc: INAGAKI Hiroshi , Birger Koblitz , John Crispin , Sebastian Gottschall , =?utf-8?q?Bj=C3=B8rn_Mork?= , Sander Vanheule Subject: [PATCH v2 01/14] realtek: add missing gpio0 pinctrl properties Date: Sun, 12 Dec 2021 21:01:23 +0100 Message-Id: X-Mailer: git-send-email 2.33.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211212_120205_154488_A71AA6A4 X-CRM114-Status: UNSURE ( 7.40 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.5 (--) X-Spam-Report: =?unknown-8bit?q?Spam_detection_software=2C_running_on_the_sy?= =?unknown-8bit?q?stem_=22bombadil=2Einfradead=2Eorg=22=2C?= =?unknown-8bit?q?_has_NOT_identified_this_incoming_email_as_spam=2E__The_ori?= =?unknown-8bit?q?ginal?= =?unknown-8bit?q?_message_has_been_attached_to_this_so_you_can_view_it_or_la?= =?unknown-8bit?q?bel?= =?unknown-8bit?q?_similar_future_email=2E__If_you_have_any_questions=2C_see?= =?unknown-8bit?q?_the_administrator_of_that_system_for_details=2E?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_preview=3A__Not_all_devices_using_the_gpio0/sys-le?= =?unknown-8bit?q?d_pin_as_a_GPIO=2C_configure?= =?unknown-8bit?q?_the_pinmux=2E_Add_the_necessary_pinctrl_properties_to_thes?= =?unknown-8bit?q?e_devices_to_ensure?= =?unknown-8bit?q?_the_pin_is_set_up_for_use_as_GPIO=2E_Co-developed-by=3A_IN?= =?unknown-8bit?q?AGAKI_Hiroshi_=3Cmusashino=2Eopen=40gmail=2Ecom=3E?= =?unknown-8bit?q?_Signed-off-by=3A_INAGAKI_Hiroshi_=3Cmusashino=2Eopen=40gma?= =?unknown-8bit?q?il=2Ecom=3E_Signed-off-by=3A?= =?unknown-8bit?b?IFNhbmRlciBWYW5oZXVsZSA8c2FuZGVyQHN2YW5oZXVsZS5uZXQ+IFRl?= =?unknown-8bit?b?c3RlZC1ieTogQmrDuHJuIE1vcmsgPGJqb3IgWy4uLl0g?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_analysis_details=3A___=28-2=2E5_points=2C_5=2E0_re?= =?unknown-8bit?q?quired=29?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_pts_rule_name______________description?= =?unknown-8bit?q?_----_----------------------_------------------------------?= =?unknown-8bit?q?--------------------?= =?unknown-8bit?q?_-2=2E3_RCVD=5FIN=5FDNSWL=5FMED______RBL=3A_Sender_listed_a?= =?unknown-8bit?q?t_https=3A//www=2Ednswl=2Eorg/=2C?= =?unknown-8bit?q?_medium_trust?= =?unknown-8bit?q?_=5B84=2E16=2E241=2E116_listed_in_list=2Ednswl=2Eorg=5D?= =?unknown-8bit?q?_-0=2E0_SPF=5FPASS_______________SPF=3A_sender_matches_SPF_?= =?unknown-8bit?q?record?= =?unknown-8bit?q?_-0=2E0_SPF=5FHELO=5FPASS__________SPF=3A_HELO_matches_SPF_?= =?unknown-8bit?q?record?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID=5FAU__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from?= =?unknown-8bit?q?_author=27s_domain?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID_____________Message_has_at_least_one_v?= =?unknown-8bit?q?alid_DKIM_or_DK_signature?= =?unknown-8bit?q?_0=2E1_DKIM=5FSIGNED____________Message_has_a_DKIM_or_DK_si?= =?unknown-8bit?q?gnature=2C_not_necessarily?= =?unknown-8bit?q?_valid?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID=5FEF__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from?= =?unknown-8bit?q?_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 Not all devices using the gpio0/sys-led pin as a GPIO, configure the pinmux. Add the necessary pinctrl properties to these devices to ensure the pin is set up for use as GPIO. Co-developed-by: INAGAKI Hiroshi Signed-off-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule Tested-by: Bjørn Mork --- target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi | 3 +++ target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210.dtsi | 3 +++ target/linux/realtek/dts-5.10/rtl8382_inaba_aml2-17gp.dts | 3 +++ 3 files changed, 9 insertions(+) diff --git a/target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi b/target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi index 72956359d18b..d91403fd2092 100644 --- a/target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi +++ b/target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi @@ -14,6 +14,9 @@ }; keys { + pinctrl-names = "default"; + pinctrl-0 = <&pinmux_disable_sys_led>; + compatible = "gpio-keys"; mode { diff --git a/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210.dtsi b/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210.dtsi index 312a36c1a844..219814eb4a58 100644 --- a/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210.dtsi +++ b/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210.dtsi @@ -19,6 +19,9 @@ }; leds { + pinctrl-names = "default"; + pinctrl-0 = <&pinmux_disable_sys_led>; + compatible = "gpio-leds"; led_power: power { diff --git a/target/linux/realtek/dts-5.10/rtl8382_inaba_aml2-17gp.dts b/target/linux/realtek/dts-5.10/rtl8382_inaba_aml2-17gp.dts index 30960afff4d9..48081414941f 100644 --- a/target/linux/realtek/dts-5.10/rtl8382_inaba_aml2-17gp.dts +++ b/target/linux/realtek/dts-5.10/rtl8382_inaba_aml2-17gp.dts @@ -15,6 +15,9 @@ }; keys { + pinctrl-names = "default"; + pinctrl-0 = <&pinmux_disable_sys_led>; + compatible = "gpio-keys"; reset { From patchwork Sun Dec 12 20:01:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sander Vanheule X-Patchwork-Id: 1567030 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=nevkHZfA; 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=B5RZSUZw; 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 4JBwZj57ywz9s3q for ; Mon, 13 Dec 2021 07:04:13 +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=Svb9iUadbwTZ2iAt2hwqpWomm9HsOyFfHtrvNqXhc60=; b=nevkHZfAP1eGP7 pRlzTaU8j8SbYbJU3cSaOleD0wIBh01/BZqZujngv2soE6AIgTlJDVwXtlpEYPO6VdRftTGhLj4rU mgALjgQ9schjS9DuJLRRO2NqYURsEu/jz7Lzicz8qgcu9jZJll6vbJXpgFFoxqjjyvu+fra7TKPwQ tt30RGkg8rnkrRWQcJkUvTFuOV5t3UTtKPVoFt1qgQwac0lK4Myydubjvj/VW6mlzt3pz0/T8jjLH UGhCBV45AS1mt/b0lO6VYuIMx/UlrB3xaKabdAfwJt5ynZijf1FECFWPSw7yj+IshoCX2KbVqmhkp HYuFl0F4nI1WGH8sAO4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwV3G-0076wj-Sk; Sun, 12 Dec 2021 20:02:31 +0000 Received: from polaris.svanheule.net ([2a00:c98:2060:a004:1::200]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwV2s-0076p9-Ag for openwrt-devel@lists.openwrt.org; Sun, 12 Dec 2021 20:02:07 +0000 Received: from terra.local.svanheule.net (unknown [IPv6:2a02:a03f:eafe:c901:9d78:c664:81ab:1c5b]) (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 85794280108; Sun, 12 Dec 2021 21:02:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1639339323; 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=UZD9WdWZImFX4tbZ9XYdJO47UF7gkySyiC0Nw77Gb2A=; b=B5RZSUZwBHBN1ZTiL4W4sm2CknmmboNz3rlgvyUpprXlppXiiDO+X8TlbNC9voD7rb23U9 lYeqKo/Xm3BZ+t1MHAh1yn5gm6bTSKDcbSUsomEa9xat3jq875OuQz3ChDAW3cZTb587bE zl8lNZ/7nfsaPlq6cX+rOZ4oQ7j+/hHudSOSdAl7oFq5rNzp6F8zR3zqYmXSdmd+SuRIfS 7qu7HmOyIuQr9v1KaYdwFaoKCy8yZGnqqBW9yYkUpkKsMUoZr9EQbHusWBx2TWSBhZLBY6 Fd8nu6rSHZWPWOzVP8Rfoo/gIjkWSoB4K0d0rx4tjDxS81K5oPbhVvwYNTw2og== From: Sander Vanheule To: openwrt-devel@lists.openwrt.org Cc: INAGAKI Hiroshi , Birger Koblitz , John Crispin , Sebastian Gottschall , =?utf-8?q?Bj=C3=B8rn_Mork?= , Sander Vanheule Subject: [PATCH v2 02/14] realtek: add sys-led disable pinctrl for rtl930x Date: Sun, 12 Dec 2021 21:01:24 +0100 Message-Id: <78d69d0dfc9908e2970b9b4db324bcb894bf4659.1639339223.git.sander@svanheule.net> X-Mailer: git-send-email 2.33.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211212_120206_618869_F87CC134 X-CRM114-Status: UNSURE ( 6.46 ) X-CRM114-Notice: Please train this message. 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: Like for RTL838x devices, add a pinctrl-single node to manage the sys-led/gpio0 mux, and allow using the pin as GPIO. Co-developed-by: INAGAKI Hiroshi Signed-off-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule --- target/linux/realtek/dts [...] 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 [2a00:c98:2060:a004:1:0:0:200 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 Like for RTL838x devices, add a pinctrl-single node to manage the sys-led/gpio0 mux, and allow using the pin as GPIO. Co-developed-by: INAGAKI Hiroshi Signed-off-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule --- target/linux/realtek/dts-5.10/rtl930x.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/target/linux/realtek/dts-5.10/rtl930x.dtsi b/target/linux/realtek/dts-5.10/rtl930x.dtsi index a4c9757505f5..991e9e2f9a28 100644 --- a/target/linux/realtek/dts-5.10/rtl930x.dtsi +++ b/target/linux/realtek/dts-5.10/rtl930x.dtsi @@ -194,6 +194,21 @@ }; }; + pinmux_led: pinmux@1b00a000 { + compatible = "pinctrl-single"; + reg = <0x1b00cc00 0x4>; + + pinctrl-single,bit-per-mux; + pinctrl-single,register-width = <32>; + pinctrl-single,function-mask = <0x1>; + #pinctrl-cells = <2>; + + /* enable GPIO 0 */ + pinmux_disable_sys_led: disable_sys_led { + pinctrl-single,bits = <0x0 0x0 0x1000>; + }; + }; + ethernet0: ethernet@1b00a300 { compatible = "realtek,rtl838x-eth"; reg = <0x1b00a300 0x100>; From patchwork Sun Dec 12 20:01:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sander Vanheule X-Patchwork-Id: 1567031 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=jZb0SuVq; 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=ujlP4tXW; 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 4JBwZx1rW1z9s3q for ; Mon, 13 Dec 2021 07:04:24 +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=sgTOOOZGp4/fkbhsLgMacIMTGYbha9UwsX9d5hwndx4=; b=jZb0SuVq3ofEWl J7p7N0NjiRp7q6OV/tHlpG2DoDZwRxqAcYQsg370au3Cwg5o77t4KQxxfqniDqvqmFwmhcxeFCu9/ HyIepCQ3XeeIvPeVQTNm1OiMmWhgOU3lqibJ/zcjjCS9ZTWCFHdYKLTaGXbo37RA8D2W5lQQa6Iex LpyCCZ1OOpdQrhB2krK1gHERe8RM/YCF8GAkTvMa5LyPIh08XGVD8V4Z640Y1wDOSrr/PvSDoQF6d woeQTQYidY3uNJ1fdwpAXFfXc6UcplWHPXA0MBL0l7mD8GueDU/uP/rzbVib/1scNaCAFRdmrQkFk eWvHGhGCdG/EOlcreczw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwV3V-0076zo-Ir; Sun, 12 Dec 2021 20:02:45 +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 1mwV2t-0076pT-AT for openwrt-devel@lists.openwrt.org; Sun, 12 Dec 2021 20:02:08 +0000 Received: from terra.local.svanheule.net (unknown [IPv6:2a02:a03f:eafe:c901:9d78:c664:81ab:1c5b]) (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 220E2280109; Sun, 12 Dec 2021 21:02:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1639339324; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=h5nmbGGg0xdfRMM8qelpWqONM9ruD07+jHRMVvYCmtQ=; b=ujlP4tXWy/XQVEiJIlQr+sfY4LRhaGFwxbK/QHhHFdXZMspFdyns+TcLnwAtmMQgzUM9jc 66QyMA37/RAmk7hhHWVC3SaP1avIngXn7nUzAxTy+UcbQ9lwSJ6AVOSnlTl+RIoLbynYj4 VZtjF5BW74xTeWAeYqIit2dyqH84vpPKMsGvAbbeYpntMV0oSrkJh3vq0DPzxeGiUiAaiI cR1h6OFbqwE3Gpd6D73p+mGuJqvAr2dOLSGjz8K9rrdexjOYeaFrQObTF1J7x9Tfl5AGs9 r5Ci5RtWT09pRD5iPwy+/ESMyY6p9roN5FWiCpCWI8psr3Di5ozgsir+dVw16A== From: Sander Vanheule To: openwrt-devel@lists.openwrt.org Cc: INAGAKI Hiroshi , Birger Koblitz , John Crispin , Sebastian Gottschall , =?utf-8?q?Bj=C3=B8rn_Mork?= , Sander Vanheule Subject: [PATCH v2 03/14] realtek: remove hardcoded sys-led configurations Date: Sun, 12 Dec 2021 21:01:25 +0100 Message-Id: <1d10eedb43cf77b16b0f7b49e87c56cad95b1f22.1639339223.git.sander@svanheule.net> X-Mailer: git-send-email 2.33.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211212_120207_573974_A83AFB8F X-CRM114-Status: UNSURE ( 7.18 ) X-CRM114-Notice: Please train this message. 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: Disabling the sys-led peripheral should be done via a pin controller, for which pinctrl-single nodes are present in the platform DTSI files. Drop the hardcoded per-platform sys-led configurations, and [...] 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 Disabling the sys-led peripheral should be done via a pin controller, for which pinctrl-single nodes are present in the platform DTSI files. Drop the hardcoded per-platform sys-led configurations, and require things to be set up in the devicetree. Co-developed-by: INAGAKI Hiroshi Signed-off-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule Tested-by: Bjørn Mork --- .../files-5.10/arch/mips/rtl838x/setup.c | 40 ------------------- 1 file changed, 40 deletions(-) diff --git a/target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c b/target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c index 55419c7b0b7a..df29b76bbf0f 100644 --- a/target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c +++ b/target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c @@ -28,31 +28,6 @@ extern struct rtl83xx_soc_info soc_info; -static void __init rtl838x_setup(void) -{ - /* Setup System LED. Bit 15 then allows to toggle it */ - sw_w32_mask(0, 3 << 16, RTL838X_LED_GLB_CTRL); -} - -static void __init rtl839x_setup(void) -{ - /* Setup System LED. Bit 14 of RTL839X_LED_GLB_CTRL then allows to toggle it */ - sw_w32_mask(0, 3 << 15, RTL839X_LED_GLB_CTRL); -} - -static void __init rtl930x_setup(void) -{ - if (soc_info.id == 0x9302) - sw_w32_mask(0, 3 << 13, RTL9302_LED_GLB_CTRL); - else - sw_w32_mask(0, 3 << 13, RTL930X_LED_GLB_CTRL); -} - -static void __init rtl931x_setup(void) -{ - sw_w32_mask(0, 3 << 12, RTL931X_LED_GLB_CTRL); -} - void __init plat_mem_setup(void) { void *dtb; @@ -71,21 +46,6 @@ void __init plat_mem_setup(void) * parsed resulting in our memory appearing */ __dt_setup_arch(dtb); - - switch (soc_info.family) { - case RTL8380_FAMILY_ID: - rtl838x_setup(); - break; - case RTL8390_FAMILY_ID: - rtl839x_setup(); - break; - case RTL9300_FAMILY_ID: - rtl930x_setup(); - break; - case RTL9310_FAMILY_ID: - rtl931x_setup(); - break; - } } void __init plat_time_init(void) From patchwork Sun Dec 12 20:01:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sander Vanheule X-Patchwork-Id: 1567033 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=lRUe1coS; 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=UscN5HIF; 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 4JBwbt2l8Bz9s3q for ; Mon, 13 Dec 2021 07:05:14 +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=iUW/+PqSbyfiX8XRdJKfpSdA8zcXSjmERSLkRUB4++4=; b=lRUe1coSKyZ/6b vPri4cY/W9u0WuZg0em1hxMbp8IEa2bNfTCYEMrw4RqXAFRL1XkrEfPabTz/SrWjLByL6+mZrEvWJ vegzMzTDvxSEILK5U+OLWQQyB3SfKZqFdl3P2TS/6Jdoc2numjOlZoNdxrky+wzK9gcpY9PAmvTco /HdsPU2v3FZllYYJvWb0U+nREgSyUMntjfvYSMKENwHaI0kkLkIFvd0RaRduOCIDAVobtwoPFG/Sm LqaG00gGEfgHHMlOG6KjNV/dPaY5T7pwGjiWh4rwM2166y8yaAsq/x2675Pn9gNCdSWXRiY1exdTh Fkvy86wpuWr1sOMQrA9A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwV49-0077F4-Re; Sun, 12 Dec 2021 20:03:26 +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 1mwV2u-0076pq-PO for openwrt-devel@lists.openwrt.org; Sun, 12 Dec 2021 20:02:10 +0000 Received: from terra.local.svanheule.net (unknown [IPv6:2a02:a03f:eafe:c901:9d78:c664:81ab:1c5b]) (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 E553B28010B; Sun, 12 Dec 2021 21:02:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1639339325; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6ZrVhMJTUmWHQoDDCr7ApS5mQKqLKi85j2d9ACEj8tI=; b=UscN5HIFM5ab80ZgP5vplD0CgvP65seHB2F7NEu7gysZd+baMV2+2RBYdOtDzxtoAabVf2 K/C260ADObjz41vZDX8CC2bUPwahK3B/l54blkglCnZJGw38aH706Wap3M4zNXR5PCHX/I pKsoCi0RTCyKrFo97CpqNSK7CNlQ7nnrZWawcS6TSRlfNhIvIrCxdN95MB6TCA8UrtttUO 5WkesesP16oZZcqShIsPiUlZW1c3BAwfHtVkmPKtVuoyBAM/Jiam33CHq8zDmngq7rmlm8 lPSNJFo2rmMWGB3+iZIlPLRtAjZ5gPg4Nb1VkcYynbk1FrHot0WFIq6R92FqXA== From: Sander Vanheule To: openwrt-devel@lists.openwrt.org Cc: INAGAKI Hiroshi , Birger Koblitz , John Crispin , Sebastian Gottschall , =?utf-8?q?Bj=C3=B8rn_Mork?= , Sander Vanheule Subject: [PATCH v2 04/14] realtek: use fixed-clock as CPU clock Date: Sun, 12 Dec 2021 21:01:26 +0100 Message-Id: X-Mailer: git-send-email 2.33.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211212_120209_034797_5DC3FAB3 X-CRM114-Status: UNSURE ( 9.31 ) X-CRM114-Notice: Please train this message. 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: CPU clock definition in devicetree should be specified per CPU, not in the cpus node. This modification causes plat_init_time() to not find the CPU frequency in the devicetree any more, but it can fal [...] 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 CPU clock definition in devicetree should be specified per CPU, not in the cpus node. This modification causes plat_init_time() to not find the CPU frequency in the devicetree any more, but it can fall back to the (identical) default. Co-developed-by: INAGAKI Hiroshi Signed-off-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule Tested-by: Bjørn Mork --- target/linux/realtek/dts-5.10/rtl838x.dtsi | 9 ++++++++- target/linux/realtek/dts-5.10/rtl930x.dtsi | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/target/linux/realtek/dts-5.10/rtl838x.dtsi b/target/linux/realtek/dts-5.10/rtl838x.dtsi index 899c1731fb51..835fc4a8f8c3 100644 --- a/target/linux/realtek/dts-5.10/rtl838x.dtsi +++ b/target/linux/realtek/dts-5.10/rtl838x.dtsi @@ -56,11 +56,12 @@ cpus { #address-cells = <1>; #size-cells = <0>; - frequency = <500000000>; cpu@0 { compatible = "mips,mips4KEc"; reg = <0>; + clocks = <&cpu_clk>; + clock-names = "cpu"; }; }; @@ -68,6 +69,12 @@ bootargs = "console=ttyS0,115200"; }; + cpu_clk: cpu_clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <500000000>; + }; + lx_clk: lx_clk { compatible = "fixed-clock"; #clock-cells = <0>; diff --git a/target/linux/realtek/dts-5.10/rtl930x.dtsi b/target/linux/realtek/dts-5.10/rtl930x.dtsi index 991e9e2f9a28..3a9b0e23c470 100644 --- a/target/linux/realtek/dts-5.10/rtl930x.dtsi +++ b/target/linux/realtek/dts-5.10/rtl930x.dtsi @@ -56,11 +56,12 @@ cpus { #address-cells = <1>; #size-cells = <0>; - frequency = <800000000>; cpu@0 { compatible = "mips,mips34Kc"; reg = <0>; + clocks = <&cpu_clk>; + clock-names = "cpu"; }; }; @@ -80,6 +81,12 @@ interrupt-controller; }; + cpu_clk: cpu_clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <800000000>; + }; + lx_clk: lx_clk { compatible = "fixed-clock"; #clock-cells = <0>; From patchwork Sun Dec 12 20:01:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sander Vanheule X-Patchwork-Id: 1567032 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=nQLv5Xd6; 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=OWszWw6z; 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 4JBwbN5JRfz9s3q for ; Mon, 13 Dec 2021 07:04:48 +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=a5UTv0yPUjTlJVxygHlbuJhpoyda35AiIn0WbN8jRB0=; b=nQLv5Xd6nJAfJP rMRzBv4euF1PqPLvbN685lf40syyWAwGqm5YYu/c+mcX1DRBwWRIE85It3SuxIBFVlFRMdUmEQ/rZ zUiVH23lJjEQlrUQTG9D4AfSpXtmVcu+jaxysLdy8RkB7nD5qB+gYlG7XpsrCa/m+SwCZDRPeiEdv BBtiSoWoJkFD76PM9SUOAYenGunERHh9NekTY38JHzotc/PgZq73UpEO6uC1EcGMLlWiUAjqOAh/M DMu2dXC/GdYowFoHTEBv8Zcw/7E/pOzhR1Mipq6XVf+5qrx8E7NolppryrCQqKIoUjVhg8Kipx0VV JSbxOax0SgzT/d4MwvbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwV3l-00774p-UQ; Sun, 12 Dec 2021 20:03:02 +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 1mwV2u-0076qL-K7 for openwrt-devel@lists.openwrt.org; Sun, 12 Dec 2021 20:02:10 +0000 Received: from terra.local.svanheule.net (unknown [IPv6:2a02:a03f:eafe:c901:9d78:c664:81ab:1c5b]) (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 649DA28010C; Sun, 12 Dec 2021 21:02:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1639339325; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qpVfR84wHb37PLAOxVl6mP5zzdyF3CO/9y3XJxahJAk=; b=OWszWw6zq5FWj6YvEuGzdp83DobdktGRdWkP4ytedOGfY8RV2Mtf+44UPlSQejIpVdw4mR XsJf1O1+2yyFjccnFYYvW8ArXm5hfRkK4Oy/Bt3rvwbnBW4V11dUHFvCbHAJBDz9zd+Azz UQpZ5OYPx8tXEYdjbLzvtNxxx6sN2FoTG87fWmQi4J6MWPt70x5C7eKYVEvDWRZBfcLR8e MjPOhfOnpHwwr3KDClLt7VVPKYuSSKUpn3VEHYtKWxY0jYyeRITedETkPn/MgD8it1TpaM iRK0ltAKaZ/crpCuZXhAgSP4r3ljdS6jMufJium7Ju9DE48uFFV2XkIsj1d/Bw== From: Sander Vanheule To: openwrt-devel@lists.openwrt.org Cc: INAGAKI Hiroshi , Birger Koblitz , John Crispin , Sebastian Gottschall , =?utf-8?q?Bj=C3=B8rn_Mork?= , Sander Vanheule Subject: [PATCH v2 05/14] realtek: include io.h in mach-rtl83xx.h Date: Sun, 12 Dec 2021 21:01:27 +0100 Message-Id: X-Mailer: git-send-email 2.33.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211212_120208_833686_CB58CF34 X-CRM114-Status: UNSURE ( 7.74 ) X-CRM114-Notice: Please train this message. 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: The readl and writel calls used in macros defined in this header are not included here. As a result, this header cannot be included by itself, but must be preceded by other includes providing these ca [...] 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 The readl and writel calls used in macros defined in this header are not included here. As a result, this header cannot be included by itself, but must be preceded by other includes providing these calls. Fix this by including asm/io.h in this header too. Co-developed-by: INAGAKI Hiroshi Signed-off-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule Tested-by: Bjørn Mork --- .../files-5.10/arch/mips/include/asm/mach-rtl838x/mach-rtl83xx.h | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/realtek/files-5.10/arch/mips/include/asm/mach-rtl838x/mach-rtl83xx.h b/target/linux/realtek/files-5.10/arch/mips/include/asm/mach-rtl838x/mach-rtl83xx.h index ecec0fec2dce..831edf8de76b 100644 --- a/target/linux/realtek/files-5.10/arch/mips/include/asm/mach-rtl838x/mach-rtl83xx.h +++ b/target/linux/realtek/files-5.10/arch/mips/include/asm/mach-rtl838x/mach-rtl83xx.h @@ -6,6 +6,7 @@ #ifndef _MACH_RTL838X_H_ #define _MACH_RTL838X_H_ +#include #include /* * Register access macros From patchwork Sun Dec 12 20:01:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sander Vanheule X-Patchwork-Id: 1567034 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=NABkwG+4; 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=F2H6RtAY; 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 4JBwcc34B0z9s3q for ; Mon, 13 Dec 2021 07:05:52 +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=vZ3m8zDZxxD5a0ULm8TD+Ydvi2C7arweOTdALsZuKfY=; b=NABkwG+4wuJsnc jwuslBIk8tNqnoB9YBNBQXsPUtexuX68014DwZvmc20uHkfRwh97zz3m967OkbUc4sYjM1XohlNjb ABOfq+qX4+fw+DTGHq4xXH1rN/yvofMwFuz4KijJ+OjvZkEtDqtAgqken6fg3GuoJCpxX0q9/kGJ1 Z0eeuDQr5t9LUguxLSjILyg4Z1/fb6AfHptP+z3Syuo/J0hBIc4bspwraVtIp0v3/DlJJh6O1mJj2 xqzLpStRC8w5f+5cjcEBEuRX//0Avf4a3dKigTJCXyYLzUXzMRmlouEmgafPfHE12RdoLVCJ5oOVT ASGKBm3BlDlXjUK1smkA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwV4h-0077TI-PZ; Sun, 12 Dec 2021 20:04:00 +0000 Received: from polaris.svanheule.net ([2a00:c98:2060:a004:1::200]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwV2v-0076qU-L7 for openwrt-devel@lists.openwrt.org; Sun, 12 Dec 2021 20:02:11 +0000 Received: from terra.local.svanheule.net (unknown [IPv6:2a02:a03f:eafe:c901:9d78:c664:81ab:1c5b]) (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 E8E0128010D; Sun, 12 Dec 2021 21:02:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1639339326; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5xlm4+sHAvMF1sG+qGOhdWk+iTFTrVI6BlmG3QBoqxc=; b=F2H6RtAY87KQvIYk0bIM0vsMLpng0yUyoW91A+Shi0vOHKN/IPOUdyPPGcyIi4hHR/ewBa 1sixJwynQ6Da2O9PkYj/x2dwO8HH/e+4DnQiYiQxf11h0rIfgaVrV3lYGiMrCnlHERnjKw OwRInjAWRuFZzelroGlrowIcLUU1EijLkfVA17zmKwslpGMXFAmlYmRXhtIOa9LB4DaRcE DCbS+r9AkZVoByRFr+OpN4XXJ9DO+Bsdku2sJPFOkRo8ZDOpNpNOK6W3hi30Sq5z1EGRGS kVlvIUKdvTjlr+UaXrxfj8hmrmv296kxWBHqdpTKAbE3qTjVWhr1ZAkhS6Uk8A== From: Sander Vanheule To: openwrt-devel@lists.openwrt.org Cc: INAGAKI Hiroshi , Birger Koblitz , John Crispin , Sebastian Gottschall , =?utf-8?q?Bj=C3=B8rn_Mork?= , Sander Vanheule Subject: [PATCH v2 06/14] realtek: update mach-rtl83xx.h includes Date: Sun, 12 Dec 2021 21:01:28 +0100 Message-Id: X-Mailer: git-send-email 2.33.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211212_120209_868883_878BC58B X-CRM114-Status: UNSURE ( 8.54 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.5 (--) X-Spam-Report: =?unknown-8bit?q?Spam_detection_software=2C_running_on_the_sy?= =?unknown-8bit?q?stem_=22bombadil=2Einfradead=2Eorg=22=2C?= =?unknown-8bit?q?_has_NOT_identified_this_incoming_email_as_spam=2E__The_ori?= =?unknown-8bit?q?ginal?= =?unknown-8bit?q?_message_has_been_attached_to_this_so_you_can_view_it_or_la?= =?unknown-8bit?q?bel?= =?unknown-8bit?q?_similar_future_email=2E__If_you_have_any_questions=2C_see?= =?unknown-8bit?q?_the_administrator_of_that_system_for_details=2E?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_preview=3A__Include_the_mach-rtl83xx=2Eh_header_fr?= =?unknown-8bit?q?om_the_root_MIPS_asm_include?= =?unknown-8bit?q?_directory=2E_This_will_allow_custom_build_options_to_be_dr?= =?unknown-8bit?q?opped_once_ioremap=2Eh?= =?unknown-8bit?q?_is_no_longer_required=2E_Co-developed-by=3A_INAGAKI_Hirosh?= =?unknown-8bit?q?i_=3Cmusashino=2Eopen=40gmail=2Ecom=3E?= =?unknown-8bit?q?_Signed-off-by=3A_INAGAKI_Hiroshi_=3Cmusashino=2Eopen=40gma?= =?unknown-8bit?q?il=2Ecom=3E_Signed-off-by=3A?= =?unknown-8bit?b?IFNhbmRlciBWYW5oZXVsZSA8c2FuZGVyQHN2YW5oZXVsZS5uZXQ+IFRl?= =?unknown-8bit?b?c3RlZC1ieTogQmrDuHJuIE1vcmsgPGJqb3IgWy4uLl0g?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_analysis_details=3A___=28-2=2E5_points=2C_5=2E0_re?= =?unknown-8bit?q?quired=29?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_pts_rule_name______________description?= =?unknown-8bit?q?_----_----------------------_------------------------------?= =?unknown-8bit?q?--------------------?= =?unknown-8bit?q?_-2=2E3_RCVD=5FIN=5FDNSWL=5FMED______RBL=3A_Sender_listed_a?= =?unknown-8bit?q?t_https=3A//www=2Ednswl=2Eorg/=2C?= =?unknown-8bit?q?_medium_trust?= =?unknown-8bit?b?IFsyYTAwOmM5ODoyMDYwOmEwMDQ6MTowOjA6MjAwIGxpc3RlZCBpbl0=?= =?unknown-8bit?b?IFtsaXN0LmRuc3dsLm9yZ10=?= =?unknown-8bit?q?_-0=2E0_SPF=5FPASS_______________SPF=3A_sender_matches_SPF_?= =?unknown-8bit?q?record?= =?unknown-8bit?q?_-0=2E0_SPF=5FHELO=5FPASS__________SPF=3A_HELO_matches_SPF_?= =?unknown-8bit?q?record?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID=5FAU__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from?= =?unknown-8bit?q?_author=27s_domain?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID_____________Message_has_at_least_one_v?= =?unknown-8bit?q?alid_DKIM_or_DK_signature?= =?unknown-8bit?q?_0=2E1_DKIM=5FSIGNED____________Message_has_a_DKIM_or_DK_si?= =?unknown-8bit?q?gnature=2C_not_necessarily?= =?unknown-8bit?q?_valid?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID=5FEF__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from?= =?unknown-8bit?q?_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 Include the mach-rtl83xx.h header from the root MIPS asm include directory. This will allow custom build options to be dropped once ioremap.h is no longer required. Co-developed-by: INAGAKI Hiroshi Signed-off-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule Tested-by: Bjørn Mork --- target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c | 2 +- target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c | 2 +- .../realtek/files-5.10/drivers/clocksource/timer-rtl9300.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c b/target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c index 3390c043347e..aea53c545159 100644 --- a/target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c +++ b/target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c @@ -19,7 +19,7 @@ #include #include -#include +#include extern char arcs_cmdline[]; extern const char __appended_dtb; diff --git a/target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c b/target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c index df29b76bbf0f..eed24ef50f59 100644 --- a/target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c +++ b/target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c @@ -24,7 +24,7 @@ #include #include -#include "mach-rtl83xx.h" +#include "asm/mach-rtl838x/mach-rtl83xx.h" extern struct rtl83xx_soc_info soc_info; diff --git a/target/linux/realtek/files-5.10/drivers/clocksource/timer-rtl9300.c b/target/linux/realtek/files-5.10/drivers/clocksource/timer-rtl9300.c index 9ab1733fe38c..f749cce64758 100644 --- a/target/linux/realtek/files-5.10/drivers/clocksource/timer-rtl9300.c +++ b/target/linux/realtek/files-5.10/drivers/clocksource/timer-rtl9300.c @@ -9,7 +9,7 @@ #include #include "timer-of.h" -#include +#include /* * Timer registers From patchwork Sun Dec 12 20:01:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sander Vanheule X-Patchwork-Id: 1567035 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=NIbwhlCy; 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=SibCLC1X; 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 4JBwdh3PW9z9s3q for ; Mon, 13 Dec 2021 07:06:48 +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=nfpYHyxGyoFfM/da2v+UD/h/UML49swfI3FYNO7oK4Q=; b=NIbwhlCyOz64/8 wK2eUs9SR97tBYTh/TcN2ubKQp8SOWdufmKtZtwWoGN9xCbOcqBZWHtd3brm0MPI+prrTHexWeLWl cuyM4t6vPKLtXWqAQQF9Uife8Kf2Sgn7dfegbIE3kRQhEvTMXifAfwMvzkcH/IlN11/u5MsfihCoO 4pC1JoDMm42KOL91cJGCZqQtjnBY31WdYAtygEsGPfo4CrKtVOyS/I9NXm+SbIeJVWVgDrFID25nK pbQdOB6sqvsVGNM75M2NdM3BN53C8gT3fBLyvQWgpUiEVSUyb0RdZVhqlP67LrnabticXcfKE7HzI 8wAuGXtQXXrTO9Afw+Pw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwV5U-0077q4-5O; Sun, 12 Dec 2021 20:04:48 +0000 Received: from polaris.svanheule.net ([2a00:c98:2060:a004:1::200]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwV2x-0076r3-17 for openwrt-devel@lists.openwrt.org; Sun, 12 Dec 2021 20:02:12 +0000 Received: from terra.local.svanheule.net (unknown [IPv6:2a02:a03f:eafe:c901:9d78:c664:81ab:1c5b]) (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 9036C28010E; Sun, 12 Dec 2021 21:02:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1639339326; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eW6IKhz9EKEsIdMg8TZz4nVZQxVP8XcuC0PS571RxRE=; b=SibCLC1XddWHdQzZH/1CQ8gw1OIaWWtxZdw/jtLyz1DLw6fqx0i8mgucDLuhxCjZx/kjqH YZ1Oyjn2g4QPrEx8WQ7/jldJTAJsES+Z6ubv0O+L0wpu96s8bAa4kcmzGQxTwCJvN4/QtF IcdYDMTOfEvGAy+/vnTjGKoPvHnfv35RMn05Uo2CBgUVJYwUtvWNIPA5/r5ZH0FICuitpt sOqeG1iLpPRzr60wp5BgUO1yTXtkkIs+j9aDdVAj8rHyG/WFBL64D4XwwDYgcu2m0njHYJ IP9G/8vEYMHsp020usiGdbnQSWCSxQJ+ZL6d8R7nMlzZ3/t9DM7A7/iwxyJ1tw== From: Sander Vanheule To: openwrt-devel@lists.openwrt.org Cc: INAGAKI Hiroshi , Birger Koblitz , John Crispin , Sebastian Gottschall , =?utf-8?q?Bj=C3=B8rn_Mork?= , Sander Vanheule Subject: [PATCH v2 07/14] realtek: backport upstream platform Date: Sun, 12 Dec 2021 21:01:29 +0100 Message-Id: <8ab237effccd377d3e2ba34b23e42b86a82b40b8.1639339223.git.sander@svanheule.net> X-Mailer: git-send-email 2.33.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211212_120211_246226_631F4155 X-CRM114-Status: GOOD ( 11.93 ) X-Spam-Score: -2.5 (--) X-Spam-Report: =?unknown-8bit?q?Spam_detection_software=2C_running_on_the_sy?= =?unknown-8bit?q?stem_=22bombadil=2Einfradead=2Eorg=22=2C?= =?unknown-8bit?q?_has_NOT_identified_this_incoming_email_as_spam=2E__The_ori?= =?unknown-8bit?q?ginal?= =?unknown-8bit?q?_message_has_been_attached_to_this_so_you_can_view_it_or_la?= =?unknown-8bit?q?bel?= =?unknown-8bit?q?_similar_future_email=2E__If_you_have_any_questions=2C_see?= =?unknown-8bit?q?_the_administrator_of_that_system_for_details=2E?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_preview=3A__Backport_the_patch_that_introduced_the?= =?unknown-8bit?q?_MACH=5FREALTEK=5FRTL_platform?= =?unknown-8bit?q?_in_5=2E12=2C_which_is_based_on_MIPS=5FGENERIC=2E_This_will?= =?unknown-8bit?q?_allow_some_custom_platform?= =?unknown-8bit?q?_code_to_be_dropped_from_the_realtek_target=2E_Co-developed?= =?unknown-8bit?q?-by=3A_INAGAKI_Hiroshi?= =?unknown-8bit?q?_=3Cmusashino=2Eopen=40gmail=2Ecom=3E_Signed-off-by=3A_INAG?= =?unknown-8bit?q?AKI_Hiroshi_=3Cmusashino=2Eopen=40gmail=2Ecom=3E?= =?unknown-8bit?q?_Signed-off-by=3A_Sander_Vanheule_=3Csander=40svanheule=2En?= =?unknown-8bit?q?et=3E_Tested-by=3A_Bj=C3=B8rn_Mork?= =?unknown-8bit?b?IDxiam9yIFsuLi5dIA==?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_analysis_details=3A___=28-2=2E5_points=2C_5=2E0_re?= =?unknown-8bit?q?quired=29?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_pts_rule_name______________description?= =?unknown-8bit?q?_----_----------------------_------------------------------?= =?unknown-8bit?q?--------------------?= =?unknown-8bit?q?_-2=2E3_RCVD=5FIN=5FDNSWL=5FMED______RBL=3A_Sender_listed_a?= =?unknown-8bit?q?t_https=3A//www=2Ednswl=2Eorg/=2C?= =?unknown-8bit?q?_medium_trust?= =?unknown-8bit?b?IFsyYTAwOmM5ODoyMDYwOmEwMDQ6MTowOjA6MjAwIGxpc3RlZCBpbl0=?= =?unknown-8bit?b?IFtsaXN0LmRuc3dsLm9yZ10=?= =?unknown-8bit?q?_-0=2E0_SPF=5FPASS_______________SPF=3A_sender_matches_SPF_?= =?unknown-8bit?q?record?= =?unknown-8bit?q?_-0=2E0_SPF=5FHELO=5FPASS__________SPF=3A_HELO_matches_SPF_?= =?unknown-8bit?q?record?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID=5FAU__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from?= =?unknown-8bit?q?_author=27s_domain?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID_____________Message_has_at_least_one_v?= =?unknown-8bit?q?alid_DKIM_or_DK_signature?= =?unknown-8bit?q?_0=2E1_DKIM=5FSIGNED____________Message_has_a_DKIM_or_DK_si?= =?unknown-8bit?q?gnature=2C_not_necessarily?= =?unknown-8bit?q?_valid?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID=5FEF__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from?= =?unknown-8bit?q?_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 Tested-by: Bjørn Mork --- ...-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 From patchwork Sun Dec 12 20:01:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sander Vanheule X-Patchwork-Id: 1567036 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=jxR1EaAv; 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=aHBgc4Tx; 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 4JBwfc4B4Lz9s3q for ; Mon, 13 Dec 2021 07:07:36 +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=p0ItnuKMWYrQKy/02it5D6XzUvTN3IqVqBgLA+bYzLg=; b=jxR1EaAv7l+XUc WgA4hJIy4Ju9dJgJ+AIAQ+hSh+FlzBLSbJFPZLfX8LJLuPwElsfIv2MOUv25WJ0semZUgnvZ74suC 5pYv6Hj56FhvWylw/32nsriVFJ6rtrhwYSaL3m/sIs1Hi8RVkNiYI2D0ajtS3JfXKGBceXsQHrSdl 5Ah8QmOcFpOxziWXYP2ePnmNUyDsE8oH8vKJoUGkPms7YPrwAziqvH9mMBzttUbOEQDYTkRKbMdqv b21ehEpZDEoQOAkCMjPjchrUOG57KVJTXkVrF8NEyDHew+gSiiPGgTk0QAsPtudGwJtedSRsroIX2 /a5thgJN54d0i3T7Fz8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwV6K-00789N-03; Sun, 12 Dec 2021 20:05:40 +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 1mwV2y-0076rJ-0O for openwrt-devel@lists.openwrt.org; Sun, 12 Dec 2021 20:02:14 +0000 Received: from terra.local.svanheule.net (unknown [IPv6:2a02:a03f:eafe:c901:9d78:c664:81ab:1c5b]) (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 3192D28010F; Sun, 12 Dec 2021 21:02:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1639339327; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5EHlkzc6+SkwcWYiBYVLBD+NzecoGkHjiyBODy8xdjU=; b=aHBgc4TxAbhPa4AzhlbkIJoq+Jw+R2kHx5S6XGXnHzHOonAtuKWYYIe5I/3fAAGzcmRXAq tysXaO+qW7+2OM3VjW8oXQKQpD2VAS2Bp0ylwALX6t/SaGlY4/Y1KO/KH+8f3f1+AMugKM jT72vsmoSKRpU4tlchaE/OkB95bvdH/snXhJfglWNOzCYslBiFHfcDtk3GoooQK2JJkqhS kSQ67UUG8OCNBWR22IT21w/nmc1GW0wsvrW33xYqCQCOkHM/PSM7/kJ+5XBDuAMdCqBy1k m9YeIqAH1Kf5G4csrp3v3LQWo79JbuyvFdFwtxWbsMfXCe2LcvpNynglg2DiNA== From: Sander Vanheule To: openwrt-devel@lists.openwrt.org Cc: INAGAKI Hiroshi , Birger Koblitz , John Crispin , Sebastian Gottschall , =?utf-8?q?Bj=C3=B8rn_Mork?= , Sander Vanheule Subject: [PATCH v2 08/14] realtek: add board file for MACH_REALTEK_RTL Date: Sun, 12 Dec 2021 21:01:30 +0100 Message-Id: <9d16faaa1f7ff7198da3ca537e78938487ccf798.1639339223.git.sander@svanheule.net> X-Mailer: git-send-email 2.33.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211212_120212_472358_EF8B1069 X-CRM114-Status: GOOD ( 16.06 ) 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: To maintain compatibility with existing drivers, which require the soc_info struct to be available, add a downstream board file for the MACH_REALTEK_RTL platform. MIPS_GENERIC based platforms will iterate through the array of available MIPS_MACHINE-s to perform platform detection. For devicetree based platforms, this happens via a call to fixup_fdt. Use this ca [...] 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 To maintain compatibility with existing drivers, which require the soc_info struct to be available, add a downstream board file for the MACH_REALTEK_RTL platform. MIPS_GENERIC based platforms will iterate through the array of available MIPS_MACHINE-s to perform platform detection. For devicetree based platforms, this happens via a call to fixup_fdt. Use this call to perform the SoC detection, adapted from the old prom.c file. A list of supported root compatibles are provided, along with matching register offsets for where to find the SoC model. This offset is then the only one probed in place of the old detection heuristic. MIPS_GENERIC also implements its own custom get_system_type(), which can be customized via the system_type variable. Set this variable to ensure the specific SoC ID is available at runtime from /proc/cpuinfo. Co-developed-by: INAGAKI Hiroshi Signed-off-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule Tested-by: Bjørn Mork --- v2: - Fix function definition formatting --- .../arch/mips/generic/board-realtek.c | 145 ++++++++++++++++++ ...-in-board-realtek-for-generic-kernel.patch | 9 ++ 2 files changed, 154 insertions(+) create mode 100644 target/linux/realtek/files-5.10/arch/mips/generic/board-realtek.c create mode 100644 target/linux/realtek/patches-5.10/309-mips-built-in-board-realtek-for-generic-kernel.patch diff --git a/target/linux/realtek/files-5.10/arch/mips/generic/board-realtek.c b/target/linux/realtek/files-5.10/arch/mips/generic/board-realtek.c new file mode 100644 index 000000000000..8ebebcfa7257 --- /dev/null +++ b/target/linux/realtek/files-5.10/arch/mips/generic/board-realtek.c @@ -0,0 +1,145 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Board detection for the Realtek RTL838X, RTL839X, RTL930X, RTL931X SoCs + * + * based on the original BSP by + * Copyright (C) 2006-2012 Tony Wu (tonywu@realtek.com) + * Copyright (C) 2020 B. Koblitz + * + */ + +#include +#include + +#include + +struct rtl83xx_soc_info soc_info; + +static __init void identify_rtl9302(u32 model) +{ + switch (model & 0xfffffff0) { + case 0x93020810: + soc_info.name = "RTL9302A 12x2.5G"; + break; + case 0x93021010: + soc_info.name = "RTL9302B 8x2.5G"; + break; + case 0x93021810: + soc_info.name = "RTL9302C 16x2.5G"; + break; + case 0x93022010: + soc_info.name = "RTL9302D 24x2.5G"; + break; + case 0x93020800: + soc_info.name = "RTL9302A"; + break; + case 0x93021000: + soc_info.name = "RTL9302B"; + break; + case 0x93021800: + soc_info.name = "RTL9302C"; + break; + case 0x93022000: + soc_info.name = "RTL9302D"; + break; + case 0x93023001: + soc_info.name = "RTL9302F"; + break; + default: + soc_info.name = "RTL9302"; + } +} + +static __init void realtek_detect(u32 info_addr) +{ + u32 model; + + model = sw_r32(info_addr); + soc_info.id = model >> 16 & 0xFFFF; + + switch (soc_info.id) { + case 0x8328: + soc_info.name = "RTL8328"; + soc_info.family = RTL8328_FAMILY_ID; + break; + case 0x8332: + soc_info.name = "RTL8332"; + soc_info.family = RTL8380_FAMILY_ID; + break; + case 0x8380: + soc_info.name = "RTL8380"; + soc_info.family = RTL8380_FAMILY_ID; + break; + case 0x8382: + soc_info.name = "RTL8382"; + soc_info.family = RTL8380_FAMILY_ID; + break; + case 0x8390: + soc_info.name = "RTL8390"; + soc_info.family = RTL8390_FAMILY_ID; + break; + case 0x8391: + soc_info.name = "RTL8391"; + soc_info.family = RTL8390_FAMILY_ID; + break; + case 0x8392: + soc_info.name = "RTL8392"; + soc_info.family = RTL8390_FAMILY_ID; + break; + case 0x8393: + soc_info.name = "RTL8393"; + soc_info.family = RTL8390_FAMILY_ID; + break; + case 0x9301: + soc_info.name = "RTL9301"; + soc_info.family = RTL9300_FAMILY_ID; + break; + case 0x9302: + identify_rtl9302(model); + soc_info.family = RTL9300_FAMILY_ID; + break; + case 0x9313: + soc_info.name = "RTL9313"; + soc_info.family = RTL9310_FAMILY_ID; + break; + default: + soc_info.name = "DEFAULT"; + soc_info.family = 0; + } + + system_type = soc_info.name; +} + +static __init const void *realtek_fixup_fdt(const void *fdt, const void *match_data) +{ + realtek_detect((u32) match_data); + + return fdt; +} + +static const struct of_device_id realtek_board_ids[] = { + /* Downstream compatibles */ + { + .compatible = "realtek,rtl838x-soc", + .data = (const void *)RTL838X_MODEL_NAME_INFO, + }, + { + .compatible = "realtek,rtl839x-soc", + .data = (const void *)RTL839X_MODEL_NAME_INFO, + }, + { + .compatible = "realtek,rtl93xx-soc", + .data = (const void *)RTL93XX_MODEL_NAME_INFO, + }, + /* Upstream compatibles */ + { + .compatible = "realtek,rtl8382-soc", + .data = (const void *)RTL838X_MODEL_NAME_INFO, + }, + { /* sentinel */ } +}; + +MIPS_MACHINE(realtek) = { + .matches = realtek_board_ids, + .fixup_fdt = realtek_fixup_fdt, +}; diff --git a/target/linux/realtek/patches-5.10/309-mips-built-in-board-realtek-for-generic-kernel.patch b/target/linux/realtek/patches-5.10/309-mips-built-in-board-realtek-for-generic-kernel.patch new file mode 100644 index 000000000000..83f4d09e19ab --- /dev/null +++ b/target/linux/realtek/patches-5.10/309-mips-built-in-board-realtek-for-generic-kernel.patch @@ -0,0 +1,9 @@ +--- a/arch/mips/generic/Makefile ++++ b/arch/mips/generic/Makefile +@@ -11,5 +11,6 @@ obj-y += proc.o + obj-$(CONFIG_YAMON_DT_SHIM) += yamon-dt.o + obj-$(CONFIG_LEGACY_BOARD_SEAD3) += board-sead3.o + obj-$(CONFIG_LEGACY_BOARD_OCELOT) += board-ocelot.o ++obj-$(CONFIG_MACH_REALTEK_RTL) += board-realtek.o + obj-$(CONFIG_MACH_INGENIC) += board-ingenic.o + obj-$(CONFIG_VIRT_BOARD_RANCHU) += board-ranchu.o From patchwork Sun Dec 12 20:01:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sander Vanheule X-Patchwork-Id: 1567038 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=oiwxKfrr; 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=pLgtHmPp; 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 4JBwgh3SlSz9s3q for ; Mon, 13 Dec 2021 07:08: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=EnqnGu3uXM1IkOMYqih34YKmUf37R0gpK37LeaHx86U=; b=oiwxKfrrX0mYHy N/tHX5VRkFfkC3SeX1qN7q7Ky5Cvjd7RUh8Lie6+wR7cddFQDley8pab/iit/H+IWh4neMVQJ6Jon 5EOCm3S+a+XrYqScG7j1gcXCgHSbA/1p05LcI5PxCi4F4tKWgGnIvD8UlWG8L03GqDIk9PdvleZpd EWtvg2cPvgi7n++3KOFQcfeKOp3wa0LxE71UYLL0u8B0ztejA/F0c6TV84dhdKoMZajK54jLkUrIP WLEL3qNul45eLSfGEiYjKe+/z+tzbo2BDm5SkLMUIYMmwdCro2Q2eY74qxSPsdLKS41x0dc2/Kun5 bz48UVqWvN9dKnuw5zSw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwV7H-0078VV-AY; Sun, 12 Dec 2021 20:06:40 +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 1mwV2y-0076rb-Jp for openwrt-devel@lists.openwrt.org; Sun, 12 Dec 2021 20:02:14 +0000 Received: from terra.local.svanheule.net (unknown [IPv6:2a02:a03f:eafe:c901:9d78:c664:81ab:1c5b]) (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 A830C280110; Sun, 12 Dec 2021 21:02:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1639339327; 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=JGlRzsFaYo2OMGphQFbE3KgRaIzgjYNObs56SsuKasA=; b=pLgtHmPpQYKftyhGnkFu+DwZQMl4BlTFcL8qLuzRvdaCvldowfSy12Z0DAqXg2PEljjgnu dxNWxwwvzf4W5OoYsmoI76E8r94m5WTWnb6K5m4nmhDg+sZrQ5dc2nY7P/XuyL+C5Kau9H W5o3pTaMxBcxi0DEhVSut2KwOBdhtduzybK201saJGFYOIHBjnDcLeZmXycpqsABqfy1qH 6g9hpnrIDdk279/1ZpiCsiUq2SBq2KGtcypcg+drxky7QeDSLQAaG+hkRZGhCdIflBBQij ROUTYGCVPk6PX5x5h0UGKk1KoSzM0jg5mh+olWYBoUPBAW7WKI1+BKIzM10vww== From: Sander Vanheule To: openwrt-devel@lists.openwrt.org Cc: INAGAKI Hiroshi , Birger Koblitz , John Crispin , Sebastian Gottschall , =?utf-8?q?Bj=C3=B8rn_Mork?= , Sander Vanheule Subject: [PATCH v2 09/14] realtek: use correct compatible for rtl930x SoCs Date: Sun, 12 Dec 2021 21:01:31 +0100 Message-Id: <45300d9b243e7aa0197fcde77a40c663dd3dc834.1639339223.git.sander@svanheule.net> X-Mailer: git-send-email 2.33.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211212_120212_859674_F16807D3 X-CRM114-Status: UNSURE ( 8.51 ) X-CRM114-Notice: Please train this message. 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: The base DTSI for RTL930x-based devices contained the compatible for RTL838x-based devices. Although this will be overridden by devices including this file, correct it to indicate what the fallback sh [...] 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 The base DTSI for RTL930x-based devices contained the compatible for RTL838x-based devices. Although this will be overridden by devices including this file, correct it to indicate what the fallback should be. Signed-off-by: Sander Vanheule --- target/linux/realtek/dts-5.10/rtl930x.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/realtek/dts-5.10/rtl930x.dtsi b/target/linux/realtek/dts-5.10/rtl930x.dtsi index 3a9b0e23c470..43816c6c1f7d 100644 --- a/target/linux/realtek/dts-5.10/rtl930x.dtsi +++ b/target/linux/realtek/dts-5.10/rtl930x.dtsi @@ -51,7 +51,7 @@ #address-cells = <1>; #size-cells = <1>; - compatible = "realtek,rtl838x-soc"; + compatible = "realtek,rtl93xx-soc"; cpus { #address-cells = <1>; From patchwork Sun Dec 12 20:01:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sander Vanheule X-Patchwork-Id: 1567043 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=Q/Ab8cOU; 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=gTR3LtMD; 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 4JBws331lpz9s3q for ; Mon, 13 Dec 2021 07:16:39 +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=94cxZM71/fGTEYXqpbAfzvbGkMkY+ZdhlTl3EgnRDEE=; b=Q/Ab8cOU4BJFm+ Yph7G2ZzPfVJQ2xCznk3mCi5quPlmAux2nVojWTlaLRfLjsSQqENrb8/Wg5Kp0RST82JuX8aOsFPu X1+Pck95vBzmjw70YKSXLv8p12KFaZjmrJR+lDEt69bW2rrlOODlXcbyrubnPQUnzFUbJO2BKHCrz G5HTxNd8vu+ne74EECdriJtC6Bh01whFOl9443nlq8ZxB3wyvIk2Cftvd/jpOeXtAMv+AoWsb5hu+ z60wLvVFmartRPGJm3FAY8cWhW4FSF70ODoWo8llOkjE/Cc6wsIZYWCSJtpUoMpXvcl6M3DKxiJff bNlzKvsD60ImXzIryh6Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwVEm-007ATl-BD; Sun, 12 Dec 2021 20:14:25 +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 1mwV30-0076rw-CT for openwrt-devel@lists.openwrt.org; Sun, 12 Dec 2021 20:02:17 +0000 Received: from terra.local.svanheule.net (unknown [IPv6:2a02:a03f:eafe:c901:9d78:c664:81ab:1c5b]) (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 4C151280111; Sun, 12 Dec 2021 21:02:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1639339328; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6fXltIcPW2jnhDj+wuxoIh/CjTMAGvFlToC+nNI5NzQ=; b=gTR3LtMDXuC/Otuk/OJb+kYMT3/rxojEnOoKmrG7R5yEFPkvO7B6StYn17bEOexIxc2Hm9 JYpb0VDnCT1V5NX3526F40T9WtpcKBOvs+Q6YbdrcHPEun0LtdWHwdB5nIlP1sAudDFBr3 DnrQeJvChcFIgIUBUsDXJlwo7a7vRkCFFe6n0VF6RrFfUSCzbCMl15vQY9oQSwhOhClTPc YKtOzG3Qaue+UWBTnU0PcBmj+PtCZw2BrN0dw5PVkoHPVTiREPTFptu+qLHDNeY3+BeOR0 Dh9wN29gxSK2aMNPz7M59pddwbHkeV8ZWglpgdhvcdLjKdAkDjMPVo7carHm1g== From: Sander Vanheule To: openwrt-devel@lists.openwrt.org Cc: INAGAKI Hiroshi , Birger Koblitz , John Crispin , Sebastian Gottschall , =?utf-8?q?Bj=C3=B8rn_Mork?= , Sander Vanheule Subject: [PATCH v2 10/14] realtek: update driver platform dependencies Date: Sun, 12 Dec 2021 21:01:32 +0100 Message-Id: X-Mailer: git-send-email 2.33.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211212_120214_855160_B50D9588 X-CRM114-Status: GOOD ( 14.67 ) X-Spam-Score: -2.5 (--) X-Spam-Report: =?unknown-8bit?q?Spam_detection_software=2C_running_on_the_sy?= =?unknown-8bit?q?stem_=22bombadil=2Einfradead=2Eorg=22=2C?= =?unknown-8bit?q?_has_NOT_identified_this_incoming_email_as_spam=2E__The_ori?= =?unknown-8bit?q?ginal?= =?unknown-8bit?q?_message_has_been_attached_to_this_so_you_can_view_it_or_la?= =?unknown-8bit?q?bel?= =?unknown-8bit?q?_similar_future_email=2E__If_you_have_any_questions=2C_see?= =?unknown-8bit?q?_the_administrator_of_that_system_for_details=2E?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_preview=3A__Make_all_drivers_depend_on_the_upstrea?= =?unknown-8bit?q?m_platform=2C_instead?= =?unknown-8bit?q?_of_the_downstream_platform=2E_This_can_be_achieved_by_drop?= =?unknown-8bit?q?ping_the_dependendy?= =?unknown-8bit?q?_patches=2C_and_requires_some_updates_to_the_downstream_dri?= =?unknown-8bit?q?vers=2E_Co-developed-by=3A?= =?unknown-8bit?q?_INAGAKI_Hiroshi_=3Cmusashino=2Eopen=40gmail=2Ecom=3E_Signe?= =?unknown-8bit?q?d-off-by=3A_INAGAKI_Hiroshi?= =?unknown-8bit?q?_=3Cmusashino=2Eopen=40gmail=2Ecom=3E_Signed-off-by=3A_Sand?= =?unknown-8bit?q?er_Vanheule_=3Csander=40svanheule=2Enet=3E?= =?unknown-8bit?b?IFRlc3RlZC1ieTogQmrDuHJuIE1vcmsgPGJqb3IgWy4uLl0g?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_analysis_details=3A___=28-2=2E5_points=2C_5=2E0_re?= =?unknown-8bit?q?quired=29?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_pts_rule_name______________description?= =?unknown-8bit?q?_----_----------------------_------------------------------?= =?unknown-8bit?q?--------------------?= =?unknown-8bit?q?_-2=2E3_RCVD=5FIN=5FDNSWL=5FMED______RBL=3A_Sender_listed_a?= =?unknown-8bit?q?t_https=3A//www=2Ednswl=2Eorg/=2C?= =?unknown-8bit?q?_medium_trust?= =?unknown-8bit?q?_=5B84=2E16=2E241=2E116_listed_in_list=2Ednswl=2Eorg=5D?= =?unknown-8bit?q?_-0=2E0_SPF=5FPASS_______________SPF=3A_sender_matches_SPF_?= =?unknown-8bit?q?record?= =?unknown-8bit?q?_-0=2E0_SPF=5FHELO=5FPASS__________SPF=3A_HELO_matches_SPF_?= =?unknown-8bit?q?record?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID=5FAU__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from?= =?unknown-8bit?q?_author=27s_domain?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID_____________Message_has_at_least_one_v?= =?unknown-8bit?q?alid_DKIM_or_DK_signature?= =?unknown-8bit?q?_0=2E1_DKIM=5FSIGNED____________Message_has_a_DKIM_or_DK_si?= =?unknown-8bit?q?gnature=2C_not_necessarily?= =?unknown-8bit?q?_valid?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID=5FEF__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from?= =?unknown-8bit?q?_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 Make all drivers depend on the upstream platform, instead of the downstream platform. This can be achieved by dropping the dependendy patches, and requires some updates to the downstream drivers. Co-developed-by: INAGAKI Hiroshi Signed-off-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule Tested-by: Bjørn Mork --- .../files-5.10/drivers/net/dsa/rtl83xx/Kconfig | 2 +- .../301-gpio-add-rtl8231-driver.patch | 2 +- ...pdate-dependencies-for-gpio-realtek-otto.patch | 13 ------------- ...pi-update-dependency-for-spi-realtek-rtl.patch | 11 ----------- ...ip-update-dependency-for-irq-realtek-rtl.patch | 8 -------- .../306-gpio-add-legacy-rtl838x-driver.patch | 2 +- ...t-update-dependency-for-realtek-otto-wdt.patch | 15 --------------- ...thernet-add-support-for-rtl838x-ethernet.patch | 2 +- .../realtek/patches-5.10/705-add-rtl-phy.patch | 2 +- 9 files changed, 5 insertions(+), 52 deletions(-) delete mode 100644 target/linux/realtek/patches-5.10/303-gpio-update-dependencies-for-gpio-realtek-otto.patch delete mode 100644 target/linux/realtek/patches-5.10/304-spi-update-dependency-for-spi-realtek-rtl.patch delete mode 100644 target/linux/realtek/patches-5.10/305-irqchip-update-dependency-for-irq-realtek-rtl.patch delete mode 100644 target/linux/realtek/patches-5.10/307-wdt-update-dependency-for-realtek-otto-wdt.patch diff --git a/target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/Kconfig b/target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/Kconfig index b423d2c3ea58..79146599180e 100644 --- a/target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/Kconfig +++ b/target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/Kconfig @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only config NET_DSA_RTL83XX tristate "Realtek RTL838x/RTL839x switch support" - depends on RTL838X + depends on MACH_REALTEK_RTL select NET_DSA_TAG_TRAILER help This driver adds support for Realtek RTL83xx series switching. diff --git a/target/linux/realtek/patches-5.10/301-gpio-add-rtl8231-driver.patch b/target/linux/realtek/patches-5.10/301-gpio-add-rtl8231-driver.patch index 496d3f41627b..57334e472443 100644 --- a/target/linux/realtek/patches-5.10/301-gpio-add-rtl8231-driver.patch +++ b/target/linux/realtek/patches-5.10/301-gpio-add-rtl8231-driver.patch @@ -6,7 +6,7 @@ +config GPIO_RTL8231 + tristate "RTL8231 GPIO" -+ depends on RTL838X ++ depends on MACH_REALTEK_RTL + help + Say yes here to support Realtek RTL8231 GPIO expansion chips. + diff --git a/target/linux/realtek/patches-5.10/303-gpio-update-dependencies-for-gpio-realtek-otto.patch b/target/linux/realtek/patches-5.10/303-gpio-update-dependencies-for-gpio-realtek-otto.patch deleted file mode 100644 index 4ff98e44e8a1..000000000000 --- a/target/linux/realtek/patches-5.10/303-gpio-update-dependencies-for-gpio-realtek-otto.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- a/drivers/gpio/Kconfig -+++ b/drivers/gpio/Kconfig -@@ -491,8 +491,8 @@ config GPIO_RDA - - config GPIO_REALTEK_OTTO - tristate "Realtek Otto GPIO support" -- depends on MACH_REALTEK_RTL -- default MACH_REALTEK_RTL -+ depends on RTL838X -+ default RTL838X - select GPIO_GENERIC - select GPIOLIB_IRQCHIP - help diff --git a/target/linux/realtek/patches-5.10/304-spi-update-dependency-for-spi-realtek-rtl.patch b/target/linux/realtek/patches-5.10/304-spi-update-dependency-for-spi-realtek-rtl.patch deleted file mode 100644 index 6975bfd2287c..000000000000 --- a/target/linux/realtek/patches-5.10/304-spi-update-dependency-for-spi-realtek-rtl.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/drivers/spi/Makefile -+++ b/drivers/spi/Makefile -@@ -94,7 +94,7 @@ obj-$(CONFIG_SPI_QCOM_QSPI) += spi-qcom - obj-$(CONFIG_SPI_QUP) += spi-qup.o - obj-$(CONFIG_SPI_ROCKCHIP) += spi-rockchip.o - obj-$(CONFIG_SPI_RB4XX) += spi-rb4xx.o --obj-$(CONFIG_MACH_REALTEK_RTL) += spi-realtek-rtl.o -+obj-$(CONFIG_RTL838X) += spi-realtek-rtl.o - obj-$(CONFIG_SPI_RPCIF) += spi-rpc-if.o - obj-$(CONFIG_SPI_RSPI) += spi-rspi.o - obj-$(CONFIG_SPI_S3C24XX) += spi-s3c24xx-hw.o diff --git a/target/linux/realtek/patches-5.10/305-irqchip-update-dependency-for-irq-realtek-rtl.patch b/target/linux/realtek/patches-5.10/305-irqchip-update-dependency-for-irq-realtek-rtl.patch deleted file mode 100644 index 96321f0bba2c..000000000000 --- a/target/linux/realtek/patches-5.10/305-irqchip-update-dependency-for-irq-realtek-rtl.patch +++ /dev/null @@ -1,8 +0,0 @@ ---- a/drivers/irqchip/Makefile -+++ b/drivers/irqchip/Makefile -@@ -114,4 +114,4 @@ obj-$(CONFIG_LOONGSON_PCH_PIC) += irq-l - obj-$(CONFIG_LOONGSON_PCH_MSI) += irq-loongson-pch-msi.o - obj-$(CONFIG_MST_IRQ) += irq-mst-intc.o - obj-$(CONFIG_SL28CPLD_INTC) += irq-sl28cpld.o --obj-$(CONFIG_MACH_REALTEK_RTL) += irq-realtek-rtl.o -+obj-$(CONFIG_RTL838X) += irq-realtek-rtl.o diff --git a/target/linux/realtek/patches-5.10/306-gpio-add-legacy-rtl838x-driver.patch b/target/linux/realtek/patches-5.10/306-gpio-add-legacy-rtl838x-driver.patch index 1ea8add32bf9..25883c25d7f4 100644 --- a/target/linux/realtek/patches-5.10/306-gpio-add-legacy-rtl838x-driver.patch +++ b/target/linux/realtek/patches-5.10/306-gpio-add-legacy-rtl838x-driver.patch @@ -6,7 +6,7 @@ +config GPIO_RTL838X + tristate "RTL838X GPIO" -+ depends on RTL838X ++ depends on MACH_REALTEK_RTL + help + Say yes here to support RTL838X GPIO on RTL93xx SoCs. + diff --git a/target/linux/realtek/patches-5.10/307-wdt-update-dependency-for-realtek-otto-wdt.patch b/target/linux/realtek/patches-5.10/307-wdt-update-dependency-for-realtek-otto-wdt.patch deleted file mode 100644 index f4496ed294dd..000000000000 --- a/target/linux/realtek/patches-5.10/307-wdt-update-dependency-for-realtek-otto-wdt.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- a/drivers/watchdog/Kconfig -+++ b/drivers/watchdog/Kconfig -@@ -997,10 +997,10 @@ config RTD119X_WATCHDOG - - config REALTEK_OTTO_WDT - tristate "Realtek Otto MIPS watchdog support" -- depends on MACH_REALTEK_RTL || COMPILE_TEST -+ depends on RTL838X - depends on COMMON_CLK - select WATCHDOG_CORE -- default MACH_REALTEK_RTL -+ default RTL838X - help - Say Y here to include support for the watchdog timer on Realtek - RTL838x, RTL839x, RTL930x SoCs. This watchdog has pretimeout diff --git a/target/linux/realtek/patches-5.10/702-net-ethernet-add-support-for-rtl838x-ethernet.patch b/target/linux/realtek/patches-5.10/702-net-ethernet-add-support-for-rtl838x-ethernet.patch index 4c5f397e1063..8a15de087494 100644 --- a/target/linux/realtek/patches-5.10/702-net-ethernet-add-support-for-rtl838x-ethernet.patch +++ b/target/linux/realtek/patches-5.10/702-net-ethernet-add-support-for-rtl838x-ethernet.patch @@ -7,7 +7,7 @@ + +config NET_RTL838X + tristate "Realtek rtl838x Ethernet MAC support" -+ depends on RTL838X ++ depends on MACH_REALTEK_RTL + help + Say Y here if you want to use the Realtek rtl838x Gbps Ethernet MAC. + diff --git a/target/linux/realtek/patches-5.10/705-add-rtl-phy.patch b/target/linux/realtek/patches-5.10/705-add-rtl-phy.patch index 3046a6aed51a..6d51b39c1ad8 100644 --- a/target/linux/realtek/patches-5.10/705-add-rtl-phy.patch +++ b/target/linux/realtek/patches-5.10/705-add-rtl-phy.patch @@ -6,7 +6,7 @@ +config REALTEK_SOC_PHY + tristate "Realtek SoC PHYs" -+ depends on RTL838X ++ depends on MACH_REALTEK_RTL + help + Supports the PHYs found in combination with Realtek Switch SoCs + From patchwork Sun Dec 12 20:01:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sander Vanheule X-Patchwork-Id: 1567039 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=wHBuFqML; 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=sSn25WpI; 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 4JBwjX2rFdz9ssD for ; Mon, 13 Dec 2021 07:10:06 +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=ZX3pxTZIqKKDcPtAM1RBLOT5irvMqBGnH5+llRzxk3k=; b=wHBuFqMLIvvhaS Am5UVpwKrr7iE44hSBoYeET5ZegPmsO6WXFuuLkAZRsyAsmnmB5zsKv7rZO8bk7+RQOmrDxZ2HAM7 yugl8oCtLXVyQ7HCUPlOxbNKZrSXK7LwhmdChZxZ+pHBj90Lokq0WDVogsk3FFRYYEzOVOT97hRPS W5yxZpeQdFZ+ZMkefnXOuXPyGXCRQcNcdlQruj8hXx214EneF+ZCID9JsUn+Ge6Spe2K2SYAnHY0G i0xYqV4Qnn+fWDETyUKT+WkFRnE4wYZN4voYTV/ps0hnHaKOkJQd7dwTUZAANoWK7jXWqU///ZcvT uWc8wiRc+J3d7Mi7YckQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwV8b-0078tB-NE; Sun, 12 Dec 2021 20:08:02 +0000 Received: from polaris.svanheule.net ([2a00:c98:2060:a004:1::200]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwV30-0076s1-Bt for openwrt-devel@lists.openwrt.org; Sun, 12 Dec 2021 20:02:16 +0000 Received: from terra.local.svanheule.net (unknown [IPv6:2a02:a03f:eafe:c901:9d78:c664:81ab:1c5b]) (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 E9502280112; Sun, 12 Dec 2021 21:02:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1639339329; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gpQ4qEufobqNM6H8mB3BY1nGxyZQDXGw5OQSwVayiEU=; b=sSn25WpI37MJPU1+OH18MJiZB9+3jDAWejEkxt6Y6jmdGF9o93bb6vuLzIpMISRoUUplgF UbpBU9Hl4jRAwv8QEtbIr7IULOvSap1QLuTGEoDtZ+6q7CNxmEPm9EYjcSWO2Svcjmzt08 sG5/8PFVDOfRXzc1J5XtHitkt6RXCxt6ofk2KJwjgOPqYBafIp3D6WJo/FACESCikkvimG dlgevqMSXfqCN1x/GRO+1jsHgF73SQqddJT2FBWz+VRDVXXb0Y2VDD5CNHlTeL4vYcqynQ Cwd3JNfxCwqmsWutuWFYhH0zuaIppYeaGfBCYIw8Dai+us6RlYdCQcMQbixRtg== From: Sander Vanheule To: openwrt-devel@lists.openwrt.org Cc: INAGAKI Hiroshi , Birger Koblitz , John Crispin , Sebastian Gottschall , =?utf-8?q?Bj=C3=B8rn_Mork?= , Sander Vanheule Subject: [PATCH v2 11/14] realtek: switch target to upstream platform Date: Sun, 12 Dec 2021 21:01:33 +0100 Message-Id: <8867c4c3690f0f20353e8664112c4ffdbc82e7a0.1639339223.git.sander@svanheule.net> X-Mailer: git-send-email 2.33.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211212_120214_790662_10592E2F X-CRM114-Status: GOOD ( 10.26 ) X-Spam-Score: -1.7 (-) 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: Use the upstream MACH_REALTEK_RTL platform instead of the downstream RTL83XX platform. This effectively deprecates the original platform. The updated config was generated by kernel_oldconfig, using the defaults for the now available symbols. Content analysis details: (-1.7 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [2a00:c98:2060:a004:1:0:0:200 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 0.8 UPPERCASE_50_75 message body is 50-75% uppercase 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 Use the upstream MACH_REALTEK_RTL platform instead of the downstream RTL83XX platform. This effectively deprecates the original platform. The updated config was generated by kernel_oldconfig, using the defaults for the now available symbols. Since the upstream platform is based on MIPS_GENERIC, the kernel load and entry addresses need to be updated to match the expected values. Co-developed-by: INAGAKI Hiroshi Signed-off-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule Tested-by: Bjørn Mork --- target/linux/realtek/config-5.10 | 36 ++++++++++++++++++++++++----- target/linux/realtek/image/Makefile | 4 ++-- 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/target/linux/realtek/config-5.10 b/target/linux/realtek/config-5.10 index f75cf92897ad..eb3eb0e2b51c 100644 --- a/target/linux/realtek/config-5.10 +++ b/target/linux/realtek/config-5.10 @@ -1,9 +1,7 @@ CONFIG_AQUANTIA_PHY=y CONFIG_ARCH_32BIT_OFF_T=y -CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_MMAP_RND_BITS_MAX=15 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=15 -CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_COUNT=16 CONFIG_BLK_DEV_RAM_SIZE=4096 @@ -25,8 +23,11 @@ CONFIG_CPU_MIPS32=y # CONFIG_CPU_MIPS32_R1 is not set CONFIG_CPU_MIPS32_R2=y CONFIG_CPU_MIPSR2=y +CONFIG_CPU_MIPSR2_IRQ_EI=y +CONFIG_CPU_MIPSR2_IRQ_VI=y CONFIG_CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS=y CONFIG_CPU_R4K_CACHE_TLB=y +CONFIG_CPU_RMAP=y CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y CONFIG_CPU_SUPPORTS_HIGHMEM=y CONFIG_CPU_SUPPORTS_MSA=y @@ -89,6 +90,7 @@ CONFIG_I2C_GPIO=y CONFIG_INITRAMFS_SOURCE="" CONFIG_IRQCHIP=y CONFIG_IRQ_DOMAIN=y +CONFIG_IRQ_DOMAIN_HIERARCHY=y CONFIG_IRQ_FORCED_THREADING=y CONFIG_IRQ_MIPS_CPU=y CONFIG_IRQ_WORK=y @@ -99,6 +101,7 @@ CONFIG_LEGACY_PTY_COUNT=256 CONFIG_LIBFDT=y CONFIG_LLD_VERSION=0 CONFIG_LOCK_DEBUGGING_SUPPORT=y +CONFIG_MACH_REALTEK_RTL=y CONFIG_MARVELL_PHY=y CONFIG_MDIO_BUS=y CONFIG_MDIO_DEVICE=y @@ -110,17 +113,24 @@ CONFIG_MIGRATION=y CONFIG_MIPS=y CONFIG_MIPS_ASID_BITS=8 CONFIG_MIPS_ASID_SHIFT=0 -CONFIG_MIPS_CBPF_JIT=y CONFIG_MIPS_CLOCK_VSYSCALL=y # CONFIG_MIPS_CMDLINE_DTB_EXTEND is not set # CONFIG_MIPS_CMDLINE_FROM_BOOTLOADER is not set CONFIG_MIPS_CMDLINE_FROM_DTB=y +CONFIG_MIPS_EBPF_JIT=y # CONFIG_MIPS_ELF_APPENDED_DTB is not set +CONFIG_MIPS_GENERIC=y CONFIG_MIPS_L1_CACHE_SHIFT=5 CONFIG_MIPS_LD_CAN_LINK_VDSO=y +CONFIG_MIPS_MT=y +CONFIG_MIPS_MT_FPAFF=y +CONFIG_MIPS_MT_SMP=y # CONFIG_MIPS_NO_APPENDED_DTB is not set +CONFIG_MIPS_NR_CPU_NR_MAP=2 +CONFIG_MIPS_PERF_SHARED_TC_COUNTERS=y CONFIG_MIPS_RAW_APPENDED_DTB=y CONFIG_MIPS_SPRAM=y +# CONFIG_MIPS_VPE_LOADER is not set CONFIG_MODULES_USE_ELF_REL=y CONFIG_MTD_CFI_ADV_OPTIONS=y CONFIG_MTD_CFI_GEOMETRY=y @@ -133,14 +143,15 @@ CONFIG_MTD_SPLIT_FIRMWARE=y CONFIG_MTD_SPLIT_TPLINK_FW=y CONFIG_MTD_SPLIT_UIMAGE_FW=y CONFIG_NEED_DMA_MAP_STATE=y -CONFIG_NEED_PER_CPU_KM=y CONFIG_NET_DEVLINK=y CONFIG_NET_DSA=y CONFIG_NET_DSA_RTL83XX=y CONFIG_NET_DSA_TAG_TRAILER=y +CONFIG_NET_FLOW_LIMIT=y CONFIG_NET_RTL838X=y CONFIG_NET_SWITCHDEV=y CONFIG_NO_GENERIC_PCI_IOPORT_MAP=y +CONFIG_NR_CPUS=2 CONFIG_NVMEM=y CONFIG_OF=y CONFIG_OF_ADDRESS=y @@ -151,6 +162,7 @@ CONFIG_OF_IRQ=y CONFIG_OF_KOBJ=y CONFIG_OF_MDIO=y CONFIG_OF_NET=y +CONFIG_PADATA=y CONFIG_PCI_DRIVERS_LEGACY=y CONFIG_PERF_USE_VMALLOC=y CONFIG_PGTABLE_LEVELS=2 @@ -160,6 +172,8 @@ CONFIG_PINCTRL=y CONFIG_POWER_RESET=y CONFIG_POWER_RESET_GPIO_RESTART=y CONFIG_POWER_RESET_SYSCON=y +CONFIG_QUEUED_RWLOCKS=y +CONFIG_QUEUED_SPINLOCKS=y CONFIG_RATIONAL=y CONFIG_REALTEK_OTTO_WDT=y CONFIG_REALTEK_PHY=y @@ -167,16 +181,20 @@ CONFIG_REALTEK_SOC_PHY=y CONFIG_REGMAP=y CONFIG_REGMAP_MMIO=y CONFIG_RESET_CONTROLLER=y -CONFIG_RTL838X=y +CONFIG_RFS_ACCEL=y +CONFIG_RPS=y CONFIG_RTL9300_TIMER=y CONFIG_SERIAL_MCTRL_GPIO=y CONFIG_SERIAL_OF_PLATFORM=y CONFIG_SFP=y +CONFIG_SMP=y +CONFIG_SMP_UP=y CONFIG_SPI=y CONFIG_SPI_MASTER=y CONFIG_SPI_MEM=y CONFIG_SRCU=y CONFIG_SWPHY=y +CONFIG_SYNC_R4K=y CONFIG_SYSCTL_EXCEPTION_TRACE=y CONFIG_SYS_HAS_CPU_MIPS32_R1=y CONFIG_SYS_HAS_CPU_MIPS32_R2=y @@ -185,13 +203,19 @@ CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y CONFIG_SYS_SUPPORTS_ARBIT_HZ=y CONFIG_SYS_SUPPORTS_BIG_ENDIAN=y CONFIG_SYS_SUPPORTS_MIPS16=y +CONFIG_SYS_SUPPORTS_MULTITHREADING=y +CONFIG_SYS_SUPPORTS_SCHED_SMT=y +CONFIG_SYS_SUPPORTS_SMP=y +CONFIG_SYS_SUPPORTS_VPE_LOADER=y CONFIG_TARGET_ISA_REV=2 CONFIG_TICK_CPU_ACCOUNTING=y CONFIG_TIMER_OF=y CONFIG_TIMER_PROBE=y -CONFIG_TINY_SRCU=y +CONFIG_TREE_RCU=y +CONFIG_TREE_SRCU=y CONFIG_USE_GENERIC_EARLY_PRINTK_8250=y CONFIG_USE_OF=y CONFIG_WATCHDOG_CORE=y +CONFIG_XPS=y CONFIG_ZLIB_DEFLATE=y CONFIG_ZLIB_INFLATE=y diff --git a/target/linux/realtek/image/Makefile b/target/linux/realtek/image/Makefile index a7961970a302..84cfc5a9c679 100644 --- a/target/linux/realtek/image/Makefile +++ b/target/linux/realtek/image/Makefile @@ -3,8 +3,8 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/image.mk -KERNEL_LOADADDR = 0x80000000 -KERNEL_ENTRY = 0x80000400 +KERNEL_LOADADDR = 0x80100000 +KERNEL_ENTRY = 0x80100400 DEVICE_VARS += ZYXEL_VERS From patchwork Sun Dec 12 20:01:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sander Vanheule X-Patchwork-Id: 1567040 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=qAbAwjZx; 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=e6Sk70X4; 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 4JBwlF5G6zz9ssD for ; Mon, 13 Dec 2021 07:11:37 +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=4M5vQ3cFbHLLpabhtxiwBxF1Zm5eFK2DfP8Xb/BTGKk=; b=qAbAwjZxmPejDF A4HUqbM1qDuuM7LIOJMesbQfqnnTcNgtxd0gus9LNiwCLD0MsK0yQyoUmgOnNIX8fo7pTZjOKyzax YtC7bQyNPolavKO9/KQVY8U4WpbSgT7JusWcF165QK7QQsKCMhuHC3IrfnjzWDxcuSiKDLuLQ1rsW pJL2MskIacIJ01zuM6lBIRtZdWP1Cu1MDeUrzpx472o+vDr9wG53ucFEl2MTJFMlAFwyllMaVXFs7 hrNYXC/kLMPFWiSX50NUCst073XX/qCd0lwXeArp1QN6e735ee3txEUx7JRcV7ik9O9badDB7WwHQ hhfaqyE3n4671gTxCDrA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwVAD-0079PD-7m; Sun, 12 Dec 2021 20:09:42 +0000 Received: from polaris.svanheule.net ([2a00:c98:2060:a004:1::200]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwV30-0076sn-BD for openwrt-devel@lists.openwrt.org; Sun, 12 Dec 2021 20:02:16 +0000 Received: from terra.local.svanheule.net (unknown [IPv6:2a02:a03f:eafe:c901:9d78:c664:81ab:1c5b]) (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 66D75280113; Sun, 12 Dec 2021 21:02:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1639339329; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QxJhfSoR6gVjbXfUVcCZKZwJRAcQURWbwG68Q3AN00g=; b=e6Sk70X4GOUiXm7nr98FijdTaVWBEb5TQ1GLIIZdx8wY/q1Wf55QJOv4FYvQMRg+YzVRmU swqzn6QfbFAOCadpAccBCkFZiVr2eEOfa1fkRUagyrwbd7j2FZua5c0vdbRfnU6KA5q9O8 f1VmSL9HNBECtWO9sOvSrHswg2uTPT7veG0vn2440l14JKl31njvf9RRABUa6cbw7ppLpM UPrT1prvj/2cROqMfxgO/wJeqXkMrgZmGt4gLmYXgcLo2EJ8pOksaCW9tmOoKT4L1crDpu WBU5DmH+iLYPWB1TQpmimKRd67ZdiKmAmxZ90GV2ONOwZUGklz0dwgLdf9L5rA== From: Sander Vanheule To: openwrt-devel@lists.openwrt.org Cc: INAGAKI Hiroshi , Birger Koblitz , John Crispin , Sebastian Gottschall , =?utf-8?q?Bj=C3=B8rn_Mork?= , Sander Vanheule Subject: [PATCH v2 12/14] realtek: drop downstream platform Date: Sun, 12 Dec 2021 21:01:34 +0100 Message-Id: X-Mailer: git-send-email 2.33.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211212_120214_774054_DF50C304 X-CRM114-Status: GOOD ( 15.72 ) X-Spam-Score: -2.5 (--) X-Spam-Report: =?unknown-8bit?q?Spam_detection_software=2C_running_on_the_sy?= =?unknown-8bit?q?stem_=22bombadil=2Einfradead=2Eorg=22=2C?= =?unknown-8bit?q?_has_NOT_identified_this_incoming_email_as_spam=2E__The_ori?= =?unknown-8bit?q?ginal?= =?unknown-8bit?q?_message_has_been_attached_to_this_so_you_can_view_it_or_la?= =?unknown-8bit?q?bel?= =?unknown-8bit?q?_similar_future_email=2E__If_you_have_any_questions=2C_see?= =?unknown-8bit?q?_the_administrator_of_that_system_for_details=2E?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_preview=3A__The_original_platform_is_no_longer_use?= =?unknown-8bit?q?d_by_any_drivers=2C_but?= =?unknown-8bit?q?_was_replaced_by_MACH=5FREALTEK=5FRTL=2E_Drop_the_old_platf?= =?unknown-8bit?q?orm_patch_and_unused?= =?unknown-8bit?q?_files=2E_Co-developed-by=3A_INAGAKI_Hiroshi_=3Cmusashino?= =?unknown-8bit?q?=2Eopen=40gmail=2Ecom=3E_Signed-off-by=3A?= =?unknown-8bit?q?_INAGAKI_Hiroshi_=3Cmusashino=2Eopen=40gmail=2Ecom=3E_Signe?= =?unknown-8bit?q?d-off-by=3A_Sander_Vanheule?= =?unknown-8bit?b?IDxzYW5kZXJAc3ZhbmhldWxlLm5ldD4gVGVzdGVkLWJ5OiBCasO4cm4g?= =?unknown-8bit?b?TW9yayA8YmpvciBbLi4uXSA=?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_analysis_details=3A___=28-2=2E5_points=2C_5=2E0_re?= =?unknown-8bit?q?quired=29?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_pts_rule_name______________description?= =?unknown-8bit?q?_----_----------------------_------------------------------?= =?unknown-8bit?q?--------------------?= =?unknown-8bit?q?_-2=2E3_RCVD=5FIN=5FDNSWL=5FMED______RBL=3A_Sender_listed_a?= =?unknown-8bit?q?t_https=3A//www=2Ednswl=2Eorg/=2C?= =?unknown-8bit?q?_medium_trust?= =?unknown-8bit?b?IFsyYTAwOmM5ODoyMDYwOmEwMDQ6MTowOjA6MjAwIGxpc3RlZCBpbl0=?= =?unknown-8bit?b?IFtsaXN0LmRuc3dsLm9yZ10=?= =?unknown-8bit?q?_-0=2E0_SPF=5FPASS_______________SPF=3A_sender_matches_SPF_?= =?unknown-8bit?q?record?= =?unknown-8bit?q?_-0=2E0_SPF=5FHELO=5FPASS__________SPF=3A_HELO_matches_SPF_?= =?unknown-8bit?q?record?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID=5FAU__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from?= =?unknown-8bit?q?_author=27s_domain?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID_____________Message_has_at_least_one_v?= =?unknown-8bit?q?alid_DKIM_or_DK_signature?= =?unknown-8bit?q?_0=2E1_DKIM=5FSIGNED____________Message_has_a_DKIM_or_DK_si?= =?unknown-8bit?q?gnature=2C_not_necessarily?= =?unknown-8bit?q?_valid?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID=5FEF__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from?= =?unknown-8bit?q?_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 The original platform is no longer used by any drivers, but was replaced by MACH_REALTEK_RTL. Drop the old platform patch and unused files. Co-developed-by: INAGAKI Hiroshi Signed-off-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule Tested-by: Bjørn Mork --- .../mips/include/asm/mach-rtl838x/ioremap.h | 29 --- .../files-5.10/arch/mips/rtl838x/Makefile | 5 - .../files-5.10/arch/mips/rtl838x/Platform | 5 - .../files-5.10/arch/mips/rtl838x/prom.c | 183 ------------------ .../files-5.10/arch/mips/rtl838x/setup.c | 76 -------- .../300-mips-add-rtl838x-platform.patch | 39 ---- 6 files changed, 337 deletions(-) delete mode 100644 target/linux/realtek/files-5.10/arch/mips/include/asm/mach-rtl838x/ioremap.h delete mode 100644 target/linux/realtek/files-5.10/arch/mips/rtl838x/Makefile delete mode 100644 target/linux/realtek/files-5.10/arch/mips/rtl838x/Platform delete mode 100644 target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c delete mode 100644 target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c delete mode 100644 target/linux/realtek/patches-5.10/300-mips-add-rtl838x-platform.patch diff --git a/target/linux/realtek/files-5.10/arch/mips/include/asm/mach-rtl838x/ioremap.h b/target/linux/realtek/files-5.10/arch/mips/include/asm/mach-rtl838x/ioremap.h deleted file mode 100644 index c49a09579233..000000000000 --- a/target/linux/realtek/files-5.10/arch/mips/include/asm/mach-rtl838x/ioremap.h +++ /dev/null @@ -1,29 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef RTL838X_IOREMAP_H_ -#define RTL838X_IOREMAP_H_ - -static inline int is_rtl838x_internal_registers(phys_addr_t offset) -{ - /* IO-Block */ - if (offset >= 0xb8000000 && offset < 0xb9000000) - return 1; - /* Switch block */ - if (offset >= 0xbb000000 && offset < 0xbc000000) - return 1; - return 0; -} - -static inline void __iomem *plat_ioremap(phys_addr_t offset, unsigned long size, - unsigned long flags) -{ - if (is_rtl838x_internal_registers(offset)) - return (void __iomem *)offset; - return NULL; -} - -static inline int plat_iounmap(const volatile void __iomem *addr) -{ - return is_rtl838x_internal_registers((unsigned long)addr); -} - -#endif diff --git a/target/linux/realtek/files-5.10/arch/mips/rtl838x/Makefile b/target/linux/realtek/files-5.10/arch/mips/rtl838x/Makefile deleted file mode 100644 index a9d1666d4652..000000000000 --- a/target/linux/realtek/files-5.10/arch/mips/rtl838x/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# -# Makefile for the rtl838x specific parts of the kernel -# - -obj-y := setup.o prom.o diff --git a/target/linux/realtek/files-5.10/arch/mips/rtl838x/Platform b/target/linux/realtek/files-5.10/arch/mips/rtl838x/Platform deleted file mode 100644 index f9f189b68945..000000000000 --- a/target/linux/realtek/files-5.10/arch/mips/rtl838x/Platform +++ /dev/null @@ -1,5 +0,0 @@ -# -# Realtek RTL838x SoCs -# -cflags-$(CONFIG_RTL838X) += -I$(srctree)/arch/mips/include/asm/mach-rtl838x/ -load-$(CONFIG_RTL838X) += 0xffffffff80000000 diff --git a/target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c b/target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c deleted file mode 100644 index aea53c545159..000000000000 --- a/target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c +++ /dev/null @@ -1,183 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-only -/* - * prom.c - * Early intialization code for the Realtek RTL838X SoC - * - * based on the original BSP by - * Copyright (C) 2006-2012 Tony Wu (tonywu@realtek.com) - * Copyright (C) 2020 B. Koblitz - * - */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -extern char arcs_cmdline[]; -extern const char __appended_dtb; - -struct rtl83xx_soc_info soc_info; -const void *fdt; - -const char *get_system_type(void) -{ - return soc_info.name; -} - -void __init prom_free_prom_memory(void) -{ - -} - -void __init device_tree_init(void) -{ - if (!fdt_check_header(&__appended_dtb)) { - fdt = &__appended_dtb; - pr_info("Using appended Device Tree.\n"); - } - initial_boot_params = (void *)fdt; - unflatten_and_copy_device_tree(); -} - -static void __init prom_init_cmdline(void) -{ - int argc = fw_arg0; - char **argv = (char **) KSEG1ADDR(fw_arg1); - int i; - - arcs_cmdline[0] = '\0'; - - for (i = 0; i < argc; i++) { - char *p = (char *) KSEG1ADDR(argv[i]); - - if (CPHYSADDR(p) && *p) { - strlcat(arcs_cmdline, p, sizeof(arcs_cmdline)); - strlcat(arcs_cmdline, " ", sizeof(arcs_cmdline)); - } - } - pr_info("Kernel command line: %s\n", arcs_cmdline); -} - -void __init identify_rtl9302(void) -{ - switch (sw_r32(RTL93XX_MODEL_NAME_INFO) & 0xfffffff0) { - case 0x93020810: - soc_info.name = "RTL9302A 12x2.5G"; - break; - case 0x93021010: - soc_info.name = "RTL9302B 8x2.5G"; - break; - case 0x93021810: - soc_info.name = "RTL9302C 16x2.5G"; - break; - case 0x93022010: - soc_info.name = "RTL9302D 24x2.5G"; - break; - case 0x93020800: - soc_info.name = "RTL9302A"; - break; - case 0x93021000: - soc_info.name = "RTL9302B"; - break; - case 0x93021800: - soc_info.name = "RTL9302C"; - break; - case 0x93022000: - soc_info.name = "RTL9302D"; - break; - case 0x93023001: - soc_info.name = "RTL9302F"; - break; - default: - soc_info.name = "RTL9302"; - } -} - -void __init prom_init(void) -{ - uint32_t model; - - /* uart0 */ - setup_8250_early_printk_port(0xb8002000, 2, 0); - - model = sw_r32(RTL838X_MODEL_NAME_INFO); - pr_info("RTL838X model is %x\n", model); - model = model >> 16 & 0xFFFF; - - if ((model != 0x8328) && (model != 0x8330) && (model != 0x8332) - && (model != 0x8380) && (model != 0x8382)) { - model = sw_r32(RTL839X_MODEL_NAME_INFO); - pr_info("RTL839X model is %x\n", model); - model = model >> 16 & 0xFFFF; - } - - if ((model & 0x8390) != 0x8380 && (model & 0x8390) != 0x8390) { - model = sw_r32(RTL93XX_MODEL_NAME_INFO); - pr_info("RTL93XX model is %x\n", model); - model = model >> 16 & 0xFFFF; - } - - soc_info.id = model; - - switch (model) { - case 0x8328: - soc_info.name = "RTL8328"; - soc_info.family = RTL8328_FAMILY_ID; - break; - case 0x8332: - soc_info.name = "RTL8332"; - soc_info.family = RTL8380_FAMILY_ID; - break; - case 0x8380: - soc_info.name = "RTL8380"; - soc_info.family = RTL8380_FAMILY_ID; - break; - case 0x8382: - soc_info.name = "RTL8382"; - soc_info.family = RTL8380_FAMILY_ID; - break; - case 0x8390: - soc_info.name = "RTL8390"; - soc_info.family = RTL8390_FAMILY_ID; - break; - case 0x8391: - soc_info.name = "RTL8391"; - soc_info.family = RTL8390_FAMILY_ID; - break; - case 0x8392: - soc_info.name = "RTL8392"; - soc_info.family = RTL8390_FAMILY_ID; - break; - case 0x8393: - soc_info.name = "RTL8393"; - soc_info.family = RTL8390_FAMILY_ID; - break; - case 0x9301: - soc_info.name = "RTL9301"; - soc_info.family = RTL9300_FAMILY_ID; - break; - case 0x9302: - identify_rtl9302(); - soc_info.family = RTL9300_FAMILY_ID; - break; - case 0x9313: - soc_info.name = "RTL9313"; - soc_info.family = RTL9310_FAMILY_ID; - break; - default: - soc_info.name = "DEFAULT"; - soc_info.family = 0; - } - - pr_info("SoC Type: %s\n", get_system_type()); - - prom_init_cmdline(); -} diff --git a/target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c b/target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c deleted file mode 100644 index eed24ef50f59..000000000000 --- a/target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c +++ /dev/null @@ -1,76 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-only -/* - * Setup for the Realtek RTL838X SoC: - * Memory, Timer and Serial - * - * Copyright (C) 2020 B. Koblitz - * based on the original BSP by - * Copyright (C) 2006-2012 Tony Wu (tonywu@realtek.com) - * - */ - -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include - -#include "asm/mach-rtl838x/mach-rtl83xx.h" - -extern struct rtl83xx_soc_info soc_info; - -void __init plat_mem_setup(void) -{ - void *dtb; - - set_io_port_base(KSEG1); - - if (fw_passed_dtb) /* UHI interface */ - dtb = (void *)fw_passed_dtb; - else if (__dtb_start != __dtb_end) - dtb = (void *)__dtb_start; - else - panic("no dtb found"); - - /* - * Load the devicetree. This causes the chosen node to be - * parsed resulting in our memory appearing - */ - __dt_setup_arch(dtb); -} - -void __init plat_time_init(void) -{ - struct device_node *np; - u32 freq = 500000000; - - of_clk_init(NULL); - timer_probe(); - - np = of_find_node_by_name(NULL, "cpus"); - if (!np) { - pr_err("Missing 'cpus' DT node, using default frequency."); - } else { - if (of_property_read_u32(np, "frequency", &freq) < 0) - pr_err("No 'frequency' property in DT, using default."); - else - pr_info("CPU frequency from device tree: %dMHz", freq / 1000000); - of_node_put(np); - } - - mips_hpt_frequency = freq / 2; -} - -void __init arch_init_irq(void) -{ - irqchip_init(); -} diff --git a/target/linux/realtek/patches-5.10/300-mips-add-rtl838x-platform.patch b/target/linux/realtek/patches-5.10/300-mips-add-rtl838x-platform.patch deleted file mode 100644 index 291636ce7bad..000000000000 --- a/target/linux/realtek/patches-5.10/300-mips-add-rtl838x-platform.patch +++ /dev/null @@ -1,39 +0,0 @@ ---- a/arch/mips/Kbuild.platforms -+++ b/arch/mips/Kbuild.platforms -@@ -23,6 +23,7 @@ platform-$(CONFIG_PIC32MZDA) += pic32/ - platform-$(CONFIG_MACH_PISTACHIO) += pistachio/ - platform-$(CONFIG_RALINK) += ralink/ - platform-$(CONFIG_MIKROTIK_RB532) += rb532/ -+platform-$(CONFIG_RTL838X) += rtl838x/ - platform-$(CONFIG_SGI_IP22) += sgi-ip22/ - platform-$(CONFIG_SGI_IP27) += sgi-ip27/ - platform-$(CONFIG_SGI_IP28) += sgi-ip22/ ---- a/arch/mips/Kconfig -+++ b/arch/mips/Kconfig -@@ -632,6 +632,26 @@ config RALINK - select ARCH_HAS_RESET_CONTROLLER - select RESET_CONTROLLER - -+config RTL838X -+ bool "Realtek based platforms" -+ 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_HAS_EARLY_PRINTK -+ select SYS_HAS_EARLY_PRINTK_8250 -+ select USE_GENERIC_EARLY_PRINTK_8250 -+ select BOOT_RAW -+ select PINCTRL -+ select ARCH_HAS_RESET_CONTROLLER -+ select RESET_CONTROLLER -+ select USE_OF -+ - config SGI_IP22 - bool "SGI IP22 (Indy/Indigo2)" - select ARC_MEMORY From patchwork Sun Dec 12 20:01:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sander Vanheule X-Patchwork-Id: 1567041 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=H+gKK4i8; 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=Wy/0QJCg; 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 4JBwmt3CGGz9ssD for ; Mon, 13 Dec 2021 07:13:02 +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=uebQF7A915SKvrAvU1kv2XbbidFKLELcw7g4jtfulEw=; b=H+gKK4i8sM9SFN yxxCkdDmAaOtR8kCZckQgDmWZ6E/HVcAqKxVc0NrzOsVvbAYi803qoLThMobLY2Df5DBIES6xVbHe FBujhZZb1XlZMOZbHy0Q5/04VwYPhTnv5dKMUQ6iwvbTAbQhdmAu8Ony09EMDFn8p6+9zxKBTM680 MqJXYonwKgIutCV+Mt1E7b2KB8K0RJF73UPO+otGlWQSLVDgYXG/h9CpZTa/5P+4T2DSDiIy9bYCf 2qpu8+jiDUVa6MjYJliDDA09Zqv+lqv7PIfYzJiUrptCOnrO1F9c89LxGdbA6vGhkQZmdnI54WqO6 8ql6fsPfv+al37Posrhw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwVBf-0079mN-7x; Sun, 12 Dec 2021 20:11:12 +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 1mwV31-0076t5-ER for openwrt-devel@lists.openwrt.org; Sun, 12 Dec 2021 20:02:17 +0000 Received: from terra.local.svanheule.net (unknown [IPv6:2a02:a03f:eafe:c901:9d78:c664:81ab:1c5b]) (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 0B827280114; Sun, 12 Dec 2021 21:02:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1639339330; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jbqQD2ut3r5FtwjmLRbZaWSlRi8i93ftzha1wa80O3o=; b=Wy/0QJCgZa4xh48SqztRDk8We3rmxzgnhQl4njlkbROVSk92OaXoeVP1jN5E7AwrAYsFhM gz35tPGhxLV3DX6xW0Xh+7FGTLELxJYA1knMy5iRDNPthHd4jmV9rRbk34EM6ExJMxN7tB Q6ZbiJ3EErlZJdEViA30Vwas8+qG0q1AYkCu+CL+iYlUwGBdvOA5sVS2qwnSiaI2Qijkb/ j+AZ8nvlBbJBzDLiajCa2Zd0zLGERgA2XuLPEAQ+4hZjPx/7atLHDU6C44mnbuAG+PdUri 5A9oL5+riiTBJhrzzU69/+WRwDvS1GOtrlZ3pNhNG/YkqY476QW8e7iOelIXmA== From: Sander Vanheule To: openwrt-devel@lists.openwrt.org Cc: INAGAKI Hiroshi , Birger Koblitz , John Crispin , Sebastian Gottschall , =?utf-8?q?Bj=C3=B8rn_Mork?= , Sander Vanheule Subject: [PATCH v2 13/14] realtek: modernise devicetree console setup Date: Sun, 12 Dec 2021 21:01:35 +0100 Message-Id: X-Mailer: git-send-email 2.33.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211212_120215_671030_93B09A73 X-CRM114-Status: UNSURE ( 7.43 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.5 (--) X-Spam-Report: =?unknown-8bit?q?Spam_detection_software=2C_running_on_the_sy?= =?unknown-8bit?q?stem_=22bombadil=2Einfradead=2Eorg=22=2C?= =?unknown-8bit?q?_has_NOT_identified_this_incoming_email_as_spam=2E__The_ori?= =?unknown-8bit?q?ginal?= =?unknown-8bit?q?_message_has_been_attached_to_this_so_you_can_view_it_or_la?= =?unknown-8bit?q?bel?= =?unknown-8bit?q?_similar_future_email=2E__If_you_have_any_questions=2C_see?= =?unknown-8bit?q?_the_administrator_of_that_system_for_details=2E?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_preview=3A__Instead_of_providing_a_console=3D_boot?= =?unknown-8bit?q?arg=2C_provide_the_stdout-path?= =?unknown-8bit?q?_property=2E_Complement_this_with_adding_the_earlycon_boota?= =?unknown-8bit?q?rg=2C_so_early_console?= =?unknown-8bit?q?_output_is_available=2E_Co-developed-by=3A_INAGAKI_Hiroshi_?= =?unknown-8bit?q?=3Cmusashino=2Eopen=40gmail=2Ecom=3E?= =?unknown-8bit?q?_Signed-off-by=3A_INAGAKI_Hiroshi_=3Cmusashino=2Eopen=40gma?= =?unknown-8bit?q?il=2Ecom=3E_Signed-off-by=3A?= =?unknown-8bit?b?IFNhbmRlciBWYW5oZXVsZSA8c2FuZGVyQHN2YW5oZXVsZS5uZXQ+IFRl?= =?unknown-8bit?b?c3RlZC1ieTogQmrDuHJuIE1vcmsgPGJqb3IgWy4uLl0g?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_analysis_details=3A___=28-2=2E5_points=2C_5=2E0_re?= =?unknown-8bit?q?quired=29?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_pts_rule_name______________description?= =?unknown-8bit?q?_----_----------------------_------------------------------?= =?unknown-8bit?q?--------------------?= =?unknown-8bit?q?_-2=2E3_RCVD=5FIN=5FDNSWL=5FMED______RBL=3A_Sender_listed_a?= =?unknown-8bit?q?t_https=3A//www=2Ednswl=2Eorg/=2C?= =?unknown-8bit?q?_medium_trust?= =?unknown-8bit?q?_=5B84=2E16=2E241=2E116_listed_in_list=2Ednswl=2Eorg=5D?= =?unknown-8bit?q?_-0=2E0_SPF=5FPASS_______________SPF=3A_sender_matches_SPF_?= =?unknown-8bit?q?record?= =?unknown-8bit?q?_-0=2E0_SPF=5FHELO=5FPASS__________SPF=3A_HELO_matches_SPF_?= =?unknown-8bit?q?record?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID=5FAU__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from?= =?unknown-8bit?q?_author=27s_domain?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID_____________Message_has_at_least_one_v?= =?unknown-8bit?q?alid_DKIM_or_DK_signature?= =?unknown-8bit?q?_0=2E1_DKIM=5FSIGNED____________Message_has_a_DKIM_or_DK_si?= =?unknown-8bit?q?gnature=2C_not_necessarily?= =?unknown-8bit?q?_valid?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID=5FEF__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from?= =?unknown-8bit?q?_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 Instead of providing a console= bootarg, provide the stdout-path property. Complement this with adding the earlycon bootarg, so early console output is available. Co-developed-by: INAGAKI Hiroshi Signed-off-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule Tested-by: Bjørn Mork --- target/linux/realtek/dts-5.10/rtl838x.dtsi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/target/linux/realtek/dts-5.10/rtl838x.dtsi b/target/linux/realtek/dts-5.10/rtl838x.dtsi index 835fc4a8f8c3..f7b497978ae8 100644 --- a/target/linux/realtek/dts-5.10/rtl838x.dtsi +++ b/target/linux/realtek/dts-5.10/rtl838x.dtsi @@ -65,8 +65,13 @@ }; }; + aliases { + serial0 = &uart0; + }; + chosen { - bootargs = "console=ttyS0,115200"; + stdout-path = "serial0:115200n8"; + bootargs = "earlycon"; }; cpu_clk: cpu_clk { From patchwork Sun Dec 12 20:01:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sander Vanheule X-Patchwork-Id: 1567042 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=4s3YTEP5; 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=WqzCANAj; 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 4JBwpn34c2z9s3q for ; Mon, 13 Dec 2021 07:14:41 +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=0wkdAE4+ImWIBsYr+LyohoJAq/atfO6u/U3V0fusJEs=; b=4s3YTEP57dukQw NSqaSdxBMpVnjfXgqlpd0bDrPd7sAIaOR8XXrLDGEODfwP6tFIyc7w3qqp629Yo52lKvbMHs3bHq9 qDNF+58D6VxciFKaEvCJiZTWLHnwSZm3RzxiirOq+IHYmcqo6WVSGEoocjZMe3eloK1Lta3Km2CEW VUu+uqavKGQPqj8+Siu+/ohwhhhIkzd5MESN+Bq0Tf0pkgBULHlxuGCsSCPPU49M8qRIKqkjtTAtS 78GSCkdy0vSRE1cBniux2bDSvR+JrEvto17uxBilEm1MNM7ASCR1GACyi6J8gHqdrm9Cxdn3InLV1 M0lxPHeG9rgyy8HgU9NQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwVDD-007AA6-CR; Sun, 12 Dec 2021 20:12:48 +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 1mwV31-0076t6-OF for openwrt-devel@lists.openwrt.org; Sun, 12 Dec 2021 20:02:17 +0000 Received: from terra.local.svanheule.net (unknown [IPv6:2a02:a03f:eafe:c901:9d78:c664:81ab:1c5b]) (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 962AA280115; Sun, 12 Dec 2021 21:02:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1639339330; 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=oQhHIfZtenlJTQ2aFde/Jjq3rAzHd7zYtOoPqGMn3nk=; b=WqzCANAjTI6kkAPq3D8sFJRI0ik4CT0qqXcWCpGUdoxRZQkSFvvxhMfCCYu6+scbL3Euc0 mjAnFYXsi4Y4UiTMo8tUpo2xmiitpX5qXTNGo7EiRY0N0lHfpd9dDIXSSlnm5L01DQDuag tPwOCtu8JXt1+9HtURmerO8sluXo18lrE7FFfNmNhd39RGhioF2sxYZ6hOJGwBZA9fvQg+ 0Hqj+Ank2/54oZMJZ5pErZHOOIrHTHaX4BhSrSDQK0w9zfQNczihskYPZMMAd9F7wRNP6G 29BIkqN8AKq47f+gGlxmG1lK4m8Pcf8IytHP/LSxgiSXluKgUMHpUYQcu80lXw== From: Sander Vanheule To: openwrt-devel@lists.openwrt.org Cc: INAGAKI Hiroshi , Birger Koblitz , John Crispin , Sebastian Gottschall , =?utf-8?q?Bj=C3=B8rn_Mork?= , Sander Vanheule Subject: [PATCH v2 14/14] realtek: initialise mulithreading on supported SoCs Date: Sun, 12 Dec 2021 21:01:36 +0100 Message-Id: X-Mailer: git-send-email 2.33.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211212_120215_991424_E1CD46DD X-CRM114-Status: GOOD ( 10.18 ) 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: In addition to CPS SMP setups, also try to initialise MT SMP setups with multiple VPEs per CPU core on MIPS_GENERIC. CMP SMP support is not provided as it is considered deprecated. This is required to [...] 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 In addition to CPS SMP setups, also try to initialise MT SMP setups with multiple VPEs per CPU core on MIPS_GENERIC. CMP SMP support is not provided as it is considered deprecated. This is required to enabled SMP on RTL839x and RTL930x devices. Additionally, rework the code by dropping the err variable and make it similar to how other platforms perform this initialisation. Co-developed-by: INAGAKI Hiroshi Signed-off-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule --- ...S-generic-enable-SMP-on-SMVP-systems.patch | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 target/linux/realtek/patches-5.10/310-MIPS-generic-enable-SMP-on-SMVP-systems.patch diff --git a/target/linux/realtek/patches-5.10/310-MIPS-generic-enable-SMP-on-SMVP-systems.patch b/target/linux/realtek/patches-5.10/310-MIPS-generic-enable-SMP-on-SMVP-systems.patch new file mode 100644 index 000000000000..f6363b2048e5 --- /dev/null +++ b/target/linux/realtek/patches-5.10/310-MIPS-generic-enable-SMP-on-SMVP-systems.patch @@ -0,0 +1,23 @@ +--- a/arch/mips/generic/init.c ++++ b/arch/mips/generic/init.c +@@ -111,14 +111,15 @@ void __init plat_mem_setup(void) + + void __init device_tree_init(void) + { +- int err; +- + unflatten_and_copy_device_tree(); + mips_cpc_probe(); + +- err = register_cps_smp_ops(); +- if (err) +- err = register_up_smp_ops(); ++ if (!register_cps_smp_ops()) ++ return; ++ if (!register_vsmp_smp_ops()) ++ return; ++ ++ register_up_smp_ops(); + } + + int __init apply_mips_fdt_fixups(void *fdt_out, size_t fdt_out_size,