Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2995027ybt; Mon, 29 Jun 2020 12:23:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUYm1dikknLgSJ+2wwxo28k1El9VdMqhg3H61uA4ZW0Xu6NjtErVDuPi/pnb9D1B/NF3HF X-Received: by 2002:a17:906:856:: with SMTP id f22mr14589595ejd.245.1593458612268; Mon, 29 Jun 2020 12:23:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593458612; cv=none; d=google.com; s=arc-20160816; b=DwzxBa5OQQNxMrgqumNZfpqgM+ACgJsCf95knaycH7f6X2AO2oGa/wrlq/O54rJ4wO tHCRdl1TeodLTkNeSZiyieQNgmiNUuPhNw2qObOL7D75UVfdR63NY8m999hX52GwKV1T DOGallz9FRINrldNqMuc3c/gnYqKIRiCxERUAm8jDQl3jNLJXVICnTL8fAtMAycAYBlK 1FLJmqhBJXUI5yN3xDc4g8Yb22WDZ0u1z4NnVvyt/ARhE64FkGPDQyKdD9Cl2XlzQeVn WDWuh/sZb+fz1W0p6M4sgyEl/ouQLxcErpCQaibtmYFewSPNtIzs5V/EFvyudynyy6C2 RhvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=cveXjL+4X4gh1TmXdX8oqUnZgc2Vd1IaF1EU/HiH/po=; b=DskjNBwxaKjxOYLHAxZJ9wQccoHBegsvrUWIf0ptL+L2wqnQ7zj3iDXfy0tqgtuikU o+/8vQB2VRjXaDJdC5XwLgZDmse7Qj1IEqY91q0icu/q1TyzdfpxY+1V+8XTyR3kwmR/ JhCweTxVQGc7T2X1MUiroJ5ZQi+Vy8SsuKtiNfm1ZL2g+acztN5VgIZ4CziCaenCMKpg dRRJLjPZS6LwzQgc1X44sB2SeWzeSdhhT0QQN9zLljSzpnrjHuSb61HSP0qNQSM7TWgx z0FMrdACEK1CUZtbaTeofmvtopJXYAX8UVmg7Qzcc7SLqd5+v0viRDce87mf4ARF4Jpc aG7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pUD5GVMv; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i23si280997eds.82.2020.06.29.12.23.08; Mon, 29 Jun 2020 12:23:32 -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=@gmail.com header.s=20161025 header.b=pUD5GVMv; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732324AbgF2TXB (ORCPT + 99 others); Mon, 29 Jun 2020 15:23:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732295AbgF2TWp (ORCPT ); Mon, 29 Jun 2020 15:22:45 -0400 Received: from mail-ot1-x344.google.com (mail-ot1-x344.google.com [IPv6:2607:f8b0:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B686BC02E2FB for ; Mon, 29 Jun 2020 07:37:36 -0700 (PDT) Received: by mail-ot1-x344.google.com with SMTP id k15so15671735otp.8 for ; Mon, 29 Jun 2020 07:37:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cveXjL+4X4gh1TmXdX8oqUnZgc2Vd1IaF1EU/HiH/po=; b=pUD5GVMvZNlTyNPmyJi9IXsTZfrSpSaM0QY7ebsyC1zCo0OHvFNpbLVF1pJscNAUqe IFyUSK2FgPrznhkiChklKg/G7qoGD7VR+JxDCQ+2fGlXHzsXTAeebGDSbDi+xKb4oeiQ r7TCH5o2rRa9F7dzql1Y0Y4WBuhpBWi1/YxuFjhqYkw3Gk8eneRiedH9eIkkpmhuMVqw oLoc7SDNFwvw9CyUztYOctHv3EI/iIZ6WPxRIm3c+LnISDzu8GPBBQTtWbyUAoIKTPkK TcQTR90pveM86/MHrDr6nAEk9rl3U5f0rwT6CQHlwFY7wh5l0XX7yi+KGFgnVqS4+XCo sevw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cveXjL+4X4gh1TmXdX8oqUnZgc2Vd1IaF1EU/HiH/po=; b=ifeew4E+VXO5QXSsvQiln15uO6ojzZmj3urM5kYIuXSAARhzLuREF6RbfbbQuikSJS 53rVdeubR5Nfoho1pH6tJxUaICsJC0oT/pjxg4NGqUP7aZom99fUxJWjQomfJXFBJCJX AUDZ25osnNuatFWABx5Hb/0KzTHMYF2Z85S/eCSdi9Lh+OzNUBx+lhBpyZlT6ly3eWZp BmtyIrmmlcoZ79A1OfV6a5/+hf29BPPfBmV0aa5DsRsRRcvWFKPDXY0frUa0Uj14wzie vAXlHh8hqks6sFQHjjWUlbOXAPsDCdCVxqgSaJEN6f5qiOtd2vmG/YahohDrrvbACpnS dF4A== X-Gm-Message-State: AOAM530QcdMcb+hITD1l+Ul9Z783NLj5cTBD9vQMr8nv4nrY+CbBuUZf TeEUeTYcr8aXJhJXbWWv/9iSOiK9QkZ3oHl0cxM= X-Received: by 2002:a9d:2c26:: with SMTP id f35mr14207086otb.232.1593441455928; Mon, 29 Jun 2020 07:37:35 -0700 (PDT) MIME-Version: 1.0 References: <20200625140105.14999-1-TheSven73@gmail.com> <20200625140105.14999-2-TheSven73@gmail.com> In-Reply-To: From: Sven Van Asbroeck Date: Mon, 29 Jun 2020 10:37:25 -0400 Message-ID: Subject: Re: [PATCH v4 2/2] ARM: imx6plus: enable internal routing of clk_enet_ref where possible To: Fabio Estevam Cc: Shawn Guo , Fugang Duan , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Fabio, On Mon, Jun 29, 2020 at 10:26 AM Fabio Estevam wrote: > > Just tested 5.4.24_2.1.0 on an imx6qp sabresd and DHCP also fails there. I think I discovered the problem ! When I compare the sabresd devicetree on mainline with the actual sabresd schematics, the devicetree is incorrect ! Things still work, but only by accident. The sabresd has an AR8131 PHY, which generates the enet ref clock, not the imx6. So on the schematic we see that the clock output of the PHY is wired to imx6 ENET_REF_CLK, so it can be used as a clock source. And GPIO_16 is disconnected, as it should, because the imx6 is not generating the ref clk. But the devicetree is written as if the imx6 is providing the clock ! See here: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/arm/boot/dts/imx6qdl-sabresd.dtsi?h=v5.7.6#n513 Also there is no override of the fec PTP clock: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/arm/boot/dts/imx6qdl-sabresd.dtsi?h=v5.7.6#n202 Although Shawn's mainline patch mandates this? https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.7.6&id=810c0ca879098a993e2ce0a190d24d11c17df748 This will work, but only by accident. So on a plus, when we (incorrectly) switch the bypass bit on, things stop working.