From patchwork Sun Oct 30 18:30:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sander Vanheule X-Patchwork-Id: 1696846 X-Patchwork-Delegate: sander@svanheule.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: legolas.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=O+tyysYg; 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=hbnNRdnD; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4N0lN34cB2z23lV for ; Mon, 31 Oct 2022 05:35:47 +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=AyzLWFd5RBl0u8T+9qeoy8wN451LOkYfofGVMx+tbX0=; b=O+tyysYgMF1eOz Ic1DX5TIXem2qYwHPRNZ3pbmwDmFymBmILq8PU+uh19MAuH4T4XSYZd98YdAtJTXs5Fl1FFadkSPK +e0wXNcuVUHdzAXZv050uY/T+cxiPxcawwk0GuVG2EUjHgSrgx6wbBNuEhL5YRwAulfrYbIeN7hE3 AFvVjfWOeEzsgx2yYWJLlDBfFlQ0Ay+T5C6z7twcguw6Ax0qezC/D9rBFkSZM96C4+pYVZ/FcyPuq uRQHYiMVZ5jUzOK1FSgBem7wxEbNFaVj+W/lshuma8ZNsjXddTPyg4Jv9vVy3DVgBJxEfZzsRYe7/ Ye+4CokAYJWiy7s55cRg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1opD6q-001nWp-7J; Sun, 30 Oct 2022 18:32:36 +0000 Received: from polaris.svanheule.net ([84.16.241.116]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1opD5j-001n7V-54 for openwrt-devel@lists.openwrt.org; Sun, 30 Oct 2022 18:31:28 +0000 Received: from terra.. (unknown [IPv6:2a02:a03f:eaf9:8401:aa9f:5d01:1b2a:e3cd]) (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 AE2AA33BF25; Sun, 30 Oct 2022 19:31:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1667154677; 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=xdF73anHNtb/WfCv5pXZ11wCmN+2EE+BCo7YYSDVIZU=; b=hbnNRdnDQSeNEad4CCJmJFcsMGfLRaVANgXuSVavVIQAaYxw/R+bkqVytJqK+AMzqrj0wl +uf2EIiouttef1Iup5K8ZmwBRi2YfzToephEQUd3zK7C6jKbp0/kULfIosCW69JPN/ena0 Dwzny6tTvXoKsL/G7S9CQIG5IduOkGZQD7aSs5iZL3fusRXbH/pIbvBwmF/zMhp4HYXt4c JjnvnGm147FsJAxNrTLQKSgMm6XZzfJzHM4OTLYH68yqFALPVOIMmVeyy+MUBRHuBxNiKj Ic8+FnX7CjZvJVLdMSTjbdGpzsGxLafzEwP4Qi9aua/ietNTAkga8Uw6vcmgqg== From: Sander Vanheule To: openwrt-devel@lists.openwrt.org, Olliver Schinagl , Alexandru Gagniuc Cc: INAGAKI Hiroshi , Markus Stockhausen , Stijn Segers , Sander Vanheule Subject: [PATCH v3 06/13] realtek: rtl838x: replace pinctrl nodes Date: Sun, 30 Oct 2022 19:30:59 +0100 Message-Id: X-Mailer: git-send-email 2.38.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-20221030_113127_667281_837BAE8D X-CRM114-Status: UNSURE ( 7.74 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) 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: Replace the current "pinctrl-single" nodes by the new "realtek,maple-pinctrl" node. This allows users to specify pin groups and features without having to dig into SoC documentation. Signed-off-by: Sander Vanheule --- target/linux/realtek/dts-5.10/rtl838x.dtsi | 43 ++++++++ 1 file changed, 16 insertions(+), 27 deletions(-) Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -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 Replace the current "pinctrl-single" nodes by the new "realtek,maple-pinctrl" node. This allows users to specify pin groups and features without having to dig into SoC documentation. Signed-off-by: Sander Vanheule --- target/linux/realtek/dts-5.10/rtl838x.dtsi | 43 ++++++++-------------- 1 file changed, 16 insertions(+), 27 deletions(-) diff --git a/target/linux/realtek/dts-5.10/rtl838x.dtsi b/target/linux/realtek/dts-5.10/rtl838x.dtsi index 64e13e1ff37a..a953db7c328b 100644 --- a/target/linux/realtek/dts-5.10/rtl838x.dtsi +++ b/target/linux/realtek/dts-5.10/rtl838x.dtsi @@ -226,33 +226,22 @@ }; }; - pinmux: pinmux@1b001000 { - compatible = "pinctrl-single"; - reg = <0x1b001000 0x4>; - - pinctrl-single,bit-per-mux; - pinctrl-single,register-width = <32>; - pinctrl-single,function-mask = <0x1>; - #pinctrl-cells = <2>; - - enable_uart1: pinmux_enable_uart1 { - pinctrl-single,bits = <0x0 0x10 0x10>; - }; - }; - - /* LED_GLB_CTRL */ - pinmux_led: pinmux@1b00a000 { - compatible = "pinctrl-single"; - reg = <0x1b00a000 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 0x8000>; + switchcore: switchcore-bus@1b000000 { + compatible = "realtek,maple-switchcore", "syscon"; + reg = <0x1b000000 0x10000>; + + pinctrl { + compatible = "realtek,maple-pinctrl"; + + pinmux_disable_sys_led: pinmux-sys-led-gpio { + groups = "sys-led"; + function = "gpio"; + }; + + enable_uart1: pinmux-uart1 { + groups = "uart1"; + function = "uart1"; + }; }; };