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=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT 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 1AFA1C433E6 for ; Thu, 7 Jan 2021 23:52:46 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 D29A923609 for ; Thu, 7 Jan 2021 23:52:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D29A923609 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=GooWnCER09gpDWRqobtOYwVjxCnRIreVzHcv34Y8QjU=; b=WW29LT2uqqz2uOP5g7icH0x+Gf hPLbD7RJlJ9RbYxjbfd/8o/VDC/jLw/4gt6qkuiNMrGXURo0+6zaueZhrNd1Y4O3ULzxnXIC8P3/g lH3ZASCUEaeFv4eR7yK6HkYupwX1eK6pxp3QWshgHacTM8diKLAhFZMlW8lBGf5NecgFKYhxYmF8c Xo+ERkXHN+dzJkRsCSjfrFX39+xJVVNBHVoyhjAEJSTbRUbUjkSMf/qujiSWvNB0Fd7MZzt+OhrHw r/X7qK9SLmGLBjwL2/GvVkMm3IDI1ZoXPlL1Amyh83yZ8bjJFDR0XLr+UujgGVTDQOl8swPun2KjY FwsjbnMw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kxf3d-0000V5-JH; Thu, 07 Jan 2021 23:51:09 +0000 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kxf3W-0000Sz-Vv for linux-arm-kernel@lists.infradead.org; Thu, 07 Jan 2021 23:51:04 +0000 Received: by mail-qk1-x731.google.com with SMTP id p14so7131876qke.6 for ; Thu, 07 Jan 2021 15:50:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PJMwko/PtFizPMU4grYqHTm5y1X1RL55qWaCGNGLd9k=; b=PZl7XJEl9gtAXMOu8ZvY5CxxycoAZO+6uD+YjH6WfObKW9JfCc3D3vEttDYz9+2A3i 1cxC+aVmdR2DXGYqI/VX6OIEADebx3i9C46XttLciGv+P+DLzfvWHoKPDqtD+MrUdLD9 X21JZNsPioyLcWZfTKXaUXApRXo0pBEGSHkKPxaQDHiLc3kN0toFFIDR7I4loWkUpRO2 ik5v3uLb7rfFtEX9oCRQs8r7wvhW88wYwY36vr6sSCLoGgzszVSZsfWZjj+AtLEWf3h3 ByCQ8zLp0qivf4HtAbwXP5rW0cME3e+0tfrhoGqPB/KofnAlFHmRbWyzLAL3X164f6H/ VgBg== 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:in-reply-to :references; bh=PJMwko/PtFizPMU4grYqHTm5y1X1RL55qWaCGNGLd9k=; b=PtrlbqyvEd1f65bxyA1l/FG2NSZlKFgOZP6x7sKedBrczXU+tYDcK/eIqIdTCgGF+x 18yx85tNBO0PMpisurSndh5nm496YtZB9XViW9PMrlXMw+B8lEQ9fx4Jzr3GVi290Gx7 Ws0S/qUepA9bKg6GhBMAEQANBdQ/PyoRIDxxe2Che3MzbBZ/9v70EdjalCpv9LXQFRsa aOwAmbrlTIO3fxQZMn7FsXva0Jiy8VOAUFF9xogLr8H5Yp/OaAdD64VkVSwlPlHZwcsj FwTwRBGK2mqQUnV4zRGN1Eaf4iFVh9lcZjw1F1PO5S+UJgoLuSNEiDDocge9Hl387tKL cE0g== X-Gm-Message-State: AOAM532Ilx1yvW0t0h1qh0Q49n60/V2CEtxeQyXqRNhurcnNPwiKWT8U EXWcMiswPiHnioGWpB//IJ4= X-Google-Smtp-Source: ABdhPJzrKZ72+L5Lzp7h3AFA0qwZD6G41vCyt13CwTU7y3ZK2jGGoF2xnCaJlkl1Lkd+j5KpO4u2wg== X-Received: by 2002:a37:7444:: with SMTP id p65mr1464500qkc.476.1610063457762; Thu, 07 Jan 2021 15:50:57 -0800 (PST) Received: from localhost.localdomain ([2804:14c:482:a80::1001]) by smtp.gmail.com with ESMTPSA id k73sm4196932qke.63.2021.01.07.15.50.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jan 2021 15:50:57 -0800 (PST) From: Fabio Estevam To: shawnguo@kernel.org Subject: [PATCH 2/4] ARM: dts: imx6ul-14x14-evk: Enable the GPIO expander Date: Thu, 7 Jan 2021 20:50:42 -0300 Message-Id: <20210107235044.7897-2-festevam@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210107235044.7897-1-festevam@gmail.com> References: <20210107235044.7897-1-festevam@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210107_185103_077737_53018B83 X-CRM114-Status: GOOD ( 16.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, andrew@lunn.ch, Fabio Estevam , linux-imx@nxp.com, kernel@pengutronix.de MIME-Version: 1.0 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 Currently the 74LV595PW GPIO expander is not functional because its OE pin is not driven low. Make it funcional by passing the 'enable-gpios' property inside the GPIO expander node. After putting the OE pin in low state, the outputs of the 74LV595PW all go low. The two KSZ8081 Ethernet PHYs reset lines are driven from the the GPIO expander and as they remain low, this causes the Ethernet PHYs not to be detected. There is one solution to this problem as suggested by Andrew Lunn: "Some devices will respond to MDIO while held in reset, some don't. If your PHYs don't you need to add a compatible of the form ethernet-phy-id[a-f0-9]{4}\\.[a-f0-9]{4}$ with the PHY ID. The PHY will then be probed, independent of if it can be found on the bus or not, and that probing will enable the GPIO." So pass the "ethernet-phy-id0022.1560" for the KSZ8081 PHYs so that they both can be functional after 74LV595PW is activated. Suggested-by: Andrew Lunn Signed-off-by: Fabio Estevam --- arch/arm/boot/dts/imx6ul-14x14-evk.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi b/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi index a6dbfa85bb6a..8bf845afd166 100644 --- a/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi +++ b/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi @@ -113,6 +113,7 @@ reg = <0>; registers-number = <1>; spi-max-frequency = <100000>; + enable-gpios = <&gpio5 8 GPIO_ACTIVE_LOW>; }; }; @@ -169,6 +170,7 @@ #size-cells = <0>; ethphy0: ethernet-phy@2 { + compatible = "ethernet-phy-id0022.1560"; reg = <2>; micrel,led-mode = <1>; clocks = <&clks IMX6UL_CLK_ENET_REF>; @@ -176,6 +178,7 @@ }; ethphy1: ethernet-phy@1 { + compatible = "ethernet-phy-id0022.1560"; reg = <1>; micrel,led-mode = <1>; clocks = <&clks IMX6UL_CLK_ENET2_REF>; -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel