From patchwork Mon Aug 26 06:54:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Macpaul Lin X-Patchwork-Id: 13777240 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4B2E0C5321E for ; Mon, 26 Aug 2024 06:58:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=GhEGP67YqgDTHdc3MR4JRlg6CcNYu9PfdwxgzbrschE=; b=FPIE0FKd45luhDldoa8Foh9tPA HLuJEBoDFibCV5+tiI+sxS94c3sPDUqLNskIZl4wPfTzOstAD5Zyw8YwCzkkdH+WWDyGuxdudI5Tp M/QvQtRfd9TFTU0b6drEQjdS2zYyv6+HmkK2QmvL7BlDlZRyeLh16xq6qFeJC8gjCOWaOGJvkDD9Z Ze4kJdWG4pARxDKxpMy6jfhhzB3hWRlFzO5V7EQrJilAkPxRcIY1IMDSt0x8lENxry38R64HDl01c y5Idaa/RYbUDfEeheFS1X59oTP6vz1lA4XF7sL0NndpWrbr5PRTpI0IcWLgsiAj0LAkYGGGCsf2dD bFsBLCKA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1siTgW-000000069Qq-1Hjz; Mon, 26 Aug 2024 06:58:40 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1siTd7-000000068D4-2dC8; Mon, 26 Aug 2024 06:55:10 +0000 X-UUID: 1e01896c637811efba0aef63c0775dbf-20240825 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=GhEGP67YqgDTHdc3MR4JRlg6CcNYu9PfdwxgzbrschE=; b=TYtZVC2bXZYu92oVLzbLgtex4mnx4pwnc01egiAbQxQYo07bNDXl4Oda92mFvwpGEIBtxRB+417OKjI3duaNN3ztgNb4EF/BlQ6nKMNEG3GPcIk1SM29SBpO+KjesjnCJQpW0lZVwQ5ZvVucKlzBEjo3F6J2lcbxECo7NKf/ZF4=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.41,REQID:aed4b9a4-79d0-4248-9ebd-c5d0aee80996,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:6dc6a47,CLOUDID:d078eebe-d7af-4351-93aa-42531abf0c7b,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1, SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 1e01896c637811efba0aef63c0775dbf-20240825 Received: from mtkmbs11n2.mediatek.inc [(172.21.101.187)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 104589379; Sun, 25 Aug 2024 23:55:02 -0700 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by MTKMBS14N1.mediatek.inc (172.21.101.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 26 Aug 2024 14:54:33 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Mon, 26 Aug 2024 14:54:33 +0800 From: Macpaul Lin To: AngeloGioacchino Del Regno , Matthias Brugger , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Alexandre Mergnat , "Flora Fu" CC: Bear Wang , Pablo Sun , Macpaul Lin , Macpaul Lin , "Sen Chu" , Chris-qj chen , MediaTek Chromebook Upstream , , , , , "Chen-Yu Tsai" Subject: [PATCH] dt-bindings: mfd: mediatek,mt6357: Fixup reference to pwrap node Date: Mon, 26 Aug 2024 14:54:15 +0800 Message-ID: <20240826065415.19641-1-macpaul.lin@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-AS-Result: No-10--5.439900-8.000000 X-TMASE-MatchedRID: 4yX2sz1oRLp9lFIAHkDJoGwbuvhCHs3cIaLR+2xKRDJx1e3NhjX9AuYh IkEoymbrAVodxTEMxukn1aTwtcqsuC2W7Y+Npd9R2Ud/1nepkpO4vBuE2X0HlbVhTD1Udgq8sfS 7f652nAkaHPg6l5sD1LC4kqiZ5QQdN/oZxYKnT+KJLZlzl4NipK+LpFmmk3oAzsQ8iRVyD453Bx krWYnPYuLzNWBegCW2wgn7iDBesS15zdAzex5xZvDdgbPba51UvzNMf/9vK7qOHIk1iqa/6b+AX Gx5R3JwZtl4/3Pi+WmUTGVAhB5EbQ== X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--5.439900-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: AC04E90D57252F3BA31C6C398C459E4271DFE4A6508F56029BBE6ECF0243C2992000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240825_235509_708058_02DAC14B X-CRM114-Status: GOOD ( 10.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The mt6357 is a subnode of pwrap node. Previously, the documentation only included a note in the description of mt6357. This change adds the appropriate $ref for pwrap to ensure clarity and correctness. $ref: /schemas/soc/mediatek/mediatek,pwrap.yaml Additionally, the indentation for the pmic section has been adjusted to match the corresponding structure. Signed-off-by: Macpaul Lin --- .../bindings/mfd/mediatek,mt6357.yaml | 124 +++++++++--------- 1 file changed, 65 insertions(+), 59 deletions(-) Changes for v1: - This patch has been made based on linux-next/master branch. diff --git a/Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml b/Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml index b67fbe0..5f4f540 100644 --- a/Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml +++ b/Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml @@ -22,69 +22,75 @@ description: | It is interfaced to host controller using SPI interface by a proprietary hardware called PMIC wrapper or pwrap. This MFD is a child device of pwrap. - See the following for pwrap node definitions: - Documentation/devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml properties: - compatible: - const: mediatek,mt6357 - - interrupts: - maxItems: 1 - - interrupt-controller: true - - "#interrupt-cells": - const: 2 - - mediatek,hp-pull-down: - description: - Earphone driver positive output stage short to - the audio reference ground. - type: boolean - - mediatek,micbias0-microvolt: - description: Selects MIC Bias 0 output voltage. - enum: [1700000, 1800000, 1900000, 2000000, - 2100000, 2500000, 2600000, 2700000] - default: 1700000 - - mediatek,micbias1-microvolt: - description: Selects MIC Bias 1 output voltage. - enum: [1700000, 1800000, 1900000, 2000000, - 2100000, 2500000, 2600000, 2700000] - default: 1700000 - - regulators: - type: object - $ref: /schemas/regulator/mediatek,mt6357-regulator.yaml - unevaluatedProperties: false - description: - List of MT6357 BUCKs and LDOs regulators. - - rtc: + pwrap: type: object - $ref: /schemas/rtc/rtc.yaml# - unevaluatedProperties: false - description: - MT6357 Real Time Clock. + $ref: /schemas/soc/mediatek/mediatek,pwrap.yaml properties: - compatible: - const: mediatek,mt6357-rtc - start-year: true - required: - - compatible - - keys: - type: object - $ref: /schemas/input/mediatek,pmic-keys.yaml - unevaluatedProperties: false - description: - MT6357 power and home keys. - -required: - - compatible - - regulators + pmic: + type: object + additionalProperties: false + properties: + compatible: + const: mediatek,mt6357 + + interrupts: + maxItems: 1 + + interrupt-controller: true + + "#interrupt-cells": + const: 2 + + mediatek,hp-pull-down: + description: + Earphone driver positive output stage short to + the audio reference ground. + type: boolean + + mediatek,micbias0-microvolt: + description: Selects MIC Bias 0 output voltage. + enum: [1700000, 1800000, 1900000, 2000000, + 2100000, 2500000, 2600000, 2700000] + default: 1700000 + + mediatek,micbias1-microvolt: + description: Selects MIC Bias 1 output voltage. + enum: [1700000, 1800000, 1900000, 2000000, + 2100000, 2500000, 2600000, 2700000] + default: 1700000 + + regulators: + type: object + $ref: /schemas/regulator/mediatek,mt6357-regulator.yaml + unevaluatedProperties: false + description: + List of MT6357 BUCKs and LDOs regulators. + + rtc: + type: object + $ref: /schemas/rtc/rtc.yaml# + unevaluatedProperties: false + description: + MT6357 Real Time Clock. + properties: + compatible: + const: mediatek,mt6357-rtc + start-year: true + required: + - compatible + + keys: + type: object + $ref: /schemas/input/mediatek,pmic-keys.yaml + unevaluatedProperties: false + description: + MT6357 power and home keys. + + required: + - compatible + - regulators additionalProperties: false