Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp151691iof; Sun, 5 Jun 2022 23:56:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyp45u1sq07GfpYzl0x2V31feEMRH51HNBz+yCFV1XvxokXK+73h22L/sqxuSvLYjWsBnYT X-Received: by 2002:a17:90a:bd89:b0:1e3:50de:5ccf with SMTP id z9-20020a17090abd8900b001e350de5ccfmr25079638pjr.104.1654498604969; Sun, 05 Jun 2022 23:56:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654498604; cv=none; d=google.com; s=arc-20160816; b=vzooIo3ouQs8YbxJYEkd32tO887x/wdyllBD9+Uzys0TaJJ1w6J1h+ZR2EA/Oowwvj pMa6PHpu31h9mR0toG7HHBVhmq72VeOrpnR47MmG9oFwNat1u0YC/3tw8uV1qhgObcmw rANyJdbAh5Abgq81mBaoAaZloQvf7Q6MHaQOULIewVbQPHCj3qWgdRGGJE+f5dmIR0tO 7nIvd8f0oYQRHP+vtGHNobhvprBR8E5fjgILVFWWFLHnlP7GFM4g8o5VcgQwvG4Qq6VL XhoJG8eld1CfJNO3Ev6ugxiZft8lE75ZLVW7R6BovLu00+471yNtMyPBQJNEaX5Jsmdz rsig== 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=AnqTbDFVrqwHXrTGY/Z2NcAhGEYdlgEfr1d6CtHEp2k=; b=e63juHKnCwiJA8AxLm/aYSqdRAS1I6YU5LTFws1ET6+07BfQwf/yKu3Zz2zL1vc/nv wvKYTyNrQJy+VNrk7b9FRGJ90RX+MygUWdAb/ynjmqgIyavQsjyzmpK9xeekeBHtpga8 iUWp4jwoYnxl39UYnqnRpMIOh+llGG1HH8YK9uMQe2SdJw5Iq7gjFs9zUVv28lmeJXgQ ejxHysE7FJqJD/K3Ki0w62OdhYgYvcCIIcVeYUnkn8sf3ktFdKAfdTDRaWsUA0JuNt4/ EBNV6Iki2Xkj2ThNxDTx0awva93sJxoGsh3iMNKfWNe61A8BZ4VPPCQGIb/d5igU/Sp7 +ADg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=v2fBUMtK; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 133-20020a63028b000000b003fd6d250893si7611462pgc.621.2022.06.05.23.56.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 23:56:44 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=v2fBUMtK; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0CC7024F2A; Sun, 5 Jun 2022 23:21:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229918AbiFFGVm (ORCPT + 99 others); Mon, 6 Jun 2022 02:21:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229890AbiFFGVh (ORCPT ); Mon, 6 Jun 2022 02:21:37 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51AE0248DA; Sun, 5 Jun 2022 23:21:32 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2566L4TF023770; Mon, 6 Jun 2022 01:21:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1654496464; bh=AnqTbDFVrqwHXrTGY/Z2NcAhGEYdlgEfr1d6CtHEp2k=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=v2fBUMtKP12il550wFLHUC/bzjyQDakjroSiiLhQ5o+cALXTxC9zq1MTrK5QLFNVu Fjk6N9hs4aoOra0bXkRNPBolerMJXB6iVa7CvlDdoMkCGYcNkpJTc1AoLggh40OGLO NMMuTn7+tx0VKorUcQfjfGrqmOpZhJbCbFzWsTSU= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2566L4Jg019207 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 6 Jun 2022 01:21:04 -0500 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Mon, 6 Jun 2022 01:21:03 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Mon, 6 Jun 2022 01:21:03 -0500 Received: from [172.24.222.108] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2566KvXG003420; Mon, 6 Jun 2022 01:20:58 -0500 Message-ID: <2c72a658-9427-b7ab-08ef-b78f51cd151b@ti.com> Date: Mon, 6 Jun 2022 11:50:56 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v2 1/3] dt-bindings: net: ti: k3-am654-cpsw-nuss: Update bindings for J7200 CPSW5G Content-Language: en-US To: Rob Herring CC: , , , , , , , , , , , , , References: <20220602114558.6204-1-s-vadapalli@ti.com> <20220602114558.6204-2-s-vadapalli@ti.com> <20220605224343.GA3657277-robh@kernel.org> From: Siddharth Vadapalli In-Reply-To: <20220605224343.GA3657277-robh@kernel.org> 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.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hello Rob, On 06/06/22 04:13, Rob Herring wrote: > On Thu, Jun 02, 2022 at 05:15:56PM +0530, Siddharth Vadapalli wrote: >> Update bindings for TI K3 J7200 SoC which contains 5 ports (4 external >> ports) CPSW5G module and add compatible for it. >> >> Changes made: >> - Add new compatible ti,j7200-cpswxg-nuss for CPSW5G. >> - Extend pattern properties for new compatible. >> - Change maximum number of CPSW ports to 4 for new compatible. >> >> Signed-off-by: Siddharth Vadapalli >> --- >> .../bindings/net/ti,k3-am654-cpsw-nuss.yaml | 140 ++++++++++++------ >> 1 file changed, 98 insertions(+), 42 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml b/Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml >> index b8281d8be940..ec57bde7ac26 100644 >> --- a/Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml >> +++ b/Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml >> @@ -57,6 +57,7 @@ properties: >> - ti,am654-cpsw-nuss >> - ti,j721e-cpsw-nuss >> - ti,am642-cpsw-nuss >> + - ti,j7200-cpswxg-nuss >> >> reg: >> maxItems: 1 >> @@ -108,48 +109,103 @@ properties: >> const: 1 >> '#size-cells': >> const: 0 >> - >> - patternProperties: >> - port@[1-2]: >> - type: object >> - description: CPSWxG NUSS external ports >> - >> - $ref: ethernet-controller.yaml# >> - >> - properties: >> - reg: >> - minimum: 1 >> - maximum: 2 >> - description: CPSW port number >> - >> - phys: >> - maxItems: 1 >> - description: phandle on phy-gmii-sel PHY >> - >> - label: >> - description: label associated with this port >> - >> - ti,mac-only: >> - $ref: /schemas/types.yaml#/definitions/flag >> - description: >> - Specifies the port works in mac-only mode. >> - >> - ti,syscon-efuse: >> - $ref: /schemas/types.yaml#/definitions/phandle-array >> - items: >> - - items: >> - - description: Phandle to the system control device node which >> - provides access to efuse >> - - description: offset to efuse registers??? >> - description: >> - Phandle to the system control device node which provides access >> - to efuse IO range with MAC addresses >> - >> - required: >> - - reg >> - - phys >> - >> - additionalProperties: false >> + allOf: >> + - if: >> + properties: >> + compatible: >> + contains: >> + enum: >> + - ti,am654-cpsw-nuss >> + - ti,j721e-cpsw-nuss >> + - ti,am642-cpsw-nuss >> + then: >> + patternProperties: >> + port@[1-2]: >> + type: object >> + description: CPSWxG NUSS external ports >> + >> + $ref: ethernet-controller.yaml# >> + >> + properties: >> + reg: >> + minimum: 1 >> + maximum: 2 >> + description: CPSW port number >> + >> + phys: >> + maxItems: 1 >> + description: phandle on phy-gmii-sel PHY >> + >> + label: >> + description: label associated with this port >> + >> + ti,mac-only: >> + $ref: /schemas/types.yaml#/definitions/flag >> + description: >> + Specifies the port works in mac-only mode. >> + >> + ti,syscon-efuse: >> + $ref: /schemas/types.yaml#/definitions/phandle-array >> + items: >> + - items: >> + - description: Phandle to the system control device node which >> + provides access to efuse >> + - description: offset to efuse registers??? >> + description: >> + Phandle to the system control device node which provides access >> + to efuse IO range with MAC addresses >> + >> + required: >> + - reg >> + - phys >> + - if: >> + properties: >> + compatible: >> + contains: >> + enum: >> + - ti,j7200-cpswxg-nuss >> + then: >> + patternProperties: >> + port@[1-4]: >> + type: object >> + description: CPSWxG NUSS external ports >> + >> + $ref: ethernet-controller.yaml# >> + >> + properties: >> + reg: >> + minimum: 1 >> + maximum: 4 >> + description: CPSW port number >> + >> + phys: >> + maxItems: 1 >> + description: phandle on phy-gmii-sel PHY >> + >> + label: >> + description: label associated with this port >> + >> + ti,mac-only: >> + $ref: /schemas/types.yaml#/definitions/flag >> + description: >> + Specifies the port works in mac-only mode. >> + >> + ti,syscon-efuse: >> + $ref: /schemas/types.yaml#/definitions/phandle-array >> + items: >> + - items: >> + - description: Phandle to the system control device node which >> + provides access to efuse >> + - description: offset to efuse registers??? >> + description: >> + Phandle to the system control device node which provides access >> + to efuse IO range with MAC addresses >> + >> + required: >> + - reg >> + - phys > > You are now defining the same properties twice. Don't do that. Just add > an if/then schema restrict port nodes. Thank you for reviewing the patch. I will fix this and send v3 for this series. Thanks, Siddharth.