1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: "http://devicetree.org/schemas/net/sff,sfp.yaml#"
5 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
7 title: Small Form Factor (SFF) Committee Small Form-factor Pluggable (SFP)
11 - Russell King <linux@armlinux.org.uk>
16 - sff,sfp # for SFP modules
17 - sff,sff # for soldered down SFF modules
20 $ref: /schemas/types.yaml#/definitions/phandle
22 phandle of an I2C bus controller for the SFP two wire serial
24 maximum-power-milliwatt:
27 Maximum module power consumption Specifies the maximum power consumption
28 allowable by a module in the slot, in milli-Watts. Presently, modules can
29 be up to 1W, 1.5W or 2W.
34 GPIO phandle and a specifier of the MOD-DEF0 (AKA Mod_ABS) module
35 presence input gpio signal, active (module absent) high. Must not be
36 present for SFF modules
41 GPIO phandle and a specifier of the Receiver Loss of Signal Indication
42 input gpio signal, active (signal lost) high
47 GPIO phandle and a specifier of the Module Transmitter Fault input gpio
48 signal, active (fault condition) high
53 GPIO phandle and a specifier of the Transmitter Disable output gpio
54 signal, active (Tx disable) high
59 GPIO phandle and a specifier of the Rx Signaling Rate Select (AKA RS0)
60 output gpio signal, low - low Rx rate, high - high Rx rate Must not be
61 present for SFF modules
66 GPIO phandle and a specifier of the Tx Signaling Rate Select (AKA RS1)
67 output gpio signal (SFP+ only), low - low Tx rate, high - high Tx rate. Must
68 not be present for SFF modules
79 rate-select0-gpios: false
80 rate-select1-gpios: false
86 additionalProperties: false
89 - | # Direct serdes to SFP connection
90 #include <dt-bindings/gpio/gpio.h>
93 compatible = "sff,sfp";
94 i2c-bus = <&sfp_1g_i2c>;
95 los-gpios = <&cpm_gpio2 22 GPIO_ACTIVE_HIGH>;
96 mod-def0-gpios = <&cpm_gpio2 21 GPIO_ACTIVE_LOW>;
97 maximum-power-milliwatt = <1000>;
98 pinctrl-names = "default";
99 pinctrl-0 = <&cpm_sfp_1g_pins &cps_sfp_1g_pins>;
100 tx-disable-gpios = <&cps_gpio1 24 GPIO_ACTIVE_HIGH>;
101 tx-fault-gpios = <&cpm_gpio2 19 GPIO_ACTIVE_HIGH>;
105 phy-names = "comphy";
106 phys = <&cps_comphy5 0>;
110 - | # Serdes to PHY to SFP connection
111 #include <dt-bindings/gpio/gpio.h>
112 #include <dt-bindings/interrupt-controller/arm-gic.h>
115 compatible = "sff,sfp";
116 i2c-bus = <&sfp_i2c>;
117 los-gpios = <&cps_gpio1 28 GPIO_ACTIVE_HIGH>;
118 mod-def0-gpios = <&cps_gpio1 27 GPIO_ACTIVE_LOW>;
119 pinctrl-names = "default";
120 pinctrl-0 = <&cps_sfpp0_pins>;
121 tx-disable-gpios = <&cps_gpio1 29 GPIO_ACTIVE_HIGH>;
122 tx-fault-gpios = <&cps_gpio1 26 GPIO_ACTIVE_HIGH>;
126 #address-cells = <1>;
129 phy: ethernet-phy@0 {
130 compatible = "ethernet-phy-ieee802.3-c45";
131 pinctrl-names = "default";
132 pinctrl-0 = <&cpm_phy0_pins &cps_phy0_pins>;
134 interrupt = <&cpm_gpio2 18 IRQ_TYPE_EDGE_FALLING>;
141 phy-mode = "10gbase-kr";