Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp475468rdb; Thu, 30 Nov 2023 09:28:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IGNbgkxwdv/i0/DnjKIZSzpr4UTCBwwtVws9JgEfKhDSfMwwvqOUAMpubhjU8sqaZIG1qeN X-Received: by 2002:a17:90b:1a91:b0:285:9804:5437 with SMTP id ng17-20020a17090b1a9100b0028598045437mr22163375pjb.26.1701365302674; Thu, 30 Nov 2023 09:28:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701365302; cv=none; d=google.com; s=arc-20160816; b=UFRx5vj35UbeTz5u7BMTUV5pn9z2sN1ybouUTa7+s7c0w1mCPrRNdG7LJMPYzQKrRb bxkTb9dXMOrkjtgWRxOkVjMyHlgs0bjf+s17RQM2RPDIkU8F+dI7RJ1wYgbm8VmzLrS7 vpuRSt23OQfjrz4Ve4uBPp8cHAA53SRj6C8I3BrK9MXRAFx7qZnZjclpKoWAvQ8VJYf0 CZx0B7ibtrPZ94wgCRIRYe6mLR7lCQc5pvdUXh0hlWSH+QH1XxYU4dG7+xgpc37Q5VdJ pYwcnWS/y4Sxyqel/wvgj8GVpgfqDVlTyTYgBDWXVcbD7ojLWe9zj4TcpD9P6M8Z0GFP x/cQ== 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=pFddPA3S4GerEG8/YiaIN9ztZa2OapCxV1QEZ0n3TIc=; fh=BullDyrquP3nRJ6aqyp3Qvsu24bzxrRHfn9unJxgjCI=; b=Rh/XyT0ymMCWogPFNiWJRrOXpUFxUizXCKlPSk2PvWfi9CFPBuiJ4RXEYVJ5eSWrxX ldjkkGRyWCHTZyunXLgnuKf9Lnj2CPvwggpNVdVCdNo1btuN2D3afijYj0ZLHX3UYIGh UPtjF9TQISsqCnpFvrMYkGne8QCM9TrRSNE7NH/ZFpt23gwxfhNHi6ph4VsoQYHXZRTT e3P1VrNDsUKyL7L3rgl74iqU058TGtwjb5PfFCtH9PViJGCGxKhzzGT8xuVXP4CbmheS G7rTU/MYQZ/fvAKjgrRYuJRgggw7RKuLfnaTl7RqtOKv1y/2pbzmp2DAEfmt12WnROui IN0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SbtrIlzh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id nd2-20020a17090b4cc200b0027763ca82e9si1826238pjb.91.2023.11.30.09.28.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 09:28:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SbtrIlzh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 06C81826E32D; Thu, 30 Nov 2023 09:28:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232176AbjK3R2D (ORCPT + 99 others); Thu, 30 Nov 2023 12:28:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231486AbjK3R2C (ORCPT ); Thu, 30 Nov 2023 12:28:02 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F8D810D1 for ; Thu, 30 Nov 2023 09:28:09 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F95BC433C7; Thu, 30 Nov 2023 17:28:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701365288; bh=5A2nMF8bQazQm/PANboitp4avpKZMzqlSbhjxjKug2g=; h=From:To:Cc:Subject:Date:From; b=SbtrIlzh+X8FKoYR+YQEy0lJxLgR3oDGE25hYsNRhabhmvDQPydTodjPMZgoiKDiI 4nRdBWf4QMzZNSrolNA7BWVZqdNVUC+uCDsyDxfTp4ByzA6hmRYg1HKxQzHwCA3PJ8 B39yE78KuCIYFp2z85Xe9C1RbWVR7/zgTHEtCTTDRNLdS52y4IPYIvinl6fIF4F0OM 7Heci8Wo6VnPYYCyllhdTqqaATcNOzCGpdh//cd/7An+btPD36bBPK9Wv0FCJGdclA CbP17rmP8J55Eu8+EtH3YYGj86YikniBxQ4dxQ0j5uWWxyJrrPUlePym6cCTnmY1/d 9qDXWDgBI+nFQ== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1r8kq9-0003II-37; Thu, 30 Nov 2023 18:28:42 +0100 From: Johan Hovold To: Linus Walleij Cc: Bjorn Andersson , Andy Gross , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH] dt-bindings: pinctrl: qcom,pmic-mpp: clean up example Date: Thu, 30 Nov 2023 18:28:34 +0100 Message-ID: <20231130172834.12653-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 morse.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 (morse.vger.email [0.0.0.0]); Thu, 30 Nov 2023 09:28:17 -0800 (PST) The Multi-Purpose Pin controller block is part of an SPMI PMIC (which in turns sits on an SPMI bus) and uses a single value for the register property that corresponds to its base address. Clean up the example by adding a parent PMIC node with proper '#address-cells' and '#size-cells' properties, dropping the incorrect second register value, adding some newline separators and increasing the indentation to four spaces. Signed-off-by: Johan Hovold --- .../bindings/pinctrl/qcom,pmic-mpp.yaml | 62 ++++++++++--------- 1 file changed, 34 insertions(+), 28 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-mpp.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-mpp.yaml index 80f960671857..fe717d8d4798 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-mpp.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-mpp.yaml @@ -158,34 +158,40 @@ examples: - | #include - pm8841_mpp: mpps@a000 { - compatible = "qcom,pm8841-mpp", "qcom,spmi-mpp"; - reg = <0xa000 0>; - gpio-controller; - #gpio-cells = <2>; - gpio-ranges = <&pm8841_mpp 0 0 4>; - gpio-line-names = "VDD_PX_BIAS", "WLAN_LED_CTRL", - "BT_LED_CTRL", "GPIO-F"; - interrupt-controller; - #interrupt-cells = <2>; - - pinctrl-names = "default"; - pinctrl-0 = <&pm8841_default>; - - mpp1-state { - pins = "mpp1"; - function = "digital"; - input-enable; - power-source = ; - }; - - default-state { - gpio-pins { - pins = "mpp1", "mpp2", "mpp3", "mpp4"; - function = "digital"; - input-enable; - power-source = ; + pmic { + #address-cells = <1>; + #size-cells = <0>; + + pm8841_mpp: mpps@a000 { + compatible = "qcom,pm8841-mpp", "qcom,spmi-mpp"; + reg = <0xa000>; + + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pm8841_mpp 0 0 4>; + gpio-line-names = "VDD_PX_BIAS", "WLAN_LED_CTRL", + "BT_LED_CTRL", "GPIO-F"; + interrupt-controller; + #interrupt-cells = <2>; + + pinctrl-names = "default"; + pinctrl-0 = <&pm8841_default>; + + mpp1-state { + pins = "mpp1"; + function = "digital"; + input-enable; + power-source = ; + }; + + default-state { + gpio-pins { + pins = "mpp1", "mpp2", "mpp3", "mpp4"; + function = "digital"; + input-enable; + power-source = ; + }; + }; }; - }; }; ... -- 2.41.0