Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1219453rwi; Thu, 13 Oct 2022 10:33:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5G2a6uibucN/iZHOViEhhJKyO1Kv+2ND+l9vh04oFFW0L9GGASGabOBHVeugSIujSaUYfC X-Received: by 2002:a50:ec8f:0:b0:459:b0e0:e030 with SMTP id e15-20020a50ec8f000000b00459b0e0e030mr730297edr.303.1665682390899; Thu, 13 Oct 2022 10:33:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665682390; cv=none; d=google.com; s=arc-20160816; b=hux7+nLwgNuWDSXK4Im9aw3VGxh62AcU+NuqGrHrvJ0FtccAtp0As3UWUxcoCmNZld H9a0o5cbUwL16B3rUuNaVfICSCIPtlCl51Xph5ctz+Hvk8Fqyku3j5LXvWm9TUyLy/cz R+ARsyjlLsHkATB9uGjxRaWTbmurmLD5+9NK0HpCHhHwRQRv3tniVnTSc82EKXw6tRpw KAj/tCfLmbTJp/vr4zmvq28Yf8UlTn5OPMq3KbLeuYkm3m8rKaxvMtn2kuMjpG3HWPQ+ pLoNCJCQW6bQnEjx2Pc7AayYnNa05fJzLVTOtpxleLx2FH6z0Yh2TFXdyfhfLvjrkiAM 8dyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=J7z7cCyCHDIzHVx45lHOsuFvxs9CIE7teOYxW0OHgas=; b=euVhoMtIN5XzBQMrsZVRoWsypKuSYWN2nJNqcPV+PeASfZEyMHLrHttQfG/k1v28M0 9xVGhQCGgb0YKOh9xloQ1ogrGeP71/1JycVGnYe0YUG/Qsfxk9dQYl90/SW5700Tz1Fo NQxYS3B6GxAMv8x/K+bbwUksI/91lisBS3x4PQ8Cl1U580UoDXlRQLGEoNZVgDMo9joH W7RyQqJ3h96yKp7kYSM0vrLliDvpTnMhiduVQ7OUmURWzyd0gZO57+jehzPdK59SJdck 9Pev66Gc7pTOf6FamaZlC8O0QArv+qhMXS/SZ9YlFp5HJevw/Fa48ZcChZh3AfWpP0pk nwuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=nhMy6r5Y; 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=QUARANTINE dis=NONE) header.from=semihalf.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e8-20020a17090658c800b0072fb108db55si203487ejs.895.2022.10.13.10.32.44; Thu, 13 Oct 2022 10:33:10 -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=@semihalf.com header.s=google header.b=nhMy6r5Y; 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=QUARANTINE dis=NONE) header.from=semihalf.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229862AbiJMQwg (ORCPT + 99 others); Thu, 13 Oct 2022 12:52:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbiJMQwd (ORCPT ); Thu, 13 Oct 2022 12:52:33 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 198D910A7C5 for ; Thu, 13 Oct 2022 09:52:30 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id y5so3408829lfl.4 for ; Thu, 13 Oct 2022 09:52:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=J7z7cCyCHDIzHVx45lHOsuFvxs9CIE7teOYxW0OHgas=; b=nhMy6r5YlIFKjYT/AOd96gSZqy7OL8OYB3egyaXHDqF6b6YSBZ4SVY+uMQiuGw66+Z vw0KpfpnijRyaIAPqn/Fb3EFaOKkNOfhV03uGCrLnRbc7RMsumK0lgFDIioxXxKJECUD soFWBjqV9I++zzWc4cL63ecm0hiyK51qOSL9BTsTp2HuzJDHKSbIiMwjtGHTx9l+6FdJ pbNv+can8rj6bpLJKY6Xaw4mRPl6LfTfp8oBq1kkR/MxZ7ocYJA8DlJSrqzfZrutQrra V6Fo1CZ2YwVKU1dFHaD3IoQ65pxc6PbnafbfTqUCK64wDzZGteZTOYUSqzjfs0gygrd0 MLmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=J7z7cCyCHDIzHVx45lHOsuFvxs9CIE7teOYxW0OHgas=; b=q9C9hBBmF2OqtZXC1g+RW85/ox/uJcJShVACJ/xW+GSXiBDgjGNFj1S+BSMlCH/mqc E75AWlZLW/HrSGZyduWvoYV3Gf5Y2p0MYN+Ebm+t2DGTI3hIK82JzOkBLpzxxNJdmIFm ubAvzRediN/G9EdclTIGf+wydcj+vBqaxv85XbwakrEAZCByh5ciZezgeUkhsAclckhT zEvMTgE67qBvYavemL/s1SVHALIE7d8wJBhZmFlBR3mjAmTc+FLgezqF4g5saWuJ9Fgl 1dZsThBKaHCsWZPQXN6W1YRp9Icgo7YC5GHCerLYBp5JbMmA8Tv9J2B1j6p2FfNaAm48 WIDg== X-Gm-Message-State: ACrzQf3adyFbtcg2zt4D9JVYNJ0mpyGW6BZYXhfb5qfZH9X03UFHE+QG Xo61KJyaugazfL+7SnyDr97+uA== X-Received: by 2002:a05:6512:3a8b:b0:4a2:5155:dca5 with SMTP id q11-20020a0565123a8b00b004a25155dca5mr210801lfu.70.1665679946834; Thu, 13 Oct 2022 09:52:26 -0700 (PDT) Received: from fedora.. ([78.10.206.53]) by smtp.gmail.com with ESMTPSA id k7-20020a2e9207000000b00262fae1ffe6sm540752ljg.110.2022.10.13.09.52.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Oct 2022 09:52:26 -0700 (PDT) From: =?UTF-8?q?Micha=C5=82=20Grzelak?= To: devicetree@vger.kernel.org Cc: mw@semihalf.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, upstream@semihalf.com, =?UTF-8?q?Micha=C5=82=20Grzelak?= Subject: [PATCH v4 0/3] marvell,pp2.yaml and .dtsi further improvements Date: Thu, 13 Oct 2022 18:51:31 +0200 Message-Id: <20221013165134.78234-1-mig@semihalf.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Hi, This patch series deprecates port-id in comparison to previous patches and moves $ref:ethernet-controller.yaml to subnodes. Furthermore, it adds phys: as an optional property of a subnode because of adding unevaluatedProperties: false. Best regards, Michał --- Changelog: v3->v4 - change commit message of first patch - move allOf:$ref to patternProperties:'^...':$ref - deprecate port-id in favour of reg - move reg to front of properties list in patternProperties - reflect the order of properties in required list in patternProperties - add unevaluatedProperties: false to patternProperties - change unevaluated- to additionalProperties at top level - add property phys: to ports subnode - extend example binding with additional information about phys and sfp - hook phys property to phy-consumer.yaml schema v2->v3 - move 'reg:description' to 'allOf:if:then' - change '#size-cells: true' and '#address-cells: true' to '#size-cells: const: 0' and '#address-cells: const: 1' - replace all occurences of pattern "^eth\{hex_num}*" with "^(ethernet-)?port@[0-9]+$" - add description in 'patternProperties:^...' - add 'patternProperties:^...:interrupt-names:minItems: 1' - add 'patternProperties:^...:reg:description' - update 'patternProperties:^...:port-id:description' - add 'patternProperties:^...:required: - reg' - update '*:description:' to uppercase - add 'allOf:then:required:marvell,system-controller' - skip quotation marks from 'allOf:$ref' - add 'else' schema to match 'allOf:if:then' - restrict 'clocks' in 'allOf:if:then' - restrict 'clock-names' in 'allOf:if:then' - add #address-cells=<1>; #size-cells=<0>; in 'examples:' - change every "ethX" to "ethernet-port@X" in 'examples:' - add "reg" and comment in all ports in 'examples:' - change /ethernet/eth0/phy-mode in examples://Armada-375 to "rgmii-id" - replace each cpm_ with cp0_ in 'examples:' - replace each _syscon0 with _clk0 in 'examples:' - remove each eth0X label in 'examples:' - update armada-375.dtsi and armada-cp11x.dtsi to match marvell,pp2.yaml v1->v2 - move 'properties' to the front of the file - remove blank line after 'properties' - move 'compatible' to the front of 'properties' - move 'clocks', 'clock-names' and 'reg' definitions to 'properties' - substitute all occurences of 'marvell,armada-7k-pp2' with 'marvell,armada-7k-pp22' - add properties:#size-cells and properties:#address-cells - specify list in 'interrupt-names' - remove blank lines after 'patternProperties' - remove '^interrupt' and '^#.*-cells$' patterns - remove blank line after 'allOf' - remove first 'if-then-else' block from 'allOf' - negate the condition in allOf:if schema - delete 'interrupt-controller' from section 'examples' - delete '#interrupt-cells' from section 'examples' Marcin Wojtas (2): arm64: dts: marvell: Update network description to match schema ARM: dts: armada-375: Update network description to match schema Michał Grzelak (1): dt-bindings: net: marvell,pp2: convert to json-schema .../devicetree/bindings/net/marvell,pp2.yaml | 288 ++++++++++++++++++ .../devicetree/bindings/net/marvell-pp2.txt | 141 --------- MAINTAINERS | 2 +- arch/arm/boot/dts/armada-375.dtsi | 12 +- arch/arm64/boot/dts/marvell/armada-cp11x.dtsi | 17 +- 5 files changed, 308 insertions(+), 152 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/marvell,pp2.yaml delete mode 100644 Documentation/devicetree/bindings/net/marvell-pp2.txt -- 2.37.3