Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp289819pxb; Fri, 15 Jan 2021 03:25:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJyDGftsytifCXaDwmKR0mmbC2Ouk0ykYoBsVcZfqE4M/LrHy3uzERQoI09bJtZgMe68isNt X-Received: by 2002:a17:906:dfd3:: with SMTP id jt19mr8396969ejc.64.1610709924490; Fri, 15 Jan 2021 03:25:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610709924; cv=none; d=google.com; s=arc-20160816; b=gJIwolct/pMDwbPFG64Vft6GF62DlgX5raYWzHr8NWq3yBDTgNa7KIM6Xic2oIrNx+ yDyHrJLp3qyHu1xzhtvZT+n2I1Nj9Z1h0Ynf8/j5Trusz+Zr54ac/whh7V9HF+tZ8Jfq 26/zGUv4oGM4B284haMcdOJYO/cYNp0yf05Xuhi8vrjUrq3KmBk4htVU90RCIDN5MN+g 3apIBWrcSC7BM1eYmaTEB9Qa48UjTEgRm9iXt6UyEsGzlTzVhnkEfyJTiyKLk+pGeES3 aA1C9a0yFQnv7kXyAUyIikePpUAZ0cFVwPbnV3g6XMG+beCa82jr/jLXlW87eIjd52S2 nWQw== 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=dwdtJrEp7VGZZMDd+9lznHttLO4MU2Kr+CvC2ITklK4=; b=LFtwJgdht4KKBVssfvbbSDZxEzA4FQpYkFN2Vr0PHPDOFGSQzod6IaU35R/I28vG9h sv68uzF+O9Ie+FEhXumfrPYl0MIQjpLuWkBKhi1ODg0R5KhuOu8BXCqkK8XfRvouHY2b a1Ug0Frfbd5gU6s6ywOchQR8iS5BNfXFBHEERrzQT20viZmaIiZ1ZYjLBVyxSpdEXB+W ixB2nr+c6aK5vm8XTg9fw4h/GROF56cwlveFzmatI1yi6CKth3uqhBPhs8MrOVTRNK0p J0tTU8rNV5/PAQgD9S3JW0jYNmd2LHlChaWm2C0bfsRZ9hMAd71SqU3NWCn4IZ9GH8W3 8z/w== 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 h4si2062097edd.105.2021.01.15.03.24.58; Fri, 15 Jan 2021 03:25:24 -0800 (PST) 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 S1726808AbhAOLYX (ORCPT + 99 others); Fri, 15 Jan 2021 06:24:23 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:35736 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725950AbhAOLYW (ORCPT ); Fri, 15 Jan 2021 06:24:22 -0500 X-UUID: c3d30975417f4d79b5ea791d7ed5920b-20210115 X-UUID: c3d30975417f4d79b5ea791d7ed5920b-20210115 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 785667229; Fri, 15 Jan 2021 19:23:36 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 15 Jan 2021 19:23:35 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 15 Jan 2021 19:23:34 +0800 From: Crystal Guo To: , , , CC: , , , , , , , , , , , Subject: [v7,1/2] dt-binding: reset-controller: mediatek: add YAML schemas Date: Fri, 15 Jan 2021 19:23:30 +0800 Message-ID: <20210115112331.27434-2-crystal.guo@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210115112331.27434-1-crystal.guo@mediatek.com> References: <20210115112331.27434-1-crystal.guo@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 Add a YAML documentation for Mediatek, which uses ti reset-controller driver directly. The TI reset controller provides a common reset management, and is suitable for Mediatek SoCs. Signed-off-by: Crystal Guo --- .../bindings/reset/mediatek-syscon-reset.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/mediatek-syscon-reset.yaml diff --git a/Documentation/devicetree/bindings/reset/mediatek-syscon-reset.yaml b/Documentation/devicetree/bindings/reset/mediatek-syscon-reset.yaml new file mode 100644 index 000000000000..85d241cdb0ea --- /dev/null +++ b/Documentation/devicetree/bindings/reset/mediatek-syscon-reset.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/reset/mediatek-syscon-reset.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mediatek Reset Controller + +maintainers: + - Crystal Guo + +description: + The bindings describe the reset-controller for Mediatek SoCs, + which is based on TI reset controller. For more detail, please + visit Documentation/devicetree/bindings/reset/ti-syscon-reset.txt. + +properties: + compatible: + const: mediatek,syscon-reset + + '#reset-cells': + const: 1 + + ti,reset-bits: + description: > + Contains the reset control register information, please refer to + Documentation/devicetree/bindings/reset/ti-syscon-reset.txt. + +required: + - compatible + - '#reset-cells' + - ti,reset-bits + +additionalProperties: false + +examples: + - | + #include + infracfg: infracfg@10001000 { + compatible = "mediatek,mt8192-infracfg", "syscon", "simple-mfd"; + reg = <0 0x10001000>; + #clock-cells = <1>; + + infracfg_rst: reset-controller { + compatible = "mediatek,syscon-reset"; + #reset-cells = <1>; + ti,reset-bits = < + 0x140 15 0x144 15 0 0 (ASSERT_SET | DEASSERT_SET | STATUS_NONE) + >; + }; + }; -- 2.18.0