From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6085DC4338F for ; Fri, 23 Jul 2021 06:31:37 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2DBCB60ED7 for ; Fri, 23 Jul 2021 06:31:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2DBCB60ED7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3NxHlGeCLSE23RCCLB0VH3s0S0nTvefnG5DCH2sru88=; b=T6vrihIV9dM+6V lfg3kzRnlgCFYcg7qRzC2rz+uab7rY1INcB8sNtWXtkz5tPqDUEFnq9NYI+LLgncKjMee4hGcYOtV 9BkIw2zmXNOXQXdBL6EMsCFOI2Ve4nxtun9+whnlhz0Ku1AQyywODs/YOURgmdH1vPTWkQ4klocUB MmdzTd4thCoXr7Ua0azoIipIh4mmGuPjORt8rgCmImLHpKKoXX/TKxKeVISDlw/bYUvY4wjXz7nP+ KHWH+jhI8k246z7MFJIiTtMNCZgZ7fvrFPwSWBVLwedXX2lbvJS6IGxmHmxXkjPOBInRdOkLk9ngP RGcG9uy+c2ZmdEjvoF+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6ohK-003Z1X-OH; Fri, 23 Jul 2021 06:30:14 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6ohG-003Z0x-JR for linux-arm-kernel@lists.infradead.org; Fri, 23 Jul 2021 06:30:12 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 289CE60E78; Fri, 23 Jul 2021 06:30:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627021810; bh=pz1Cm6rAISClHbdSd6oF5Q6jWEdNcM7V+ts64t5Pa6k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DeXZLkF5b2l5o9ybzmrgpPZT/8DpJqfRzGT3EU8ySsq0W1DS6iLA+7O1MFLuzKd12 qZPPjXD4GXwWR3Z5GSkP+Y3AC+uqIuHdVc+x0+YmgCoLsmhkquEJq6RAhEOer0A0s/ 5E4VQVngdt5HOMh8ifXO0hMuWrD/4ToKUgleLxpP9cTVl+LG0B6RB/L2s6k+PkH6wd O9iNEUQL8P81l7cpabZq9sg5RNtEYjiuO5Rf4HiR/5dvHpF0cqKuFLfMYzlsFmnQUL el4TlWXVxFO4VtB0gLM3bIrMR8uXaP5PB2dmHDwsmVELMlcwNzBSOXCeV4wUr9EwRr M+SldXapbbqYg== Date: Fri, 23 Jul 2021 14:30:05 +0800 From: Shawn Guo To: Christoph Niedermaier Cc: linux-arm-kernel@lists.infradead.org, Fabio Estevam , Marek Vasut , NXP Linux Team , kernel@dh-electronics.com Subject: Re: [PATCH V6 07/15] ARM: dts: imx6q-dhcom: Use 1G ethernet on the PDK2 board Message-ID: <20210723063004.GP28658@dragon> References: <20210714210713.9015-1-cniedermaier@dh-electronics.com> <20210714210713.9015-7-cniedermaier@dh-electronics.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210714210713.9015-7-cniedermaier@dh-electronics.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210722_233010_723742_5DE9BFF8 X-CRM114-Status: GOOD ( 23.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Jul 14, 2021 at 11:07:05PM +0200, Christoph Niedermaier wrote: > The PDK2 board is capable of running both 100M and 1G ethernet. However, > the i.MX6 has only one ethernet MAC, so it is possible to configure > either 100M or 1G Ethernet. In case of 100M option, the PHY is on the > SoM and the signals are routed to a RJ45 port. For 1G the PHY is on > the PDK2 board with another RJ45 port. 100M and 1G ethernet use > different signal pins from the i.MX6, but share the MDIO bus. > > This SoM board combination is used to demonstrate how to enable 1G > ethernet configuration. > > Signed-off-by: Christoph Niedermaier > Cc: Shawn Guo > Cc: Fabio Estevam > Cc: Marek Vasut > Cc: NXP Linux Team > Cc: kernel@dh-electronics.com > To: linux-arm-kernel@lists.infradead.org > --- > V2: - Rebase on Shawn Guos branch for-next > V3: - Rework of the commit message > - Remove superfluous property max-speed > V4: - No changes > V5: - No changes > V6: - Rebase on 5.14-rc1 > --- > arch/arm/boot/dts/imx6q-dhcom-pdk2.dts | 51 ++++++++++++++++++++++++++++++++-- > 1 file changed, 48 insertions(+), 3 deletions(-) > > diff --git a/arch/arm/boot/dts/imx6q-dhcom-pdk2.dts b/arch/arm/boot/dts/imx6q-dhcom-pdk2.dts > index 4d455831b3ca..3b0276de41f9 100644 > --- a/arch/arm/boot/dts/imx6q-dhcom-pdk2.dts > +++ b/arch/arm/boot/dts/imx6q-dhcom-pdk2.dts > @@ -173,6 +173,46 @@ > status = "disabled"; > }; > > +/* 1G ethernet */ > +/delete-node/ ðphy0; > +&fec { > + phy-mode = "rgmii"; > + phy-handle = <ðphy7>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_enet_1G>; > + status = "okay"; > + > + mdio { > + #address-cells = <1>; > + #size-cells = <0>; > + > + ethphy7: ethernet-phy@7 { /* KSZ 9021 */ > + compatible = "ethernet-phy-ieee802.3-c22"; > + interrupt-parent = <&gpio1>; > + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; > + pinctrl-0 = <&pinctrl_ethphy7>; > + pinctrl-names = "default"; > + reg = <7>; > + reset-gpios = <&gpio3 29 GPIO_ACTIVE_LOW>; > + reset-assert-us = <1000>; > + reset-deassert-us = <1000>; > + Unnecessary newline in property list. Shawn > + rxc-skew-ps = <3000>; > + rxd0-skew-ps = <0>; > + rxd1-skew-ps = <0>; > + rxd2-skew-ps = <0>; > + rxd3-skew-ps = <0>; > + txc-skew-ps = <3000>; > + txd0-skew-ps = <0>; > + txd1-skew-ps = <0>; > + txd2-skew-ps = <0>; > + txd3-skew-ps = <0>; > + rxdv-skew-ps = <0>; > + txen-skew-ps = <0>; > + }; > + }; > +}; > + > &hdmi { > ddc-i2c-bus = <&i2c2>; > status = "okay"; > @@ -255,9 +295,14 @@ > MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b0b0 > MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b0b0 > MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b0b0 > - MX6QDL_PAD_EIM_D29__GPIO3_IO29 0x000b0 > - MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x000b1 > - MX6QDL_PAD_EIM_D26__GPIO3_IO26 0x000b1 > + >; > + }; > + > + pinctrl_ethphy7: ethphy7-grp { > + fsl,pins = < > + MX6QDL_PAD_EIM_D29__GPIO3_IO29 0xb0 /* Reset */ > + MX6QDL_PAD_GPIO_0__GPIO1_IO00 0xb1 /* Int */ > + MX6QDL_PAD_EIM_D26__GPIO3_IO26 0xb1 /* WOL */ > >; > }; > > -- > 2.11.0 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel