Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7998757rwi; Tue, 25 Oct 2022 00:44:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Y3MjH6ZztUO/5bUZM/eY0brI3tEdJkPwT+H1F9FYOSJIfpJ1uPsoeNRxuoELlPIp6bBtG X-Received: by 2002:a05:6a00:1905:b0:566:2a02:e1a1 with SMTP id y5-20020a056a00190500b005662a02e1a1mr38212212pfi.1.1666683845962; Tue, 25 Oct 2022 00:44:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666683845; cv=none; d=google.com; s=arc-20160816; b=NdiokZSZ26WR66AC97i403tXEJfkWhzfugpN71vLFc1rDVtR4tjFIVqjY37L6Gkakd C2ageInNmcvGyfUbtgm1Fn3MVfwbqnpCniVKtlhOnKrojnG2Yk+UgEeXzlvaCmj7keue bl2kQB8Ew6EdGj4CM4eAfYlSJGlHfGv3500WSz58BDeDJjJGpUpz2gkV/wPgHFvRGHf3 4aDpQi/m+nsqo4xY9nGMNs/SAtKvHOXIqoDsyM5yS0HJIYrwz767baWEbyCPdU7upcx2 Fdo49zAf2E74ld0pWJ0gEJJFYvPB1FmMAT9BvOEE5l9egC8v2m6/RSTUGjMNF7XZPnWT P+3A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xStNbI+qmIaGoqmahuZTp38b/5MuCsHvo39qK7NqrGI=; b=T+15J943trenVvWsywFqfols+nwoZh9j8SjAxhoD9A/pgo1dyRLxPFhwMynjR7Xolp 1fF0C2CZyBhIhYBSRw2+lWAkFEBjThYAHLPk7n+HnX03ofWPrzXBGi+jqgTXc4c7e4IO 7oalqiU5+50XzMgLESESaq/ihXF37Wase24SvXHZLf+AikXp71RaD4Xr1KYXqGQ72vmr VfCFT+V8VfGBSzdvf/+GgN0Rig/LTfPb+/JDKFhNHK4j8kcfqf9ZJTp59YJMTqxxdoCU rCx9zvqFLlbKqW8HcP9S5uV9t3CygGzxp5ko5hbGEWaoIHI1Z6A/+o441XgcU62G05EU niIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=lomFOLxp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c5-20020aa78e05000000b00565ba4c501asi1946653pfr.276.2022.10.25.00.43.53; Tue, 25 Oct 2022 00:44:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=lomFOLxp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232010AbiJYHm6 (ORCPT + 99 others); Tue, 25 Oct 2022 03:42:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231947AbiJYHmr (ORCPT ); Tue, 25 Oct 2022 03:42:47 -0400 Received: from mxout2.routing.net (mxout2.routing.net [IPv6:2a03:2900:1:a::b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2897A14704F; Tue, 25 Oct 2022 00:42:46 -0700 (PDT) Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout2.routing.net (Postfix) with ESMTP id 9BB7460480; Tue, 25 Oct 2022 07:42:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1666683764; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xStNbI+qmIaGoqmahuZTp38b/5MuCsHvo39qK7NqrGI=; b=lomFOLxpiIWu8V8qmQhQnF6Y/moZ2CQBEQdTOpHqktPJE59xh52PYsY5OTw1w0Tn9Fy/+F 49YKxFWUzuJuhLgPyAiA5MTDv8YmCxkvLId4zdVNnP0LJhlCeiDbol50A6lDXUI9R/oHC4 jCzJ+fzqkruukNKihN4A1yZEu9FOZuo= Received: from frank-G5.. (fttx-pool-217.61.152.57.bambit.de [217.61.152.57]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 93B1F360678; Tue, 25 Oct 2022 07:42:43 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Chaotian Jing , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Wenbin Mei , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sam Shih , Sam Shih Subject: [PATCH v4 2/6] dt-bindings: mmc: Add support for Mediatek MT7986 Date: Tue, 25 Oct 2022 09:42:34 +0200 Message-Id: <20221025074238.18136-3-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221025074238.18136-1-linux@fw-web.de> References: <20221025074238.18136-1-linux@fw-web.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mail-ID: 42c42f34-b7e4-47a3-8309-8ce7891be767 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sam Shih This commit adds dt-binding documentation of mmc for Mediatek MT7986 SoC Platform. Add SoC specific section for defining clock configuration. Signed-off-by: Sam Shih Signed-off-by: Frank Wunderlich --- v3: - drop assigned-clocks/assigned-clock-parents - fix clock description v4: - update binding for mt7986 (new mtk version) - squashed part 1 (compatible) and 3 (SoC specific clock config) and so dropped Ack from Rob for 1rst Part --- .../devicetree/bindings/mmc/mtk-sd.yaml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml index 0cedeb12892d..a7fb54416717 100644 --- a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml +++ b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml @@ -20,6 +20,7 @@ properties: - mediatek,mt6795-mmc - mediatek,mt7620-mmc - mediatek,mt7622-mmc + - mediatek,mt7986-mmc - mediatek,mt8135-mmc - mediatek,mt8173-mmc - mediatek,mt8183-mmc @@ -237,6 +238,31 @@ allOf: reg: minItems: 2 + - if: + properties: + compatible: + contains: + enum: + - mediatek,mt7986-mmc + then: + properties: + clocks: + minItems: 3 + items: + - description: source clock + - description: HCLK which used for host + - description: independent source clock gate + - description: bus clock used for internal register access (required for MSDC0/3). + - description: msdc subsys clock gate + clock-names: + minItems: 3 + items: + - const: source + - const: hclk + - const: "source_cg" + - const: "bus_clk" + - const: "sys_cg" + - if: properties: compatible: -- 2.34.1