From patchwork Sat Dec 10 03:30:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13070233 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 43B44C4332F for ; Sat, 10 Dec 2022 03:33:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding: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=nH96UgsY4RIuDfdT9n9G1RGOenUasVWM8KnDjZ9PM4o=; b=0va6JspI1RM1HZE5lTIvlmVrU4 sr0hAq3n5arwf+QTtop7wrzhd7r6Rg3F13pyNZti69cZ4vbhXImqKGp/j8Abon9ZHsjda31LG5FHp MU3/ksPSSkQLozK8gR5u2+PhJBfjrfTKV9TeToOov7rMYTnzXv5nwpNbWMnhdkevCi9T6YpE0p25l ouI7ruXNZK53h80FTHe1WlqyYJHrw2pD64y1MMcJSleGE2Ti1jnDnchOZQ8rCczl0NQ/CPXstDAfK wVq3EN8lSEQyHRdtFnLBM4YplBFMpDthOnGB2XnFyE0Y5EOC8Kzbyj1NPc05dtkG2QEYzG5XdXkzg ovZm2dWQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3qcW-00Dqd5-Kd; Sat, 10 Dec 2022 03:33:48 +0000 Received: from mail-dm6nam11on2114.outbound.protection.outlook.com ([40.107.223.114] helo=NAM11-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3qZw-00DpXH-8e; Sat, 10 Dec 2022 03:31:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=obXOYpu+RZYljia5NrC9rqo/sEtaqQMeH7BBYUVEhDRNCxhmT7Wh++ZOBJn+qMr+9/HgackD+v0zrBLuu3Q4MJpOroqm4QARJydLdrd18opEiKPZPu3hdOQWPcgh0l9JVrb4NpFXVGQHz1wo0OANplUOzLMSZp4DmDctiQhn4c6C/YPYc+C+K0SzTNqbnV8otjknkMzxYTbb7gkF6MeS1Aow1rV4nd06vJ1NB+nmpNIJFiGTXs1IBipC+Fj2JCYxZXdE5LGvnbKHxPHTI5CylQAvgWmJLnIhg/6iTIBvqQ0+FKlqNDge2AlVXRkLZzlkPgp4hY2WZsqzV4wLHFVjoQ== 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=nH96UgsY4RIuDfdT9n9G1RGOenUasVWM8KnDjZ9PM4o=; b=Tcf5O71/VRZLqAEccBqo+ueZPGOdtS/ApEqdAYTbZLbmoRWATXFt6aUnkIi2BwJeymrpRq9BQzEOk5BuN3u/pBPAeucM3f14uVCkORXR8XMUEstJSMmDxSsIjc+8c/QYup+Rhk215iK9zbE1SZ6udqdgx3gmdy6zfDANch97ZcyhG93id/hCyEhM93qInR5C4R63D6cxomfm15D2MGzIpB1GJRwHxB23vS0J4sJZTXTGIqsPY6blY8jS/pBWKFChTzx8yUFB00ElkuNq/DWBX7iya6He/zdDWwY3fYTv+QQcAUpqPAi5qOyvmwKLxY1bnoBtsBZ6Mi7NPsw0p9cWRA== 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=nH96UgsY4RIuDfdT9n9G1RGOenUasVWM8KnDjZ9PM4o=; b=lm59471Ccsm3NgijpjQ/lTghqIfjEVmJUUvHKB/b7VBZpP9xJVXH42O5DW6XqcfIngfc+7mYkwkS37e8k/AQ1HL3J/8XntAwLZSiPb3rH7hzwMxtU+CR7IeG4ovxja3y3twkP7kokb8Xquvr5c0bBP65G20dR5lccRZFZwpBGIY= 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 SA2PR10MB4779.namprd10.prod.outlook.com (2603:10b6:806:11f::10) 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 03:31:01 +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.014; Sat, 10 Dec 2022 03:31:01 +0000 From: Colin Foster To: 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 Cc: John Crispin , Alexandre Belloni , Claudiu Manoil , Marek Vasut , Sean Wang , DENG Qingfang , Landen Chao , =?utf-8?b?bsOnIMOcTkFM?= , Vivien Didelot , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , =?utf-8?q?Alv?= =?utf-8?q?in_=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: [PATCH v5 net-next 06/10] dt-bindings: net: dsa: qca8k: utilize shared dsa.yaml Date: Fri, 9 Dec 2022 19:30:29 -0800 Message-Id: <20221210033033.662553-7-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221210033033.662553-1-colin.foster@in-advantage.com> References: <20221210033033.662553-1-colin.foster@in-advantage.com> X-ClientProxiedBy: BY5PR13CA0002.namprd13.prod.outlook.com (2603:10b6:a03:180::15) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|SA2PR10MB4779:EE_ X-MS-Office365-Filtering-Correlation-Id: 231743aa-6be1-4b7f-a151-08dada5ef606 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: w5L5jOhSfDMWIM3PVlBpp6p5+CvaEGNtjLF8H33XJ81ACa1syaiTGvCoe7i6YzyLmdHNMP93HpNTYbBJ1M0dfuOiyg5sNx1iDnZ65ltKz5X6h++ij3DSZPV1WapL0jyDwN7W8KNigE2IHOwldsgEp5fjlNVx4n0E9l3oCIGOAgq76zk7zlVYEy7dIA3f1hPJUG7mzrp6+Di2+fXBpwSOL2jUunDFdCIYjl6FN9BqfRSKFm5G7pkEbzr+SjJ4j4JMk09tezl28tiNmX8wCimW2JePSU0CoG+wMTsiL1ANBQ2DY7r5MAPWB/esneoxpbLE2f9EXfQOkk1e5m7bmT6T2aDe/mlAgYTKBZKg6rZUNizHX6QN2x8AUWJbfAVSXfG3F5aWiOjmlJyfRQw2lKoHta0m6DYc6d0zHw/u/FjaappbGsTCKxuBizLTWeJ9VvVYDpYzYX4yp1Wn+1nyfDpXJDTV04J+9qncCfA6ImzieMbX39DY6AAexfBo9LXLUHELBp8EHfUUmMnXugYrTc7h9yETeF+OqICqR8osz5GnLaSZzeCRuqLQducDUqeNclSnXBY+rz4OrWfmoz9R5tqMS+7oMUO2pskcMnyrdZxI9Gp1wPgvKyrFMdU4cGux3+tXjv6vH5tAc9eC5t2sCkmpJtAOyAWnu6Wb3n6DT7k2pcUV69JYcDdbX6YLn7JpIGBE0wzv5P6caNWB0O1Vr8FsoQ== 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)(39840400004)(136003)(366004)(376002)(346002)(396003)(451199015)(6486002)(478600001)(52116002)(2906002)(6506007)(6666004)(86362001)(36756003)(6512007)(26005)(44832011)(186003)(7406005)(7416002)(8936002)(5660300002)(38100700002)(1076003)(38350700002)(2616005)(4326008)(41300700001)(83380400001)(54906003)(66476007)(66556008)(8676002)(66946007)(316002)(32563001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: lQOVY47Rs9N7/P7xNsxyEy/+X42CQol32njyow+Olrl+iqTeCQFegsYrFhdy1sdcH2lPR3AMHK8BphIqBdOj1HuEaGLMmByueiP6Un1h9K9QBP60s71fOUaX1dQnZYYnuQkur8WP0xYhd1AseAjH/hO/+5DSKxC8DfnqvjY3wb6SVWBmvRzQSIgFJ85Q6cCHc88+0KLHsXdLtac+c8aY2zf78cpUUWt/imD9QL9WzbGxckdft2BIbPsSTRwkim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jMe1kSYOUQZdp1JKqb1LpICKainVOZeaN3C+tIonm0PC0x2WfePEGjciALWWVC4zxioGdsVozB9XAk9MTKNG++lxZu/IWy7/PoWUGAlmZcjZ1vurzO4z/VXmPRJCZhWtaRB2U89BPh1R8z5PxKQKSmdz9MMu1v0hfLvz46HvIjWUWiZzLdGweWC/wQyiBrfGxPJEqBVb+KY+QaT+MFxhg1JQX9XQBKF1MbPAxXxhuaJ1IdaNb1zjwxGom7q0jG8EkpCfRQRHojPQ== X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 231743aa-6be1-4b7f-a151-08dada5ef606 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2022 03:31:01.7475 (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: NHAQRFBk89kOfFDTL8lV7gGxfo1JF7zMcFn8pRw1cXXSz+T1aI9XfZxfHBXc7cmrTt2cVK+Dv9XmsjcTaEBbrCVLE38lH4Fz7ciLtLM6C28= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4779 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221209_193108_335261_51660DCE X-CRM114-Status: UNSURE ( 9.89 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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 Reviewed-by: Florian Fainelli Reviewed-by: Rob Herring Reviewed-by: Vladimir Oltean --- v4 -> v5 * Add Rob Reviewed v3 -> v4 * Add Reviewed tag * Remove unnecessary blank line deletion v2 -> v3 * Remove #address-cells and #size-cells from v2. The examples were incorrect and fixed elsewhere. * Remove erroneous unevaluatedProperties: true under Ethernet Port. * Add back ref: dsa-port.yaml#. 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. --- Documentation/devicetree/bindings/net/dsa/qca8k.yaml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml index 6fc9bc985726..389892592aac 100644 --- a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml +++ b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml @@ -66,15 +66,11 @@ 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 @@ -116,7 +112,7 @@ required: - compatible - reg -additionalProperties: true +unevaluatedProperties: false examples: - |