Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3259396rwb; Mon, 15 Aug 2022 22:33:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR7YrN1MkMJJLrv1OW4/boZgygmXt64vqI9OJ0TeDaFRlDs0G02cxAT3bakFHHhEdmjYo+pO X-Received: by 2002:a17:90b:4f44:b0:1f5:1310:9e7f with SMTP id pj4-20020a17090b4f4400b001f513109e7fmr31528555pjb.235.1660627988788; Mon, 15 Aug 2022 22:33:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660627988; cv=none; d=google.com; s=arc-20160816; b=tzdYTfpl5CPEC1XjTWNy63erxFuxIXAC7U31VfDX/hjnsnSyvuB61WCsXk3TJzdE/L cxFaGT2PU3ir8i4m6AqnRftmQ2kUuLvQzHGYFfjd52DNptFNPLEI4F3ngYGDWhb4n9Ay o4qd4/icWggl6B21WCYX4q7bKj9QsZCaEYybz5H37qOe2NroRGbsJ3XkJjv4izkeiCrI qTPkacMw/02pxXXZ9oZ18rdqMmtb1f5CFJ7g7COOfbICTwKJ6+T+g04KNCOqHuYPUbMW R36ctnCt+kour4s+UMc+fqZs/+EbS2XZUVqmsjtAVKQXCcQ/rkHXRTpdqBs6zd0VaQLt FtfQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=72HdrJ3sFmoGUSPcBO7+jSYeLwkyY+VlkDLVZkVLGLY=; b=LuqtjBEcK4IN0OLKf5mS/l0hvWbTOWZ6/5imilpEu+sNRclAWkM6zXaXMs3yi1i6D7 Eida2lxpbwjWQm6EyvuNtIYqzVVoD2QqnF/E2F5Vm8ZI0h8M/Kh1arTGc01dtp3olIle qs+QXYzNEw65Mcy9bqyJu5DTyXZ2EP3zClbL8F8+SIE9y5jpIYKvnoHctd5y58BCiinm 8DfaT8ta8UgyNGoX6yiwFWIhr5XLkmy20pjjTPB6n7YA932sGKQCmRa+SY7TXWr7f9Ia pa3eznGyOseaEhg+vKyo2qRqIgG9O134/ox7zVLEfnqg8jmBiyvbCV4TS8iT0FyDPOgy 8t2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=m4rsiZh+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bt19-20020a056a00439300b0052f75073e5bsi11792550pfb.7.2022.08.15.22.32.57; Mon, 15 Aug 2022 22:33:08 -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=@linuxfoundation.org header.s=korg header.b=m4rsiZh+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231865AbiHPEoN (ORCPT + 99 others); Tue, 16 Aug 2022 00:44:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232259AbiHPEk7 (ORCPT ); Tue, 16 Aug 2022 00:40:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC217CC337; Mon, 15 Aug 2022 13:33:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AAB9C61072; Mon, 15 Aug 2022 20:33:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99A8EC433C1; Mon, 15 Aug 2022 20:33:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595584; bh=O1pFYaTsAQWDajFRfQ6pbZr1nVyv40meCohgbHKs3lw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m4rsiZh+XM+tCSAme+nS8iQgwyg969xo0Bunhu0/3KWqjPr7+Mm9EcF7ue0YoTGPi Fme+CAjFEGM8kK8Jb0e5ZKZj3d3zIYtbFhAotnIy1O0d6LEipU3hQ6b0ovoDrbW0Kk pfK72ThkRp0DlO5fxV9YMfAzcmXnb90aVVYQab2Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bjorn Andersson , Rob Herring , Ulf Hansson , Bhupesh Sharma , Sasha Levin Subject: [PATCH 5.19 0793/1157] dt-bindings: mmc: sdhci-msm: Fix issues in yaml bindings Date: Mon, 15 Aug 2022 20:02:29 +0200 Message-Id: <20220815180511.201457858@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: Bhupesh Sharma [ Upstream commit 8574adf5222d786b747022c6edcbcdddf409a139 ] Rob pointed some remaining issues in the sdhci-msm yaml bindings (via [1]). Fix the same by first using the 'mmc-controller.yaml' as 'ref' and thereafter also fix the issues reported by 'make dtbs_check' check. [1]. https://lore.kernel.org/linux-arm-msm/YnLmNCwNfoqZln12@robh.at.kernel.org/ Fixes: a45537723f4b ("dt-bindings: mmc: sdhci-msm: Convert bindings to yaml") Cc: Bjorn Andersson Cc: Rob Herring Cc: Ulf Hansson Signed-off-by: Bhupesh Sharma Link: https://lore.kernel.org/r/20220514220116.1008254-1-bhupesh.sharma@linaro.org Signed-off-by: Ulf Hansson Signed-off-by: Sasha Levin --- .../devicetree/bindings/mmc/sdhci-msm.yaml | 52 ++++++++++++++++--- 1 file changed, 44 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml b/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml index e4236334e748..31a3ce208e1a 100644 --- a/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml +++ b/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml @@ -17,6 +17,9 @@ description: properties: compatible: oneOf: + - enum: + - qcom,sdhci-msm-v4 + deprecated: true - items: - enum: - qcom,apq8084-sdhci @@ -27,6 +30,9 @@ properties: - qcom,msm8992-sdhci - qcom,msm8994-sdhci - qcom,msm8996-sdhci + - const: qcom,sdhci-msm-v4 # for sdcc versions less than 5.0 + - items: + - enum: - qcom,qcs404-sdhci - qcom,sc7180-sdhci - qcom,sc7280-sdhci @@ -38,12 +44,7 @@ properties: - qcom,sm6350-sdhci - qcom,sm8150-sdhci - qcom,sm8250-sdhci - - enum: - - qcom,sdhci-msm-v4 # for sdcc versions less than 5.0 - - qcom,sdhci-msm-v5 # for sdcc version 5.0 - - items: - - const: qcom,sdhci-msm-v4 # Deprecated (only for backward compatibility) - # for sdcc versions less than 5.0 + - const: qcom,sdhci-msm-v5 # for sdcc version 5.0 reg: minItems: 1 @@ -53,6 +54,28 @@ properties: - description: CQE register map - description: Inline Crypto Engine register map + reg-names: + minItems: 1 + maxItems: 4 + oneOf: + - items: + - const: hc_mem + - items: + - const: hc_mem + - const: core_mem + - items: + - const: hc_mem + - const: cqe_mem + - items: + - const: hc_mem + - const: cqe_mem + - const: ice_mem + - items: + - const: hc_mem + - const: core_mem + - const: cqe_mem + - const: ice_mem + clocks: minItems: 3 items: @@ -121,6 +144,16 @@ properties: description: A phandle to sdhci power domain node maxItems: 1 + mmc-ddr-1_8v: true + + mmc-hs200-1_8v: true + + mmc-hs400-1_8v: true + + bus-width: true + + max-frequency: true + patternProperties: '^opp-table(-[a-z0-9]+)?$': if: @@ -140,7 +173,10 @@ required: - clock-names - interrupts -additionalProperties: true +allOf: + - $ref: mmc-controller.yaml# + +unevaluatedProperties: false examples: - | @@ -149,7 +185,7 @@ examples: #include #include - sdhc_2: sdhci@8804000 { + sdhc_2: mmc@8804000 { compatible = "qcom,sm8250-sdhci", "qcom,sdhci-msm-v5"; reg = <0 0x08804000 0 0x1000>; -- 2.35.1