Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2069011pxb; Sat, 14 Nov 2020 12:03:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJw8VGMEPieHYbPMNn99M8YlAc1N4psIocBt/PqnTFMEQGKPg/1mBxhgz7vHyUuwa9jhWAbj X-Received: by 2002:a50:bb25:: with SMTP id y34mr8446263ede.249.1605384209873; Sat, 14 Nov 2020 12:03:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605384209; cv=none; d=google.com; s=arc-20160816; b=giYI2LjreSmu6yee9cqL89mHV02OOyZL8SIIWU/6tiVZn+jY9Zc3rFvpDgoDMaLuCI 1ZOSxjfj7+M+nND2NcD7SYnNCjOqCt5jQJMCw1rtT/lrliMYndT3LGCdAuuY3KDDGzSf cbURbhYiNikxnpVwEg0gsN0auj2oJ6YnyTOLEr7fW4lPjZjNxzhRgdFGXj4AxGkpi0l/ 4HoT25LMGD+niVswDgQTA3JQmjgtss8BBxA5oTcm9ID7Q94+s4N9yyr4CNP4KHnKmCyG aWgH75NoHnPX9OC03Zb+awxQjc2CDC9AY0sN41e/yO6o9nsOddz7tLMIYrC8sdXIXNxC iT1g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GleviSu04Uw5FP7oMT3FdU05y/KDRd1HVYUy7Aq3GME=; b=VXMa2jYpXX/SgcXzcjsc1sA7myskHlXDysslnL1r1+/4hMBuGfKvS9NZSC4XNKxnzh EZQnYXgpPuuTFEbnpRy+xQVqxcv8C9ysuOQK8pG4Wi1ojhFTsIqOmEvxoELPYw3CkS/9 HFKGcynsKYFeqJTeJ/Fk7nH0eL48HWlw2tYEbVyazy+rmDmUIozI3A1TyzdrPdu6ajSb kDvUIwnjNEFqjhpoTtX4uS/36qMmtmXQOOUfW44RPbvKJl3rR0xTSdK1c1nIHAqU+krS 1cksg/ySJUGSg0Ui7NZqzm7g1hn9H9w2x9TN0vMnWccSL7xQC8CvsD6tuN6gMJLv8T4C /Tbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=pveyCBiK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f9si8986385edy.248.2020.11.14.12.03.07; Sat, 14 Nov 2020 12:03:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=pveyCBiK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726395AbgKNUBv (ORCPT + 99 others); Sat, 14 Nov 2020 15:01:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726239AbgKNUBu (ORCPT ); Sat, 14 Nov 2020 15:01:50 -0500 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59523C0613D1; Sat, 14 Nov 2020 12:01:50 -0800 (PST) Received: by mail-wr1-x442.google.com with SMTP id b6so14112962wrt.4; Sat, 14 Nov 2020 12:01:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GleviSu04Uw5FP7oMT3FdU05y/KDRd1HVYUy7Aq3GME=; b=pveyCBiKT0pSGp9hA0nzwCwtFLXJh/FT+NU6HwZPvE7afs9OfNqqQ51ac4Xmrk30fz MGpgfdzutTiyHEprGv3b6QHuJlME0WIsbPiar56RICQjQON1G5FEszLmXZ4CpCBlGivG 7vdNZkqrW2pBEACXCyx1gDXxKRQ6Vmmz9mUhPpXOnT37oY9sR98al66y4wKtD+dQYDei nWeRjzPE3UCwLkljsETYZdUAYun2RKxlYrTrruyHH33spZsOIhzqTeUlfOYaaO5nQztS kZciFjLHzi1hvKHUup5QSO7xC401gwm4aSeFsBPkElEcJoZqhD8xULvXQUcWuMdCswXM JpJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GleviSu04Uw5FP7oMT3FdU05y/KDRd1HVYUy7Aq3GME=; b=qpNWUPi0etnFZDDB7ZVk9gKZb9MTgCh3VE69ZPEyQmW4DgUF+Ln/LhtG0qjt6Bs7AR ZR/+0ANNxd+6N8oaFSkaf0WI8KxUCP+4lRmgwh57sdINS8h6jBC3ZqLweM8vQTsGemwd LxjpMk1Mwl8+rTKpFGq0HwnCEzdxW2iPE3bandnJ2cS33V0jRIePxBj5PZUmBmo3XVDG NQT/eZXg7hgByH3+qjtgKf2FHoNjHfvEDpLTRZ0uYV0MhqDXb0NCho0LLudJGc/Fn3Qd s1qL4CAVAGcHCktOsC4lmI8dYmovqg3h8ukYCsymLN6BRj3+NLKhUp7cOho/GFviSd4x OERg== X-Gm-Message-State: AOAM5321bY5SoWROfEwWTBsSUz7UUpSvUgJ2mBYZQkdakNtNoUl/3vTX KVR9XG2SZTK2/o+Q2yE1Hzkonn+OJDChXQ== X-Received: by 2002:a5d:548b:: with SMTP id h11mr11143264wrv.306.1605384109053; Sat, 14 Nov 2020 12:01:49 -0800 (PST) Received: from localhost.localdomain (p4fc3ea77.dip0.t-ipconnect.de. [79.195.234.119]) by smtp.googlemail.com with ESMTPSA id g138sm14342953wme.39.2020.11.14.12.01.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Nov 2020 12:01:48 -0800 (PST) From: Martin Blumenstingl To: davem@davemloft.net, kuba@kernel.org, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, robh+dt@kernel.org Cc: jianxin.pan@amlogic.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, khilman@baylibre.com, narmstrong@baylibre.com, jbrunet@baylibre.com, andrew@lunn.ch, Martin Blumenstingl Subject: [PATCH RFC v1 1/4] dt-bindings: net: dwmac-meson: use picoseconds for the RGMII RX delay Date: Sat, 14 Nov 2020 21:01:01 +0100 Message-Id: <20201114200104.4148283-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201114200104.4148283-1-martin.blumenstingl@googlemail.com> References: <20201114200104.4148283-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Amlogic Meson G12A, G12B and SM1 SoCs have a more advanced RGMII RX delay register which allows picoseconds precision. Deprecate the old "amlogic,rx-delay-ns" in favour of a new "amlogic,rgmii-rx-delay-ps" property. For older SoCs the only known supported values were 0ns and 2ns. The new SoCs have 200ps precision and support RGMII RX delays between 0ps and 3000ps. Signed-off-by: Martin Blumenstingl --- .../bindings/net/amlogic,meson-dwmac.yaml | 52 ++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml b/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml index 6b057b117aa0..bafde1194193 100644 --- a/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml +++ b/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml @@ -74,18 +74,68 @@ allOf: Any configuration is ignored when the phy-mode is set to "rmii". amlogic,rx-delay-ns: + deprecated: true enum: - 0 - 2 default: 0 + description: + The internal RGMII RX clock delay in nanoseconds. Deprecated, use + amlogic,rgmii-rx-delay-ps instead. + + amlogic,rgmii-rx-delay-ps: + default: 0 description: The internal RGMII RX clock delay (provided by this IP block) in - nanoseconds. When phy-mode is set to "rgmii" then the RX delay + picoseconds. When phy-mode is set to "rgmii" then the RX delay should be explicitly configured. When the phy-mode is set to either "rgmii-id" or "rgmii-rxid" the RX clock delay is already provided by the PHY. Any configuration is ignored when the phy-mode is set to "rmii". + - if: + properties: + compatible: + contains: + enum: + - amlogic,meson8b-dwmac + - amlogic,meson8m2-dwmac + - amlogic,meson-gxbb-dwmac + - amlogic,meson-axg-dwmac + then: + properties: + amlogic,rgmii-rx-delay-ps: + enum: + - 0 + - 2000 + + - if: + properties: + compatible: + contains: + enum: + - amlogic,meson-g12a-dwmac + then: + properties: + amlogic,rgmii-rx-delay-ps: + enum: + - 0 + - 200 + - 400 + - 600 + - 800 + - 1000 + - 1200 + - 1400 + - 1600 + - 1800 + - 2000 + - 2200 + - 2400 + - 2600 + - 2800 + - 3000 + properties: compatible: additionalItems: true -- 2.29.2