Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp481633rdb; Thu, 30 Nov 2023 09:37:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IFFtQfRO1hR8SedfroRodDVQueR91x/s2RBAtDRufc+U1CZ6mxpyvxrUrhoLks5X4UNZZAr X-Received: by 2002:a17:902:ce84:b0:1cf:c42d:4f10 with SMTP id f4-20020a170902ce8400b001cfc42d4f10mr19029839plg.69.1701365868426; Thu, 30 Nov 2023 09:37:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701365868; cv=none; d=google.com; s=arc-20160816; b=vQrbDAprEZorTVtTYirve+fTp/hp7HK4V+npUP1IM4HwPSHN5FNNHz0vNKSqYv1vd4 nZ+fcOlPyaqecmROdFMBPFkrHoZFPh4s0sbnKha8Uya1rrXE4CKeCBRS0+HrU8BIDXHx SY8Gmmstx+2PW80uFuQcKVcd1oFlnrABnw2LLVl7FE3xurQj9dvIfLdc5/Nzep1WV+Ar CQz1kUsPYifgURyKhxHJQ+2YPTQE8Z5Zo12xbYm4Nyq3uBAWEH/XeWNRxUb+fjYsUbZq f2PvgjyktnzYFBZhkwtHbuhvJ3zXGg4H4hQkcNvqDZrRPxQGICAjOxbIDpXYXsV6F4f4 k+Mg== 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=fzPaUCvgq2llNoLmsPcL6SOtsaPXHavGzKzATC7B6zQ=; fh=jkKOvtx+zJuyf9GlZshUfD6ruhon80hnKlMGX2bGDk8=; b=XwFzlMfMiUmmQw/OyHLHBTKOeMLLq5tZlL1xb4QqwXB3IqMsuZVaik4DKmeDpDcAOs 62yqaeGMYlFiUQcyhbNnF58lcBJhTumWNSv3SiHsDf0xqgTxrgEf/Fu0S4RwJTRfST+O 6R1FBzdjBHNFq/xM1cSs1sM8/fpod/x1YgZYuI2pRE8qDJLHYfBXyIpV1LLcUUZjPYSI KnWhDImQ8uxFfo20mlS1EgpvMiQjP3F/tINQOhqNpgo0mhgdtWDl3/OAqVPPBUJumCMP kV3scqAOhnW3mI5Xsz+8QbrDWIbluqAnLP1FxNz1/rtXhfbRzO8dk6yEDEsobiaWacyR 9s3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VazD2NWx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id ja18-20020a170902efd200b001cfa344f539si1476201plb.586.2023.11.30.09.37.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 09:37:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VazD2NWx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 28129802785C; Thu, 30 Nov 2023 09:37:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345951AbjK3Rh0 (ORCPT + 99 others); Thu, 30 Nov 2023 12:37:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231839AbjK3RhY (ORCPT ); Thu, 30 Nov 2023 12:37:24 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91F0B10DE for ; Thu, 30 Nov 2023 09:37:31 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34E20C433CA; Thu, 30 Nov 2023 17:37:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701365851; bh=5MZWbyU3vKXf6N5p9b/TD52/d407uLP9/uelkdwoyuU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VazD2NWxYudT7gv9XbCQ9/qQeRdf3Dj6cRCYDAiZ+IHRo9T/KNSiXD2yV3g7P6JpR eBtg8oEl3JpGLhjDyShjBilkxnv495557n6LsJDf+vY7X01Vd2OcpsdtFc/8Irb62e 7HuSK/3imYvMoaaMxj/0/52T0YWfpKz2ZkMJ0KcKwmZ3ewa0WLwIcwQbovF28/VrmT XSHScbxgpFroQ+ozlEWzOFcsYAh/l5wWvPBmsvY/SkQSjzLzyOCplGBDAGCgCm7RO4 g5jS+/rV+RfzjWCqk/fZ9ofxnLgTOO341a+ZRDTgxbmUMkMPm0m3/ZblGWeVOBOalW z7Mj4FSpobacg== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1r8kzE-0003OA-38; Thu, 30 Nov 2023 18:38:05 +0100 From: Johan Hovold To: Stephen Boyd Cc: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Johan Hovold Subject: [PATCH 2/2] dt-bindings: spmi: hisilicon,hisi-spmi-controller: clean up example Date: Thu, 30 Nov 2023 18:37:57 +0100 Message-ID: <20231130173757.13011-3-johan+linaro@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231130173757.13011-1-johan+linaro@kernel.org> References: <20231130173757.13011-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 agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 30 Nov 2023 09:37:42 -0800 (PST) Clean up the binding example by dropping the unnecessary parent bus node, using a define for the second register value of the PMIC child and increasing indentation to four spaces. Signed-off-by: Johan Hovold --- .../spmi/hisilicon,hisi-spmi-controller.yaml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/spmi/hisilicon,hisi-spmi-controller.yaml b/Documentation/devicetree/bindings/spmi/hisilicon,hisi-spmi-controller.yaml index eee7c8d4cf4a..3ccf35de3719 100644 --- a/Documentation/devicetree/bindings/spmi/hisilicon,hisi-spmi-controller.yaml +++ b/Documentation/devicetree/bindings/spmi/hisilicon,hisi-spmi-controller.yaml @@ -54,20 +54,17 @@ unevaluatedProperties: false examples: - | - bus { - #address-cells = <2>; - #size-cells = <2>; + #include - spmi: spmi@fff24000 { + spmi@fff24000 { compatible = "hisilicon,kirin970-spmi-controller"; + reg = <0xfff24000 0x1000>; #address-cells = <2>; #size-cells = <0>; - reg = <0x0 0xfff24000 0x0 0x1000>; hisilicon,spmi-channel = <2>; pmic@0 { - reg = <0 0>; - /* pmic properties */ + reg = <0 SPMI_USID>; + /* pmic properties */ }; - }; }; -- 2.41.0