From patchwork Tue Dec 27 01:05:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Micha=C5=82_Grzelak?= X-Patchwork-Id: 637434 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BCD2EC4332F for ; Tue, 27 Dec 2022 01:07:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232585AbiL0BHl (ORCPT ); Mon, 26 Dec 2022 20:07:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231834AbiL0BHj (ORCPT ); Mon, 26 Dec 2022 20:07:39 -0500 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83E052BEA for ; Mon, 26 Dec 2022 17:07:36 -0800 (PST) Received: by mail-lj1-x235.google.com with SMTP id s22so12438116ljp.5 for ; Mon, 26 Dec 2022 17:07:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=h1OenRKXJiQtXrox+MzteMY+XX3Gll+tUxmfThNma78=; b=rQDVP4IWzSZlOthJ+F+2I6KhB/dYVgjxHpvpENBdP4cfx5nMpoeykUyaVgh2bOSrSF LnqdMDZ6cQCbhy/clpLZAN/zOqSimu/6tO18F7A5CaqEncbLYWZPI0EETVb+bHc/3dI5 j+0yqdituRl+BHnz6AYfYkNOsBicd/DBPUd8SzupZrlRUKCiyLGrq4jgZ94eU6/aHDw0 NOfCFZPwbddBe2XQVXamiv7Bw8x71f7g8ezxo0LDGVnqchmM5nIEc56r1hbSjwpovO6F ftImMy04pGSwwXXgIHe/j35LzQUo/WlAhiphWcD1waUQQQH66ofSNH7epzH6SKvdhnoi 40Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=h1OenRKXJiQtXrox+MzteMY+XX3Gll+tUxmfThNma78=; b=nhUQet0qpEA4xqMRWHfOqHDPXrEjPechRrs1gWf6NTrMnG+zCjjCkeqxSeA73GNQ4k Oab2y2sfS8jdnKFSHvgHiaDZHVFbvkOJocQu+R73v5qkC1Cb4UymNLzsO0Utz9pWMxT7 81VmiEiw67gihH/55yReWIy0D10eCn6X2NlADbbfy2j3zzm/1EP0UenM1CPh08MM3+Mz AsdrSRc8c5OPwRyME/yAYDloFtNcMk+7bRc39XVC+LAcSyvFF6AAnKtkvOT0rxEqXtWX ajqGJ6qqkCienXxtCwqEkTvvs6/absfhrWqweUv9UEIR3oKlfilluCJ6qOD68sg+J3S3 ZaGQ== X-Gm-Message-State: AFqh2ko7IqMRYvn8zvoks8kLxInn+PEh17a6TRFMVC70buLkYrqmCZli x/bbuZvjBruielMxysg8uUNY5rrNxT1Yay2Idgw= X-Google-Smtp-Source: AMrXdXvpqiuwkA4bRxf4TdIWR/3PvqVBrynvBWl3NwVFUI3o/xVd4qOWHUlFaMjQO7MtixQyGwllwg== X-Received: by 2002:a05:651c:1a0e:b0:278:fe64:12d8 with SMTP id by14-20020a05651c1a0e00b00278fe6412d8mr6407989ljb.40.1672103254792; Mon, 26 Dec 2022 17:07:34 -0800 (PST) Received: from michal-H370M-DS3H.office.semihalf.net ([83.142.187.84]) by smtp.googlemail.com with ESMTPSA id l14-20020a2e99ce000000b00277159d7f2esm1392098ljj.104.2022.12.26.17.07.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Dec 2022 17:07:34 -0800 (PST) From: =?utf-8?q?Micha=C5=82_Grzelak?= To: devicetree@vger.kernel.org Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, andrew@lunn.ch, chris.packham@alliedtelesis.co.nz, netdev@vger.kernel.org, upstream@semihalf.com, linux-kernel@vger.kernel.org, =?utf-8?q?Micha=C5=82_?= =?utf-8?q?Grzelak?= Subject: [net PATCH 1/2] dt-bindings: net: marvell,orion-mdio: Fix error Date: Tue, 27 Dec 2022 02:05:22 +0100 Message-Id: <20221227010523.59328-2-mig@semihalf.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221227010523.59328-1-mig@semihalf.com> References: <20221227010523.59328-1-mig@semihalf.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Fix 'unevaluated properties error' during 'make dtbs_check' appearing on arm device trees by defining generic 'ethernet-phy' subnode in marvell,orion-mdio.yaml. Fixes: 0781434af811f ("dt-bindings: net: orion-mdio: Convert to JSON schema") Signed-off-by: Michał Grzelak --- Documentation/devicetree/bindings/net/marvell,orion-mdio.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/net/marvell,orion-mdio.yaml b/Documentation/devicetree/bindings/net/marvell,orion-mdio.yaml index d2906b4a0f59..2b2b3f8709fc 100644 --- a/Documentation/devicetree/bindings/net/marvell,orion-mdio.yaml +++ b/Documentation/devicetree/bindings/net/marvell,orion-mdio.yaml @@ -35,6 +35,10 @@ properties: minItems: 1 maxItems: 4 +patternProperties: + '^ethernet-phy': + type: object + required: - compatible - reg From patchwork Tue Dec 27 01:05:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Micha=C5=82_Grzelak?= X-Patchwork-Id: 637143 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11DCBC4332F for ; Tue, 27 Dec 2022 01:07:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232588AbiL0BHm (ORCPT ); Mon, 26 Dec 2022 20:07:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229578AbiL0BHk (ORCPT ); Mon, 26 Dec 2022 20:07:40 -0500 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC5352AFC for ; Mon, 26 Dec 2022 17:07:38 -0800 (PST) Received: by mail-lf1-x133.google.com with SMTP id bf43so17780133lfb.6 for ; Mon, 26 Dec 2022 17:07:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bKjUuVwKy7MrjSAEHNMOGQAaYSQbj1BNhWoLDICHVlY=; b=F1hB1XenSCpaNpl/jTtpeCOe4pi+v3igAKxQAAtlGbvxzEei8fVTUlGmDKS9hC1xV6 i5dksdDk80it6tVrB/yQ70ivkSCYipiBAjLnJMIp6h3s8OsHsImXkMzYUpccjsQYL11n R/NzNnes0vD6kULTRdSVE689dddLM06FQaWp1pQR9+nPr96mEjkKrG0d9VL8OHADYa+Y aWsff39+3rA/r2c8u6LR95f2/HGNqEpCtjz5VoIH/6IRIsccgzE5WrX94W6jk+R3mwN5 +kVPPE5x7ndVwI/DspxTxv5snfWdhbNFA6Iaad67AKQ/LfxTwnThywr0q1YFacfS/eBR Ai4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bKjUuVwKy7MrjSAEHNMOGQAaYSQbj1BNhWoLDICHVlY=; b=sa+Hd86RGpAWwzV18LXFYENoGtzeYcFFmXKpblMSYr5CISyoxODF+IF4I/yNaKbX4x zkD0O9uokVQZMhn/Yt0cBEyOJe8q+QAn0NK+qYcXr1Rp1O+jD4qvBSgSgg6hvB6XgbV9 jD5W5WR3eFhzPZMeznUSafTdcSw8l9e/BpXjAh/b4E97jqT75yt6XgdkdyymCNalfDPq iv71s59zvoxQCVeK9ayQyey+I9sAqBDGPcPPim9JAQjMHNbBSe6wKbNq+ZrcEWiQg/fK X56jrrMORurOnCKdIimc3CAgT6MKFnO047M4VT21ii4QVu0UUOUpxLoIPG1T44bhJsI3 T6tA== X-Gm-Message-State: AFqh2kqP9e/tUwjoNZZR7gzrpy2gVpzzLXItpJ8nv9xxsC8K0Vs6jsci z3rKiZYHvNjWubhoNozjIPqrdtmPxCt+NaQU+Ts= X-Google-Smtp-Source: AMrXdXteJKt3/ZtkyRWyMI+gfdzgFIxwpJbdwzmrYHW8w7ULsNIcLqRCc9x25aiHc4L5LjSoN7FHrQ== X-Received: by 2002:a05:6512:3ba1:b0:4b5:8fbf:7dd6 with SMTP id g33-20020a0565123ba100b004b58fbf7dd6mr9788635lfv.61.1672103257296; Mon, 26 Dec 2022 17:07:37 -0800 (PST) Received: from michal-H370M-DS3H.office.semihalf.net ([83.142.187.84]) by smtp.googlemail.com with ESMTPSA id l14-20020a2e99ce000000b00277159d7f2esm1392098ljj.104.2022.12.26.17.07.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Dec 2022 17:07:37 -0800 (PST) From: =?utf-8?q?Micha=C5=82_Grzelak?= To: devicetree@vger.kernel.org Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, andrew@lunn.ch, chris.packham@alliedtelesis.co.nz, netdev@vger.kernel.org, upstream@semihalf.com, linux-kernel@vger.kernel.org, =?utf-8?q?Micha=C5=82_?= =?utf-8?q?Grzelak?= Subject: [net PATCH 2/2] dt-bindings: net: marvell,orion-mdio: Fix examples Date: Tue, 27 Dec 2022 02:05:23 +0100 Message-Id: <20221227010523.59328-3-mig@semihalf.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221227010523.59328-1-mig@semihalf.com> References: <20221227010523.59328-1-mig@semihalf.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org As stated in marvell-orion-mdio.txt deleted in 'commit 0781434af811f ("dt-bindings: net: orion-mdio: Convert to JSON schema")' if 'interrupts' property is present, width of 'reg' should be 0x84. Otherwise, width of 'reg' should be 0x4. Fix 'examples:' and extend it by second example from marvell-orion-mdio.txt. Signed-off-by: Michał Grzelak --- .../devicetree/bindings/net/marvell,orion-mdio.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/marvell,orion-mdio.yaml b/Documentation/devicetree/bindings/net/marvell,orion-mdio.yaml index 2b2b3f8709fc..d260794e92c5 100644 --- a/Documentation/devicetree/bindings/net/marvell,orion-mdio.yaml +++ b/Documentation/devicetree/bindings/net/marvell,orion-mdio.yaml @@ -47,9 +47,10 @@ unevaluatedProperties: false examples: - | + // MDIO binding with interrupt mdio@d0072004 { compatible = "marvell,orion-mdio"; - reg = <0xd0072004 0x4>; + reg = <0xd0072004 0x84>; #address-cells = <1>; #size-cells = <0>; interrupts = <30>; @@ -62,3 +63,12 @@ examples: reg = <1>; }; }; + + - | + // MDIO binding without interrupt + mdio@d0072004 { + compatible = "marvell,orion-mdio"; + reg = <0xd0072004 0x4>; + #address-cells = <1>; + #size-cells = <0>; + };