Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1250896pxb; Sun, 17 Jan 2021 02:11:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/zNFu5J6s7g8dMPjI0nIwvVtdw4+nswBV8Ij+rAYgfJ3oenzGjQki/ejZmNXeKhjr5wyw X-Received: by 2002:a05:6402:2694:: with SMTP id w20mr15882883edd.200.1610878276814; Sun, 17 Jan 2021 02:11:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610878276; cv=none; d=google.com; s=arc-20160816; b=Ol+D+U52hyVOseXiYu7ku97wrSuhaGj+WHYa3gFOE5MZRIdN3xjVkX6nA6ZdfPbEFb GjmLZCww94T0/dLkRwP86GPVCjOveUk1+mehXygZXQ60/6mJLvfbOzMEzkxoCbhleT7a JZOZ69cvGJQwCf7E+z7w52GaeiNNZgZ2zmBhmJXDtzBUGCiJaVXWkpi7VHDU1n0/oXkn VV/77irbaI/44bcYUJ9wXVPnfcCg6iqkTI3Bxb+SqLfnlLqcjLBRrzpIK8ib3HJQvbpD xRBpXjDu+SdIogRVOHNe7YNES/BVd2DK4pVpTgzbXAQ6YElf40KOeztYwtANH3TEjF3t vZEQ== 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=v36pIvHJur1Iod1oRE5trMI1v6vYIdu1D256iEzswU4=; b=LH/VJQkdELCHprH9BUyypJVcvrykNmSWQ9zAcM8Ix3fI4mpEhpTzeSnuKcDV6x2oOk IzjWIIUMeiEUjf1oc1vjfGNqO3EyaMlRY1Co55rCYXK1eo/eV1t04BKn7HS48NVGdao3 t8Y2e8daNBzOoJx/Q8SxdARwhMeLwT8ci/uOJLQCqGTM4n8W9QND7nMKjJvVpEbTA0NL k+8zD+H4kXPjD0VMFLu4FQmx+HkMY6pb7XN6Dmvr/VcQJEKTaiLx/Cgio2t7oOY42cK9 /D9rPv/0ESwBrZoHP1QTNBgbJYWSTy0Y1oPSg0vzv3aALvoVD7ieHwBL6EysJ4HJz/5c SpGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lhFoXgQN; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e13si6304639edz.214.2021.01.17.02.10.53; Sun, 17 Jan 2021 02:11:16 -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=@kernel.org header.s=k20201202 header.b=lhFoXgQN; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728385AbhAQKIv (ORCPT + 99 others); Sun, 17 Jan 2021 05:08:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:43716 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727967AbhAQKIB (ORCPT ); Sun, 17 Jan 2021 05:08:01 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 94D58206E5; Sun, 17 Jan 2021 10:07:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610878041; bh=3MHx5UbB1ooomqCTWXY1+5z312KLXluxdGw1tLFu/Co=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lhFoXgQNun3F2vQZY4i8wjtUurHO6HcVwDGozy5RewI86FyrzFBbMxDnMjWfw5qQd fcfkK87eLWOMheQLQSnR29X//wc3OeV3stfipq3vQcX2Y4GZh7gr13xQxRwgKru6IJ 8XGT+lnlvBRZ3MarYDN6x8/MFk+g9d5Zt38Ow1Lo3gdNsMh9cYs3OILrS0xRE/GMqM xfTVxB7JezXouDzPiNG8MdX17WSs+xNhKEL/+Dn/m1YVeIezRzDdkB0nOh09HC7quI gOwnr9G3E/zJ59kwcUaQQ/5ekXMPO3m6b/b/467g8wfBPHSOpIiAlYi7ViI44E82D2 QgvyOMyPv2YNQ== Received: by wens.tw (Postfix, from userid 1000) id AD6075F839; Sun, 17 Jan 2021 18:07:17 +0800 (CST) From: Chen-Yu Tsai To: Rob Herring , Heiko Stuebner Cc: Chen-Yu Tsai , linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 1/3] arm64: dts: rockchip: rk3328: Add clock_in_out property to gmac2phy node Date: Sun, 17 Jan 2021 18:07:08 +0800 Message-Id: <20210117100710.4857-2-wens@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210117100710.4857-1-wens@kernel.org> References: <20210117100710.4857-1-wens@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chen-Yu Tsai The gmac2phy is integrated with the PHY within the SoC. Any properties related to this integration can be included in the .dtsi file, instead of having board dts files specify them separately. Add the clock_in_out property to specify the direction of the PHY clock. This is the minimum required to have gmac2phy working on Linux. Other examples include assigned-clocks, assigned-clock-rates, and assigned-clock-parents properties, but the hardware default plus the implementation requesting the appropriate clock rate also works. Fixes: 9c4cc910fe28 ("ARM64: dts: rockchip: Add gmac2phy node support for rk3328") Signed-off-by: Chen-Yu Tsai --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi index db0d5c8e5f96..93c734d8a46c 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi @@ -928,6 +928,7 @@ gmac2phy: ethernet@ff550000 { phy-mode = "rmii"; phy-handle = <&phy>; snps,txpbl = <0x4>; + clock_in_out = "output"; status = "disabled"; mdio { -- 2.29.2