From patchwork Fri Feb 19 07:23:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Christian_S=C3=B8rensen?= X-Patchwork-Id: 1442177 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=bsorensen.net header.i=@bsorensen.net header.a=rsa-sha256 header.s=20191106 header.b=TgUUpmNy; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Dhsts2qK7z9sRN for ; Sat, 20 Feb 2021 00:32:05 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A6FB78280F; Fri, 19 Feb 2021 14:32:01 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=bsorensen.net Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=bsorensen.net header.i=@bsorensen.net header.b="TgUUpmNy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C9D8982767; Fri, 19 Feb 2021 08:24:08 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mailrelay2-2.pub.mailoutpod1-cph3.one.com (mailrelay2-2.pub.mailoutpod1-cph3.one.com [46.30.212.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 05468826D4 for ; Fri, 19 Feb 2021 08:24:05 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=bsorensen.net Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=yocto@bsorensen.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsorensen.net; s=20191106; h=content-transfer-encoding:content-type:mime-version:message-id:date:subject: cc:to:from:from; bh=xG5cvAZOYDVbnR0npqlbnIoWccQDVfVrR5UZG/FEYrM=; b=TgUUpmNyPtEHrgwtn2+Yr/HmTzXWRmN8Uh7VclPkbgdlMcROWoaU4ILDK8q7HQrxCCGFyb67DdL7T imCH3Ot3Ov6mrODHrHfg42iBMu4mmQ5u0zAMYaMsWhIofyx8/EKQyh8/oCnXM4AvYbTiEjmoWlB6Cg 76M+4ZXMAypJmuY/4z8eQoCZpShcD/CmGFLIQLOinQz61PoRk633ohZZ2fNEtYohBzlA792KYtq7Pk v71A8HOWQCrGx+/sZsDVE4S55ZiiS57Tw1v7/38ATKIJb1kFqn/u3xts+2P9YYRjmWU9cpbc4Xp4zS 5jlHV7qdnwgdSfgixQd/e5o1vj9LOzQ== X-HalOne-Cookie: 8c78a48fe1b0bc64b180f6c05112b87c50a1a36e X-HalOne-ID: 72442e1c-7283-11eb-b55e-d0431ea8a290 Received: from localhost.localdomain (unknown [85.191.185.161]) by mailrelay2.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id 72442e1c-7283-11eb-b55e-d0431ea8a290; Fri, 19 Feb 2021 07:24:05 +0000 (UTC) From: =?utf-8?q?Christian_Br=C3=A4uner_S=C3=B8rensen?= To: u-boot@lists.denx.de Cc: chbs@prevas.dk, =?utf-8?q?Christian_Br=C3=A4uner_S=C3=B8rensen?= Subject: [PATCH] arm: dts: imx7d-sdb: Fix enet by setting soft spi mode to 3 for extended io Date: Fri, 19 Feb 2021 08:23:58 +0100 Message-Id: <20210219072358.20157-1-yocto@bsorensen.net> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 19 Feb 2021 14:31:59 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean This patch sets SPI MODE 3 for the fairchild 74HC595 device that is used to reset the ethernet device, which fixes ethernet. Reasoning: The imx7dsabresd board uses SPI for setting the extended IO. One of the purposes of this extended IO, is having the ability to set ENET_RST i.e. reset the ethernet PHY. Without proper reset of the PHY, ethernet does not work. commit 0e146993bb3d ("spi: add support for all spi modes with soft spi") broke network support for boards using imx7d-sdb, since it actually corrected default SPI mode setting for the software emulated soft_spi to 0, i.e. CPHA to 0 and CPOL to 0. Previously, the driver defaulted to CPHA 1 and CPOL 1 (i.e. spi mode 3). After the default SPI mode is now 0 (which is the correct default value) we now need to actively set CPHA and CPOL to 1 for the specific devices that actually needs this. Signed-off-by: Christian Bräuner Sørensen --- arch/arm/dts/imx7d-sdb.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/dts/imx7d-sdb.dts b/arch/arm/dts/imx7d-sdb.dts index 8191ac7c33..6ed21ce8b0 100644 --- a/arch/arm/dts/imx7d-sdb.dts +++ b/arch/arm/dts/imx7d-sdb.dts @@ -58,6 +58,8 @@ reg = <0>; registers-number = <1>; spi-max-frequency = <100000>; + spi-cpha; + spi-cpol; }; };