From patchwork Wed Feb 10 12:55:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 380382 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=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, 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 BA0ABC433E0 for ; Wed, 10 Feb 2021 12:58:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 897F364E3B for ; Wed, 10 Feb 2021 12:58:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229878AbhBJM6D (ORCPT ); Wed, 10 Feb 2021 07:58:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231419AbhBJM4g (ORCPT ); Wed, 10 Feb 2021 07:56:36 -0500 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8B7BC0617A7 for ; Wed, 10 Feb 2021 04:55:34 -0800 (PST) Received: by mail-ej1-x634.google.com with SMTP id w1so3943615ejf.11 for ; Wed, 10 Feb 2021 04:55:34 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=j2pR7GHtK2D/n+G2R92gU7IY+vciRBprFSrIu2y8jqQ=; b=WslFAuX+r5eNLy3aXOBoL0GU98/EoUPq2zxD0CU3YakcUF4V+Dbh+rIM8LT+Y/NZFt r30eVO8OkS/PnaMN0+P+D/7LGo0bQ64S6U72ik4nmpZ8z3G9calBQfksAriS+kBWD6Be Vkijvz/G+ZkA8oNACGzE95SROw/+WhW8QOYcQC0R/MzHvL2JvGLfS80AVFDM79XaFOun 8ewt8EMwnR3BiEyNEp5hGKkPiQqIznAGA6PN42f+9Qm7o6MeZAxJxcTfgyDCuCtv6hkj pRr2Rby2Tpd45ghShLBKoyvERynA+JIVS+VhBiECqaCk03ucGxqAJafW3zuY1CCmqHY2 JoYg== 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:mime-version:content-transfer-encoding; bh=j2pR7GHtK2D/n+G2R92gU7IY+vciRBprFSrIu2y8jqQ=; b=JdtOHDcStZC0ZR4+ssVKFdYB1v4/4Rre24N2crVPbqh0SQTy486pdw2rYYRUY1i/KI 0sGHLRi1GNrxltsB74i6o7H/UynubQzyfssqsUAll5kWC7uEmOBfR0JB9zk3bs/P6kkO hjqoli8yDDnNk5OQ0aEueAcKcliOb00od1e2HvBdYd+ob4vtNqNl0Wqu3tZuhpsoBfTo fDd+h1PYbRbe60TTnCwLDxtTt0GLDedwuEsN297jw4qMsDk6KVJtdrcM3CbFx2se7tAs 2vm0+RFXKlcau7ZIrTNDuHGVqlBz0T7h+sJMS+Ie9M2rfxF3jjc9s9VUbid/hD5lz9KX y9lw== X-Gm-Message-State: AOAM5332NOlFWabrmFeK6K7K0zAZ54+UED1UMePcQg0BMSH2aSepj/MY nW88XzvvjSk5raOPTrh91yAjbw== X-Google-Smtp-Source: ABdhPJx+cbffJtH/oYQNj2WBZy9er7kIC5vD6i5EoJcwf8fbm03n2PHzuHv1N5sFqvqdWOJGYNCDPQ== X-Received: by 2002:a17:906:4013:: with SMTP id v19mr2822228ejj.5.1612961733706; Wed, 10 Feb 2021 04:55:33 -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.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Feb 2021 04:55:33 -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 , Luka Perkov Subject: [PATCH v2 net-next 2/4] dt-bindings: net: Add bindings for Qualcomm QCA807x Date: Wed, 10 Feb 2021 13:55:21 +0100 Message-Id: <20210210125523.2146352-3-robert.marko@sartura.hr> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210210125523.2146352-1-robert.marko@sartura.hr> References: <20210210125523.2146352-1-robert.marko@sartura.hr> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add DT bindings for Qualcomm QCA807x PHYs. Signed-off-by: Robert Marko Cc: Luka Perkov --- Changes in v2: * Drop LED properties * Directly define PSGMII/QSGMII SerDes driver values .../devicetree/bindings/net/qcom,qca807x.yaml | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/qcom,qca807x.yaml diff --git a/Documentation/devicetree/bindings/net/qcom,qca807x.yaml b/Documentation/devicetree/bindings/net/qcom,qca807x.yaml new file mode 100644 index 000000000000..0867f5e698cd --- /dev/null +++ b/Documentation/devicetree/bindings/net/qcom,qca807x.yaml @@ -0,0 +1,70 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/qcom,qca807x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm QCA807x PHY + +maintainers: + - Robert Marko + +description: | + Bindings for Qualcomm QCA807x PHYs + +allOf: + - $ref: ethernet-phy.yaml# + +properties: + reg: + maxItems: 1 + + qcom,fiber-enable: + description: | + If present, then PHYs combo port is configured to operate in combo + mode. In combo mode autodetection of copper and fiber media is + used in order to support both of them. + Combo mode can be strapped as well, if not strapped this property + will set combo support anyway. + type: boolean + + qcom,psgmii-az: + description: | + If present, then PSMGII PHY will advertise 802.3-az support to + the MAC. + type: boolean + + gpio-controller: true + "#gpio-cells": + const: 2 + + qcom,tx-driver-strength: + description: PSGMII/QSGMII SerDes TX driver strength control in mV. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [140, 160, 180, 200, 220, 240, 260, 280, 300, 320, 400, 500, 600] + + qcom,control-dac: + description: Analog MDI driver amplitude and bias current. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 2, 3, 4, 5, 6, 7] + +required: + - reg + +unevaluatedProperties: false + +examples: + - | + #include + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + ethphy0: ethernet-phy@0 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0>; + + qcom,control-dac = ; + }; + }; From patchwork Wed Feb 10 12:55:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 380381 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.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNWANTED_LANGUAGE_BODY, URIBL_BLOCKED, 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 94221C43381 for ; Wed, 10 Feb 2021 13:00:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 57DE164E6B for ; Wed, 10 Feb 2021 13:00:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231124AbhBJM76 (ORCPT ); Wed, 10 Feb 2021 07:59:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231439AbhBJM55 (ORCPT ); Wed, 10 Feb 2021 07:57:57 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BFA3C061221 for ; Wed, 10 Feb 2021 04:55:38 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id w2so3924312ejk.13 for ; Wed, 10 Feb 2021 04:55:38 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=6HSMvuiMGiIfphZU4Vo/CX2mIjsqBu8/UXWK69Lqxos=; b=zT46NYVFSrGggVIbyOEEogHPPkm1SqFJytRsLCRtmsrCeYHkABUo1c5aMMeLk3xMa0 fHNyLS1B8zkjBA3HKJYal0l77ch2d06q6LGLz0UajkbyRjvFvWIbwouMu+wRkX9w6oJ1 tDrDzQXXmo+zKFy5eevThg3/xqW8r35rad3/6B43Pm4PoLlxg410b8se0Osm2U4w1da/ ijfiN/Mh+SKwaBBV6X7Pq4a20EOzkQ3wONJrOi+h2Fa01GT80AGeq0F/W95cbOKKzqM6 +ohEjIsLMZA/iCYluvXPIPbTgANGOlVI+6ttA2dSLowAaivIwkEivFfbqgfuWY4wGt5B 1JQw== 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:mime-version:content-transfer-encoding; bh=6HSMvuiMGiIfphZU4Vo/CX2mIjsqBu8/UXWK69Lqxos=; b=eJPfnV3hzTXUuXle90qf2fjSPGVKM/4sn98OOYSqzndyWo3/dgV+ZVOsGNIqD0o66t SBq2clF17gJjwpc2CW1tlbdTqWtvghhBczuAf8v+vT8ZkYRUxfSuyv2AsqeEBKMXVsrN vgxIPZPM9ZkY4AXe3yp8Dlb5KsgXIkr7WgnaYASttuGixbjx2oY2M/uBVpgvQePNGKvO Pb6tlsfLesU3Wt5zIAoGP9nqgGczs+wAr+z0pnboplAmQNVDQDeuvBnPc6dpdDLq6+Qm dr5veIyUOLwz/oueSGNALxHUjlFg4sCwZ/Zt9BRKujvkVS+TqZJJwxqm8SPOgfhHR0gf LhAA== X-Gm-Message-State: AOAM533Vo6LpDe+RlB1MoCEeYcgpK0AVxZTvD79CSMLDi0iWuWWP5Twp ldcNJt4mAe8mTHL/YwgtOGcYkQ== X-Google-Smtp-Source: ABdhPJw2tDiJeYgQ037lzOwHWXvaUdM+6n6I0eYa1cOOaAGbTOYbsnhNFTTPb9Guc0Dz/JYnVxmMmQ== X-Received: by 2002:a17:906:719:: with SMTP id y25mr2781547ejb.180.1612961737261; Wed, 10 Feb 2021 04:55:37 -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.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Feb 2021 04:55:36 -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 , Luka Perkov Subject: [PATCH v2 net-next 4/4] MAINTAINERS: Add entry for Qualcomm QCA807x PHY driver Date: Wed, 10 Feb 2021 13:55:23 +0100 Message-Id: <20210210125523.2146352-5-robert.marko@sartura.hr> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210210125523.2146352-1-robert.marko@sartura.hr> References: <20210210125523.2146352-1-robert.marko@sartura.hr> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add maintainers entry for the Qualcomm QCA807x PHY driver. Signed-off-by: Robert Marko Cc: Luka Perkov --- MAINTAINERS | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 667d03852191..48f32ef108d5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14775,6 +14775,15 @@ S: Maintained F: Documentation/devicetree/bindings/regulator/vqmmc-ipq4019-regulator.yaml F: drivers/regulator/vqmmc-ipq4019-regulator.c +QUALCOMM QCA807X PHY DRIVER +M: Robert Marko +M: Luka Perkov +L: linux-arm-msm@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/net/qcom,qca807x.yaml +F: drivers/net/phy/qca807x.c +F: include/dt-bindings/net/qcom-qca807x.h + QUALCOMM RMNET DRIVER M: Subash Abhinov Kasiviswanathan M: Sean Tranchetti