lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220920151411.12523-2-marcus.carlberg@axis.com>
Date:   Tue, 20 Sep 2022 17:14:10 +0200
From:   Marcus Carlberg <marcus.carlberg@...s.com>
To:     <lxu@...linear.com>, <andrew@...n.ch>
CC:     <linux-kernel@...r.kernel.org>, <kernel@...s.com>,
        Marcus Carlberg <marcus.carlberg@...s.com>,
        Heiner Kallweit <hkallweit1@...il.com>,
        <devicetree@...r.kernel.org>, Russell King <linux@...linux.org.uk>,
        "David S. Miller" <davem@...emloft.net>,
        Eric Dumazet <edumazet@...gle.com>,
        "Jakub Kicinski" <kuba@...nel.org>,
        Paolo Abeni <pabeni@...hat.com>, <netdev@...r.kernel.org>
Subject: [PATCH net-next 1/2] dt-bindings: net: Add mxl,gpy

Add dual-led-mode override property specific to mxl,gpy.

Signed-off-by: Marcus Carlberg <marcus.carlberg@...s.com>
---
 .../devicetree/bindings/net/mxl,gpy.yaml      | 39 +++++++++++++++++++
 .../devicetree/bindings/vendor-prefixes.yaml  |  2 +
 MAINTAINERS                                   |  1 +
 3 files changed, 42 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/net/mxl,gpy.yaml

diff --git a/Documentation/devicetree/bindings/net/mxl,gpy.yaml b/Documentation/devicetree/bindings/net/mxl,gpy.yaml
new file mode 100644
index 000000000000..423d2a5e1ce9
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/mxl,gpy.yaml
@@ -0,0 +1,39 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/mxl,gpy.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Maxlinear Phy
+
+maintainers:
+  - Xu Liang <lxu@...linear.com>
+
+allOf:
+  - $ref: ethernet-phy.yaml#
+
+properties:
+  mxl,dual-led-mode:
+    $ref: /schemas/types.yaml#/definitions/flag
+    description:
+      If set, indicates that the hardware only have connected pins led0 and
+      led1 where led0 is used for noting the highest network speed (2500) and
+      led1 for the rest (10, 100, 1000). The absence of this property
+      indicates that the PHY uses all four led pins to communicate link speed,
+      one pin for each speed.
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    ethernet {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        ethernet-phy@0 {
+            compatible = "ethernet-phy-id67c9.de10", "ethernet-phy-ieee802.3-c45";
+            reg = <0>;
+            mxl,dual-led-mode;
+        };
+    };
+
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
index 2f0151e9f6be..3c833827a790 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -757,6 +757,8 @@ patternProperties:
     description: MaxBotix Inc.
   "^maxim,.*":
     description: Maxim Integrated Products
+  "^mxl,.*":
+    description: Maxlinear Inc.
   "^mbvl,.*":
     description: Mobiveil Inc.
   "^mcube,.*":
diff --git a/MAINTAINERS b/MAINTAINERS
index 9ae989b32ebb..accc4242c027 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -12455,6 +12455,7 @@ MAXLINEAR ETHERNET PHY DRIVER
 M:	Xu Liang <lxu@...linear.com>
 L:	netdev@...r.kernel.org
 S:	Supported
+F:	Documentation/devicetree/bindings/net/phy/mxl,gpy.yaml
 F:	drivers/net/phy/mxl-gpy.c

 MCBA MICROCHIP CAN BUS ANALYZER TOOL DRIVER
--
2.20.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ