Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp672654rwb; Wed, 26 Jul 2023 00:28:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlGBxV6c49f1MJqmtseItyfOCEH0fOcywmfuMZgj2FZAxMeEqS6JJYNXBC51BEZw02uKgNvA X-Received: by 2002:aa7:88c3:0:b0:680:f6fe:8908 with SMTP id k3-20020aa788c3000000b00680f6fe8908mr1429343pff.9.1690356494336; Wed, 26 Jul 2023 00:28:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690356494; cv=none; d=google.com; s=arc-20160816; b=SWl59bSVwuI3TrSwAnUOSXGzJYCY/Dqvc+VYMByBdIXi7exwraz4M7KIzDT0ZoMRDP q3JjbPyBRf6JJfqKZxsgnVjLvHHyDByUaEBSYM8LwexiF9tTpM/w3mDsqJtrMInXQw3T /i+lMiHMBv4q2uOug5vchMgfO0IOXDNvXzJiJnTv5uFQH1rPmMB5T35rwQyomO5WGjKY b/HdMnkkadjxR4Xbe/OTnNQJZkjTlEwGN3AVuo8AXtV/VdzaclKe6pW0byJV/eORprrG beixTtDX5LrY8nGdIRtSIX4KWORWiyeLRDIu7Kk5IsA8g2AEPpDuGKgIAI7S1YODp0pN wfyg== 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=1L6HSaypa83zFtVU6JdTw58RueGPHDw2p3riUEqKjUQ=; fh=DdVF+jg12jnBgVudidVwb6oEz29KBOXllE7XAsd4/Yc=; b=yrCRqJs1TpPYjZ1ja3SYWblcoYQpvvTWAAhLxHSguvbdxIxwGrIbBuXJO/xhaJNBCe yqfEvwcDhTMbuRr7RlZL99O7QG4prNcjqFbTzLSGBQo3S7l5pwVUCuBwWITNO6tz6XKD lfA3pThlZ9cXkcrG2yhnfD1CuKtqf3gOcaoQauyuUWh6kyPks1JHqKKHz4ZbvPXVetOv Fkgk9bjvmYFeu/LpMOrd7svlDxFhpQKXnTGlxmk21cALYJXTHLwbShYUZ0tNnOZomn+P 2HT+IZTtWNeW2LgkVX0zI28ObUVDZCOOykhkxQNXJX4UDaAONUQy2A2pUzkRwhSZbioT v2qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=UZUUdkhh; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 21-20020a630215000000b005533bc87744si12764306pgc.816.2023.07.26.00.28.01; Wed, 26 Jul 2023 00:28:14 -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=@collabora.com header.s=mail header.b=UZUUdkhh; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232328AbjGZHKA (ORCPT + 99 others); Wed, 26 Jul 2023 03:10:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232462AbjGZHJf (ORCPT ); Wed, 26 Jul 2023 03:09:35 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27EF555BF; Wed, 26 Jul 2023 00:06:45 -0700 (PDT) Received: from eugen-station.. (unknown [82.76.24.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: ehristev) by madras.collabora.co.uk (Postfix) with ESMTPSA id A02CC6607115; Wed, 26 Jul 2023 08:06:26 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1690355187; bh=iz0YvQ3fnQ9vjxmywIwYRGMCuKmZv1tpf33ccDhklTc=; h=From:To:Cc:Subject:Date:From; b=UZUUdkhhH4JX93a4W1Gq/45Jt2H5arXOhIrMz0YvKRZl45tpQLrhi0UHtRwg+QxAj 1I9tNi9nl0jSWJ5Ws9d5RVCPajRg6V+ikrD8OgSGRCM+G7hwdGuCA6Vaz/mzhU7Aoa Yiju2Bs/nmq2pZhA/SBRs5ZuKMnPGcGHd26g2TZnQOwxt007Nly4s2mC39Komd7sEJ 45f/rnwKqFo8mvq2eJHhsqOEkvcQThcoIRb0PXloEg3V6feCYhk4iN4hZBYYXYGkzT InHAOlZVLMqB7EC9dHHSf8FdY5PciM2lJ4GUKQpH4s3EwenPqzaAAx/U4SnvJ1ZSdv FF/MIJjZsY0ag== From: Eugen Hristev To: linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: david.wu@rock-chips.com, heiko@sntech.de, krzysztof.kozlowski+dt@linaro.org, kernel@collabora.com, Eugen Hristev Subject: [PATCH v2] dt-bindings: net: rockchip-dwmac: fix {tx|rx}-delay defaults/range in schema Date: Wed, 26 Jul 2023 10:06:15 +0300 Message-Id: <20230726070615.673564-1-eugen.hristev@collabora.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 The range and the defaults are specified in the description instead of being specified in the schema. Fix it by adding the default value in the `default` field and specifying the range as `minimum` and `maximum`. Fixes: b331b8ef86f0 ("dt-bindings: net: convert rockchip-dwmac to json-schema") Signed-off-by: Eugen Hristev --- changes in v2: - also move the range as minimum/maximum in the schema .../devicetree/bindings/net/rockchip-dwmac.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml b/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml index bb943c96c196..70bbc4220e2a 100644 --- a/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml +++ b/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml @@ -92,12 +92,18 @@ properties: $ref: /schemas/types.yaml#/definitions/phandle tx_delay: - description: Delay value for TXD timing. Range value is 0~0x7F, 0x30 as default. + description: Delay value for TXD timing. $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 0x7F + default: 0x30 rx_delay: - description: Delay value for RXD timing. Range value is 0~0x7F, 0x10 as default. + description: Delay value for RXD timing. $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 0x7F + default: 0x10 phy-supply: description: PHY regulator -- 2.34.1