Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4043783rwi; Sat, 22 Oct 2022 04:21:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4L9eyJ18WEDloNgXjjAGrKfQf1d813ApQUA971cRikVqDnOmyzodwR9R1J9HOlDADUARWV X-Received: by 2002:a17:90b:2741:b0:20a:ebc3:6513 with SMTP id qi1-20020a17090b274100b0020aebc36513mr28235628pjb.29.1666437697720; Sat, 22 Oct 2022 04:21:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666437697; cv=none; d=google.com; s=arc-20160816; b=Hd5HbHuM8lWprzLOguatqkHXWBc5KHtWiwfFCWrfrhHMWM1yKj/mjHaEJX1s+WTheI t9j89EGX1bMYPJcmEpRqwsmjGknbLUbkn68Nmgt/rQufDop0fa06syW/x74FVkXFZcNV xghxGkpgerUx1O/508Xe/rIy5dlWySuH/MAVaoyumRohvxg9VvpWBYhIIydjnxoWzeRm OM3TS7/2g92jhy0rtzy7WdCYBfnPWeRR5Twl3KHVDl4Poc+HJE0AFm7NAuw9tfhCYOeg sikq/qngs44g1+MTfRc7Vlowm3zciZisoB8Qf493Bp78mE6lGopONND4kdpWqM0WRr9n 7cvA== 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=uwE9fx2tS9oduVfTIs9Hd6/Fb9a+3JIsjdgPxEZuCWk=; b=uGfN/XT3NBAYetDo+yK0LyT0a1NKUZglDJObyGyxufixPsV92xLPl14Ip9JoEbjsRq sju2j4yB5M8+XRw3FA2BswOQtiNVevocgMKpAz9UoCkKLpXj1yE10fLaTG/sRWzCc5fh ZAHrLfjKW0l7TXB2EEG8g2WzZBUB2wtmfpWnfWU08yGVvRvX+NnD25O+KTuVtNb9+++e YSB4VmKRFcb3+M3/QBzdNI55RQo6qRqE24L7yQawRfB5B4CPE72vGTGLXtAcU4gIeM8b 7s0fK5zPrEiFkmJHSjYLb/jzDlB0T9kgzk320rCk2LZcXCXYDUKWI/TzgcCruO2XF9PQ sCoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=G1xnd0RA; 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 u3-20020a655c03000000b00454a7fa276esi26931849pgr.224.2022.10.22.04.21.23; Sat, 22 Oct 2022 04:21:37 -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=G1xnd0RA; 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 S230435AbiJVKop (ORCPT + 99 others); Sat, 22 Oct 2022 06:44:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230013AbiJVKoS (ORCPT ); Sat, 22 Oct 2022 06:44:18 -0400 Received: from mxout1.routing.net (mxout1.routing.net [IPv6:2a03:2900:1:a::a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA22F31BF49; Sat, 22 Oct 2022 03:01:50 -0700 (PDT) Received: from mxbox1.masterlogin.de (unknown [192.168.10.88]) by mxout1.routing.net (Postfix) with ESMTP id 8AA8A41A25; Sat, 22 Oct 2022 09:05:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1666429540; 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=uwE9fx2tS9oduVfTIs9Hd6/Fb9a+3JIsjdgPxEZuCWk=; b=G1xnd0RAP2vFdUQcNsw9U+lz+xRBas2yonC7dKl/xdx4sQpNoL0h2wCEjl4zSw/hjbN97h XqXubJCBuU3O8GVbLOnfbLZ8regoUcyCtf/Iinridt3NAixHPzUNZHPfCHH4313o5u5VVv IXlpKKROuQzbWa7VeD+offVODzc0hm8= Received: from frank-G5.. (fttx-pool-80.245.73.148.bambit.de [80.245.73.148]) by mxbox1.masterlogin.de (Postfix) with ESMTPSA id CB46C40690; Sat, 22 Oct 2022 09:05:39 +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 Subject: [PATCH v2 5/5] dt-bindings: mmc: mtk-sd: add mt7986 Date: Sat, 22 Oct 2022 11:05:30 +0200 Message-Id: <20221022090530.16265-6-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221022090530.16265-1-linux@fw-web.de> References: <20221022090530.16265-1-linux@fw-web.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mail-ID: 2ff8b4a6-6a4a-400a-8436-ce86973b8370 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 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: Frank Wunderlich Add SoC specific section for defining clock configuration. Add compatible in "not" section to avoid override the settings again. Signed-off-by: Frank Wunderlich --- .../devicetree/bindings/mmc/mtk-sd.yaml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml index c7bcf0c3dd5d..9df63c461f1f 100644 --- a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml +++ b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml @@ -229,6 +229,33 @@ allOf: - const: hclk - const: source_cg - const: bus_clk + - if: + properties: + compatible: + contains: + enum: + - mediatek,mt7986-mmc + then: + properties: + assigned-clock-parents: + maxItems: 2 + assigned-clocks: + maxItems: 2 + 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 + - description: msdc subsys clock gate + clock-names: + minItems: 3 + items: + - const: source + - const: hclk + - const: axi_cg + - const: ahb_cg - if: not: properties: @@ -237,6 +264,7 @@ allOf: enum: - mediatek,mt2712-mmc - mediatek,mt8192-mmc + - mediatek,mt7986-mmc then: properties: clocks: -- 2.34.1