Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1440456rwb; Fri, 19 Aug 2022 03:54:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR7E3x2MNMursqHWlGvltJq1M0nb4+xPHh9wh/23orhHbtio5Tx/ALmzzliOqQjnCTHz6fxy X-Received: by 2002:a05:6402:5193:b0:43e:1d52:fd70 with SMTP id q19-20020a056402519300b0043e1d52fd70mr5663817edd.150.1660906490438; Fri, 19 Aug 2022 03:54:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660906490; cv=none; d=google.com; s=arc-20160816; b=hV3D1l5NRDTUIjsayb5KQtPbY/i/j11ZKlPYPedQ703+N6EvfQlouQM+ikBL5fRw6b jNWGJcVXhaUBq4GBolkTmQsX6TI08596AizTlhKm5rOjI5cKCv4wk2VPmzOi8FykVf74 YK1vEi8fp58ec8q1FCrllaz0n5llh1UlgLDrPgofXzA3As5KlOqgD8zDJoPQ0cwFWEud OasmOP/w1QRN/ayMhdZXgC/5vq63zkmzpy9zsSDcCSC0LcafSBWtbCLv6a3Vok6vox4+ xZQwaO49mEPlBAPbdh9DToRGaRDX1VChInp03F58rxwFKHkMANBX4aAkupVKFAYSAXAa H1kg== 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:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=1gI0bQ8Z+7P6U8Und/i1Wi41gaLPS8Vn6rr9ZwE++wg=; b=BwwZS5cKkPgdhxjvr9xMDrCZgYBENS7facuBiM8Nz+Huo1Zrt1SwyT3BQdWokvaQmo ZS1VHSTYaOTwLH32oeckTTAZ3gMW7M9N87kfT4lKZIujhZQ6fRm0za1bDcuOlSuYG9Md kXW8xUt1xklrDknWsueKSZhJNyrf/WKVfPoCmJ24nYn4KH9sadRqRWUDS2QfcQmllnkX 3oVwOWB8IJr6c565Qj+7VQuBhjZGyy4NO0Xo9UV+P4ZZPX0xRjOTJQojZ1iSYQqcF7Q9 Wg/1D0/jFpkfO4q5QTQONSW5S/AFH8t+HQVXUp2ihvgYoi87VXSnEwFphmmdxKTkuLKL Db6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=bca7V1Sn; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt8-20020a170907728800b007313bdfb98bsi2917129ejc.18.2022.08.19.03.54.25; Fri, 19 Aug 2022 03:54:50 -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=@ti.com header.s=ti-com-17Q1 header.b=bca7V1Sn; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348088AbiHSKoZ (ORCPT + 99 others); Fri, 19 Aug 2022 06:44:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348094AbiHSKoW (ORCPT ); Fri, 19 Aug 2022 06:44:22 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03FA152FD0; Fri, 19 Aug 2022 03:44:20 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 27JAi3O6007860; Fri, 19 Aug 2022 05:44:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1660905843; bh=1gI0bQ8Z+7P6U8Und/i1Wi41gaLPS8Vn6rr9ZwE++wg=; h=Date:CC:Subject:To:References:From:In-Reply-To; b=bca7V1Snc+5/PQcygoMqyULSdQbNbkMfPKbJkAF8En+E4Lzr+w3sddMwy3eODnGU+ 8RmkCEP9VIFhvJklR06f7iInRb+arFlo15weElG52bFWFNrBfkP8R8FwHYz/LuncHh UxbRuDL8AGuRJ00N92a7ba7GIJtpESV+fRJp7En4= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 27JAi2AG128600 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 19 Aug 2022 05:44:02 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Fri, 19 Aug 2022 05:44:02 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Fri, 19 Aug 2022 05:44:02 -0500 Received: from [10.24.69.241] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 27JAhvci093401; Fri, 19 Aug 2022 05:43:58 -0500 Message-ID: <0ca78aad-2145-c88b-a26e-9ababa38df6e@ti.com> Date: Fri, 19 Aug 2022 16:13:57 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 CC: , , , , , , , , , , , , , , Subject: Re: [PATCH v4 1/3] dt-bindings: net: ti: k3-am654-cpsw-nuss: Update bindings for J7200 CPSW5G Content-Language: en-US To: Krzysztof Kozlowski , References: <20220816060139.111934-1-s-vadapalli@ti.com> <20220816060139.111934-2-s-vadapalli@ti.com> <79e58157-f8f2-6ca8-1aa6-b5cf6c83d9e6@linaro.org> <31c3a5b0-17cc-ad7b-6561-5834cac62d3e@ti.com> <9c331cdc-e34a-1146-fb83-84c2107b2e2a@linaro.org> <176ab999-e274-e22a-97d8-31f655b16800@ti.com> From: Siddharth Vadapalli In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 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 19/08/22 15:59, Siddharth Vadapalli wrote: > Hello Krzysztof, > > On 17/08/22 13:11, Siddharth Vadapalli wrote: >> Hello Krzysztof, >> >> On 17/08/22 11:20, Krzysztof Kozlowski wrote: >>> On 17/08/2022 08:14, Siddharth Vadapalli wrote: >>> >>>>>> - port@[1-2]: >>>>>> + "^port@[1-4]$": >>>>>> type: object >>>>>> description: CPSWxG NUSS external ports >>>>>> >>>>>> @@ -119,7 +120,7 @@ properties: >>>>>> properties: >>>>>> reg: >>>>>> minimum: 1 >>>>>> - maximum: 2 >>>>>> + maximum: 4 >>>>>> description: CPSW port number >>>>>> >>>>>> phys: >>>>>> @@ -151,6 +152,18 @@ properties: >>>>>> >>>>>> additionalProperties: false >>>>>> >>>>>> +if: >>>>> >>>>> This goes under allOf just before unevaluated/additionalProperties:false >>>> >>>> allOf was added by me in v3 series patch and it is not present in the >>>> file. I removed it in v4 after Rob Herring's suggestion. Please let me >>>> know if simply moving the if-then statements to the line above >>>> additionalProperties:false would be fine. >>> >>> I think Rob's comment was focusing not on using or not-using allOf, but >>> on format of your entire if-then-else. Your v3 was huge and included >>> allOf in wrong place). >>> >>> Now you add if-then in proper place, but it is still advisable to put it >>> with allOf, so if ever you grow the if-then by new entry, you do not >>> have to change the indentation. >>> >>> Anyway the location is not correct. Regardless if this is if-then or >>> allOf-if-then, put it just like example schema is suggesting. >> >> I will move the if-then statements to the lines above the >> "additionalProperties: false" line. Also, I will add an allOf for this > > I had a look at the example at [1] and it uses allOf after the > "additionalProperties: false" line. Would it be fine then for me to add > allOf and the single if-then statement below the "additionalProperties: > false" line? Please let me know. > > [1] -> https://github.com/devicetree-org/dt-schema/blob/mai/test/schemas/conditionals-allof-example.yaml Sorry, the correct link is: https://github.com/devicetree-org/dt-schema/blob/main/test/schemas/conditionals-allof-example.yaml Regards, Siddharth.