From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796398444; b=QtJmJCMQcQ6XPndQDEOEIumFC10UwG7V4OaJNWPe0ESkh4/9aRaNEGz9ffkHWv0LI8dX lqgnEUqFcs0VxyQOL0+FSDeTLrfNCC9psNgWlZ+cKnoX05J+JraOiL6yJ9BmJU/NETX7E WIBoWvcEnxD/f+UaE6JzVY3qMG58E+wznnaonDdM6/VHhierZgPqXpqjKxEwk72JJjcxQ /tKvpKdIy+hhaCRlc34ppxgazGkrpg1C+ObjOGxFDBd57HWnoqCYbsLClvsOODYql0yTE VyelIw+DTA9MCtMHOe/OWPBPuMZkZ9mk6pkNuO90uIsy8TmBp47pA0CxIRrKk83GZmQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796398444; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=Do2H3ygFJp8TmKIWNf5kub1rbBQheieDHffLKiNm5jg=; b=iw3DUONVcWktzwFwsJU8rz3PDGj4IpHtojv9nP3jrHa2dyVlzWZI7BUZquImuGb5dyNV suB35InoJhs+mTPFZDf9RJ5oaRaW6GVydB7ljZZ1kt2EgPvJp5LcVs2CJiemLDuX8GxCW rD8olnAN5m1/5xetJu19NGDb+Wf7ySUqU/ToyzlnMwuCy39EKXVk8S1cSr9LGtj9TORSl MLf4Q04Sud0b6WKB+JUxPH8gXipCxvfjaPz/TG4MtRBVAVG92f4/bUysgWNAByM0xFHhc 7il4RYF1Aa5/itDmgL+ONJvVhSc4qzafR7CQNdG2dNAXuSW+itEnOK57HXX9+jyepSg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Y8YWGvw4; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 341E6606A32C; Fri, 4 Dec 2026 15:34:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Y8YWGvw4 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C79CE1F000C2; Fri, 4 Dec 2026 15:34:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796398444; bh=Do2H3ygFJp8TmKIWNf5kub1rbBQheieDHffLKiNm5jg=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=Y8YWGvw4oQ3eia94LT0F5FDiBjB3cvXUg6OoIuma21IGFcnrdDOmozF9oy94TLNeY sisWIov7XyINe8lc6YmKeg+VGlAW7nbAxxaIYlWZc/8TlBKV5Sd+UKXUnjFv5ITI4+ EGEls9VRwdrS1JgIJBt6Gynb0hgkWC2ebBvrPjSPiYObiQS4gEwjbXfE2YSYhp4DUt knOjlMgJv0hivADA5ngnRXFsIiwJQSWZUnNaQ7yrLGc7E6PrR8uRB9ioFbEbApPtr1 BZL/HQlbewUfmdQl0Dkcz2XB8Bp4jomc/CM9abXV+uMHLYwG4jNUkYZLVyrE95Ij3f i6qCu8Cxg6zSw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [RFC PATCH 4/6] ARM: dts: broadcom: bcm47622: Add TWD, reboot, MDIO and SYSTEMPORT0 Reply-To: sashiko-reviews@lists.linux.dev To: "Wadim Mueller" Cc: devicetree@vger.kernel.org, mfd@lists.linux.dev, robh@kernel.org, conor+dt@kernel.org, lee@kernel.org In-Reply-To: <20261204151052.393800-5-wafgo01@gmail.com> References: <20261204151052.393800-1-wafgo01@gmail.com> <20261204151052.393800-5-wafgo01@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 15:34:03 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 3 potential issues to consider: - [Medium] ARM: dts: broadcom: syscon-reboot preempts PSCI SYSTEM_RESET on BCM47622 - [Low] ARM: dts: broadcom: reboot node uses deprecated regmap and mask-only binding - [Low] ARM: dts: broadcom: new MMIO nodes in bcm47622.dtsi are out of address order -- commit cc124c019bb2c11aee1d1029a52feed835ca0757 Author: Wadim Mueller ARM: dts: broadcom: bcm47622: Add TWD, reboot, MDIO and SYSTEMPORT0 This commit adds the timer/watchdog MFD node, a syscon-reboot node, the MDIO controller, and the first SYSTEMPORT ethernet controller to bcm47622.dtsi. > diff --git a/arch/arm/boot/dts/broadcom/bcm47622.dtsi b/arch/arm/boot/dts= /broadcom/bcm47622.dtsi > index 485863f9c4203..e1d20799b3da4 100644 > --- a/arch/arm/boot/dts/broadcom/bcm47622.dtsi > +++ b/arch/arm/boot/dts/broadcom/bcm47622.dtsi > @@ -152,6 +152,19 @@ nandcs: nand@0 { > }; > }; > =20 > + twd: timer-mfd@400 { > + compatible =3D "brcm,bcm47622-twd", "simple-mfd", "syscon"; > + reg =3D <0x400 0x100>; > + ranges =3D <0x0 0x400 0x100>; > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + > + watchdog@80 { > + compatible =3D "brcm,bcm6345-wdt"; > + reg =3D <0x80 0xc>; > + }; > + }; > + > uart0: serial@12000 { > compatible =3D "arm,pl011", "arm,primecell"; > reg =3D <0x12000 0x1000>; > @@ -161,4 +174,28 @@ uart0: serial@12000 { > status =3D "disabled"; > }; > }; > + > + reboot { > + compatible =3D "syscon-reboot"; > + regmap =3D <&twd>; > + offset =3D <0x8c>; > + mask =3D <0x1>; > + }; [Severity: Medium] Does this unconditionally enabled reboot node preempt PSCI reset on PSCI-booted boards like bcm947622.dts? bcm47622.dtsi declares a psci node, and psci_sys_reset_nb registers its restart handler at priority 129. Because this reboot node omits the priority property, syscon_reboot_probe() defaults it to 192, so syscon_restart_handle() runs before psci_sys_reset(). On PSCI systems this bypasses firmware reset coordination and writes directly to the TWD soft-reset register from Non-Secure mode, which skips ATF teardown and may fault or stall if secure firmware restricts access. Setting priority =3D <128> (or marking the node status =3D "disabled" in bcm47622.dtsi for non-PSCI boards to enable) would preserve PSCI reset precedence. [Severity: Low] Can this reboot node be moved under the twd node instead of using the deprecated regmap phandle? Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml marks regmap as deprecated in favor of placing syscon-reboot as a child of the syscon/simple-mfd parent (after allowing a reboot child in brcm,twd.yaml). Also, specifying mask =3D <0x1> without value triggers the legacy binding fallback in syscon_reboot_probe(), which sets mask to 0xFFFFFFFF and overwrites all 32 bits at offset 0x8c instead of only bit 0; adding value =3D <0x1> preserves the other bits in that register. > + > + sysport0: ethernet@80400000 { > + compatible =3D "brcm,bcm47622-systemport"; > + reg =3D <0x80400000 0x10000>; > + interrupts =3D , > + ; > + interrupt-names =3D "rx", "tx"; > + status =3D "disabled"; > + }; > + > + mdio: mdio@80411300 { > + compatible =3D "brcm,unimac-mdio"; > + reg =3D <0x80411300 0x10>; > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + status =3D "disabled"; > + }; > }; [Severity: Low] This isn't a bug, but the new unit-addressed nodes are out of ascending address order per Documentation/devicetree/bindings/dts-coding-style.rst. Inside bus@ff800000, twd: timer-mfd@400 sits after nand-controller@1800 instead of before spi@1000. At the root node, sysport0: ethernet@80400000 and mdio: mdio@80411300 are placed after bus@ff800000 instead of before axi@81000000. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204151052.3938= 00-1-wafgo01@gmail.com?part=3D4