Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1703601pxb; Wed, 10 Feb 2021 14:53:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJxNmZnNcxRuDvn5oVr3osfQI80OlI/P/wDwavrWW7C6Kg/9Q/aT0rNCJ2IVvtmhrUBlZQCH X-Received: by 2002:a17:906:3c15:: with SMTP id h21mr5516488ejg.320.1612997603559; Wed, 10 Feb 2021 14:53:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612997603; cv=none; d=google.com; s=arc-20160816; b=H7dQEigchgrHH2GtbueJHLTGoBLhkC7YmL/avq/2HvWqSTnXj4DqL/bzi9Ulonwf0S 2jUocUmbvGUg5j8FjubJXdBGXe0k8SnkgrigbpvELy4jY/GQAwsLWfdxB6+u1gIqqnX+ rM7L+vtCI+e9YkW8TfBFeFcSytLpdA07w3oG6hva+PHptL7CB6uQNQdoAQ7qK3hUlGmb febVx3d0/L68lWJnBGLVRG0hvrNQ/CbyLwKWCljDsGD+sq9bY24MjiJSX2+l13V+9HgJ dT/8gBgCvognMIZZt1xRxjnGWSCAPXrAS2WmYWnNwuEMHDPd2MWzTcN6SN+IJOCH/3k1 J9FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=BlKdWC9EZwU0qeYCVAvxDTeo3iSF+eFw4n8X391mQjc=; b=xtC8QDAKqZ7YnnU/UuAfMp2rzIxmhNKEi1odSMukGvD8s7f+XEWc6o1fO/bPifQbOl co/viO1xhiqRB59+I/Ht64Hq+abeod7+LoXJUjinilgeWlmU6dXNSUuX8ThrIks0Cpjc Il7KAKDKWZWGfVkEaNBg/GfcG+TXX4/QvjSxacWxWT3KlKI1OnA848v0YbX8PVST9BON eLWyrcfsxomFbEmqXS+q2pmRb1MNqRe06sc+qEqDLcg6rL4m+D87xxTsIlNjuTDqjc8G 88K6+yHbdGXY1jCDE9IEpAkIvDjSIonDdm43INB21d5SVhk+fh0g1uS1wjZtTWFGr5Hl ZieQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b8si2156058eds.433.2021.02.10.14.52.39; Wed, 10 Feb 2021 14:53:23 -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; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232903AbhBJWvR (ORCPT + 99 others); Wed, 10 Feb 2021 17:51:17 -0500 Received: from mail-oi1-f181.google.com ([209.85.167.181]:35917 "EHLO mail-oi1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232164AbhBJWvJ (ORCPT ); Wed, 10 Feb 2021 17:51:09 -0500 Received: by mail-oi1-f181.google.com with SMTP id k204so4005746oih.3; Wed, 10 Feb 2021 14:50:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=BlKdWC9EZwU0qeYCVAvxDTeo3iSF+eFw4n8X391mQjc=; b=bpHRqoCg3fsRtJpBT4ijAxidt1vgCbhdyeCc87Hf6lqdBbqscSwRKR/ieJ0WwOTLMI el13H/ueHGZIJHFvH7IpV5Rfvm9HoAwlwmDm6UHumhnkukkAGhM7Jx2XZ38S6UEaDdkM TwqQ+RVg66vg4J588bHYoeu6CEuZ7MZkStPjuzRcL10OrOl3YowX0kEDWW8TRwJryLrj 6Cxkipcpf7fvIsA2h3WGSIFqwUKXTIJ0jal7LOJYIzBbobYRigdjjZ92WzErtg73uJ3V VseRNSm9TyWz6Adh+OMZvhG8VLQrJo2kkWMT0eQWIRcONQ6VduBi+2uQGAahVEbKDEQo Z2OQ== X-Gm-Message-State: AOAM5327EQcbn+KiCJiF3r+km+NrlIr9222m4+QNXzj+f+PzwtOGo+Ya VMp3CvRA+ZE4fKFLKOCs0Q== X-Received: by 2002:aca:54c9:: with SMTP id i192mr917001oib.3.1612997427878; Wed, 10 Feb 2021 14:50:27 -0800 (PST) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id k32sm665330otc.74.2021.02.10.14.50.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Feb 2021 14:50:26 -0800 (PST) Received: (nullmailer pid 2960948 invoked by uid 1000); Wed, 10 Feb 2021 22:50:25 -0000 Date: Wed, 10 Feb 2021 16:50:25 -0600 From: Rob Herring To: Robert Marko Cc: agross@kernel.org, bjorn.andersson@linaro.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, Luka Perkov Subject: Re: [PATCH v2 net-next 2/4] dt-bindings: net: Add bindings for Qualcomm QCA807x Message-ID: <20210210225025.GA2953160@robh.at.kernel.org> References: <20210210125523.2146352-1-robert.marko@sartura.hr> <20210210125523.2146352-3-robert.marko@sartura.hr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210210125523.2146352-3-robert.marko@sartura.hr> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 10, 2021 at 01:55:21PM +0100, Robert Marko wrote: > 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. Sounds like a standard thing that should be common? > + type: boolean > + > + gpio-controller: true > + "#gpio-cells": > + const: 2 > + > + qcom,tx-driver-strength: > + description: PSGMII/QSGMII SerDes TX driver strength control in mV. Use standard unit suffix as defined in property-units.txt. Again, seems like a common property? > + $ref: /schemas/types.yaml#/definitions/uint32 Then you can drop this. > + 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 >