Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0734DC43219 for ; Wed, 17 Nov 2021 01:22:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E749261A58 for ; Wed, 17 Nov 2021 01:22:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232756AbhKQBZA (ORCPT ); Tue, 16 Nov 2021 20:25:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232803AbhKQBYx (ORCPT ); Tue, 16 Nov 2021 20:24:53 -0500 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD5D4C061231 for ; Tue, 16 Nov 2021 17:21:53 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id r11so3073903edd.9 for ; Tue, 16 Nov 2021 17:21:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pensando.io; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=M0DL4Z+z7lD4X8gzZ0br5lXdNaFuU3WYYnUldjpHc2U=; b=nwq+nix4pOQgFe2cQDcY0ONGPbpxJ8sYMy/yq7her6nK8IAaY2rNQ3/k8ehU7eMZuc BZHmd+0AWLJceWNi/O1CPHLx4uT4KZq0v5u8cRnw9uGsUiBzDqZk/ninenAMx52mId9J 57cXo85nb5SzFi1ufwA9w5fSFx7vpsSJjFmrlhb72RHqgDuyFlDrnjLEBhBJ2sP7og5o pqa6mqzGcg6w0zAxvbBhNRYx7ySeq1E/LFCO1Sa4+OFj8Pk4f9D+nDkLsevVN2iwA/3w UgkZT03wrnhv4U1re89+eWg263xXyl874+2ECrp1/IaYe1NM2h0Aas1G2dM8F/HaRfY8 vF/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=M0DL4Z+z7lD4X8gzZ0br5lXdNaFuU3WYYnUldjpHc2U=; b=iMFFNeUteRVg/rCOFG5AUNct/MTA64GV0Z+PU4xn2Iv/8PNLARueGB4JjlA85K2VOf ZHRbe3n9YbGvVT+mrPIaHV7JKWuIvvnJqBsyfcLIZxDMPPCki8JjOAEnBYDD2b4pKTpV qHWbAa3agtqwWsZlHeN2hmVmrLCCzgF+/21iZKso3UZurQNhgakzjSzinPaqzg5cFSve azT9Xyivq9MrOvOJXGEFTq9q8924cs5QA/vqUixn1FqZ62K8FT20ENrO0ToYCmYhSZyK 5bHx+8jSh/s3yFnGNxz2h0h5OTwkps9ylz87BzHfowWwnfDYqAIhqe0mU+E9wqSSq+WY VIfA== X-Gm-Message-State: AOAM532y1FVrOGbKs/cInycbylOanTBUSnSnt5QECgSOas3zyLIwNXEt tHWuRyvGdz336Zlu9F7RN3Qnh/Vh1W6dfSmVeD+RAg== X-Google-Smtp-Source: ABdhPJz+Zpnh28paqLB4qDHLzR3XVq2bt0ht3aoYvckA16R5n/koE3WziQ9CnstPTiZ+BYY0ZXMPZLKJl704orREtZg= X-Received: by 2002:a17:907:d89:: with SMTP id go9mr16600378ejc.330.1637112112433; Tue, 16 Nov 2021 17:21:52 -0800 (PST) MIME-Version: 1.0 References: <20211025015156.33133-1-brad@pensando.io> <20211025015156.33133-4-brad@pensando.io> In-Reply-To: From: Brad Larson Date: Tue, 16 Nov 2021 17:21:41 -0800 Message-ID: Subject: Re: [PATCH v3 03/11] dt-bindings: mmc: Add Pensando Elba SoC binding To: Rob Herring Cc: Linux ARM , Arnd Bergmann , Linus Walleij , Bartosz Golaszewski , Mark Brown , Serge Semin , Adrian Hunter , Ulf Hansson , Olof Johansson , "open list:GPIO SUBSYSTEM" , linux-spi , linux-mmc , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On Tue, Oct 26, 2021 at 11:10 AM Rob Herring wrote: > > On Sun, Oct 24, 2021 at 06:51:48PM -0700, Brad Larson wrote: > > Pensando Elba ARM 64-bit SoC is integrated with this IP and > > explicitly controls byte-lane enables resulting in an additional > > reg property resource. > > > > Signed-off-by: Brad Larson > > --- > > .../devicetree/bindings/mmc/cdns,sdhci.yaml | 13 ++++++++----- > > 1 file changed, 8 insertions(+), 5 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml b/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml > > index af7442f73881..6c68b7b5abec 100644 > > --- a/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml > > +++ b/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml > > @@ -15,13 +15,16 @@ allOf: > > > > properties: > > compatible: > > - items: > > - - enum: > > - - socionext,uniphier-sd4hc > > - - const: cdns,sd4hc > > + oneOf: > > + - items: > > + - enum: > > + - socionext,uniphier-sd4hc > > + - pensando,elba-emmc > > + - const: cdns,sd4hc > > > > reg: > > - maxItems: 1 > > + minItems: 1 > > + maxItems: 2 > > If there is more than 1, then you need to describe what each entry is. The dtschema update and yamllint install shows the errors your bot reported. With the updated cdns,sdhci.yaml to add the description for Elba's two reg items this is what I'm getting with in 5.16.0-rc1 (next-20211116): diff --git a/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml b/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml index 4207fed62dfe..c01a7283c468 100644 --- a/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml +++ b/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml @@ -12,17 +12,44 @@ maintainers: allOf: - $ref: mmc-controller.yaml + - if: + properties: + compatible: + contains: + enum: + - socionext,uniphier-sd4hc + then: + properties: + reg: + maxItems: 1 + items: + - description: SDHCI CDNS HRS registers + - if: + properties: + compatible: + contains: + enum: + - pensando,elba-emmc + then: + properties: + reg: + maxItems: 2 + items: + - description: SDHCI CDNS HRS registers + - description: Byte lane control register properties: compatible: - items: - - enum: - - microchip,mpfs-sd4hc - - socionext,uniphier-sd4hc - - const: cdns,sd4hc + oneOf: + - items: + - enum: + - socionext,uniphier-sd4hc + - pensando,elba-emmc + - const: cdns,sd4hc reg: - maxItems: 1 + minItems: 1 + maxItems: 2 interrupts: maxItems: 1 $ make DT_CHECKER_FLAGS=-m dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml LINT Documentation/devicetree/bindings CHKDT Documentation/devicetree/bindings/processed-schema-examples.json SCHEMA Documentation/devicetree/bindings/processed-schema-examples.json ... DTEX Documentation/devicetree/bindings/mmc/cdns,sdhci.example.dts DTC Documentation/devicetree/bindings/mmc/cdns,sdhci.example.dt.yaml CHECK Documentation/devicetree/bindings/mmc/cdns,sdhci.example.dt.yaml These errors are reported for unrelated files not on DT_SCHEMA_FILES bindings/net/qcom,ipa.yaml: ignoring, error in schema: properties: qcom,smem-state-names bindings/iio/adc/st,stm32-dfsdm-adc.yaml: ignoring, error in schema: patternProperties: ^filter@[0-9]+$: properties: st,adc-channel-names bindings/interconnect/qcom,rpmh.yaml: ignoring, error in schema: properties: qcom,bcm-voter-names Thanks, Brad