Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1225337rwi; Fri, 14 Oct 2022 15:06:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4AfPm5wm/GrXa2TRBbL7NKSQYEVcbkaGdPEzftHmhr6UXOe85DHUB/MBPKYOJfP8zNAqso X-Received: by 2002:aa7:c40b:0:b0:45d:4492:a8cb with SMTP id j11-20020aa7c40b000000b0045d4492a8cbmr1021054edq.217.1665785182664; Fri, 14 Oct 2022 15:06:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665785182; cv=none; d=google.com; s=arc-20160816; b=HabW33gWcvBL/CbbX/MTlxwLtdDvLox6eHkWtI0FrVVnqvIjQ5/UizoPy3SX5DBW4o Mu7Ng01x9hQkBCJv+rkE0AVXuKbGBZbpofZMjt7BADiM+1JasuKA9svsjwp58NLLSByR 5/7wSzYcd0JsJqrgQuDSZcXo5bNBUV9ZHbJjTNBlvM3FRGXcvZlX8fAnPrkdJ1solUoc CabUXgB0a4z+DqhOjci6EaZuQnFcfSxDwvPi8x9cqs60uvNjwjlzuIf67sl3ehGY9GEO 5TyoHP5Sg2z3+VBYjiO+ETN4jdys633B6XtsRVjs/CqUCQR3xAdN98baL2SuXccisOAb MknQ== 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=mW/7734DTN1y7Y84OiEwHnT+yRfPOMTAoIPWG7Voljw=; b=NPw+9GVOiMrYv5hVmlQfDUZxPWC5Q7GI2N+XoV937A1HE+emTZh6Ts0U6tLzzifXXz JoRHsNaTRI2Z5R8dOteONa6/okDitQ46ZiN9N4mCltiD1JLgy7gC1Adn6mCAnppmXZBj YvIXVvWAuk6G5782d4+XTg63p72ZZHysDHonjUaHgeVMHB5KYJDPFdrPV7vCePrEvAFu GtRFN93U3ofkelQTNJpAuMqleFVvS9s86CS/BfcFJ77Qa/zjyaRExowEidNxCtHkk1nV N9Rj1XZ3ZcjP4+WVoSJPAyk7KHKZO7f9S4zdebKHHvYbV4+HqHQKpWc0dLvCR3HjX5sA XJ8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=PgFR0tEG; 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 ne11-20020a1709077b8b00b00715867834e3si3500948ejc.506.2022.10.14.15.05.56; Fri, 14 Oct 2022 15:06:22 -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=PgFR0tEG; 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 S230001AbiJNVdm (ORCPT + 99 others); Fri, 14 Oct 2022 17:33:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230070AbiJNVdk (ORCPT ); Fri, 14 Oct 2022 17:33:40 -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 E76AA1DD88D for ; Fri, 14 Oct 2022 14:33:38 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id bu25so9184627lfb.3 for ; Fri, 14 Oct 2022 14:33:38 -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=mW/7734DTN1y7Y84OiEwHnT+yRfPOMTAoIPWG7Voljw=; b=PgFR0tEGuo3vVa/CnuAlTPfOfTELLs3aGGGMb9IXzOYePq3nCpO5+4OEsvz/kOxF2A 79yQVzo+NK/ltxBghNxezmA0alKaNFReFj3T8+RFNiORJuxO3asWB+7FGcXOsRaR6CKH fJmaks9zQNjnFeWRiBDyNKdpuS3Aar4YMYhPW6RuHbCjl2krHzMquR6LAKzC+F2+1G2c hC9vZgo0cJ4twjeTA/Giah3yGE5G79sjV69EF8OuDdoHR4OsCecddgyMDtWdSWwrGVxb QvxttGQ1CCNtrHgV5I+XXWlfcv0EMsTVL0XQdisXmRp7S2YaZA7eJqlE4Q71mGypaJ8x vyEw== 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=mW/7734DTN1y7Y84OiEwHnT+yRfPOMTAoIPWG7Voljw=; b=nXMKQcGoqth8jPM8EC6lS0fHRwg9/Fj5xuBgAZrESVFNgM0LAYLtZDhomGBPQN4EzZ l6v7N0zeDjhEPbwR0q1dgV6YzeOG9AWxCjWepILlb4cOfcuC1jdtnhwV3m3dDhm5Jj5z xwLnjpURgudj26U3ote/wWq1vru4Qoqq7Oy3dUaEQyN6+kL8bo8gUOrrfVI4OhEIr8b9 oTqXZFSke0O2ww7xWVF3A8e5cUZ7525FTWCLay16/s71cyCqAyuafS6axMO+IKeuP0Sd XtgbXy4n8dlH48xdsUuHcdkLDz+r7DGDFi8t11fW+TvZGXFR21nGzdGIrj1GO5+r2Udp IFAQ== X-Gm-Message-State: ACrzQf1WUbKPpFTrtMUgRLbNg49aGHfL9Fmg0mL5mNL/8tetTSmi0zca /3WEgY6813hx3wTso1zrk2JP1A== X-Received: by 2002:a05:6512:3e01:b0:4a2:5c6e:d88e with SMTP id i1-20020a0565123e0100b004a25c6ed88emr2604305lfv.431.1665783217299; Fri, 14 Oct 2022 14:33:37 -0700 (PDT) Received: from fedora.. ([78.10.207.24]) by smtp.gmail.com with ESMTPSA id d4-20020ac24c84000000b00494978b0caesm494036lfl.276.2022.10.14.14.33.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Oct 2022 14:33:36 -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 v5 0/3] further improvements to marvell,pp2.yaml Date: Fri, 14 Oct 2022 23:32:51 +0200 Message-Id: <20221014213254.30950-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=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, This patchset addresses problems with reg ranges and additional $refs. It also limits phy-mode and aligns examples. Best regards, Michał --- Changelog: v4->v5 - drop '+' from all patternProperties - restrict range of patternProperties to [0-2] in top level - drop the $ref in patternProperties:'^...':properties:reg - add patternProperties:'^...':properties:reg:maximum:2 - drop $ref in patternProperties:'^...':properties:phys - add patternProperties:'^...':properties:phys:maxItems:1 - limit phy-mode to the subset found in dts files - reflect the order of subnodes' properties in subnodes' required: - restrict range of pattern to [0-2] in marvell,armada-7k-pp22 case - restrict range of pattern to [0-1] in marvell,armada-375-pp2 case - align to 4 spaces all examples: - add specified maximum to allOf:if:then-else:properties:reg 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 | 305 ++++++++++++++++++ .../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, 325 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