From patchwork Wed Feb 10 12:55:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 12080829 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=-11.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 51BA7C433DB for ; Wed, 10 Feb 2021 12:57:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0D4A464E3B for ; Wed, 10 Feb 2021 12:57:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231587AbhBJM5o (ORCPT ); Wed, 10 Feb 2021 07:57:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231351AbhBJM4M (ORCPT ); Wed, 10 Feb 2021 07:56:12 -0500 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56077C061786 for ; Wed, 10 Feb 2021 04:55:31 -0800 (PST) Received: by mail-ej1-x635.google.com with SMTP id lg21so4008947ejb.3 for ; Wed, 10 Feb 2021 04:55:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=OHOlOhcQ+zRM08ThU13hzkWKzBwX1E8wDjj/X8CawAg=; b=1NJLJVasOsjg2D8QyTt6YfgsQSkcKVj6ahijVhKmG5dQ6UCBcMYGvYWDE5dpYlNSaz OT3p91d6FOX8k2qln/eIt1EMXmML2/1xSKmZVg6Rg3PM5lERdBBQeaMytNqvWVXbSIj0 mr6Mbbs/z7/cyXq4vyf0PsFnisJNKuFAQHb0YvjWoPv9wWhcrILORBXXC8dkB8Y88c69 9FMtUhflhwWTB9dSD/LHYZK4H7lwandVc6Re/f3DnJDmfXzx1iAEbOC5axjaHm1ZKpbS FxuxYyUVe7u32A34wJcd29v9f7Ap0w53MwfHbnTCyZckuRjBOATVM/3sdeS73rpA6nRO gt0w== 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=OHOlOhcQ+zRM08ThU13hzkWKzBwX1E8wDjj/X8CawAg=; b=YLPIhwKwYUeux++cvBIRGlm0SniF/3t3UwhNtMocdONGSlPB4oX13jv7AKJdHWOOpA fPrX/dtXEDtwQig6VAe1uWjfXr+Iq6zgcKv0vGyYeoSHlIFlN4ExJothELLsWQJ7O1eW 1q7B2NRH3AOCahDqreoOlIvSlXMrxoCguaUFN8v5VYftw4clfUjpXFYoi1L2WHHhbTPX b5sVqnW4w4CIdIUFVza9/Hh08hHpYaWM9A3k8kxdZnyqpcOs/UDBnjN8Aw8WxNmqHQAW As4/zvfdCeaMlADCtduL6BkWHDHAaE1r2XfBPGXg+NvsTLmH3ImQ/vK8V4nrKo8GOTdV CQfQ== X-Gm-Message-State: AOAM531jJtMmKLdLg35vJnj23TgIEswNiEOWfR6sfTOhui4bJj7qiCOr MMkVpx4tHJDZd3N3p82u4Yx9Lg== X-Google-Smtp-Source: ABdhPJz5myXkPhHhSvFomd4ohKnj3VSNl3FJWuFgcafxmK6wC/Ofubabk2glsJSKLT+eTLFeaMZkeQ== X-Received: by 2002:a17:906:d922:: with SMTP id rn2mr2882148ejb.414.1612961729918; Wed, 10 Feb 2021 04:55:29 -0800 (PST) Received: from localhost.localdomain (dh207-97-164.xnet.hr. [88.207.97.164]) by smtp.googlemail.com with ESMTPSA id u5sm1084900edc.29.2021.02.10.04.55.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Feb 2021 04:55:29 -0800 (PST) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk Cc: Robert Marko Subject: [PATCH v2 net-next 0/4] Add support for Qualcomm QCA807x PHYs Date: Wed, 10 Feb 2021 13:55:19 +0100 Message-Id: <20210210125523.2146352-1-robert.marko@sartura.hr> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org This patch series adds support for Qualcomm QCA807x PHYs. These are really common companion PHYs on boards featuring Qualcomm IPQ40xx, IPQ60xx and IPQ807x SoCs. They are 2 or 5 port IEEE 802.3 clause 22 compliant 10BASE-Te, 100BASE-TX and 1000BASE-T PHY-s. They feature 2 SerDes, one for PSGMII or QSGMII connection with MAC, while second one is SGMII for connection to MAC or fiber. Both models have a combo port that supports 1000BASE-X and 100BASE-FX fiber. Each PHY inside of QCA807x series has 2 digitally controlled output only pins that natively drive LED-s. But some vendors used these to driver generic LED-s controlled by user space, so lets enable registering each PHY as GPIO controller and add driver for it. Robert Marko (4): dt-bindings: net: Add QCA807x PHY dt-bindings: net: Add bindings for Qualcomm QCA807x net: phy: Add Qualcomm QCA807x driver MAINTAINERS: Add entry for Qualcomm QCA807x PHY driver .../devicetree/bindings/net/qcom,qca807x.yaml | 70 ++ MAINTAINERS | 9 + drivers/net/phy/Kconfig | 10 + drivers/net/phy/Makefile | 1 + drivers/net/phy/qca807x.c | 855 ++++++++++++++++++ include/dt-bindings/net/qcom-qca807x.h | 30 + 6 files changed, 975 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/qcom,qca807x.yaml create mode 100644 drivers/net/phy/qca807x.c create mode 100644 include/dt-bindings/net/qcom-qca807x.h