From nobody Tue Dec 16 16:35:21 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2EBC5C4167B for ; Thu, 30 Nov 2023 17:43:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346591AbjK3RnC (ORCPT ); Thu, 30 Nov 2023 12:43:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231837AbjK3RnB (ORCPT ); Thu, 30 Nov 2023 12:43:01 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A36BD131 for ; Thu, 30 Nov 2023 09:43:07 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 315EAC433C8; Thu, 30 Nov 2023 17:43:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701366187; bh=glQ7vJRlyzl2+xsSW7kn8lsuhF+aXhOL0FI2Li/dzJk=; h=From:To:Cc:Subject:Date:From; b=BycyN/3CtipNGEFpKS82OrkkVPuTUAkQiUdpIRgj/4Gw3br5xOTlEU/iPVrraDfDu Qgx66TtMjgMK4XjfVS2HF4/15P8ix09cu1WftYFAy5Mf0IMvANYm4wCJUBWDu6qVUs 5znw/3ERkJOzV2U7EAgidCzyFzgKO5UnYXcrKlnrgIrrh7s+e/2GDbkIE1eX7ZFI1A ROYZE3QuYHRpDhhRErNp+EOCSx9tFui+NdNZlee2l43bk8vriTcqu2gEIiwV4xRNaT VytoRtXTEi4qLOjjUfO2CYWlK4BEVQKFcUsws5vWCY9+Swl55HYHSRdJl8WUwMS7/A FYASVBZAngr2Q== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1r8l4e-0003Qw-1m; Thu, 30 Nov 2023 18:43:40 +0100 From: Johan Hovold To: Guenter Roeck , Wim Van Sebroeck Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH] dt-bindings: watchdog: qcom,pm8916-wdt: add parent spmi node to example Date: Thu, 30 Nov 2023 18:42:54 +0100 Message-ID: <20231130174254.13180-1-johan+linaro@kernel.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The PM8916 watchdog is part of an SPMI PMIC, which lives on an SPMI bus. Add a parent SPMI bus node with an '#address-cells' of 2 and '#size-cells' of 0 instead of relying on the fact that the default number of register cells happen to match (i.e. 1 + 1). Signed-off-by: Johan Hovold Reviewed-by: Krzysztof Kozlowski --- .../bindings/watchdog/qcom,pm8916-wdt.yaml | 33 +++++++++++-------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/Documentation/devicetree/bindings/watchdog/qcom,pm8916-wdt.yam= l b/Documentation/devicetree/bindings/watchdog/qcom,pm8916-wdt.yaml index 568eb8480fc3..dc6af204e8af 100644 --- a/Documentation/devicetree/bindings/watchdog/qcom,pm8916-wdt.yaml +++ b/Documentation/devicetree/bindings/watchdog/qcom,pm8916-wdt.yaml @@ -30,22 +30,27 @@ examples: #include #include =20 - pmic@0 { - compatible =3D "qcom,pm8916", "qcom,spmi-pmic"; - reg =3D <0x0 SPMI_USID>; - #address-cells =3D <1>; + spmi { + #address-cells =3D <2>; #size-cells =3D <0>; =20 - pon@800 { - compatible =3D "qcom,pm8916-pon"; - reg =3D <0x800>; - mode-bootloader =3D <0x2>; - mode-recovery =3D <0x1>; - - watchdog { - compatible =3D "qcom,pm8916-wdt"; - interrupts =3D <0x0 0x8 6 IRQ_TYPE_EDGE_RISING>; - timeout-sec =3D <60>; + pmic@0 { + compatible =3D "qcom,pm8916", "qcom,spmi-pmic"; + reg =3D <0x0 SPMI_USID>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + pon@800 { + compatible =3D "qcom,pm8916-pon"; + reg =3D <0x800>; + mode-bootloader =3D <0x2>; + mode-recovery =3D <0x1>; + + watchdog { + compatible =3D "qcom,pm8916-wdt"; + interrupts =3D <0x0 0x8 6 IRQ_TYPE_EDGE_RISING>; + timeout-sec =3D <60>; + }; }; }; }; --=20 2.41.0