From patchwork Fri Nov 4 04:52:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13031314 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CEB17C43219 for ; Fri, 4 Nov 2022 04:54:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Kyn0uUyIzrmlj7A6oOUsVm09gKGp4NL7/wElz+CWASc=; b=veEvMLgnIhQrg+ tsG5oGMdGgS5F3RhuT3bFnfBhgRZus3R9+cGtrC3mpLb0Ife1wqV4b9Ks34PD9FUCN5RBM1N0uFD8 cqYt3qXTuOMV2d3zEpn+7qyzeZqztl84rLiJEI1TFZPCmW9nr4ncpb3zTcq/cNUbR+Zx6h9HJuyB8 xiNjZCJANg1TIuRvOv0cm8o6tZR8MqmpHyFbFPZLhVog+tBLf1tQfQGtZqdf7mZ4OuX8glpSCNPln ZXcKAS0xkwyMzI3+2YyRa41cTy67+gLmZx1qa+5CBiEHQUFlO94bO4VW72wTJU+Gi27ZhlnfC/H3O N1YRnXkvjevRk+p3fiQQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqohD-002MLG-Lz; Fri, 04 Nov 2022 04:52:47 +0000 Received: from mail-dm6nam11on2106.outbound.protection.outlook.com ([40.107.223.106] helo=NAM11-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqogs-002MBx-L9; Fri, 04 Nov 2022 04:52:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jtn1fEEsNknTkMHSiihi5yZLwpc/MX2DBddvh9XbyAksobU41CaSmNKBwhDay/GmVs/z1gh44bpahWIm5A2F8ax0WsytIbczX75a90Xtn6OTF/hRDjH9SLoDYZ5ZbIJUnI3obUNuKLEKyxBlWINm8aDWTPm5exKlrL8Q8IUlEXnh1g02tqzJq1wlFz2VZDpklXcMWN29wNmi7RM1zmgg9tP2S+yqLxcflWi+KfSjxBDmndYg5ZryLbi/Z0LFRHhvhYLY3VcYkx9ZIMkLSSvTIhH843oEpi//sXMWgJI1wSaABnDxIHnoRLkkkrSjW8aRlrLLwGltTuSI2KI6p6Ct+Q== 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=rn2pTQA+eN6zHWL391CX9DRLmeHrRT1C6lKDQAExoMI=; b=aQyvJqVqS58HvLFzngvHSfZ30WQw7Oto0xPPT8SQDda6kwUjFqBNK2H+j/wcs4S0h1YVU3mbseE8c8EmRKcxov1hH1Q6D07G6+AHl8paPLNGBg2Qf2VB0TRUONzgY5B9/61M7ctg+DJiD9pj4w8GAXD15yjVNI7ocv/Y9HZ/yAAlk1IkW2I4CaGLxmoahMuKtem+chifugxwMTX0LPGqGB8gnjDkifS4ZFpDfLwuJyN2G9KAHlzP6OLH5S5IAlTNFSXSZEXpJ8laIWzj54CLyghbpKDCb0xe8OCYzqMIj7l4Q/93qJ7xP6L1lVcvcUxAdu3Qfp8UryaIyeXgGxbSxA== 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=rn2pTQA+eN6zHWL391CX9DRLmeHrRT1C6lKDQAExoMI=; b=YyiVa2e8teuZ0gQtOjEsqUdIxU00pNEf+lZ2uKrsm6s9b84hf7CPLlsLEyO8I9Jg5bos3BPuDUYKQI7h0UorISwDUtFYWawI6PlE48ZgyWAfnNwtuPv9IKMTM8aLB2xMGYKf9MLnLInbaABI679jhcR5iaVe5AF8JocEgfw7v8c= 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 CY5PR10MB5986.namprd10.prod.outlook.com (2603:10b6:930:2a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.22; Fri, 4 Nov 2022 04:52:19 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::a8ed:4de9:679e:9d36]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::a8ed:4de9:679e:9d36%4]) with mapi id 15.20.5769.021; Fri, 4 Nov 2022 04:52:19 +0000 From: Colin Foster To: linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Alexandre Belloni , Claudiu Manoil , John Crispin , Sean Wang , DENG Qingfang , Landen Chao , =?utf-8?b?bsOnIMOcTkFM?= , Matthias Brugger , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Vivien Didelot , Andrew Lunn , Krzysztof Kozlowski , Rob Herring Subject: [PATCH v2 net-next 2/6] dt-bindings: net: dsa: qca8k: utilize shared dsa.yaml Date: Thu, 3 Nov 2022 21:52:00 -0700 Message-Id: <20221104045204.746124-3-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221104045204.746124-1-colin.foster@in-advantage.com> References: <20221104045204.746124-1-colin.foster@in-advantage.com> X-ClientProxiedBy: BY3PR03CA0023.namprd03.prod.outlook.com (2603:10b6:a03:39a::28) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|CY5PR10MB5986:EE_ X-MS-Office365-Filtering-Correlation-Id: 8b90a5ae-cb2b-4483-c366-08dabe205a28 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7aO5N6hRepcD3dwu4zMbrZ0VDT7G5Es64y5ZypWUfhKVgX2zpM2ZDsVDKCPPuMawZk6QLRsAJRzAmcMUjU9/ZUwrKYD61EH8EgcIz9CIHuY3fwy781F9Juxo/UDzH+CW0wTCzRrtDATPwA6/WuAeYmd8vj/PdcVKgYK0deCRltnGiZjtUtZQFidvhtbaIpt0JqMpJ4HFboupIjMo0qtMX94c0LD38OfFQ+Ncx+u8iYafXGUDAwq/9MZkIyWDxjFMS41+hhK5PemY15CbNnWGJQR0EtPjca2fdkUQwCDZlzLktPtextdY9Ap47XpTul10RYbmzzwUQAZfdVEzJjxtwRp1ifhXGIoNcJDSVBYSYvfMSblz7TGPc1aoc+US8IIxRy2FeysYfv5hcXxeCN1Cw8VLyEWIqRLBYabjc+d35YvqQqm6Hp1w9nPEv6PJkIQejilmmzmqobsv2niYzBGh//XOxBHyzgPhxlmuhDJQwo3ABOhwnQ1CXx7fVu91+zDUX0ewsRj76IMQzeczUyNNhMFYaLM2lPI76j0qRRcGvK8WMSOPUqQ/01jkWiCbaUqz7QjDAbKcNUd9IPFKzr6iRS18SqN6Kk18YUJuhN7dpfzruSxXDrPGAcXUJAM8hoYTclu/0vcNwtSp+VmW0vYjUkh0DbUIO2nSCQ+8/6v5Nji2WZQZo5VwbpfxHKv61kqb3AopQFEo/rU+YSGkEdg/x4urwS+pyrXjRxaVJBOgGgCY50yr6czMXT7OS0Ebjlhtw+jqPB4edZfQFBhSwBh6oQ9A202s54iSgUzicUNS8/k= 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)(376002)(346002)(396003)(136003)(39840400004)(366004)(451199015)(86362001)(36756003)(316002)(38350700002)(38100700002)(6666004)(8676002)(2616005)(6506007)(66946007)(478600001)(54906003)(52116002)(66476007)(44832011)(6486002)(2906002)(5660300002)(7416002)(186003)(8936002)(4326008)(6512007)(83380400001)(1076003)(66556008)(26005)(41300700001)(32563001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ci5ES4h/nAc7zQUGpw7FJDaDnJEARmBgoMS10yZXvlld5MWYRFg2pCpy42/Wl4rKTKM7kv7/v3IyGf0t7WhapYVtXcb7eo1gstsKWDTuJm0WvlWTPHGGbxnyPu+51MzBVnkfdvymXa7BCthJL40k+Ah8DOy0/sQHFy3e8ZzYR8n4IEI+4z98m37LSA/VogEq+6bIsPJWecyfvuO+n1Wmz8FJvTDNLTEm+slUcYYDOYxofdha1mKi0Kke8aX/v1U+u7ly/itaT42kzoGlbvrVUIoY81OaeUaiVNEETy8AFoZCxP5BGuRoHripmo5jdx1FDXb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XO06ErnAp3ZnBy+67fRkNRPAutyfB9tcVA/x7vSGP05mHNuzusJn4hzbrYf/e7nrMAHm0vdat1b8x/qUY3A5rdwg/dLWkFcZBuK0Fwln/1x/BJsrJajYj7tUVIdOE/G6JE40Is1Qc6W3yyD9RWjNebtIKTBzpM/1Oj7FmX5UTSQfLd5AQzgO8qxp7en5OnoXbK2wJh6cxNFuJUxjj+iOS2Jnzw13SaQAipmPz1kIFnY7o= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8b90a5ae-cb2b-4483-c366-08dabe205a28 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2022 04:52:19.0635 (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: 6+uXihseIS+5FJy/gIe9GEOEVe9UpY8JZ81lqUU0WLkUsD4Y/I/d7ApBWwOr78Thir6F/x8o/Lg+9ZTV+wYx6MlPyOHdgvuIFD0dki7Xb7M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR10MB5986 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221103_215226_716872_9B421D80 X-CRM114-Status: GOOD ( 10.80 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The dsa.yaml binding contains duplicated bindings for address and size cells, as well as the reference to dsa-port.yaml. Instead of duplicating this information, remove the reference to dsa-port.yaml and include the full reference to dsa.yaml. Signed-off-by: Colin Foster Suggested-by: Vladimir Oltean --- v1 -> v2 * Add #address-cells and #size-cells to the switch layer. They aren't part of dsa.yaml. * Add unevaluatedProperties: true to the ethernet-port layer so it can correctly read properties from dsa.yaml. --- .../devicetree/bindings/net/dsa/qca8k.yaml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml index 978162df51f7..d831d5eee437 100644 --- a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml +++ b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml @@ -33,6 +33,10 @@ properties: qca,qca8334: referenced as QCA8334-AL3C QFN 88 pin package qca,qca8337: referenced as QCA8337N-AL3(B/C) DR-QFN 148 pin package + '#address-cells': + const: 1 + '#size-cells': + const: 0 reg: maxItems: 1 @@ -66,22 +70,16 @@ properties: With the legacy mapping the reg corresponding to the internal mdio is the switch reg with an offset of -1. +$ref: "dsa.yaml#" + patternProperties: "^(ethernet-)?ports$": type: object - properties: - '#address-cells': - const: 1 - '#size-cells': - const: 0 - patternProperties: "^(ethernet-)?port@[0-6]$": type: object description: Ethernet switch ports - $ref: dsa-port.yaml# - properties: qca,sgmii-rxclk-falling-edge: $ref: /schemas/types.yaml#/definitions/flag @@ -104,7 +102,7 @@ patternProperties: SGMII on the QCA8337, it is advised to set this unless a communication issue is observed. - unevaluatedProperties: false + unevaluatedProperties: true oneOf: - required: @@ -116,7 +114,7 @@ required: - compatible - reg -additionalProperties: true +unevaluatedProperties: false examples: - |