From patchwork Tue Jul 25 15:52:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugen Hristev X-Patchwork-Id: 125739 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp2620005vqg; Tue, 25 Jul 2023 10:21:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlGBxipbdQPIEN+ihchXBFqevdEtTfjjNCIJJTkqJXaxOsU+j6w6194y214YmqzmxBh8NboH X-Received: by 2002:a17:90b:684:b0:263:f5b7:bc05 with SMTP id m4-20020a17090b068400b00263f5b7bc05mr9496319pjz.14.1690305706865; Tue, 25 Jul 2023 10:21:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690305706; cv=none; d=google.com; s=arc-20160816; b=Mlp979przHpJo869YK0NNfsT/xbpPga1eLv0JdtEOgFtenW+QPgI9CfoEhnh1hdHLZ +BnKpM9W5X4mQCoGVkueTH95MtM5/TvGzsjiqwZa10xtMafKQtkOTTYEmgXzzp1r9MRF nCB35D8QvdZmdL4yCYYo/pB3VM8grx0ccpJH2nQ4ink+99+YqAvaMlg2JqdrwcnvWAT5 t4nSzY19M/dh4K0dussBjsz9c809B4QgKKwlBfd5M+JMSU21nFmiuEClH0Qp4urwMQkv rPgoonIOw4o4PwxeEkN+dJ73jrv4NWLl38OIed2QcaWr95bWcO5Z0yLu13Tb8dS88WPC ttCA== 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=NXqp2Hc/S76jGYiJO4wMI3l0RzXiRy/A22reiu1SWOw=; fh=DdVF+jg12jnBgVudidVwb6oEz29KBOXllE7XAsd4/Yc=; b=LCengBKOoRi5UE5uE6aprcr9jo9TJqkZQ1o7TS6/fizKyrSxuT6abVPUP+nn/umcQ+ skHT6u2Gvg5YB3eQF1dJF7epJ5qXAsl2brSzDf0QpF+B6eTdNE+Wm2qDVwJ6eHZCZTc2 //ffBB64I3mXaSJ4OdUWG4oaS8ReZa1B9ze5GKb2OEK7SxKW/tWEL6kLeVIA01FBVxPF rQXRp50P9wZHHAIpwBr49+vjSdq97+ijDrsZVYUGB7qHyuJfvVQ4M9hwVDREzWLiUQTr UOmVG/R/ISdcS9FWY9wmVWZCE8SJEL/AZo794rewNLQQ9bU8U5VbBdC/vOy0VtJAuryB ju2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=JbyBladb; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pf14-20020a17090b1d8e00b00262e77d645asi14269776pjb.174.2023.07.25.10.21.33; Tue, 25 Jul 2023 10:21:46 -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=JbyBladb; 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 S232397AbjGYPxK (ORCPT + 99 others); Tue, 25 Jul 2023 11:53:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231206AbjGYPxG (ORCPT ); Tue, 25 Jul 2023 11:53:06 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3075691; Tue, 25 Jul 2023 08:53:05 -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 DD2386606F9F; Tue, 25 Jul 2023 16:53:02 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1690300383; bh=oTwjKmbIzP/ICl+gGyGP/1DH20byUoeqWEtx/veTs3o=; h=From:To:Cc:Subject:Date:From; b=JbyBladbKjcskcYcNNABx1wJ/caoCgyx6Ixz11oqpXplKT3bjW0LG8kuPflsO/Zif renQs/CYIAVyKv7FcLymQrorKZxhcfIkkfx0njUNVb7la5dGVo5aPfPufXc2yHMnfx EXFgdsmcXTtePOR1ckYdS4t7Yhx8rKW99t/WYqbKmfVnhIKCvIhk1O1aCZ9kwnZlpZ rk8O5CW2Cspxzdr7jaEh1AfhMmA+UnY+6J3x+m2EZjvL14jcXV/sNyt+qeP4RFAWlt AEZ8UVITATGZDICbwaB/RkA4wvFERFsogJ1ew6WGVnnP1s8jtfAeOrfqFAmgZ1+Vnb 1fTcUIui7rA+w== 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] dt-bindings: net: rockchip-dwmac: fix {tx|rx}-delay defaults in schema Date: Tue, 25 Jul 2023 18:52:54 +0300 Message-Id: <20230725155254.664361-1-eugen.hristev@collabora.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772410422426132870 X-GMAIL-MSGID: 1772413997003592061 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. Fixes: b331b8ef86f0 ("dt-bindings: net: convert rockchip-dwmac to json-schema") Signed-off-by: Eugen Hristev --- Documentation/devicetree/bindings/net/rockchip-dwmac.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml b/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml index bb943c96c196..6d08260ad828 100644 --- a/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml +++ b/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml @@ -92,12 +92,14 @@ 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. Range value is 0~0x7F. $ref: /schemas/types.yaml#/definitions/uint32 + default: 0x30 rx_delay: - description: Delay value for RXD timing. Range value is 0~0x7F, 0x10 as default. + description: Delay value for RXD timing. Range value is 0~0x7F. $ref: /schemas/types.yaml#/definitions/uint32 + default: 0x10 phy-supply: description: PHY regulator