Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1946631pxp; Thu, 10 Mar 2022 15:45:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxoa9NcYvPJP9B6It5pWA8/3/cGr1Tgz+AFZUfp48Znh/3xL/1+eUs9Oco63TpexPBc3sZg X-Received: by 2002:a17:906:3803:b0:6cf:56b9:60a9 with SMTP id v3-20020a170906380300b006cf56b960a9mr6153351ejc.716.1646955957705; Thu, 10 Mar 2022 15:45:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646955957; cv=none; d=google.com; s=arc-20160816; b=AHe/fCcIPtPlVMvjztdmDxFqcJ42sMtB/PYqSlKdr2aw+DxhK9y3vMJwec+1Wo+F1q 0t8fLugYEYMjrh3y3r5bphN9gBBduNLr/PVVTXQNMCFYTr/GJXaP5g5o33kAQbBNbFnm QCLcHuvyyEd/YyKQhahTvLBi7P0cDCZp1lqK77lHBPxVsVk+xNWUmo/EPz5GZR8Js8p/ WobK/KwPAuu8EDCA5lagv6ydLuTjJZ6AiSlJrp46b419j/T3Hz4kWpk7iohoMdyb1+Ne 0RypgSyNxgpwa+47BITTsA4s6lZkV8FHmWNMxRb6rD2I7tlf8WXZLaRzZsuwOynDoQsF uGXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=qvOE3jak++pUiow8bpU9bXWS/P2UoZ4k0QK3oOQxPEQ=; b=Hi0rarl9qFDmoIQz3ee/N1slY1ejW3zALE+uq2h9qieFX564IZ7RbV6bpv9u4z5XRW XdVKb5EG/1cXdN3N5iDOSla7IvxngXqo0dHzpTjlWoOdN/dShors/3Llulu2bz1f2vxn Wi68IpPkT7buf2o5Je5NuaxEd4umVtJNjiL/Uq0U5FT+20HU7+LecFtuXVKf66EyPwyD ze+oyM2XFd9SUIYRVEqv1u13788lHjgPAc3hKRN9RpVjJhI57Bl14HM58lK06PJbYPMC iHEkoBjjiuogal6RrjW2HlPk+DY2c5BRyZ4i7sWrANLUq83uF47zdKPuJw9f205HsO9O Xq4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=Vab6PR0n; 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=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t13-20020a170906178d00b006cf9c53ba53si3795257eje.419.2022.03.10.15.45.35; Thu, 10 Mar 2022 15:45:57 -0800 (PST) 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=@canonical.com header.s=20210705 header.b=Vab6PR0n; 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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239150AbiCJLGT (ORCPT + 99 others); Thu, 10 Mar 2022 06:06:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237070AbiCJLGO (ORCPT ); Thu, 10 Mar 2022 06:06:14 -0500 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C02CD2018E for ; Thu, 10 Mar 2022 03:05:12 -0800 (PST) Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id CA6C43F1A3 for ; Thu, 10 Mar 2022 11:05:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1646910310; bh=qvOE3jak++pUiow8bpU9bXWS/P2UoZ4k0QK3oOQxPEQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Vab6PR0nMvjuvRgiYXy7J+XjX8JaxovbJrglk17ElYLFDJmObVXDmWYhQP4wkDiE3 /m400Dv1qLz6K87jYqfPav6zx51A4lh4yb4e7Nj/OtzugTw4YvmcnfsZLOsCfIkIdO QOfj7zbMkAgAQlEQE3KmxVoyGnBkjYMK2KxHypaQokBcO3r45ka3+r/Ju/T240392C IIqjDTAyZRDJkFKJau4K9GSL6BqPbPWKug2DaEu+px0zgNgFbZzOYoHBfmrPl1R+IP psf5fCyl4Vt5BkmhJg93xEHemSCexjAf2Ct/JZNb7aLmmiOlHDJ7uqDE/+xhj0ET1o ZMa2j8tckCvrg== Received: by mail-ej1-f72.google.com with SMTP id gz16-20020a170907a05000b006db8b2baa10so510821ejc.1 for ; Thu, 10 Mar 2022 03:05:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=qvOE3jak++pUiow8bpU9bXWS/P2UoZ4k0QK3oOQxPEQ=; b=7pcZe6ydZH7hh1WCWHLcl+vi5snfAyXF2YKZld88uJ8YPjd9GbHh2VSEol+tCXvR8m RvtNm8qZHfnRd/6mfH778d98cslW6Bserc9+Ei4FHxepvfzgJVqcKW7B2NwfNzOkJlK2 eh+OCcFYgQGJt++d6L5OsIfErG8RACIZr27AQvw1O0SUqMgHDBz1PPlI/C9nXKOeiPUA cxc3bZskbnlo7lEr2ygvduH77TTA3mUCaUCPVNCJiTjw3EZaKiuPiikocJ30575N5wFr EuEW+9US1Zn9EugC6nf6XF1ZOJ7IyC/ZAnhu3ysXh26Yo+yCqJ1cvplevKGPgTtfVb5L mEhQ== X-Gm-Message-State: AOAM530hojIKlJrruf7EHsA/emmOy8sMXTS0Q+pN4+PsJu44Yysxfi4G 0NaM4NHlPTTkj21QGEIK2LOT3TIZs8FJmGtQpdmJ4VltZVXwnhGLtcvdXymsgWJ6EQSUuxQZjEO 8VU5lFkfCUkjIjSb03cdu3AJGu9SW0xcuGgopZPbBVA== X-Received: by 2002:a05:6402:26cc:b0:416:4189:f65e with SMTP id x12-20020a05640226cc00b004164189f65emr3763584edd.228.1646910310517; Thu, 10 Mar 2022 03:05:10 -0800 (PST) X-Received: by 2002:a05:6402:26cc:b0:416:4189:f65e with SMTP id x12-20020a05640226cc00b004164189f65emr3763567edd.228.1646910310361; Thu, 10 Mar 2022 03:05:10 -0800 (PST) Received: from [192.168.0.144] (xdsl-188-155-174-239.adslplus.ch. [188.155.174.239]) by smtp.gmail.com with ESMTPSA id p4-20020a50d884000000b004128cf5fe2asm1892496edj.79.2022.03.10.03.05.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Mar 2022 03:05:09 -0800 (PST) Message-ID: <2b271ddf-d054-522f-7897-cd842e935823@canonical.com> Date: Thu, 10 Mar 2022 12:05:09 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 3/3] dt-bindings: i2c: at91: Add SAMA7G5 compatible strings list Content-Language: en-US To: Sergiu.Moga@microchip.com, robh+dt@kernel.org, Nicolas.Ferre@microchip.com, alexandre.belloni@bootlin.com, Claudiu.Beznea@microchip.com Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org References: <20220309120714.51393-1-sergiu.moga@microchip.com> <20220309120714.51393-4-sergiu.moga@microchip.com> <8f4cc7ad-6ce2-2c78-dab4-759d05761a64@microchip.com> From: Krzysztof Kozlowski In-Reply-To: <8f4cc7ad-6ce2-2c78-dab4-759d05761a64@microchip.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 On 10/03/2022 11:42, Sergiu.Moga@microchip.com wrote: > On 10.03.2022 09:22, Krzysztof Kozlowski wrote: >> On 09/03/2022 13:07, Sergiu Moga wrote: >>> Add compatible strings list for SAMA7G5. >>> >>> Signed-off-by: Sergiu Moga >>> --- >>> .../bindings/i2c/atmel,at91sam-i2c.yaml | 38 ++++++++++++------- >>> 1 file changed, 24 insertions(+), 14 deletions(-) >>> >>> diff --git a/Documentation/devicetree/bindings/i2c/atmel,at91sam-i2c.yaml b/Documentation/devicetree/bindings/i2c/atmel,at91sam-i2c.yaml >>> index d4aadbbd1a11..661a679b98cf 100644 >>> --- a/Documentation/devicetree/bindings/i2c/atmel,at91sam-i2c.yaml >>> +++ b/Documentation/devicetree/bindings/i2c/atmel,at91sam-i2c.yaml >>> @@ -16,10 +16,15 @@ allOf: >>> properties: >>> compatible: >>> contains: >>> - enum: >>> - - atmel,sama5d4-i2c >>> - - atmel,sama5d2-i2c >>> - - microchip,sam9x60-i2c >>> + oneOf: >>> + - items: >>> + - enum: >>> + - atmel,sama5d4-i2c >>> + - atmel,sama5d2-i2c >>> + - microchip,sam9x60-i2c >>> + - items: >>> + - const: microchip,sama7g5-i2c >>> + - const: microchip,sam9x60-i2c >> This looks not needed, because it contains microchip,sam9x60-i2c which >> is mentioned earlier. >> > Hmm, I might have misunderstood the functionality. I thought it would be > stricter, having to match all the strings of that compatible. I guess > something like this should be enough then? >            oneOf: >               - enum: >                   - atmel,sama5d4-i2c >                   - atmel,sama5d2-i2c >                   - microchip,sam9x60-i2c >                   - microchip,sama7g5-i2 > > Just adding the sama7g5 compatible seems to pass the check on my end. Yes, that is also a good solution. Best regards, Krzysztof