Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2251860rwd; Wed, 17 May 2023 07:42:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4SjwqxambTQMQMgc+KOi8rXdjPunTO6FtnGZRdb6ZxB46fTKpxuQXiFHjhLz10/Wb9BCGm X-Received: by 2002:a05:6a00:ac6:b0:62a:d752:acc5 with SMTP id c6-20020a056a000ac600b0062ad752acc5mr1292653pfl.32.1684334577398; Wed, 17 May 2023 07:42:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684334577; cv=none; d=google.com; s=arc-20160816; b=N8T9jJz7j/iS8ZRcIWaWFwXkCKXv/K9izTfK+7kCvCJKuqgJDqynKWvZxwgpypHcCf DQbbthGC6O+UTGHWQC6zE690wypV/cYpdAV7mp2AwgASSVEZzZRfYvucnBbihlokdSdi e0ckQ1wJ0hQlMl9T9S7pfyAqtt3xP4x8ytF9NQTunsEfH+I6Pxvqwo6oDqa/YmifvCvj hAUTDaFGkIWtlT30PHtBXRSc9hs5hu296d0wgHCaFhweFc4KfB9sN4q8qITnlC3bQ8wU /vqSVeLmpCW8/5Yi8X+THfpSqntTMZMB0IfjH4jLPPKarBS/qi9zQCDnfXKop7n+nMAG wQrg== 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=ONuJY2KtI2KHJtsYCPsFhw7heZvdRq+s7WoctleT5QQ=; b=YcLd0FR86a/foYQnps+8HI5adt4Tt6wHD60N2Yl8vNeH3AAaLFQBkOpjVCRkwlLNnQ d20HXTQVq0YPemJTbEqXpASyO5KABZiAwfU1QcAMH96P8gf5yZzDjnAY1soMvOC6x1uK SzwDDnCJtx+Pu3ZWf/ZKnk5/thCVHAh9w2yJQAQaMV1tpJmkmThaZ3++FAmSqqXhqLbV cumx0lAR9LDyxNWxleObR3+z84Oc5GZdLayvzj67zEHRCFJvu3zH0RTMraBlANb/5nBy Amrj2j2JXSFZHu/xiiPcgZfwRKGm84INcgjZpHYthCV18omc1tYoUj3lHDOtUQ65VUWG P1fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mxoDAeCr; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i15-20020a056a00004f00b006443da2b461si22449464pfk.220.2023.05.17.07.42.45; Wed, 17 May 2023 07:42:57 -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=@linaro.org header.s=google header.b=mxoDAeCr; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230039AbjEQOWE (ORCPT + 99 others); Wed, 17 May 2023 10:22:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229707AbjEQOWC (ORCPT ); Wed, 17 May 2023 10:22:02 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 499CD131 for ; Wed, 17 May 2023 07:22:01 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-510b154559fso1455786a12.3 for ; Wed, 17 May 2023 07:22:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684333320; x=1686925320; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ONuJY2KtI2KHJtsYCPsFhw7heZvdRq+s7WoctleT5QQ=; b=mxoDAeCr+NxZwAyQdXIKhSX/7OYByY9p0AlLZp6EEQ/WLcZBbQjkLeIx1CW0kMhhd2 i5OeoqfV9vTiuN0Y6w4Ie1eGulLIO3uu8Cl/66c9O7Yi8VOfRty/V50nVSZSBjFG8I2b nCSOgHMax5X6f7Gx8tQgmhFEvIDVzOUtfh2CdMXJk3oNZFrNPVGNWrIYO2dDeuv2TG79 XZjW76uj/jCOBLyeLqSqi+XLg8TNGa0Sm1mBoRR/kLMJdJqqBJRt5hhCg+8Wt9zqzppV ai/0ait6TEoBeVPYcldyeTntoxu4a6oC9HEVbu2AWHmZojpQkf1I1DxY8ZjyQ0jcV1p7 aqcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684333320; x=1686925320; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ONuJY2KtI2KHJtsYCPsFhw7heZvdRq+s7WoctleT5QQ=; b=QBgAXLsBY+aBmbgJ34WXvzxCsxLJFsaauUfdIcttqoEckml+WXcMJZUm8SdQpnfYv6 cDv8OTr4vuvuyNVVG5lcx8LKEGoDpxbT0CF7TvOswnrPovbZ+zI3+b7i0ycPKgWSu+2c wj42Yh2TUi8AmZuiHpCK5lVUf9R/nZN3Tc7HiuTEnLFNDLrCOk+OgTvCYbU8UZa0IXSW fUUZmrQXDgcg51jVb+9WTaZuNNvIGLAw77H+tQqHsuqnxKfiBunI/itfDLXGGPfojQAY kgN/bQGDdPtD5GIBNUqcQ8KhZLWCydtA1pM55Brzj6o6kAuS2UX9UwpKk0HkjNN70+Gt YNTg== X-Gm-Message-State: AC+VfDyxyK5Rf6I9t8EAnBJp+sqjU1cD9vBscgSCHkSb1ucO7GBbx2Lx IKTvKa8kx08AdbO5/WMY4Wbpbw== X-Received: by 2002:a17:907:c1e:b0:94f:250b:2536 with SMTP id ga30-20020a1709070c1e00b0094f250b2536mr39106884ejc.28.1684333319732; Wed, 17 May 2023 07:21:59 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:c9ff:4c84:dd21:568d? ([2a02:810d:15c0:828:c9ff:4c84:dd21:568d]) by smtp.gmail.com with ESMTPSA id ks16-20020a170906f85000b00947740a4373sm12136992ejb.81.2023.05.17.07.21.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 May 2023 07:21:59 -0700 (PDT) Message-ID: <83f484ff-f170-6f32-f4b4-9743eb6d0b4c@linaro.org> Date: Wed, 17 May 2023 16:21:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v5 2/5] dt-bindings: clocks: atmel,at91rm9200-pmc: convert to yaml Content-Language: en-US To: Claudiu Beznea , mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor.dooley@microchip.com, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20230517094119.2894220-1-claudiu.beznea@microchip.com> <20230517094119.2894220-3-claudiu.beznea@microchip.com> From: Krzysztof Kozlowski In-Reply-To: <20230517094119.2894220-3-claudiu.beznea@microchip.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,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 On 17/05/2023 11:41, Claudiu Beznea wrote: > Convert Atmel PMC documentation to yaml. Along with it clock names > were adapted according to the current available device trees as > different controller versions accept different clock (some of them > have 3 clocks as input, some has 2 clocks as inputs and some with 2 > input clocks uses different clock names). Thank you for your patch. There is something to discuss/improve. > + > + - if: > + properties: > + compatible: > + contains: > + enum: > + - atmel,at91rm9200-pmc > + - atmel,at91sam9260-pmc > + - atmel,at91sam9g20-pmc > + then: > + properties: > + clocks: > + minItems: 2 > + maxItems: 2 > + clock-names: > + items: > + - const: slow_xtal > + - const: main_xtal > + > + - if: > + properties: > + compatible: > + contains: > + enum: > + - atmel,sama5d2-pmc > + - atmel,sama5d3-pmc > + - atmel,sama5d4-pmc > + then: > + properties: > + clocks: > + minItems: 2 > + maxItems: 2 > + clock-names: > + items: > + - const: slow_clk > + - const: main_xtal This and previous if, should be squashed. You have exactly the same then:. Best regards, Krzysztof