From patchwork Tue Sep 14 15:17:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 511539 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, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,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 AA068C433F5 for ; Tue, 14 Sep 2021 15:19:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8BB7A6113E for ; Tue, 14 Sep 2021 15:19:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234469AbhINPUQ (ORCPT ); Tue, 14 Sep 2021 11:20:16 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:59513 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234431AbhINPTN (ORCPT ); Tue, 14 Sep 2021 11:19:13 -0400 Received: from stefan-VirtualBox.in-tech.global ([37.4.249.93]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MlO9r-1nBYAk3mjV-00lpdR; Tue, 14 Sep 2021 17:17:44 +0200 From: Stefan Wahren To: "David S. Miller" , Jakub Kicinski , Rob Herring Cc: Michael Heimpold , jimmy.shen@vertexcom.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Stefan Wahren Subject: [PATCH RFC 2/3] dt-bindings: net: add Vertexcom MSE102x support Date: Tue, 14 Sep 2021 17:17:16 +0200 Message-Id: <20210914151717.12232-3-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210914151717.12232-1-stefan.wahren@i2se.com> References: <20210914151717.12232-1-stefan.wahren@i2se.com> X-Provags-ID: V03:K1:1ZE4Im6uBBTGgTjcBWfo1wrdnHGRNDI/VWsWeTs5snvPcZS/M5K BcsgwyS5DSvTOp57XPGCLKUKEjfAzsxHB08Ev2sJtU1KTdlOn3ixc7++X2UUbKMO8wjBIFY I4OocWcLEifyM+JXN5d9KmvA6nzdop2mUoIYskr8EPClGfRmsA8U5u3D4iqVf2OAA0o8gmP UlGkLAZdI/FXjFTV5/eVA== X-UI-Out-Filterresults: notjunk:1; V03:K0:CK6dBgP2rGA=:Se42K6KpfYVgrx7+4hrTFu J/AM85tABDabsQEiqIiTH/2v99L5nobVq/thDIGyygE+Os0mSuXRM6CDFnRBz43IUhsvAydmG e2rZQdruo4no+MLLMTM8Wa1bO/L16IVDUrqsWqMZebToF+OarG96L02E8NbJW02ixwDZ7rs/9 Zo28FaXLDMOcg2moYRNS3dIdnL/1tfIIc4d0YW7NBCKOBs9h/ncLTI1ZvIQ60qk6rOvrVPI9f lMvQ2RI4trKR5MHNmyEwNIQXgpUFMkrgRg+Kibi61AXQet3fsNlc/zw6y7z1a4fdKcXbpE4Zf BWdN53tKHugYIYUhZfSAvxQXUcICuZkpu56rT4ilCQiQUg39py+Ioe1x43kli7wp4avhwFPYR TWx/wgp1mbJRZMbXcPDNlwBI0f5gpSR+X7pS3PZ1+m6z9OZy3k3DXPBp+1HY1V+cVXJkE28n/ E4W3edd0Ow5aEuxV9OfOK7T9o0W6OnumdruiexhQXD0UeMu/XAJ7gPI9ScnNDSe63x2YGE1xj cUU5GLB5AMkA8UJAHVyDgWz4GUKO1rva6MbwjPxmdZI9LbqFRhGtjIHSUdkzYrflTWFrHQxCL +P/zQB9Sqi5d3WFQbWA5KdwZpKUOs3Zd4vuLV2KAftGVZLD75NgH3YEKc45TqM45OMiNTlZo4 0R9zlkU9P6COyYwpPjMAQtXsK75hCJpXnYYq/pkN3CIdfQXioblE7IUJQkmyvFgpfi+GxlUWa f7Bo/L0W/UQInePrW3uqTWfHCOZl3ceX+F3A8/izm3s3XbR1tXppva5jp3E= Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Add devicetree binding for the Vertexcom MSE102x Homeplug GreenPHY chip as SPI device. Signed-off-by: Stefan Wahren --- .../bindings/net/vertexcom-mse102x.yaml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/vertexcom-mse102x.yaml diff --git a/Documentation/devicetree/bindings/net/vertexcom-mse102x.yaml b/Documentation/devicetree/bindings/net/vertexcom-mse102x.yaml new file mode 100644 index 000000000000..d1a4159a8449 --- /dev/null +++ b/Documentation/devicetree/bindings/net/vertexcom-mse102x.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/net/vertexcom-mse102x.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: The Vertexcom MSE102x (SPI) Device Tree Bindings + +maintainers: + - Stefan Wahren + +description: + Vertexcom's MSE102x are a family of HomePlug GreenPHY chips. + They can be connected either via RGMII, RMII or SPI to a host CPU. + + In order to use a MSE102x chip as SPI device, it must be defined as + a child of an SPI master device in the device tree. + + More information can be found at + http://www.vertexcom.com/doc/MSE1022%20Product%20Brief.pdf + +allOf: + - $ref: ethernet-controller.yaml# + +properties: + compatible: + enum: + - vertexcom,mse1021 + - vertexcom,mse1022 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + spi-cpha: true + + spi-cpol: true + + spi-max-frequency: + minimum: 6000000 + maximum: 7142857 + +required: + - compatible + - reg + - interrupts + - spi-cpha + - spi-cpol + - spi-max-frequency + +additionalProperties: false + +examples: + - | + #include + spi0 { + #address-cells = <1>; + #size-cells = <0>; + + ethernet@0 { + compatible = "vertexcom,mse1021"; + reg = <0>; + interrupt-parent = <&gpio>; + interrupts = <23 IRQ_TYPE_EDGE_RISING>; + spi-cpha; + spi-cpol; + spi-max-frequency = <7142857>; + }; + };