Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1174103rdb; Fri, 1 Dec 2023 08:47:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IGDYQBdaGJAfsctDzn7krWKzqh8hTR3miUF8SP6Dk1s23/kyUjm95bgIORt850gJcjixJHx X-Received: by 2002:a17:90b:1c8b:b0:27c:f309:f381 with SMTP id oo11-20020a17090b1c8b00b0027cf309f381mr26362259pjb.6.1701449236438; Fri, 01 Dec 2023 08:47:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701449236; cv=none; d=google.com; s=arc-20160816; b=fiorrSOSvp0TTiCXnP2OmUCBkOTxfJ9ssoJ48gtdvsMQTvKARknvhMaE4dSjaQN3Wh HSePLBo+PBljrSO+MP8T/vWjUFVoltfzuq58igonUtn84QAu28lV1KODFrrCmHyfYIgC wL14MURm5MrWt5ZCnvbyfxnJjJ0oCM/wleHA8FmpIbvMT3Se1qeoE+vm4SNocPDpGLo0 xWs2l3krDsVSSp+rICE0KjFCxTVhsDInZZD/m2NrY2TYBvz+pydFB2bksXn0dShVHs2+ ijnxqOLlXWWe2NPqDvhvwweUmkP5c0j9PznddmkexJAFLw15pNd3Tg8UMSWlpaLs/3E8 TyJg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fMbeHExCddYKNmIcDtVbtjB2V4sSNcTSIgw2C3jPBOA=; fh=JsefqZvUfnWqi7OGYVMvR5EtN8HO/ddyb+d2P6t6bZQ=; b=yN3F5yigM+EPIkH+YKgHf3MqOa5SJgfebr6Jp8+2fTqukXB6zL258ARmw3Xyx5PgRN DCZ+6BbNi8z9hL0RFnxjIwp+Uz6RI5Gta61J7ZIoqA0VvLxnjtPXtZ0J8ZXIS1ciNonS nzKjLzz/plKjEJaGkFCXytUN1AKvnq3GEs/VMfuWe25xU2iIxYNL3XujWYcidMeRgTmM ORB6J4QDD16AeVzX7Xg3RGJkaTgnzR/xAQjuFiB5AyCdM53oTwJBQrPp0E/Vluxvf3Yc Xx44hiZsSBPdnqWQrNSfeZHslA+Euu+LXO/GzjLEs6rjO9pke6o3+VRpHZJ7ifqtVe+S xKGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JnnZRrX5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id n11-20020a17090ac68b00b0028615f9800dsi3673544pjt.42.2023.12.01.08.47.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 08:47:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JnnZRrX5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 6B7F5819CC39; Fri, 1 Dec 2023 08:47:13 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378519AbjLAQqs (ORCPT + 99 others); Fri, 1 Dec 2023 11:46:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229516AbjLAQql (ORCPT ); Fri, 1 Dec 2023 11:46:41 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 632A2F2 for ; Fri, 1 Dec 2023 08:46:47 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6C23C433CA; Fri, 1 Dec 2023 16:46:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701449206; bh=T2z/FCGOZTuZvMKsnWedFJwmDPaovLjYsoXHwnzGLm8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JnnZRrX5/LjFKTZgBsQkxRVjT67NroSOqRvFpXS8Jk3fGMkAexLBFKU9Y4I3kecEA 0AbISwqHhcmWSJzYz45n0WsjQ08pF/veCJprXUB1n2nL4W2jQXPH2o4qHl5w0iLPs6 yK8oBvAsrrQ9rbABA8VYip2inF5tIEPFDtC028jntSUvZZNuypeuIwbUqnTIR73+32 T+4ZkBO+Z+2/wYFRPlGfhWfGykEnC8Cd0XPMzOb9lhLdrgvBF+DbbvAxwC8NanIdtg 3CwJHo2GZcXySPQIpEgDhS/WUU9m071VOF4fRnItMYXrXW6iHJpRux3Q5BwQG+p6KF /ONfHqDVCZf8Q== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1r96fj-0003IW-0a; Fri, 01 Dec 2023 17:47:23 +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 , Krzysztof Kozlowski Subject: [PATCH v2 3/4] dt-bindings: mfd: hisilicon,hi6421-spmi-pmic: clean up example Date: Fri, 1 Dec 2023 17:45:45 +0100 Message-ID: <20231201164546.12606-4-johan+linaro@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231201164546.12606-1-johan+linaro@kernel.org> References: <20231201164546.12606-1-johan+linaro@kernel.org> 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Fri, 01 Dec 2023 08:47:13 -0800 (PST) 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. Acked-by: Krzysztof Kozlowski Signed-off-by: Johan Hovold --- .../mfd/hisilicon,hi6421-spmi-pmic.yaml | 134 +++++++++--------- 1 file changed, 70 insertions(+), 64 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml b/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml index 45cd6a613a91..6a824351834e 100644 --- a/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml +++ b/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml @@ -59,69 +59,75 @@ additionalProperties: false examples: - | - - pmic: pmic@0 { - compatible = "hisilicon,hi6421v600-spmi"; - reg = <0 0>; - - #interrupt-cells = <2>; - interrupt-controller; - interrupt-parent = <&gpio28>; - interrupts = <0 0>; - - regulators { - ldo3: ldo3 { - regulator-name = "ldo3"; - regulator-min-microvolt = <1500000>; - regulator-max-microvolt = <2000000>; - regulator-boot-on; - }; - - ldo4: ldo4 { - regulator-name = "ldo4"; - regulator-min-microvolt = <1725000>; - regulator-max-microvolt = <1900000>; - regulator-boot-on; - }; - - ldo9: ldo9 { - regulator-name = "ldo9"; - regulator-min-microvolt = <1750000>; - regulator-max-microvolt = <3300000>; - regulator-boot-on; - }; - - ldo15: ldo15 { - regulator-name = "ldo15"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <3000000>; - regulator-always-on; - }; - - ldo16: ldo16 { - regulator-name = "ldo16"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <3000000>; - regulator-boot-on; - }; - - ldo17: ldo17 { - regulator-name = "ldo17"; - regulator-min-microvolt = <2500000>; - regulator-max-microvolt = <3300000>; - }; - - ldo33: ldo33 { - regulator-name = "ldo33"; - regulator-min-microvolt = <2500000>; - regulator-max-microvolt = <3300000>; - regulator-boot-on; - }; - - ldo34: ldo34 { - regulator-name = "ldo34"; - regulator-min-microvolt = <2600000>; - regulator-max-microvolt = <3300000>; + #include + + spmi { + #address-cells = <2>; + #size-cells = <0>; + + pmic@0 { + compatible = "hisilicon,hi6421v600-spmi"; + reg = <0 SPMI_USID>; + + #interrupt-cells = <2>; + interrupt-controller; + interrupt-parent = <&gpio28>; + interrupts = <0 0>; + + regulators { + ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <2000000>; + regulator-boot-on; + }; + + ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1725000>; + regulator-max-microvolt = <1900000>; + regulator-boot-on; + }; + + ldo9 { + regulator-name = "ldo9"; + regulator-min-microvolt = <1750000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + }; + + ldo15 { + regulator-name = "ldo15"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3000000>; + regulator-always-on; + }; + + ldo16 { + regulator-name = "ldo16"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3000000>; + regulator-boot-on; + }; + + ldo17 { + regulator-name = "ldo17"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <3300000>; + }; + + ldo33 { + regulator-name = "ldo33"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + }; + + ldo34 { + regulator-name = "ldo34"; + regulator-min-microvolt = <2600000>; + regulator-max-microvolt = <3300000>; + }; + }; }; - }; }; -- 2.41.0