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=-6.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=no 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 37650C388F7 for ; Sat, 31 Oct 2020 12:22:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DD06A2072C for ; Sat, 31 Oct 2020 12:22:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Qtj9VvnA" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727026AbgJaMWu (ORCPT ); Sat, 31 Oct 2020 08:22:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726935AbgJaMWu (ORCPT ); Sat, 31 Oct 2020 08:22:50 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAB8DC0613D5 for ; Sat, 31 Oct 2020 05:22:49 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id h62so350037wme.3 for ; Sat, 31 Oct 2020 05:22:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PiF25b5PCJfd/BAzjQvGl1LEq0FTtKw8ngl/14Foe/w=; b=Qtj9VvnAgzcPSOjrplADKHq7BZpTUMA2EqUZwu3fpf6y6Kn6wXm2KCjIfQaPykYjve XFKtAimoB7w1bIuWDz59QphZm6+6tsEKhG4ixmUfFRABUt5GW83ct+pNgJO3x9FTnoq/ Jk9zomP+2AAbjiVuXBQpUkna1YiysVfyO5WamymsYvpZIO7e0rO302vF/7EzYoJ33Sm3 4f0ynUDFdroEvP0T8F/d5taU6Etw9jLcHOdNERojm8bqlp5vTNhqXY9Uyp3UAbRddK6H lPdPrFC6TLdHDTVWt+f8pe4QVJjgChHeYBvCB1KMxp8dZgCSA1Y4XuvC44d3ynJzh/Nw CYVw== 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:mime-version :content-transfer-encoding; bh=PiF25b5PCJfd/BAzjQvGl1LEq0FTtKw8ngl/14Foe/w=; b=PMcqc8tR/f/hEp1vYsAyQ0kg7CkJ2kRFml/ldteborlq6P/XEd7XNgsj/cQbIMfxCi uITxG4hDc+XgN2ZDkUOYLRryGTxrnNBi94CTI5lmPvLaTgrsOgAM5POsSRTg5QfjTdzN SasFG/aLme+KUt58K/VIMTreDmgyOhpCwCLqP571obrHdbCEN3/10Cu6LPj+E73D2+5C K6715x6BoiidtzAtJdP2axP1riqQerL8ZSCUO9KcKfHcwBdJCSq0oQO76TB9K6yQfXaL 2LBiR+DuACLv5D+Zu2SzFjZP6sU30uubuLM+2ZwvVi1binlaV4j0TbOR/EAUZtNgJ4AR 2znQ== X-Gm-Message-State: AOAM5311Rt2gBD3QU2OMNGKXboZ9bysxd/NQ7+VNXjnxvRFbejEtAuNU qBhFbJGlszgS7E9PzyPZ2yA= X-Google-Smtp-Source: ABdhPJy2q4BsPuRDSa4SAcgWYBhtAMZGyrDltJl41dCHf9gDGr1QRyKpplxxEi6boUKeqLX8mFpckw== X-Received: by 2002:a1c:ddd7:: with SMTP id u206mr7274409wmg.27.1604146968463; Sat, 31 Oct 2020 05:22:48 -0700 (PDT) Received: from localhost.localdomain (14.red-83-46-194.dynamicip.rima-tde.net. [83.46.194.14]) by smtp.gmail.com with ESMTPSA id f7sm15299199wrx.64.2020.10.31.05.22.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 31 Oct 2020 05:22:47 -0700 (PDT) From: Sergio Paracuellos To: kishon@ti.com Cc: vkoul@kernel.org, robh+dt@kernel.org, gregkh@linuxfoundation.org, devicetree@vger.kernel.org, devel@driverdev.osuosl.org, neil@brown.name Subject: [PATCH v4 0/4] MT7621 PCIe PHY Date: Sat, 31 Oct 2020 13:22:42 +0100 Message-Id: <20201031122246.16497-1-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This series adds support for the PCIe PHY found in the Mediatek MT7621 SoC. This is the first attempt to get feedback of what is missing in this driver to be promoted from staging. There is also a 'mt7621-pci' driver which is the controller part which is still in staging and is a client of this phy. Both drivers have been tested together in a gnubee1 board. This series are rebased on the top of linux-next: commit 4e78c578cb98 ("Add linux-next specific files for 20201030") Changes in v4: - Bindings moved from txt to yaml so previous Rob's Reviewed-by is not in the new patch with the yaml file. - 'phy-cells' property means now if phy is dual-ported. - Avoid custom 'xlate' function and properly set registers when the phy is dual ported. - Add use of 'builtin_platform_driver'. - Added a patch including myself as maintainer in the MAINTAINERS file. - Add a patch removing patch from staging to make easier the complete inclusion and avoid possible problems might appear in 'linux-next' if the series are included. Changes in v3: - Recollect Rob's Reviewed-by of bindings. - Make Kishon Vijay suggested changes in v2: (See https://lkml.org/lkml/2019/4/17/53) - Kconfig: * Add depends on COMPILE_TEST * Select REGMAP_MMIO - Make use of 'soc_device_attribute' and 'soc_device_match' - Use regmap mmio API instead of directly 'readl' and 'writel'. - Use 'platform_get_resource' instead of 'of_address_to_resource'. Changes in v2: - Reorder patches to get bindings first in the series. - Don't use child nodes in the device tree. Use #phy-cells=1 instead. - Update driver code with new 'xlate' function for the new device tree. - Minor changes in driver's macros changing some spaces to tabs. Thanks in advance for your time. Best regards, Sergio Paracuellos Sergio Paracuellos (4): dt-bindings: phy: Add binding for Mediatek MT7621 PCIe PHY phy: ralink: Add PHY driver for MT7621 PCIe PHY MAINTAINERS: add MT7621 PHY PCI maintainer staging: mt7621-pci-phy: remove driver from staging .../devicetree/bindings/phy}/mediatek,mt7621-pci-phy.yaml | 0 MAINTAINERS | 6 ++++++ drivers/phy/ralink/Kconfig | 8 ++++++++ drivers/phy/ralink/Makefile | 1 + .../pci-mt7621-phy.c => phy/ralink/phy-mt7621-pci.c} | 0 drivers/staging/Kconfig | 2 -- drivers/staging/Makefile | 1 - drivers/staging/mt7621-pci-phy/Kconfig | 8 -------- drivers/staging/mt7621-pci-phy/Makefile | 2 -- drivers/staging/mt7621-pci-phy/TODO | 4 ---- 10 files changed, 15 insertions(+), 17 deletions(-) rename {drivers/staging/mt7621-pci-phy => Documentation/devicetree/bindings/phy}/mediatek,mt7621-pci-phy.yaml (100%) rename drivers/{staging/mt7621-pci-phy/pci-mt7621-phy.c => phy/ralink/phy-mt7621-pci.c} (100%) delete mode 100644 drivers/staging/mt7621-pci-phy/Kconfig delete mode 100644 drivers/staging/mt7621-pci-phy/Makefile delete mode 100644 drivers/staging/mt7621-pci-phy/TODO -- 2.25.1