Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp5027565pxb; Tue, 2 Nov 2021 21:26:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyRe83vxHo7/atyqTHpPjTzd/xKPXV+2nSt7ksqlqJBGDR14Z4G29LWrWWjG48VZQWVWki X-Received: by 2002:a05:6602:27c2:: with SMTP id l2mr28915199ios.147.1635913619072; Tue, 02 Nov 2021 21:26:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635913619; cv=none; d=google.com; s=arc-20160816; b=dobwwop+MhDRPP+bp5+PhRVDZO9h4yMGwSRfkn8VfUUA51Nns4qJFE0oSH5IhjaH4K G3jojFTi0ey29hqWxARhzu+XPz2MaWxN0msvI8XTADyOwPtKMd5SidWKRkGdQgurz8pF p/bhox0iE8SOl5EtuPxkLOMqeuzqe3XGc/O+lxfvvyWtccCOC4agBXGKTgECVMRIHf+T Yf6w9qetoPGsKo1Wud7vqtxzNKqQMvzufTLPP+6R9vJcKiYU+l5PDvjH9YlZ9GU/XReW 4q3CXRNji6OX+RE3s4YRLNZxAu5f8Ed0EibxPp7GzpGxq0KKGgnWOVXcCBLGfl0P2o62 rqsw== 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=gXTQgww/VFchKJmkkLYyZ65C6bkrBK8tdn30UdMKM3Q=; b=lvNZmErfkR5YznNrC9W34NJkF8ifF5Kl77WhiTrwpa6fDDWXZ2NcnsI+xYia1uCrfZ NtCJFJJkwpwHBFKuhaZcKwcDEIACYWigFzOkR4eLUSRQ6Br7n3LzMN7rMQioeAdD7aGF jzHKw1WrtCXpin75xPbeHYz89NrRSs3jggzgO9t/VgWnyAL1P/JdR6bQU1fGzX4Nqjiv H2oplkJY5AypWacRgccWw6tDpaFJzHZxNRhpeEDLFBukoVuSewduM5R6TTftMC9DUJNz oes/9nSf4EZ4RV/vICSCFHPayKm2QEtV4XCE1THGKlLHL/dB2XCoGegP7JqSyKJlv9VK Dblw== 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 a21si1403904ioo.64.2021.11.02.21.26.06; Tue, 02 Nov 2021 21:26:59 -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 S231208AbhKCEYO (ORCPT + 99 others); Wed, 3 Nov 2021 00:24:14 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:43994 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230435AbhKCEYI (ORCPT ); Wed, 3 Nov 2021 00:24:08 -0400 X-UUID: 1ab3674252944c76876021edeb21c361-20211103 X-UUID: 1ab3674252944c76876021edeb21c361-20211103 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 468695211; Wed, 03 Nov 2021 12:21:28 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Wed, 3 Nov 2021 12:21:27 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 3 Nov 2021 12:21:27 +0800 From: James Lo To: Stephen Boyd , Rob Herring , Matthias Brugger CC: Hsin-Hsiung Wang , James Lo , , , , , , Subject: [v13 2/4] dt-bindings: spmi: document binding for the Mediatek SPMI controller Date: Wed, 3 Nov 2021 12:21:01 +0800 Message-ID: <20211103042103.4984-3-james.lo@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211103042103.4984-1-james.lo@mediatek.com> References: <20211103042103.4984-1-james.lo@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 --- .../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..2445c5e0b0ef --- /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 = <0x10027000 0xe00>, + <0x10029000 0x100>; + 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