Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp485040rdb; Thu, 30 Nov 2023 09:43:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IFxv017Q6FNlIiVF2t2U2HhT9rVArNavTdR/hevwJsYpY/OB3PceDaRtPY86g78eom2Crz7 X-Received: by 2002:a17:90b:1887:b0:27d:6dd:fb7d with SMTP id mn7-20020a17090b188700b0027d06ddfb7dmr26119991pjb.17.1701366202531; Thu, 30 Nov 2023 09:43:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701366202; cv=none; d=google.com; s=arc-20160816; b=Z/cJ/X2EZpfXVTViSbaeFndfFXKc9h6oo5/b0U0fB3LAFKkbWBdByCxDLvJZSF4Wxr 2OjRmawKFc2npHktp+tiN4P6TiUIS6/hddJddk+7JWt1tXOHeKfAQMsnP/t7kreNtebp ne9U7zziliuqukfSyGulvI0UdpIzqHFCafHo2xwLC0rnGAuvq0wcnAXn7J43fUAm+OvU a7YKZHR4CYwDAj7EIQEwO9+4XnrOkTGtZJe4Yo25ubHgWBYoYHgS4jf1s8AglK1/OVR+ xJXmwqo0Hqg2fnG5P0CrnOHm3DV1LRgL0psX9p+UQY8oMepPi8JTVjNT9zDGg3qbVOTT d7mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=/F6mZwFLjWKuJiGesF7cmOFFOYnq09PHZVo1bmiEeOY=; fh=uy7IlbdqpcjegSmrgpPX4v3gzxR6B14SuNrCI1Rpx5s=; b=mF9VN1FTAxILrk9knHluhGBey/QXDqFrGPpXINA9vZpqmo13H+mVEwlp0NyBQ2/W2U GURM+plhSx0UAR5VfMNy9R2rcbZvJSyohMNr72CM8VhtRHbW+LfNlax4Ke80KqJlAGtX 8KJWbG/OglmzT28XQphuF2vPS5KzW1N+XHMMhf6DejbkaKQ95D5S3M9hafgyeVrkafdq Yj/ZWawuknBe1aE/jZ+Hfa/2hRCa4hTzzGjnYHP0RjAhS2Rdzpg85s6H14wdnL1s6umt o/PYU5S1U1k0wH/764rhEpa0gNyL/Gj57F4j3vhUu2aasEYxtg6Ufj+vFH4V5vA43QLC 4lIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="BycyN/3C"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id i8-20020a17090ad34800b0028511909e15si3659660pjx.136.2023.11.30.09.43.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 09:43:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="BycyN/3C"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 220F882CC442; Thu, 30 Nov 2023 09:43:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346496AbjK3RnC (ORCPT + 99 others); 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: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 30 Nov 2023 09:43:18 -0800 (PST) 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 --- .../bindings/watchdog/qcom,pm8916-wdt.yaml | 33 +++++++++++-------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/Documentation/devicetree/bindings/watchdog/qcom,pm8916-wdt.yaml 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 - pmic@0 { - compatible = "qcom,pm8916", "qcom,spmi-pmic"; - reg = <0x0 SPMI_USID>; - #address-cells = <1>; + spmi { + #address-cells = <2>; #size-cells = <0>; - pon@800 { - compatible = "qcom,pm8916-pon"; - reg = <0x800>; - mode-bootloader = <0x2>; - mode-recovery = <0x1>; - - watchdog { - compatible = "qcom,pm8916-wdt"; - interrupts = <0x0 0x8 6 IRQ_TYPE_EDGE_RISING>; - timeout-sec = <60>; + pmic@0 { + compatible = "qcom,pm8916", "qcom,spmi-pmic"; + reg = <0x0 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pon@800 { + compatible = "qcom,pm8916-pon"; + reg = <0x800>; + mode-bootloader = <0x2>; + mode-recovery = <0x1>; + + watchdog { + compatible = "qcom,pm8916-wdt"; + interrupts = <0x0 0x8 6 IRQ_TYPE_EDGE_RISING>; + timeout-sec = <60>; + }; }; }; }; -- 2.41.0