Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp488450pxb; Tue, 14 Sep 2021 02:05:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSyw5VADGGt3k4p7YMydeplg4MJJAVWKnup82+eeZ5YCKw2QX+wFonbWn1xCNH+UyXb465 X-Received: by 2002:a17:906:289a:: with SMTP id o26mr2867721ejd.243.1631610328290; Tue, 14 Sep 2021 02:05:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631610328; cv=none; d=google.com; s=arc-20160816; b=jYPX1a9Ju6bshTmGWsGX8FnIzk7gANnsq3UhzrdnK3RpJ8TfZbYkyb0r0T4jNrAfO2 rzZ5tDuU94uRBR8AeOtunpe6xja/lWZqry1c7PdnE293IaJ5pSAisWkxm0AewOq9Hcvg yVTP9PZ5R97UXJHHI8yqqM5nvZQOVctlEFgDl58igTPKv419dXHtO172nVJj7O1xQ9sF zOANJ4U0MtZUhlIwII9LjqgD83p29PRoBzVmIQvBgLsULTAHHLCZ6WmBcNGPR5a8Hym9 FCvYJy/B1tQ78m5Xg4eMOSnycQY9l2yU5KTVLZevmeX1jQsTJQTT+WNKgHG0vPuHexLB o6yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=KfaJrifn3N3JBYd7tfsyoctNbulhI/6ShWQTUpjb7mU=; b=YFsGlUKHfDu94OAABLZNZKTn5titnEJTwxEiILOBjQBANcvXaDPg7jQd1mSb9JcTbB 4ouNCiGvh1X88W4MgTHGItgSxA/N45mSQ9CEqRG2gMI2LD9r6QGMeRTs1ymJKn+aqzv6 oVI0HNoiZRvzwkCdtGqEWM90HPorkqK/+G2R7vEgIBx84RlI8MFoOMA/PScohHTDGDqK g5S6hlgwXWBjEnrK4cbgJDLLy9OdUWwZABD/r1YcFPRZhJqvidAChrKPAZ5Jya8+j4GR VJyAGlVRVBs89aVmkfkM+MQuliJGTfMVHe9Z56bJiVWtIbByPl6kbOiY4pwysJXv0XGk ck1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz11si9586112ejc.137.2021.09.14.02.05.02; Tue, 14 Sep 2021 02:05:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231192AbhINJFB (ORCPT + 99 others); Tue, 14 Sep 2021 05:05:01 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:40280 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229746AbhINJFA (ORCPT ); Tue, 14 Sep 2021 05:05:00 -0400 X-UUID: 95b7ad570f7f48fc93d20b1544dffaac-20210914 X-UUID: 95b7ad570f7f48fc93d20b1544dffaac-20210914 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 559024159; Tue, 14 Sep 2021 17:03:41 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 14 Sep 2021 17:03:40 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 14 Sep 2021 17:03:40 +0800 From: Hsin-Hsiung Wang To: Stephen Boyd , Rob Herring , Matthias Brugger CC: Hsin-Hsiung Wang , , , , , , Subject: [PATCH v12 2/5] dt-bindings: spmi: document binding for the Mediatek SPMI controller Date: Tue, 14 Sep 2021 17:03:35 +0800 Message-ID: <20210914090338.5945-3-hsin-hsiung.wang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210914090338.5945-1-hsin-hsiung.wang@mediatek.com> References: <20210914090338.5945-1-hsin-hsiung.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds documentation for the SPMI controller found on Mediatek SoCs. Signed-off-by: Hsin-Hsiung Wang --- changes since v11: - No change. --- .../bindings/spmi/mtk,spmi-mtk-pmif.yaml | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/spmi/mtk,spmi-mtk-pmif.yaml diff --git a/Documentation/devicetree/bindings/spmi/mtk,spmi-mtk-pmif.yaml b/Documentation/devicetree/bindings/spmi/mtk,spmi-mtk-pmif.yaml new file mode 100644 index 000000000000..a221cc1ac6c6 --- /dev/null +++ b/Documentation/devicetree/bindings/spmi/mtk,spmi-mtk-pmif.yaml @@ -0,0 +1,76 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spmi/mtk,spmi-mtk-pmif.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mediatek SPMI Controller Device Tree Bindings + +maintainers: + - Hsin-Hsiung Wang + +description: |+ + On MediaTek SoCs the PMIC is connected via SPMI and the controller allows + for multiple SoCs to control a single SPMI master. + +allOf: + - $ref: "spmi.yaml" + +properties: + compatible: + enum: + - mediatek,mt6873-spmi + - mediatek,mt8195-spmi + + reg: + maxItems: 2 + + reg-names: + items: + - const: pmif + - const: spmimst + + clocks: + minItems: 3 + maxItems: 3 + + clock-names: + items: + - const: pmif_sys_ck + - const: pmif_tmr_ck + - const: spmimst_clk_mux + + assigned-clocks: + maxItems: 1 + + assigned-clock-parents: + maxItems: 1 + +required: + - compatible + - reg + - reg-names + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + #include + + spmi: spmi@10027000 { + compatible = "mediatek,mt6873-spmi"; + reg = <0 0x10027000 0 0x000e00>, + <0 0x10029000 0 0x000100>; + reg-names = "pmif", "spmimst"; + clocks = <&infracfg CLK_INFRA_PMIC_AP>, + <&infracfg CLK_INFRA_PMIC_TMR>, + <&topckgen CLK_TOP_SPMI_MST_SEL>; + clock-names = "pmif_sys_ck", + "pmif_tmr_ck", + "spmimst_clk_mux"; + assigned-clocks = <&topckgen CLK_TOP_PWRAP_ULPOSC_SEL>; + assigned-clock-parents = <&topckgen CLK_TOP_OSC_D10>; + }; +... -- 2.18.0