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 Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E71F6C433F5 for ; Thu, 19 May 2022 09:32:14 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5D8F483C97; Thu, 19 May 2022 11:32:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=solid-run.com 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; unprotected) header.d=solid-run-com.20210112.gappssmtp.com header.i=@solid-run-com.20210112.gappssmtp.com header.b="FEGZjRP4"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8686E83BDB; Thu, 19 May 2022 11:32:08 +0200 (CEST) Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 48C1883C36 for ; Thu, 19 May 2022 11:32:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=solid-run.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=josua@solid-run.com Received: by mail-wr1-x430.google.com with SMTP id u3so6303564wrg.3 for ; Thu, 19 May 2022 02:32:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=solid-run-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DIBVOCkVLzrA8b/EueFP8MO1Iuxx+AZji9HaGNLUbww=; b=FEGZjRP4iESV8QyGap+NBzT8fYFbuJZ71fcJ5IWskPcHY0AC+WjeSUDGWYsT9/AIog padbqSwSWR63IYQWHkkNHa0ZS1ri50df9HzIqgXwdHpgPoGrQR8NBc7PN6LG+/JZdJ7k U8RLjlXKGywet5yZlD9AS19AJk6F3S3t63qUKmqVPQaQ1mcCLJCdVAifK2T26iThM6ah Q++1mU1AoUac8VEuIvBck/4MwE0c1P3GlRLa1EwIH3jK+aQjlOwEDHUKyEXEV9+kmIeT ZwIy8eZLAPcyuOkcDBAACFGznD5Gi5N2iT+uMWvjSRa0+VRTaCyAoPM4Ik+iw/hTnNlc oDQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DIBVOCkVLzrA8b/EueFP8MO1Iuxx+AZji9HaGNLUbww=; b=Bn1F83marrxAJkSJ1LA1uHXbXJaKI0aJRleXHnPW3XZvxsfoCqU8nJtoCFmikJLWxp ULzfmhHGPNdWqvZb8kOr6+E+aRGRO3SDcwn0gq8HHCFhRg+kR0vkVxqBEKnfEmEpMBgG qMXbqJ1BDplmTAGYDHxTd8dRDim12piQPwX0ism8V01qE4WZrfck4NYRgOjhrcXH7A2w wW5XmagZtMq90XGcbvz92wFXKT/5s3CHvz2T5T2tzPXqjENiqLTN+SDt5+M8xkUI6Q4/ 2LqtJLmqRVNom97Pka3HDvOVA9NHENBOB/pzlWSWn8ORElvJI6bc7zaBjyKD6bS8pyX3 m8Cg== X-Gm-Message-State: AOAM533pGxFUC4YBtgLonbp5pCk5j18/adZRNh+CMkJZQuapG/QwAtN4 O1ESwxa/IR3ag4I5QxYSCzPMi2LIN642ew== X-Google-Smtp-Source: ABdhPJx7i5kdzHHVTnT856uG0VW4Y059lBHZ2b2gyhLSFYAiklBTVYGK9pxFSVQXGKnpW6xeb+Zn9Q== X-Received: by 2002:adf:f645:0:b0:20e:652d:2a4e with SMTP id x5-20020adff645000000b0020e652d2a4emr3280067wrp.344.1652952724599; Thu, 19 May 2022 02:32:04 -0700 (PDT) Received: from josua-work.lan (bzq-82-81-222-124.cablep.bezeqint.net. [82.81.222.124]) by smtp.gmail.com with ESMTPSA id q9-20020adf9dc9000000b0020d02ddf4d5sm4390595wre.5.2022.05.19.02.32.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 May 2022 02:32:03 -0700 (PDT) From: Josua Mayer To: u-boot@lists.denx.de Cc: alvaro.karsz@solid-run.com, Josua Mayer Subject: [PATCH v2 0/5] mx6cuboxi: add eth support for SoMs revision 1.9+ Date: Thu, 19 May 2022 12:31:55 +0300 Message-Id: <20220519093200.20571-1-josua@solid-run.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.5 at phobos.denx.de X-Virus-Status: Clean As of Revision 1.9 the SolidRun i.MX6 SoMs ship with a new PHY - an ADIN1300 at address 1. This patchset carries many small parts to facilitate proper operation of the ethernet port in U-Boot as well as Linux: 1. Fix a compile error in the recently added phy driver 2. Add support for configuring the clock output pins to the phy driver 3. update device-tree with support for the new phy 4. support runtime patching of device-tree for Linux: enable only the phy node detected during boot, to avoid warning messages when Linux probes the phys. 5. finally enable the phy driver in the cuboxi defconfig I have included Nate's patch here only so that it won't get lost - it is fully independent and I have not made any changes. Changes since v1: - applied proper compile fix by Nate Drude - removed -recovered clock options as requested by Linux maintainers Josua Mayer (4): phy: adin: add support for clock output ARM: dts: imx6qdl-sr-som: add support for alternate phy addresses mx6cuboxi: fixup dtb ethernet phy nodes before booting an OS mx6cuboxi: enable driver for adin1300 phy Nate Drude (1): phy: adin: fix broken support for adi,phy-mode-override arch/arm/dts/imx6qdl-sr-som.dtsi | 17 +++++- board/solidrun/mx6cuboxi/mx6cuboxi.c | 78 ++++++++++++++++++++++++++++ configs/mx6cuboxi_defconfig | 2 + drivers/net/phy/adin.c | 64 +++++++++++++++++++---- 4 files changed, 148 insertions(+), 13 deletions(-) -- 2.35.3