From nobody Thu Oct 9 08:13:40 2025 Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [202.36.163.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 622F418D643 for ; Thu, 19 Jun 2025 01:08:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.36.163.20 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750295283; cv=none; b=EKM/uKl84kOfnu+7GahuOhyPrSfEAy0yTSH9sKSMtnY3KS7nV/smG3vgGtUCUKs1NiR41z1I0fj4gSMzNIbcUj7gwrpegHnibJWYMas+JVSzwolurM0CB8cjIqVz3F22jL7GeXqZSjX8WtRSCfgxaoTu/nfIN99jLznLCyebzXE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750295283; c=relaxed/simple; bh=ibaKhB5YmmT3G3ZHP3hQ+kQQqz/x9EUHJ4qbPd5cYu8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=b40dakB1PosFjEKnGlTGnIx8IPlsF4/+rEBZh0aP29SZPWnfIlj5jt9+4wSf9Pay984h0p8gKAJiHaOSwhJ8HRrM1uSS3mp1Xva9hjJFIR7kakX3AhoQ5SVghKvWhE18R+LNcmN1xk3B19tkrOtbn5hTV+xSEIpXLuan39gfcQg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz; spf=pass smtp.mailfrom=alliedtelesis.co.nz; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b=CjARtoS8; arc=none smtp.client-ip=202.36.163.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alliedtelesis.co.nz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b="CjARtoS8" Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (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) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 3A94E2C08A8; Thu, 19 Jun 2025 13:07:58 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1750295278; bh=n9KSnwt/xG0Ye97lEmULVi96VTWD0tUurSJYArV76TA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CjARtoS8h68LoYOlBOVeiEiPGtjLkOjGdruNoHh6YaRcq+4j+qWjXGEAcdzAsN/5e KoxwlcLWoguMJcGw2Lh8/RF0qMQ6O+GSfKeTR7Z980AtY2PKju8RnlXlgLay/Y1GrB gAZSeDORgKHAZEE6v0Q2ThS7EhGsqgPPWnqh67F2WtfPaEEuHca8m4N+ccj+QWwfyo tPkguZpsWztfFTzvTtB86PLvHhS/IhXlCy/qE/u53APfe+G6LVwXGA7U7oM1Vfzqts 7jdjl9jl704oysFoiX9f76K/RYGOrlH4Ej8hOL6q7VCQAE0OtwuY3xXtJyInRist79 YvVULIJOU2qDg== Received: from pat.atlnz.lc (Not Verified[10.32.16.33]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id ; Thu, 19 Jun 2025 13:07:58 +1200 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by pat.atlnz.lc (Postfix) with ESMTP id 032E713EE52; Thu, 19 Jun 2025 13:07:58 +1200 (NZST) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 02670280758; Thu, 19 Jun 2025 13:07:58 +1200 (NZST) From: Chris Packham To: tsbogend@alpha.franken.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, sander@svanheule.net, markus.stockhausen@gmx.de Cc: linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Packham Subject: [PATCH 1/4] mips: dts: cameo-rtl9302c: Add switch block Date: Thu, 19 Jun 2025 13:07:51 +1200 Message-ID: <20250619010754.3760612-2-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250619010754.3760612-1-chris.packham@alliedtelesis.co.nz> References: <20250619010754.3760612-1-chris.packham@alliedtelesis.co.nz> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-SEG-SpamProfiler-Analysis: v=2.4 cv=F7/0dbhN c=1 sm=1 tr=0 ts=685362ee a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=6IFa9wvqVegA:10 a=VwQbUJbxAAAA:8 a=rmSqGifbc3GDBumfcZAA:9 a=3ZKOabzyN94A:10 a=vHt_3_20o5QrCHLhktil:22 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat Content-Type: text/plain; charset="utf-8" Add the switch port and phys to the cameo-rtl9302c-2x-rtl8224-2xge board. Signed-off-by: Chris Packham --- Notes: This was originally part of the series adding the MDIO driver[1] however the mips specific part wasn't picked up for net-next so I've rolled it into this series of changes for linux-mips. =20 This is needed to comply with the updated bindings. It could possibly be split to add the ports then the PHYs. Technically the ports are the required property that dtbs_check will complain about but it didn't seem worth separating out the PHYs. =20 [1] - https://lore.kernel.org/all/20250204030249.1965444-7-chris.packha= m@alliedtelesis.co.nz/ .../cameo-rtl9302c-2x-rtl8224-2xge.dts | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) diff --git a/arch/mips/boot/dts/realtek/cameo-rtl9302c-2x-rtl8224-2xge.dts = b/arch/mips/boot/dts/realtek/cameo-rtl9302c-2x-rtl8224-2xge.dts index 6789bf374044..6f6a05d4088e 100644 --- a/arch/mips/boot/dts/realtek/cameo-rtl9302c-2x-rtl8224-2xge.dts +++ b/arch/mips/boot/dts/realtek/cameo-rtl9302c-2x-rtl8224-2xge.dts @@ -71,3 +71,99 @@ partition@1180000 { }; }; }; + +&mdio0 { + /* External RTL8224 */ + phy0: ethernet-phy@0 { + reg =3D <0>; + compatible =3D "ethernet-phy-ieee802.3-c45"; + }; + phy1: ethernet-phy@1 { + reg =3D <1>; + compatible =3D "ethernet-phy-ieee802.3-c45"; + }; + phy2: ethernet-phy@2 { + reg =3D <2>; + compatible =3D "ethernet-phy-ieee802.3-c45"; + }; + phy3: ethernet-phy@3 { + reg =3D <3>; + compatible =3D "ethernet-phy-ieee802.3-c45"; + }; +}; + +&mdio1 { + /* External RTL8224 */ + phy4: ethernet-phy@0 { + reg =3D <0>; + compatible =3D "ethernet-phy-ieee802.3-c45"; + }; + phy5: ethernet-phy@1 { + reg =3D <1>; + compatible =3D "ethernet-phy-ieee802.3-c45"; + }; + phy6: ethernet-phy@2 { + reg =3D <2>; + compatible =3D "ethernet-phy-ieee802.3-c45"; + }; + phy7: ethernet-phy@3 { + reg =3D <3>; + compatible =3D "ethernet-phy-ieee802.3-c45"; + }; +}; + +&switch0 { + ethernet-ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + phy-handle =3D <&phy0>; + phy-mode =3D "usxgmii"; + }; + port@1 { + reg =3D <1>; + phy-handle =3D <&phy1>; + phy-mode =3D "usxgmii"; + }; + port@2 { + reg =3D <2>; + phy-handle =3D <&phy2>; + phy-mode =3D "usxgmii"; + }; + port@3 { + reg =3D <3>; + phy-handle =3D <&phy3>; + phy-mode =3D "usxgmii"; + }; + port@16 { + reg =3D <16>; + phy-handle =3D <&phy4>; + phy-mode =3D "usxgmii"; + }; + port@17 { + reg =3D <17>; + phy-handle =3D <&phy5>; + phy-mode =3D "usxgmii"; + }; + port@18 { + reg =3D <18>; + phy-handle =3D <&phy6>; + phy-mode =3D "usxgmii"; + }; + port@19 { + reg =3D <19>; + phy-handle =3D <&phy7>; + phy-mode =3D "usxgmii"; + }; + port@24{ + reg =3D <24>; + phy-mode =3D "10gbase-r"; + }; + port@25{ + reg =3D <25>; + phy-mode =3D "10gbase-r"; + }; + }; +}; --=20 2.49.0 From nobody Thu Oct 9 08:13:40 2025 Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [202.36.163.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 674D518E02A for ; Thu, 19 Jun 2025 01:08:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.36.163.20 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750295283; cv=none; b=RL3Vquwz12CXQWxA7WepOIiY7oH34tQdyNXHxZY60OheSAUYx5HsA5Iz11FQQpB8r+7BhvVICSCVTArQUSgZn0jh3eHZFAA5KFD4t3TA5NAni6we4JB9guAoIKKiYF2sxBwvN0CdjaQ4WyafgT27favdRQYlMm8Ar2BRHLe170k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750295283; c=relaxed/simple; bh=LAm8O2wRtElHNPndyisEHT2qEXlshWQSVK//qjeQ3Lk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Fd0EqcOJ88bnDuARp7urp2FZMgUgJffPkz4aM7mxves0aBnpiao3QvUkVTDv8y3SGsrCxFQCB0QM99Hl/vGxKpXha9l+OQU5Ack832CaiGijppAINzid/93g+Kn7OJ7fhQkdGUGMmWShACK+yRTtMLVsK9aNYkMCJYhAd+7gWxE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz; spf=pass smtp.mailfrom=alliedtelesis.co.nz; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b=j6iOGmh8; arc=none smtp.client-ip=202.36.163.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alliedtelesis.co.nz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b="j6iOGmh8" Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (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) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 26CC22C03E7; Thu, 19 Jun 2025 13:07:58 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1750295278; bh=um08sUCuz3DfYUzBjfkr36tnudyLBNksIEwQMDoLsTI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j6iOGmh8/6cAspaaiW/BFRw33cGM5cO/ph/9fICg4ehr/T2LkuCEg2OTTyPJcwMOe 2XM1LSAZ6lN6alTi2nHTFpSH3uPSvqtlxhED2ybGGT0KBKhcEGxM0V82VostzhMyPC 69CQMzbaSYsWuF3qRDtrW1ttC6MK0GW+MZJLm3dCmaQYwbh37Nlnav5FGu4SCyeAsR vQPcKrCSj3zYkvebsIIOJPzRme4kZ7A1c3Bwb2FFLc2O2VrAt0043oIMx4SidxGn1a i/01nysR2Kk2aLkhkNBInAssOrN2v+SCpRnl50XH/mVEKvfmRfiMRSlr071ao+EV16 tEVcl96A6ejmg== Received: from pat.atlnz.lc (Not Verified[10.32.16.33]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id ; Thu, 19 Jun 2025 13:07:58 +1200 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by pat.atlnz.lc (Postfix) with ESMTP id 05B3E13EE56; Thu, 19 Jun 2025 13:07:58 +1200 (NZST) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 05E4C280993; Thu, 19 Jun 2025 13:07:58 +1200 (NZST) From: Chris Packham To: tsbogend@alpha.franken.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, sander@svanheule.net, markus.stockhausen@gmx.de Cc: linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Packham Subject: [PATCH 2/4] mips: dts: realtek: Add switch interrupts Date: Thu, 19 Jun 2025 13:07:52 +1200 Message-ID: <20250619010754.3760612-3-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250619010754.3760612-1-chris.packham@alliedtelesis.co.nz> References: <20250619010754.3760612-1-chris.packham@alliedtelesis.co.nz> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-SEG-SpamProfiler-Analysis: v=2.4 cv=F7/0dbhN c=1 sm=1 tr=0 ts=685362ee a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=6IFa9wvqVegA:10 a=-PkYcgLZfBtAEEs5c10A:9 a=3ZKOabzyN94A:10 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat Content-Type: text/plain; charset="utf-8" Add interrupts for the rtl9301-switch. Signed-off-by: Chris Packham --- arch/mips/boot/dts/realtek/rtl930x.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/mips/boot/dts/realtek/rtl930x.dtsi b/arch/mips/boot/dts/r= ealtek/rtl930x.dtsi index 101bab72a95f..74b30704f188 100644 --- a/arch/mips/boot/dts/realtek/rtl930x.dtsi +++ b/arch/mips/boot/dts/realtek/rtl930x.dtsi @@ -48,6 +48,10 @@ switch0: switch@1b000000 { #address-cells =3D <1>; #size-cells =3D <1>; =20 + interrupt-parent =3D <&intc>; + interrupts =3D <23>, <24>; + interrupt-names =3D "switch", "nic"; + reboot@c { compatible =3D "syscon-reboot"; reg =3D <0x0c 0x4>; --=20 2.49.0 From nobody Thu Oct 9 08:13:40 2025 Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [202.36.163.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6217A189905 for ; Thu, 19 Jun 2025 01:08:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.36.163.20 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750295285; cv=none; b=pE2JRCaph8Pzpc+pn0lIJ/deKmK059k4T+8YBM7orgkeGH3//Kh3DuHD+0zXZo6gkWn0fx/PFYVKGn2hcZzVTKiBOMbLOnwZVN4nWGahhN3PGBqqiUm1RV/We6hF1CtGfHIDwWfe7Ioix82y9E89Ol8K5jpApG+KywYiWpZFius= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750295285; c=relaxed/simple; bh=MS18sacHJm5wYe0QMq5lKc+9jJ/K81eew7q6JBynOZY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CuSn4ZGDo9FbeKqvdShmky7Re/VXsy5RBOM7Susp+u1n8dPReFibxlb+0waM49M6UNMiWdAg+PCI8uBXlyIwUESfOMZ1M0oZn/iWpdqsgYwn9y+dd6Lv56oEXBvpXQcObsgozn0EnGi6SbM6wxM/IsWNz2kGdB63gAq9ITtLxEw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz; spf=pass smtp.mailfrom=alliedtelesis.co.nz; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b=EN3P+erg; arc=none smtp.client-ip=202.36.163.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alliedtelesis.co.nz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b="EN3P+erg" Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (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) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 664462C0BB5; Thu, 19 Jun 2025 13:07:58 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1750295278; bh=6JmV8eEF9av+Sa6e/9Qv4UqSWGZRPCdM5w+0Gsi52gc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EN3P+ergFsI37bvkitnLnCGP9tFjJWIFKulpyzrfz37csqluptZ4Z6rEZHy5m7BdG 5iJ6lX1NxMS/ZpShPKsJ5/lWm71sG+MPPj6pS0Hmyo5iN5/jyCtFF9ZUaUGU1T1gm7 pPORypf55S+glvjtADyZREdQx7UNPbbg7mC9a6Ya7Scst6AF3L46fUp/vZqkFH7Ixz qQy+0QmgLW1yU1ohhdy/KC+ytXCFMlG9LKQX56XAQEYDiDeol/nKCCaEWCUANnPX5n b6wKlk9xZOv5EUhMWSrTJDP7iA9IGzxOtZjtl8duedC2jcvujCT33W2l/a2V2YeW+/ mDEgJPx95j/hw== Received: from pat.atlnz.lc (Not Verified[10.32.16.33]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id ; Thu, 19 Jun 2025 13:07:58 +1200 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by pat.atlnz.lc (Postfix) with ESMTP id 088C513EE9C; Thu, 19 Jun 2025 13:07:58 +1200 (NZST) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 08F6B280993; Thu, 19 Jun 2025 13:07:58 +1200 (NZST) From: Chris Packham To: tsbogend@alpha.franken.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, sander@svanheule.net, markus.stockhausen@gmx.de Cc: linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Packham Subject: [PATCH 3/4] mips: dts: realtek: Add watchdog Date: Thu, 19 Jun 2025 13:07:53 +1200 Message-ID: <20250619010754.3760612-4-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250619010754.3760612-1-chris.packham@alliedtelesis.co.nz> References: <20250619010754.3760612-1-chris.packham@alliedtelesis.co.nz> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-SEG-SpamProfiler-Analysis: v=2.4 cv=F7/0dbhN c=1 sm=1 tr=0 ts=685362ee a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=6IFa9wvqVegA:10 a=jdP34snFAAAA:8 a=Wqc9ATr8DmnQzDzGyroA:9 a=3ZKOabzyN94A:10 a=od6X62Lo79dmAcA2EqDc:22 a=jlphF6vWLdwq7oh3TaWq:22 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat Content-Type: text/plain; charset="utf-8" The RTL9300 has an integrated watchdog. Add this to the devicetree. This is taken from openwrt[1] the only difference is removing the unnecessary second cell from the interrupts. [1] - https://git.openwrt.org/?p=3Dopenwrt/openwrt.git;a=3Dblob;f=3Dtarget/= linux/realtek/dts/rtl930x.dtsi Signed-off-by: Chris Packham --- arch/mips/boot/dts/realtek/rtl930x.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/mips/boot/dts/realtek/rtl930x.dtsi b/arch/mips/boot/dts/r= ealtek/rtl930x.dtsi index 74b30704f188..77a854034aba 100644 --- a/arch/mips/boot/dts/realtek/rtl930x.dtsi +++ b/arch/mips/boot/dts/realtek/rtl930x.dtsi @@ -142,6 +142,20 @@ timer0: timer@3200 { clocks =3D <&lx_clk>; }; =20 + watchdog0: watchdog@3260 { + compatible =3D "realtek,rtl9300-wdt"; + reg =3D <0x3260 0xc>; + + realtek,reset-mode =3D "soc"; + + clocks =3D <&lx_clk>; + timeout-sec =3D <30>; + + interrupt-parent =3D <&intc>; + interrupt-names =3D "phase1", "phase2"; + interrupts =3D <5>, <6>; + }; + snand: spi@1a400 { compatible =3D "realtek,rtl9301-snand"; reg =3D <0x1a400 0x44>; --=20 2.49.0 From nobody Thu Oct 9 08:13:40 2025 Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [202.36.163.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 62101188596 for ; Thu, 19 Jun 2025 01:08:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.36.163.20 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750295283; cv=none; b=QynZcnIaEZbBncf0a/lsHbd4/kzzHxMYDwx0TM6Qt/4eu1mT+skuHaBT4nc7FvC0YSsFroSzrq3I2ce9fMCcjzLfbvoUGizvjdyTHCOYESvivxK0sV0Rdjk/BdYznuI3if0p2T1ulwP0jnuKRWZcd2b1UDyjwSGlex4I1b7+UIs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750295283; c=relaxed/simple; bh=XVB9thgNi1didXz5aWGiHjLjyRTPcEHJKWRSyNTp4fo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aHY4sojeyU4yx/hPerwiGALfpHtSjrJY67da+Vzc7rMOGl/GjNT0mpzXSrftBNTNjKWiTONZPuZ6YHG+3SYTaWkHzahuuYImMmNoXnt0e0qv5EekmroGgcI2EWfQXOdUwVloqRZiwr92MvLX+yMCoCPOZDQ+t/oV6Z1P9e+mKXU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz; spf=pass smtp.mailfrom=alliedtelesis.co.nz; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b=tLCLqUjU; arc=none smtp.client-ip=202.36.163.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alliedtelesis.co.nz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b="tLCLqUjU" Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (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) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 6F9B62C0BC6; Thu, 19 Jun 2025 13:07:58 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1750295278; bh=7UmSMxZInk7rBl0e8y0lvWe7dE2+hkbf4Sw2iH0CEmM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tLCLqUjUtkvjGJBnnBji7/Rz6W8XqEczkKobhBEp4ZcB35PeIvia+4PqwXmGQAODL tHDgdkbST8j2H3ZvPt3PvXiy2/tS2s3BFLBJtBvoZ6rn7KurSVXXtkdnWORMJH1J9d zUkgCxac5nizBvGvB2lVYw61RlFc8WrFHTVxs8iQ1fvD4vqnLHODcChzGE5McZSgH2 prwJplZylR8LlbmR3ZYRT4dcAc8hWMboHgDNaFfG9rcUW4zUs72r+LVr5qUhCKSeO3 h1WiagGJrdPtGsU2S3/ZcfOSwJyUKMNtS7zZWMQtgQMmMeb+pfNpoo/hCCcSXozmSF cLfYF/nV71+eQ== Received: from pat.atlnz.lc (Not Verified[10.32.16.33]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id ; Thu, 19 Jun 2025 13:07:58 +1200 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by pat.atlnz.lc (Postfix) with ESMTP id 0B30913EEA1; Thu, 19 Jun 2025 13:07:58 +1200 (NZST) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 0BD95280993; Thu, 19 Jun 2025 13:07:58 +1200 (NZST) From: Chris Packham To: tsbogend@alpha.franken.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, sander@svanheule.net, markus.stockhausen@gmx.de Cc: linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Packham Subject: [PATCH 4/4] mips: dts: realtek: Add gpio block Date: Thu, 19 Jun 2025 13:07:54 +1200 Message-ID: <20250619010754.3760612-5-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250619010754.3760612-1-chris.packham@alliedtelesis.co.nz> References: <20250619010754.3760612-1-chris.packham@alliedtelesis.co.nz> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-SEG-SpamProfiler-Analysis: v=2.4 cv=F7/0dbhN c=1 sm=1 tr=0 ts=685362ee a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=6IFa9wvqVegA:10 a=jdP34snFAAAA:8 a=GAZJBr5AWi_iGCRPYoMA:9 a=3ZKOabzyN94A:10 a=LeixItDrjNxFEfIwcpfa:22 a=jlphF6vWLdwq7oh3TaWq:22 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat Content-Type: text/plain; charset="utf-8" The RTL9300 has a block of GPIOs included in the SoC. Add these to the devicetree. This is taken from openwrt[1] the differences are removing the unnecessary second cell from the interrupt and removing the -controller from the node name to conform to the dtschema. [1] - https://git.openwrt.org/?p=3Dopenwrt/openwrt.git;a=3Dblob;f=3Dtarget/= linux/realtek/dts/rtl930x.dtsi Signed-off-by: Chris Packham --- arch/mips/boot/dts/realtek/rtl930x.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/mips/boot/dts/realtek/rtl930x.dtsi b/arch/mips/boot/dts/r= ealtek/rtl930x.dtsi index 77a854034aba..24e262e2dc2a 100644 --- a/arch/mips/boot/dts/realtek/rtl930x.dtsi +++ b/arch/mips/boot/dts/realtek/rtl930x.dtsi @@ -156,6 +156,19 @@ watchdog0: watchdog@3260 { interrupts =3D <5>, <6>; }; =20 + gpio0: gpio@3300 { + compatible =3D "realtek,rtl9300-gpio", "realtek,otto-gpio"; + reg =3D <0x3300 0x1c>, <0x3338 0x8>; + gpio-controller; + #gpio-cells =3D <2>; + ngpios =3D <24>; + + interrupt-controller; + #interrupt-cells =3D <2>; + interrupt-parent =3D <&intc>; + interrupts =3D <13>; + }; + snand: spi@1a400 { compatible =3D "realtek,rtl9301-snand"; reg =3D <0x1a400 0x44>; --=20 2.49.0