Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1285653pxb; Wed, 10 Feb 2021 05:03:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJyyPyvnjoAW3KtTkDMnJr8UJVSnOxK9Rreb/ljyqzKxCc5P2x8+J9l82Qypl1uC1hTIWSmK X-Received: by 2002:a17:906:eca5:: with SMTP id qh5mr2759557ejb.161.1612962238522; Wed, 10 Feb 2021 05:03:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612962238; cv=none; d=google.com; s=arc-20160816; b=xzCadEWm6abYNMUYNQTUYQ+M+0QckUQ4JNR/8KMXHUkgZFn3JF6nfQ/mKZ9YHfXDWc BSQNelqYXupHtaXnvFk4a37miFmkQKdvzCbjEgCcfGG5JJK9w32reaFUmIxGNthWdJLh 0BZ27gWCP3zSUVKbuKoRA4bv+wxiYoFDd/rb0QDLuvIzvtCb/xSku2uAZENnaHZT0ODo c3KuaXKG51nGgLGwfJjyECrhRAOHD/YL9KH5bk3C3W/PNmeQqmjLdnuNbDMOS9R595UN 3vKMqlFLjo7qwLEC5Yzah2kyL/eZyFmBLL/UlM2D4yo0CWI4t/hLqd9j+0LbJHrUKewX XWtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=j2pR7GHtK2D/n+G2R92gU7IY+vciRBprFSrIu2y8jqQ=; b=WcKpPAwUmJmmRArmNXsgJP0FT1hYvIWjMyGdv+qdXqdERg1c1dVOSP/pN2AsQzhVl0 95O+Bj+gXkRoemKrsfSp7JszCh2Dax5SSVQO9JF5zK4/XjR/aYQ0WxIS6vLFuC3oALmF t/kPWDTxmIfljmdkM/9Qkzf4SxmAariJYudV+bFWrNWv7uhOAPJUIQkBgz2pyJxQ5VEk DJlWdfs02H1cktYMbnZHft6t4f9rMF2N6M5uRbLYMoCE5Cbl2onFMyFDGsC4nO2+HTnQ tWQs9ofnBB32ZtfzMTtjwPUopuyDeWQ/6eTXJHhXBqmCXhh9YSPCveUC6PsmHkh2sNR3 SEuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sartura-hr.20150623.gappssmtp.com header.s=20150623 header.b=WslFAuX+; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j4si1213407ejm.600.2021.02.10.05.03.02; Wed, 10 Feb 2021 05:03:58 -0800 (PST) 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=@sartura-hr.20150623.gappssmtp.com header.s=20150623 header.b=WslFAuX+; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231311AbhBJM7i (ORCPT + 99 others); Wed, 10 Feb 2021 07:59:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231444AbhBJM5B (ORCPT ); Wed, 10 Feb 2021 07:57:01 -0500 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3D67C0617A9 for ; Wed, 10 Feb 2021 04:55:34 -0800 (PST) Received: by mail-ej1-x629.google.com with SMTP id jj19so4011007ejc.4 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=Ardr2sh9osUlxteivy0R7DHNK2oHYrnoaZ2xDSUHZkcgFSMJTzgLO1sgPxbfhTfWXa p5RpfSpuBfA92oGgqMPQTEonFYHRx4C3dNflrgXBQrR9nsHk2TI7KsBs0J7OnEp8Otkg DbbeztgQzlVrcy0ScQM1mWXwNh/HqE9oLLYed+suhbZ/AO5+eCSlnMD3mFo9l0OebpeC yWS9oUXMUmwenjfi7iYR0QPSFGabIr//r06rVg4Idd7NdcXuKCpWrzEQcyDW7VKzzoAc Fr4fyI2E0q0tfYAuyy/NcQlEUl6wwG3xLU3uiWNCFva+AMWQV/5Ky76kDpqVfDl/Cb/k WidA== X-Gm-Message-State: AOAM531PZF+nPHjcOSPYSg1Cn75lKQDWdb0sS9rqAypSTGkPmYYy2hWw O/FrVhc+uskoHcmi3YI12o6YDQ== 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 = ; + }; + }; -- 2.29.2