From nobody Tue Dec 16 18:26:22 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 0D24DC4167B for ; Thu, 30 Nov 2023 17:25:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232220AbjK3RZd (ORCPT ); Thu, 30 Nov 2023 12:25:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232231AbjK3RZU (ORCPT ); Thu, 30 Nov 2023 12:25:20 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38C6B10F2 for ; Thu, 30 Nov 2023 09:25:26 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDBA3C433CB; Thu, 30 Nov 2023 17:25:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701365125; bh=eXZVsFTRtF1cEp4KE4ZARne3vtKXRQE84t2o88qivCo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cMUGskGILIEcFKpnujuqZLn5Je1ChO5CiWMII5CkUTw/K1j4P3qrfCaQrxWMxm4lO YhDox+X5fggdQcLqi/UO+Yy3B5OFwI1XAqDgZbF4RcswidKFgesX41aI/BneiCwRP6 no5SF+qdslN0yKV744ap9kblpydIElDro4rsV624sZ5XTcoklyzFJwUxDtOb/I0hVa 3tm2ZAdEne9gSZ9BXuJSVqFIkBI53FE8aP+oZ0Pd0vUi2D/qQJu3RA3qCqLs4hy1t0 sMTKSctEWPU6gtlDeLoBiYwB3MJsie8UXjhh61avG4YAwGeicXRR4q8G9QIgwUVsnE uRXjN5oCLB82w== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1r8knX-0003Gz-1S; Thu, 30 Nov 2023 18:25:59 +0100 From: Johan Hovold To: Lee Jones Cc: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Johan Hovold Subject: [PATCH 3/4] dt-bindings: mfd: hisilicon,hi6421-spmi-pmic: clean up example Date: Thu, 30 Nov 2023 18:25:46 +0100 Message-ID: <20231130172547.12555-4-johan+linaro@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231130172547.12555-1-johan+linaro@kernel.org> References: <20231130172547.12555-1-johan+linaro@kernel.org> 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 SPMI PMIC sits on an SPMI bus which and has two address cells with no size. Clean up the example by adding a parent SPMI bus node with proper '#address-cells' and '#size-cells' properties, using a define for the second register value, dropping the unnecessary label and increasing the indentation to four spaces. Signed-off-by: Johan Hovold Acked-by: Krzysztof Kozlowski --- .../mfd/hisilicon,hi6421-spmi-pmic.yaml | 134 +++++++++--------- 1 file changed, 70 insertions(+), 64 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pm= ic.yaml b/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.= yaml index 60d5e6b3de33..560ec3367045 100644 --- a/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml +++ b/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml @@ -66,69 +66,75 @@ additionalProperties: false =20 examples: - | - - pmic: pmic@0 { - compatible =3D "hisilicon,hi6421v600-spmi"; - reg =3D <0 0>; - - #interrupt-cells =3D <2>; - interrupt-controller; - interrupt-parent =3D <&gpio28>; - interrupts =3D <0 0>; - - regulators { - ldo3: ldo3 { - regulator-name =3D "ldo3"; - regulator-min-microvolt =3D <1500000>; - regulator-max-microvolt =3D <2000000>; - regulator-boot-on; - }; - - ldo4: ldo4 { - regulator-name =3D "ldo4"; - regulator-min-microvolt =3D <1725000>; - regulator-max-microvolt =3D <1900000>; - regulator-boot-on; - }; - - ldo9: ldo9 { - regulator-name =3D "ldo9"; - regulator-min-microvolt =3D <1750000>; - regulator-max-microvolt =3D <3300000>; - regulator-boot-on; - }; - - ldo15: ldo15 { - regulator-name =3D "ldo15"; - regulator-min-microvolt =3D <1800000>; - regulator-max-microvolt =3D <3000000>; - regulator-always-on; - }; - - ldo16: ldo16 { - regulator-name =3D "ldo16"; - regulator-min-microvolt =3D <1800000>; - regulator-max-microvolt =3D <3000000>; - regulator-boot-on; - }; - - ldo17: ldo17 { - regulator-name =3D "ldo17"; - regulator-min-microvolt =3D <2500000>; - regulator-max-microvolt =3D <3300000>; - }; - - ldo33: ldo33 { - regulator-name =3D "ldo33"; - regulator-min-microvolt =3D <2500000>; - regulator-max-microvolt =3D <3300000>; - regulator-boot-on; - }; - - ldo34: ldo34 { - regulator-name =3D "ldo34"; - regulator-min-microvolt =3D <2600000>; - regulator-max-microvolt =3D <3300000>; + #include + + spmi { + #address-cells =3D <2>; + #size-cells =3D <0>; + + pmic@0 { + compatible =3D "hisilicon,hi6421v600-spmi"; + reg =3D <0 SPMI_USID>; + + #interrupt-cells =3D <2>; + interrupt-controller; + interrupt-parent =3D <&gpio28>; + interrupts =3D <0 0>; + + regulators { + ldo3 { + regulator-name =3D "ldo3"; + regulator-min-microvolt =3D <1500000>; + regulator-max-microvolt =3D <2000000>; + regulator-boot-on; + }; + + ldo4 { + regulator-name =3D "ldo4"; + regulator-min-microvolt =3D <1725000>; + regulator-max-microvolt =3D <1900000>; + regulator-boot-on; + }; + + ldo9 { + regulator-name =3D "ldo9"; + regulator-min-microvolt =3D <1750000>; + regulator-max-microvolt =3D <3300000>; + regulator-boot-on; + }; + + ldo15 { + regulator-name =3D "ldo15"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <3000000>; + regulator-always-on; + }; + + ldo16 { + regulator-name =3D "ldo16"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <3000000>; + regulator-boot-on; + }; + + ldo17 { + regulator-name =3D "ldo17"; + regulator-min-microvolt =3D <2500000>; + regulator-max-microvolt =3D <3300000>; + }; + + ldo33 { + regulator-name =3D "ldo33"; + regulator-min-microvolt =3D <2500000>; + regulator-max-microvolt =3D <3300000>; + regulator-boot-on; + }; + + ldo34 { + regulator-name =3D "ldo34"; + regulator-min-microvolt =3D <2600000>; + regulator-max-microvolt =3D <3300000>; + }; + }; }; - }; }; --=20 2.41.0