Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4562861rwb; Sat, 10 Dec 2022 10:31:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf6pd+5kDom+l7sjZqwZ/JACpN1cGWnVpcQcCsNSmHSXH7fwjVIvgHjUJTQte7mmxD4EHcp0 X-Received: by 2002:a17:90a:eb88:b0:219:986d:696f with SMTP id o8-20020a17090aeb8800b00219986d696fmr10285015pjy.22.1670697085580; Sat, 10 Dec 2022 10:31:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670697085; cv=pass; d=google.com; s=arc-20160816; b=PyxppeUPIQ9OnNcETGjuz3RxdrgOIS8XqWw5ih1+MiPeb8UJsRS/+0ZY5v4hQPD7tL 2k/NJvLhzTL5aibe6lqs/Icq4ciqGo+GEYSWsZ7Iv95GqYrdFxAkXs3g9Z/6SZWWsuCW 5iO+lcIH9GCuh3j2GPAJVbWwtGF3xW2ey3y9mnbAGNd7vLBiF9A7QuNF3J0hlgYEkSCP e/h1j2ORZnJv5GZ2AA91L2ZoZCm4oqgQQs0UaW4nO6B+ByUIdrDNamUxCoLeQNCs3r52 1nx01rkEQm4Guf8aX7vnqiKFEFJzZQhugLdDfMWWVgIPVG0LEOk3BaLs/G2daTFuOLtp DhBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to :content-transfer-encoding:content-disposition:references:message-id :subject:cc:to:from:date:dkim-signature; bh=w3e/rTDe5rDlOS8xoZhx8OMQalncieQUoom0yzMoAMg=; b=AegSeeFgt+tAQhAWRVsncglK3JbCHjZ6vvfwuMEgXCBLN7FYZZWsWH1yAv8CUdEvVo kQj/OqyaNWmYv9HxUyp5LKqP7iiUfDsmV9dKQrX0Yvt31LAzgm2exClX5OZC8ZJY3oaI Dvdb4CMSKV2qXu2XTwT4rQ+2FdnFEInJ1vX8xwYw3C+GHkaq0ZDuTVhsGoMjJBnnw0sX ObSojbG/0ZbefNK+aooMF0xNWMp6AziRUkuMa+3Tmi7BvR8XdgHFOhcysJ0G9WeJLzwG SMrDfQ/9DbAYXwWzRtDnWH5vksgrwC/iwg8xvgfjonzsXc/E0T/kAj22259BypMnYI4L 0/xA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b=hCgSXpQv; arc=pass (i=1 spf=pass spfdomain=in-advantage.com dkim=pass dkdomain=in-advantage.com dmarc=pass fromdomain=in-advantage.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=in-advantage.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bc27-20020a656d9b000000b0043a0121bb28si4992999pgb.811.2022.12.10.10.31.16; Sat, 10 Dec 2022 10:31:25 -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=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b=hCgSXpQv; arc=pass (i=1 spf=pass spfdomain=in-advantage.com dkim=pass dkdomain=in-advantage.com dmarc=pass fromdomain=in-advantage.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=in-advantage.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229746AbiLJSDC (ORCPT + 75 others); Sat, 10 Dec 2022 13:03:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229840AbiLJSC5 (ORCPT ); Sat, 10 Dec 2022 13:02:57 -0500 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2138.outbound.protection.outlook.com [40.107.220.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C06A06179; Sat, 10 Dec 2022 10:02:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yocr/C66K4NySUXMn+MnRzctgSxH6VGtxU/EuOXMXRrSttKRQXXExN9JMFmQ1VfoZF8xPCJZGALKTILn+MiqX46ptYkVlFZkW1rXvLnxkTLadbJFW24a5g2Bqa4zdUx1+UHP/KFN3oSe6P8UobEjLy4WYh+wDOFGxR0vIi1pFMjsXSuiVVZ7cD8dUiU0sSy9erg9V1AeJhg4TI4NZbJ1mSLPDw23Wly1ymWOgOAMWArFyePwpNZVVDaPGJDMWo/aKVVgcQLW+wTp+2JZCj5Gbn5w1VEKI9WckweHTqIG+khxCNCF749d2XreZPdOjy54WDf3fx24uaMVHHVOPzXxUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=w3e/rTDe5rDlOS8xoZhx8OMQalncieQUoom0yzMoAMg=; b=O9NaoPTLCFEvKM3ZDCvrjT5zFN+Fo+Gsf4FAQPzznWvWhICaUZA9naHRHog9AZ2Fu7yof4xH6eCJPdLfkcTl10M2qtU7H170C9U9a+l+SswY0Fsm/YLYjT6SADdFZhnFFg8Yibx+h4DitCOcCRQRkrAM1S6lw5xFQCnGtfCBEW2MHtXY1doXXInMVTWsHcH69edfpa1U4I7eOTmS9RD0AVS+DJaiVZqRKbOBAD7OIzeIVw9mkT4zeer+SbpP4Fw3DDnmWgqGv2Nd8k1enxeeanLpTxMDy7xeK2M2fDtT6w7q0Io+wj+6DBRKaEio7BVQm480Oq6I2GgRmJL8KmkWAw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=w3e/rTDe5rDlOS8xoZhx8OMQalncieQUoom0yzMoAMg=; b=hCgSXpQvsAUhQJELVLOUHsddYFaANAT1uBo0SmD5SvjVHqhzscvOuyNQD4oXnQqQVKAnJNFJL1xfNcDnOPaG0SvREjNnsTE7Fx1yTpvzYLApEwMi9P+twft+Ztcbpsqv6uHmd1oc30X9QNEjTC3CLxWTeNfQkvRXJcv0ifg99lE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by BLAPR10MB4897.namprd10.prod.outlook.com (2603:10b6:208:30f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.19; Sat, 10 Dec 2022 18:02:48 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c%4]) with mapi id 15.20.5880.019; Sat, 10 Dec 2022 18:02:48 +0000 Date: Sat, 10 Dec 2022 10:02:43 -0800 From: Colin Foster To: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= Cc: linux-renesas-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, John Crispin , Alexandre Belloni , Claudiu Manoil , Marek Vasut , Sean Wang , DENG Qingfang , Landen Chao , Vivien Didelot , =?utf-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= , Alvin =?utf-8?Q?=C5=A0ipraga?= , Linus Walleij , UNGLinuxDriver@microchip.com, Woojung Huh , Matthias Brugger , Kurt Kanzenbach , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , George McCollister , Rob Herring Subject: Re: [PATCH v5 net-next 04/10] dt-bindings: net: dsa: utilize base definitions for standard dsa switches Message-ID: References: <20221210033033.662553-1-colin.foster@in-advantage.com> <20221210033033.662553-5-colin.foster@in-advantage.com> <1df417b5-a924-33d4-a302-eb526f7124b4@arinc9.com> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1df417b5-a924-33d4-a302-eb526f7124b4@arinc9.com> X-ClientProxiedBy: BY3PR04CA0021.namprd04.prod.outlook.com (2603:10b6:a03:217::26) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|BLAPR10MB4897:EE_ X-MS-Office365-Filtering-Correlation-Id: 6178d276-0e66-4845-30a4-08dadad8beec X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ov38+xffhCr+VSSf0jn65pBMEkIWvtiEOS4iF+OKQvV5HVdyNfGe34BftHXMX5e0r9WwQ01fnd4HS6xosSUrrenxf/uGe5iNYqRLYOizWGnLF2VOP8RgN7xbCCVCOzGUrlHjGmAV2AD5Db+wd2w0N1/xH+KfhnkYlvNZL7NYgxDiYLOTvzCMBNO+UZzBcHIK44YIk7e2vL8de2+HaiudXu5tC1O0uiQBJnqftTUVBq3Q5XYKB9CU2mzuBBgiMjpZkpX0CZ9S+3TeeWuoI//5ruxwezCz4ZKfjJoC5knTJu333VEkj+ockEMP2+4UzeWboz8c4kkWVj3cGlpKYtinuOOWRTGlLE6cuuFjTutzfLT0TdCyJCEZguPmceeF9WS81GNkIC+NWiy1E9tooWByHPKwL1N4fcubLusf9pZE0exIGO/D4kci5XjNlx7idUXH8ug2TAnu+QqYtwhBo4bPNYc7Z3xXN8/o/9wxzS77QtQEFk8RDzBvEXk9vb55MVWoLmhe3B0lf64AsVV+t1Pfs7Enku20dHhHp4guCqBimYUswEumlkgKytW0lQ1cKbaLOYp1JFDkwE/P1ZecJvJMJz/tpKx0gPlqi/09qkqA4ngZepLJCDY9sagMkODyGyJxl76YZE0eAXkMx4QG0x8N9KbVX1ZciGp0/8oh1ggJzzlsCao+q4QOOSkK38UzX7/sGZ/9dOJkRdeXUAtz6jkaCA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(7916004)(346002)(39840400004)(366004)(136003)(396003)(376002)(451199015)(66574015)(41300700001)(38100700002)(66556008)(66946007)(4326008)(5660300002)(66476007)(8676002)(8936002)(83380400001)(86362001)(478600001)(54906003)(966005)(33716001)(6486002)(26005)(6512007)(9686003)(2906002)(44832011)(6666004)(7416002)(7406005)(316002)(6916009)(53546011)(6506007)(186003)(67856001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TmxyVG95TXhQZFVIeHdJV0JzUXdqZkFsbVVxYmxYeHZub1JOU1hMUEQxM0Ir?= =?utf-8?B?ZTdMTGZINDlqMWxKQ3JNWEkxSjYrWmJ3S3dscXAzRWpvODAvb0dIbzRmazI2?= =?utf-8?B?SnVORUFjajBDT3dhajhU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-8?B?aGlKeFFkV1Q0dmRZWkFZSks2eGxOWWRkOWwyd1ljbm5oSWpRcHZ1T0E4YkNn?= =?utf-8?B?WGNRRGVRQUNQajVrM0FuUDRzYjBEN2YvcWRBQ2JuQlVSd1JCSktGU0xES2RO?= =?utf-8?B?U29iMHd5WS9hLytUVWI4SFk4T01VbGxCNTFRSW5GaTBqNGQ1aC9Ga3hPSmVk?= =?utf-8?B?SEZ2bC83dkFSaGF0S24xSjUzNHdOQjA2ME1SalJLeTc4dzZjYU1QeEJhOFV6?= =?utf-8?Q?w2lqkCsEecPypWoX1kbvVAY=3D?= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6178d276-0e66-4845-30a4-08dadad8beec X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2022 18:02:47.9474 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ALMRrMXxxxA12SIhVkR1cYWFqESdCSPJ4muZ31MxZTdQ8QJlnvSs0ywX66GT9ksohlII1+z86he4D2uviyNJOi2jLo/QBv82/tm3neIm404= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR10MB4897 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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 Hi Arınç, On Sat, Dec 10, 2022 at 07:24:42PM +0300, Arınç ÜNAL wrote: > On 10.12.2022 06:30, Colin Foster wrote: > > DSA a/Documentation/devicetree/bindings/net/dsa/dsa.yaml > > +++ b/Documentation/devicetree/bindings/net/dsa/dsa.yaml > > @@ -58,4 +58,26 @@ oneOf: > > additionalProperties: true > > +$defs: > > + ethernet-ports: > > + description: A DSA switch without any extra port properties > > + $ref: '#/' > > + > > + patternProperties: > > + "^(ethernet-)?ports$": > > + type: object > > + additionalProperties: false > > + > > + properties: > > + '#address-cells': > > + const: 1 > > + '#size-cells': > > + const: 0 > > + > > + patternProperties: > > + "^(ethernet-)?port@[0-9]+$": > > + description: Ethernet switch ports > > + $ref: dsa-port.yaml# > > + unevaluatedProperties: false > > I've got moderate experience in json-schema but shouldn't you put 'type: > object' here like you did for "^(ethernet-)?ports$"? I can't say for sure, but adding "type: object" here and removing it from mediatek,mt7530.yaml still causes the same issue I mention below. Rob's initial suggestion for this patch set (which was basically the entire implementation... many thanks again Rob) can be found here: https://lore.kernel.org/netdev/20221104200212.GA2315642-robh@kernel.org/ From what I can tell, the omission of "type: object" here was intentional. At the very least, it doesn't seem to have any effect on warnings. > > > + > > ... > > diff --git a/Documentation/devicetree/bindings/net/dsa/hirschmann,hellcreek.yaml b/Documentation/devicetree/bindings/net/dsa/hirschmann,hellcreek.yaml > > index 73b774eadd0b..748ef9983ce2 100644 > > --- a/Documentation/devicetree/bindings/net/dsa/hirschmann,hellcreek.yaml > > +++ b/Documentation/devicetree/bindings/net/dsa/hirschmann,hellcreek.yaml > > @@ -7,7 +7,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml# > > title: Hirschmann Hellcreek TSN Switch Device Tree Bindings > > allOf: > > - - $ref: dsa.yaml# > > + - $ref: dsa.yaml#/$defs/ethernet-ports > > maintainers: > > - Andrew Lunn > > diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml > > index f2e9ff3f580b..20312f5d1944 100644 > > --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml > > +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml > > @@ -157,9 +157,6 @@ patternProperties: > > patternProperties: > > "^(ethernet-)?port@[0-9]+$": > > type: object > > This line was being removed on the previous version. Must be related to > above. Without the 'object' type here, I get the following warning: Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml: patternProperties:^(ethernet-)?ports$:patternProperties:^(ethernet-)?port@[0-9]+$: 'anyOf' conditional failed, one must be fixed: 'type' is a required property '$ref' is a required property hint: node schemas must have a type or $ref from schema $id: http://devicetree.org/meta-schemas/core.yaml# ./Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml: Error in referenced schema matching $id: http://devicetree.org/schemas/net/dsa/mediatek,mt7530.yaml SCHEMA Documentation/devicetree/bindings/processed-schema.json /home/colin/src/work/linux_vsc/linux-imx/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml: ignoring, error in schema: patternProperties: ^(ethernet-)?ports$: patternProperties: ^(ethernet-)?port@[0-9]+$ I'm testing this now and I'm noticing something is going on with the "ref: dsa-port.yaml" Everything seems to work fine (in that I don't see any warnings) when I have this diff: diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml index 20312f5d1944..db0122020f98 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yam @@ -156,8 +156,7 @@ patternProperties: patternProperties: "^(ethernet-)?port@[0-9]+$": - type: object - + $ref: dsa-port.yaml# properties: reg: description: @@ -165,7 +164,6 @@ patternProperties: for user ports. allOf: - - $ref: dsa-port.yaml# - if: required: [ ethernet ] then: This one has me [still] scratching my head... > > > - description: Ethernet switch ports > > - > > - unevaluatedProperties: false > > properties: > > reg: > > Arınç