From patchwork Tue Oct 25 07:42:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 10571 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp863232wru; Tue, 25 Oct 2022 00:43:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6rkVKtwuOm3x8WjVR5XEAVbPbUG/30C1RQY1lJHWO8AwqXbsK1cZw2BcCU2dXhZZr9vU0n X-Received: by 2002:a63:101:0:b0:460:6d90:3f81 with SMTP id 1-20020a630101000000b004606d903f81mr30473130pgb.545.1666683820725; Tue, 25 Oct 2022 00:43:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666683820; cv=none; d=google.com; s=arc-20160816; b=E1vCourPNCe24ddDjdppu3Ffu3wVvTSzeeOXHwdYzpAYWF9yx37fK1RVUqBod/1TRM zrW8cq7zo7XUjqsZrFtoUtdkW/xLL/4tsB1qz4jJD2mukRXotyYa0g6do9l1c4lSzlYp 1L7z2urlMbgYE2tLqm7+Suh/FNO6Co6Jy4UAoDZ8w5yXEmJQOKrIMlXjaScxBpHECjZ9 Nc5YkJ+pOBKvGIzi+nEuxhiR/5h+1IVjFh1jf/XTkGKcHOsOBbSM7beqmNZgJZe/+9+O Px/swa5/OUPWzQsOkS0nrTmA+ISFLoXEaXdnG9vc0NEHVSney47On9JN39Go6nwO/hBe 3REg== 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 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.28; Tue, 25 Oct 2022 00:43:40 -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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747644653967673933?= X-GMAIL-MSGID: =?utf-8?q?1747644653967673933?= 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: