Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1391637ybt; Sat, 20 Jun 2020 09:04:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3/AHP/uODJ94hdyvcX/WEwwjq5k2zm7t15VMpLbM1TN5fLcV1OZOCTRNMOsUVXald2uY6 X-Received: by 2002:a05:6402:1bdc:: with SMTP id ch28mr8428184edb.19.1592669043799; Sat, 20 Jun 2020 09:04:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592669043; cv=none; d=google.com; s=arc-20160816; b=FHaPk5YciYbdnnV8/22wrfnTl6VaU/wzMAD9p419PvDvnB8HAOAmHjL9qoJPPdQA0Y lMN1tEX5+jyrA/dkDjEc6M2vSyxxLludKrqmwmf4ALBA/JSERhu+u3b6IVuBAcZgLNJp jR8zRRAsPFXvDzaHOAIX4vcGunTcHMOMZiu61cZoCxZ3rYjJjHERggdya8MBjpyAFJ7z DHHOBULKNoZxzChGPblwCjZSkEYgL1tYm/y8xrO2HC6ywB2a4kTcSSJF3LuvwEuP32Dx cQfv/a9dxh2u5jvsrQQQh6sEh6CADJct/+xmP7oICUxb4tumc0bpApryHf9RYmQXlItt GWng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=FaacUivmwkyk1cQqE2hDul+alcpzdjWqLMV4Yng5czA=; b=Ytbea4FEDt1UEpQhR594qF+0VY2v5t3fvx3a5yzdyrYtZtCmqZTrJqqBeaAzOWzDls MaT4TxngPjyt1PDGDfU3aPw5A08MNLNfQ5EVNLYzXXlGonTpBk94TG3HY8y2IiQp2jUh 5qdSXsYVbD83bIUQCZaCxdFu0bEsKyLcyYcEzhfuVPt6EIaTJvAA2Fyl0XxucdLBzj8Q dkQSAWURDaYbHMB2J4bNqGM2fiaa8hTBvT2+R3QbGd+pvnuZP8CvK6q0NOxtEqFyQOkO 3BgjEyJXr0dDUuyrBKHGzOg9z6XKztZ5YBHixHOLVzMf8dxYkOmciUi7JipL3L5KFpr2 H6hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=F0v1zkAY; 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 g22si6074430eds.26.2020.06.20.09.03.40; Sat, 20 Jun 2020 09:04:03 -0700 (PDT) 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=F0v1zkAY; 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 S1727850AbgFTQBq (ORCPT + 99 others); Sat, 20 Jun 2020 12:01:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725880AbgFTQBp (ORCPT ); Sat, 20 Jun 2020 12:01:45 -0400 Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A90AC06174E for ; Sat, 20 Jun 2020 09:01:45 -0700 (PDT) Received: by mail-ed1-x541.google.com with SMTP id g1so10154803edv.6 for ; Sat, 20 Jun 2020 09:01:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FaacUivmwkyk1cQqE2hDul+alcpzdjWqLMV4Yng5czA=; b=F0v1zkAYWFxD7fO/Z3yiOsm9bgbIfvJscZvGRcsG2T99d0vBJ7bN6KBQfWddETeLbq gN+YjHd4Lkrt4onWB7gva+uxV8jBAqhhlft0hyMCiO5qhq2avIU2RUjwV1jiYtuCdu6o +L3DM8c2PSwzDOFJWZfn1pwGS5U65F4S/lJ4zaM2Ab9OqGgaS8m40RmQGUgA/KZK1qhw AhmHNdG1nqO6ji4fEkfbXtgT/9Axl2tvxJs2fmtlJeoZviqJF6MHkFE7uOgqAi80rj85 aBJSEF2C35YGwvEA3nER/f/5xzDxEr7slR2UbA0Wnzayv0ShJF0390icPmd2bsJcfKgR zJYg== 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:mime-version :content-transfer-encoding; bh=FaacUivmwkyk1cQqE2hDul+alcpzdjWqLMV4Yng5czA=; b=mqVRd8cKodO4DqqwxEmBCNSOlyvksiWcpLNWlutqnjUbylz16LJgeLVQ3yb89NquBc svzW2rwi6e5CgK2HyC7WyJelntXMyfx4noFlh5ejvDCq8eUeWCcKJy6eChW4gHJeSadb IOP2j+nFFxfTN4OKAIgsuffaCjVarAIrxh3zzv1zfkZH2h9f3yCobOGzevgymDG/x5kn XjhGq9fdCGJc14aUuZS28vO7zgczkRzzbn1LwusKXabDRXmhJ5Prf0diuB3h/SStnYvx ZguFwfES2etguWQdS+3hk34nJbRQE4AUoZNae7Ji1K657VVD6or9g4iwpRC32RUSakCR Q4+w== X-Gm-Message-State: AOAM533CxGFrnSFprHW34g4iYgvNLPpyJbBk6HXCLKjhbvjvLhBrP9sw nd5Vs13i171gteZd6+4fYFw+DSME X-Received: by 2002:aa7:d693:: with SMTP id d19mr4278829edr.297.1592668903789; Sat, 20 Jun 2020 09:01:43 -0700 (PDT) Received: from localhost.localdomain (p200300f1371df700428d5cfffeb99db8.dip0.t-ipconnect.de. [2003:f1:371d:f700:428d:5cff:feb9:9db8]) by smtp.googlemail.com with ESMTPSA id sd15sm238163ejb.66.2020.06.20.09.01.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jun 2020 09:01:43 -0700 (PDT) From: Martin Blumenstingl To: khilman@baylibre.com, linux-amlogic@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Blumenstingl Subject: [PATCH] arm64: dts: amlogic: Add the Ethernet "timing-adjustment" clock Date: Sat, 20 Jun 2020 18:01:36 +0200 Message-Id: <20200620160136.21584-1-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the "timing-adjusment" clock now that we now that this is connected to the PRG_ETHERNET registers. It is used internally to generate the RGMII RX delay no the MAC side (if needed). Signed-off-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 6 ++++-- arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 6 ++++-- arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 5 +++-- arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 5 +++-- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi index 8e6281c685fa..b9efc8469265 100644 --- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi @@ -181,8 +181,10 @@ ethmac: ethernet@ff3f0000 { interrupt-names = "macirq"; clocks = <&clkc CLKID_ETH>, <&clkc CLKID_FCLK_DIV2>, - <&clkc CLKID_MPLL2>; - clock-names = "stmmaceth", "clkin0", "clkin1"; + <&clkc CLKID_MPLL2>, + <&clkc CLKID_FCLK_DIV2>; + clock-names = "stmmaceth", "clkin0", "clkin1", + "timing-adjustment"; rx-fifo-depth = <4096>; tx-fifo-depth = <2048>; status = "disabled"; diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi index 593a006f4b7b..41805f2ed8fc 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi @@ -185,8 +185,10 @@ ethmac: ethernet@ff3f0000 { interrupt-names = "macirq"; clocks = <&clkc CLKID_ETH>, <&clkc CLKID_FCLK_DIV2>, - <&clkc CLKID_MPLL2>; - clock-names = "stmmaceth", "clkin0", "clkin1"; + <&clkc CLKID_MPLL2>, + <&clkc CLKID_FCLK_DIV2>; + clock-names = "stmmaceth", "clkin0", "clkin1", + "timing-adjustment"; rx-fifo-depth = <4096>; tx-fifo-depth = <2048>; status = "disabled"; diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi index 234490d3ee68..03c25b9facff 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi @@ -333,8 +333,9 @@ &efuse { ðmac { clocks = <&clkc CLKID_ETH>, <&clkc CLKID_FCLK_DIV2>, - <&clkc CLKID_MPLL2>; - clock-names = "stmmaceth", "clkin0", "clkin1"; + <&clkc CLKID_MPLL2>, + <&clkc CLKID_FCLK_DIV2>; + clock-names = "stmmaceth", "clkin0", "clkin1", "timing-adjustment"; }; &gpio_intc { diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi index fc59c8534c0f..60484bbc7272 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi @@ -131,8 +131,9 @@ &efuse { ðmac { clocks = <&clkc CLKID_ETH>, <&clkc CLKID_FCLK_DIV2>, - <&clkc CLKID_MPLL2>; - clock-names = "stmmaceth", "clkin0", "clkin1"; + <&clkc CLKID_MPLL2>, + <&clkc CLKID_FCLK_DIV2>; + clock-names = "stmmaceth", "clkin0", "clkin1", "timing-adjustment"; mdio0: mdio { #address-cells = <1>; -- 2.27.0