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=1796310659; b=EesqFgpCx7fxsbxNiBQAOtHf6WF3by/jmCaEzG5hlPlrVW2fGo7cDTjsnq91c9NnJ9cg YhJZ6TA0wr9kqpGtOsO9UfdCIk1H9PnxwebqiKBkl902NNfronpRkbexQuWrtn+59PEvP Sd4Zo5HIQK69QOZDl6TirB5qaTUraSkvh+o7byS0ODzvBvAfUSe/j1RTyDB080UpBx2FE 3yFlr4dTZTer4T1Cx7g2qUO0fzoHChK/ijoH0sbTT6fkFUikvMpgwP/aiTJ+tTnzKTx0S 3tppNaf5yfKrlh4bkqa1NfkQXybeXfMRkUVb5K97R6Ilv0vfYzAblvx1qJh8dbCQ4OA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796310659; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=878/6Egfm6QU+o15Bn1u8e+aTDyKkm1CDtMXq3Z4Ris=; b=quA/s1JxkNSNh9+S4hLPKLmbyn7fjK7MrkZMYkYgYO8NKzyzJ52UvghBkrYteefMOlbp ntwcFaMEKeRyoXD9S38A7Rgt+wMDS3Ju3Xx8cdc0n5mlxT6bjVkIhRISxjSFWCKrfcUs5 nP8VjlZEBbQjI5F3X7JIGjXesMZMMSitzi3m3SVDOIE1y5h+J4D7myvAFrQE0I7BG/leO M7RIMjnigY9NXh8Wb0iXW3tSYeHU14xcYaQTUo9xcf5DGBXJ9vocE45Xa5yywmjXBRBH7 WU4VM5tFmy1/qv+nfn1bPW1Iua/Ggt7BSWnmBXpkjn1lcHdz433xnsWTA8/MCxjn/eA== 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=Xe16jt8z; 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 6C01C606A322 for ; Thu, 3 Dec 2026 15:10:59 +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=Xe16jt8z Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C3161F0089A; Thu, 3 Dec 2026 15:10:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796310658; bh=878/6Egfm6QU+o15Bn1u8e+aTDyKkm1CDtMXq3Z4Ris=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=Xe16jt8zd1D5fafm1IZuERQrzPdtkBSFq+Ngl2O5k2xOwXZfEY/oUHAxo0xVRmXmj RUT+BmZCOJhqeoADZmhsn8cxjq5e7XSMSv+pI9cgtapJnB7D6ZA8Wl8XfuoObu6vDh gvr3fr7e2Vgw6Ck1RgQpr2hrWnlnk4vBhLQU7MdbWv5TSS2+yhFd+EmZVxM+EAE0Se GDAq/6H3mXQ975x/QRIm2y6OmtTm3jIOgljAmN94y0UbSQnHmFtTcL7VTHYy0iXN1l mTz62dh84JonhEGckoTlJPdZqm39qQTi7nvDpLUHIC6Th6RiuiUu9TrRUF3qI0t+7J 539JKADfj5Asg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 1/2] dt-bindings: regulator: pca9450: add warm reset for i2c-reset pin Reply-To: sashiko-reviews@lists.linux.dev To: "Martin Kepplinger-Novakovic" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261203145051.489939-1-martin.kepplinger-novakovic@ginzinger.com> References: <20261203145051.489939-1-martin.kepplinger-novakovic@ginzinger.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 15:10:58 +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 2 potential issues to consider: - [Medium] dt-bindings: pca9450: nxp,i2c-warm-reset encodes reboot policy in DT - [Low] dt-bindings: pca9450: commit message misnames SWRST as i2c-reset pin -- commit 6e93067008e7e3d0a4d8aec9f49f40a9c494db06 Author: Martin Kepplinger-Novakovic dt-bindings: regulator: pca9450: add warm reset for i2c-reset pin This commit adds the nxp,i2c-warm-reset boolean property to the PCA9450 regulator Device Tree binding. > dt-bindings: regulator: pca9450: add warm reset for i2c-reset pin > > When resetting via i2c-reset pin, the pca9450 does a cold reset by default [Severity: Low] Does the PCA9450 have an i2c-reset pin? Unlike WDOG_B, I2C reset is a software reset command written to PCA9450_REG_SWRST in pca9450_i2c_restart_handler(), where software selects the command byte rather than the hardware defaulting to cold reset. The binding description similarly says "i2c-reset" rather than identifying the I2C SWRST software command. > diff --git a/Documentation/devicetree/bindings/regulator/nxp,pca9450-regu= lator.yaml b/Documentation/devicetree/bindings/regulator/nxp,pca9450-regula= tor.yaml > index ec04adfb9d1cb..e96c8873c1762 100644 > --- a/Documentation/devicetree/bindings/regulator/nxp,pca9450-regulator.y= aml > +++ b/Documentation/devicetree/bindings/regulator/nxp,pca9450-regulator.y= aml > @@ -133,6 +133,12 @@ properties: > description: > Indicates that the I2C Level Translator is used. > > + nxp,i2c-warm-reset: > + type: boolean > + description: > + On i2c-reset, a warm reset (Toggle POR_B) will be done instead of = cold > + reset. > + > nxp,wdog_b-warm-reset: > type: boolean > description: [Severity: Medium] Should nxp,i2c-warm-reset be a Device Tree property rather than using reboot_mode at runtime? Device Tree bindings describe hardware topology and board-level constraints, not software reboot policy, and adding this boolean creates a permanent DT ABI for a software preference. Unlike WDOG_B, a hardware pin whose response must be pre-configured in PCA9450_REG_RESET_CTRL, I2C reset is triggered by software in pca9450_i2c_restart_handler(). That SYS_OFF_MODE_RESTART handler already receives data->mode (REBOOT_WARM vs REBOOT_COLD). Other PMIC drivers such as tps65219_restart() in drivers/mfd/tps65219.c select warm or cold I2C reset directly from data->mode =3D=3D REBOOT_WARM without adding a vendor DT property. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203145051.4899= 39-1-martin.kepplinger-novakovic@ginzinger.com?part=3D1