From patchwork Tue Sep 14 15:17:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 1528042 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4H86Sh31jNz9sVq for ; Wed, 15 Sep 2021 01:19:00 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234387AbhINPUN (ORCPT ); Tue, 14 Sep 2021 11:20:13 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:56241 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234426AbhINPTN (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 1MOzfO-1mGIqB1v24-00PIhc; Tue, 14 Sep 2021 17:17:43 +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 1/3] dt-bindings: add vendor Vertexcom Date: Tue, 14 Sep 2021 17:17:15 +0200 Message-Id: <20210914151717.12232-2-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:b5Mff13jkDoHvc3OdwxjtStzJ1O9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bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add vendor prefix for Vertexcom Technologies, Inc [1]. [1] - http://www.vertexcom.com/ Signed-off-by: Stefan Wahren Acked-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index a867f7102c35..0610e4323724 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1250,6 +1250,8 @@ patternProperties: description: Variscite Ltd. "^vdl,.*": description: Van der Laan b.v. + "^vertexcom,.*": + description: Vertexcom Technologies, Inc. "^via,.*": description: VIA Technologies, Inc. "^videostrong,.*": 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: 1528041 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4H86Sh0gfnz9sSn for ; Wed, 15 Sep 2021 01:19:00 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233940AbhINPUN (ORCPT ); Tue, 14 Sep 2021 11:20:13 -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-Spam-Flag: NO 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: devicetree@vger.kernel.org Add devicetree binding for the Vertexcom MSE102x Homeplug GreenPHY chip as SPI device. Signed-off-by: Stefan Wahren Reviewed-by: Rob Herring --- .../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>; + }; + };