From patchwork Thu Apr 30 09:07:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 11519589 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4823213B2 for ; Thu, 30 Apr 2020 09:07:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 30CEE2082E for ; Thu, 30 Apr 2020 09:07:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=sartura-hr.20150623.gappssmtp.com header.i=@sartura-hr.20150623.gappssmtp.com header.b="2NFtPuDa" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726910AbgD3JHh (ORCPT ); Thu, 30 Apr 2020 05:07:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726900AbgD3JHg (ORCPT ); Thu, 30 Apr 2020 05:07:36 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75468C08ED7D for ; Thu, 30 Apr 2020 02:07:35 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id d17so5871461wrg.11 for ; Thu, 30 Apr 2020 02:07:35 -0700 (PDT) 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=aSnhROolTmuNxKQ1QNrIfCpkc60JhptC2Ev7o1MMRIs=; b=2NFtPuDai2GU04crZKM1empmfPhhA0Bls4/L4/QBIxjpleOLdh4HhLB8HS2qu8LTWe PTryYB1/x9f2RDQCnTnTXXDUhXqeXtQhj4/3kN0tl9iOGOBXLAMWe9DmN/abE5PjLg6v RRi+qi6mmiywapKBX4rE2ggqBde5iCJ6UrTKbhjMjJs5Ps+bjIgwVkttddT/E1YWAnxJ Odbv1sZjCOx1PajkLcUeuK/Oka3YY7QlUPVr1LJAarWD7ghoRjAE2iBp3hF944f+PytA iSYC5OoPZpEw/iOLkUXRWpd8uGTA+AONLKX2CYK0BXkBvzXDyvCo2322CldgdrdTaIPy arEA== 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=aSnhROolTmuNxKQ1QNrIfCpkc60JhptC2Ev7o1MMRIs=; b=LOjMUttITTKU/NUlwS26USTRg4Y1fNRZmVrJCzUEhhPLxM/gZPBjTL9SCp71U39yvI 4OWHM9948NDBQeOXePLcN65ZaII9OnZGpV+H7XLGQxr9dDcnUD3fmC0UeAkFNHWQWw1R tde6SmlbFxUXEcbYXx37mNKwYBSU7lW2+IgeXMJdmkpRu7leTZD7kib5hruCkgkvHIlr /vPZ7IiW/bWmeuh9ZeCuH/W9EDSdTnbhY2RkLIXj/NDen8lJys3cc4+9QKW43IJTWE5+ AjgGu0lm4ncjrETrvr7H5Yc34ZnubdvL7TJnoN3UNd2lqlKNeCIggJtdzFNxknHCjFkB uq/g== X-Gm-Message-State: AGi0PuY0KSkKFmrgH9lLDbOWsOdCb24HhbGsEYi057A34/X2nJHIS/lv o+2G92VZccP7YoEbvK0A6590tQ== X-Google-Smtp-Source: APiQypL+whDX5YNFdXzbe4mSiXm401XyLwWMRAoZ34VLjzYsrzmdjvMTFU4y44SUGA4hPfEVMtYeIw== X-Received: by 2002:a5d:4b90:: with SMTP id b16mr3110846wrt.16.1588237654217; Thu, 30 Apr 2020 02:07:34 -0700 (PDT) Received: from localhost.localdomain ([2a0e:b107:830:0:47e5:c676:4796:5818]) by smtp.googlemail.com with ESMTPSA id t20sm10962025wmi.2.2020.04.30.02.07.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Apr 2020 02:07:33 -0700 (PDT) From: Robert Marko To: andrew@lunn.ch, f.fainelli@gmail.com, hkallweit1@gmail.com, linux@armlinux.org.uk, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, agross@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: Robert Marko , Luka Perkov Subject: [PATCH net-next v5 2/3] dt-bindings: add Qualcomm IPQ4019 MDIO bindings Date: Thu, 30 Apr 2020 11:07:06 +0200 Message-Id: <20200430090707.24810-3-robert.marko@sartura.hr> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200430090707.24810-1-robert.marko@sartura.hr> References: <20200430090707.24810-1-robert.marko@sartura.hr> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This patch adds the binding document for the IPQ40xx MDIO driver. Signed-off-by: Robert Marko Reviewed-by: Andrew Lunn Reviewed-by: Florian Fainelli Cc: Luka Perkov --- Changes from v3 to v4: * Change compatible to IPQ4019 Changes from v2 to v3: * Remove status from example .../bindings/net/qcom,ipq4019-mdio.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml diff --git a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml new file mode 100644 index 000000000000..13555a89975f --- /dev/null +++ b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/qcom,ipq4019-mdio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm IPQ40xx MDIO Controller Device Tree Bindings + +maintainers: + - Robert Marko + +allOf: + - $ref: "mdio.yaml#" + +properties: + compatible: + const: qcom,ipq4019-mdio + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + reg: + maxItems: 1 + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + +examples: + - | + mdio@90000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "qcom,ipq4019-mdio"; + reg = <0x90000 0x64>; + + ethphy0: ethernet-phy@0 { + reg = <0>; + }; + + ethphy1: ethernet-phy@1 { + reg = <1>; + }; + + ethphy2: ethernet-phy@2 { + reg = <2>; + }; + + ethphy3: ethernet-phy@3 { + reg = <3>; + }; + + ethphy4: ethernet-phy@4 { + reg = <4>; + }; + };