Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2675416pxj; Mon, 14 Jun 2021 04:41:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDczQMUvt15TSnQaCvOhysFLjCkAZHZPSiRWyFeaYsRxPq0ibIJa/Nqc/OXSTYY8WZkono X-Received: by 2002:a17:906:520f:: with SMTP id g15mr15274516ejm.126.1623670890005; Mon, 14 Jun 2021 04:41:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623670889; cv=none; d=google.com; s=arc-20160816; b=wlwg7dPDRpg0iLPFvEyGZPApjPCLWjAdnTe7N3tgaBZtDeEMtsydNcCTaon7Gdckvr THY7oaef7M0HptgypyDHyZCvAJLIskKHqtYd0Kj6ypy2xADUZsv4x+es22ulsafe21JG e0QAfrw+5HMsXRTh+UGHGBq8ItsBairPRkLxYHkzhyYFbIIXak6CysR61XkyNAn/ednD +J3WKKO06JLn3J8jkJn3zE8Rt3S1SMfgmiifwAthuG56V2NubXA+y7ogF9n4WnPihCrx wZRM+9sA0cTPL/RswAEdueWVNSR8BKxaWVKIMhE7Z1nZzVAB4ja5KCNGGoHEGDWn0FCi 6sYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vc5HHguaOuRxAOAmMXZwGcsiKeDCI98jbjBMZyqRATY=; b=MJ0ehkE2Kb3pCXVl0rqiTs6IR1VCCZ7elyOQ8z8rm8b0DEIjVeBOek6JYkcYZeEsG2 JcFIfqLOCGc56wEAKGU/dSVa9I8xI4BegZqHXk10G18Mqb1qvbXWww3MCr8FrQYjsj8j 06Ac48qhP8IUYd8Ou1NuBzMklPkKdmmkoZPiNp6QtZr6b8G6R7pJf2O+uhmBw5RjDO27 gJbdUSsGnZDMNKhxJvWHhlg1N0S3Bu78MfjuBMxvFNKZyVzmc7FeNETjK61wL01DmGrU PHTuyhj8WJArFVSj8mHhn1P6+L1QzPiNZ1LJ0k0lJycJ0l95I3epmYJn/RviGysJFTGs oBcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iOuiFxjS; 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 l3si12951277ejd.407.2021.06.14.04.41.06; Mon, 14 Jun 2021 04:41:29 -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=@kernel.org header.s=k20201202 header.b=iOuiFxjS; 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 S235513AbhFNLlS (ORCPT + 99 others); Mon, 14 Jun 2021 07:41:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:55708 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236127AbhFNL3r (ORCPT ); Mon, 14 Jun 2021 07:29:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 64100610A1; Mon, 14 Jun 2021 11:27:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623670064; bh=2rY2tAo241vX6ekFHgV1yvqOPbGBmy18m5WLXiLqfeE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iOuiFxjSh80/mdRceoX2xOb5QbpLlHTQbi+rVVDf2f2VlXYzWQ8Ize0UMp/alOLaF AoOxZuDyYT4+GWocZ49wSxFKUrPDfxEWAGyYKlnU/Jgqo+mIVbBVuMaLmnni/mMiBv L9Ulk/ntWSNtHpUtjH4WFaAZ4sc21qCsB6BhM7grhPC7ZN1nH4n1xJCejKkuGuyApt ao1/BEpgn+k8QggMfxP6JXc4dWOEtSLugtluKJUxMvIVPYovSvlWSTX4R+xcPuS3zQ bihwlM5ANdd+WJQExzG902nQ9A3cQ3HzU0lTSxAdLry3+BJ5rlYCuumxkD2n6F8+G+ S+VRXos4WvSaA== Date: Mon, 14 Jun 2021 16:57:33 +0530 From: Manivannan Sadhasivam To: Cristian Ciocaltea Cc: Rob Herring , Andreas =?iso-8859-1?Q?F=E4rber?= , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] ARM: dts: owl-s500-roseapplepi: Add ethernet support Message-ID: <20210614112733.GA38584@thinkpad> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 11, 2021 at 12:11:33PM +0300, Cristian Ciocaltea wrote: > Add pinctrl configuration for enabling the Ethernet MAC on RoseapplePi > SBC. Additionally, provide the necessary properties for the generic S500 > ethernet node in order to setup PHY and MDIO. > > Signed-off-by: Cristian Ciocaltea Reviewed-by: Manivannan Sadhasivam Thanks, Mani > --- > arch/arm/boot/dts/owl-s500-roseapplepi.dts | 45 ++++++++++++++++++++++ > 1 file changed, 45 insertions(+) > > diff --git a/arch/arm/boot/dts/owl-s500-roseapplepi.dts b/arch/arm/boot/dts/owl-s500-roseapplepi.dts > index b8c5db2344aa..eb555f385283 100644 > --- a/arch/arm/boot/dts/owl-s500-roseapplepi.dts > +++ b/arch/arm/boot/dts/owl-s500-roseapplepi.dts > @@ -225,6 +225,27 @@ bias1-pinconf { > bias-pull-down; > }; > }; > + > + ethernet_pins: ethernet-pins { > + eth_rmii-pinmux { > + groups = "rmii_txd0_mfp", "rmii_txd1_mfp", > + "rmii_rxd0_mfp", "rmii_rxd1_mfp", > + "rmii_txen_mfp", "rmii_rxen_mfp", > + "rmii_crs_dv_mfp", "rmii_ref_clk_mfp"; > + function = "eth_rmii"; > + }; > + > + phy_clk-pinmux { > + groups = "clko_25m_mfp"; > + function = "clko_25m"; > + }; > + > + ref_clk-pinconf { > + groups = "rmii_ref_clk_drv"; > + drive-strength = <2>; > + }; > + > + }; > }; > > /* uSD */ > @@ -241,6 +262,30 @@ &mmc0 { > vqmmc-supply = <&sd_vcc>; > }; > > +ðernet { > + pinctrl-names = "default"; > + pinctrl-0 = <ðernet_pins>; > + phy-mode = "rmii"; > + phy-handle = <ð_phy>; > + status = "okay"; > + > + mdio { > + #address-cells = <1>; > + #size-cells = <0>; > + > + reset-gpios = <&pinctrl 88 GPIO_ACTIVE_LOW>; /* GPIOC24 */ > + reset-delay-us = <10000>; > + reset-post-delay-us = <150000>; > + > + eth_phy: ethernet-phy@3 { > + reg = <0x3>; > + max-speed = <100>; > + interrupt-parent = <&sirq>; > + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; > + }; > + }; > +}; > + > &twd_timer { > status = "okay"; > }; > -- > 2.32.0 >