mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
dt-bindings: net: sff,sfp: rename example dt nodes to be more generic
Rename the dt nodes shown in the sff,sfp.yaml examples so that they are generic and not really tied to a specific platform. Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
70991f1e68
commit
7ff7c99228
1 changed files with 9 additions and 9 deletions
|
@ -89,7 +89,7 @@ examples:
|
||||||
- | # Direct serdes to SFP connection
|
- | # Direct serdes to SFP connection
|
||||||
#include <dt-bindings/gpio/gpio.h>
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
|
|
||||||
sfp_eth3: sfp-eth3 {
|
sfp1: sfp {
|
||||||
compatible = "sff,sfp";
|
compatible = "sff,sfp";
|
||||||
i2c-bus = <&sfp_1g_i2c>;
|
i2c-bus = <&sfp_1g_i2c>;
|
||||||
los-gpios = <&cpm_gpio2 22 GPIO_ACTIVE_HIGH>;
|
los-gpios = <&cpm_gpio2 22 GPIO_ACTIVE_HIGH>;
|
||||||
|
@ -101,19 +101,19 @@ examples:
|
||||||
tx-fault-gpios = <&cpm_gpio2 19 GPIO_ACTIVE_HIGH>;
|
tx-fault-gpios = <&cpm_gpio2 19 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
};
|
||||||
|
|
||||||
cps_emac3 {
|
ethernet {
|
||||||
phy-names = "comphy";
|
phy-names = "comphy";
|
||||||
phys = <&cps_comphy5 0>;
|
phys = <&cps_comphy5 0>;
|
||||||
sfp = <&sfp_eth3>;
|
sfp = <&sfp1>;
|
||||||
};
|
};
|
||||||
|
|
||||||
- | # Serdes to PHY to SFP connection
|
- | # Serdes to PHY to SFP connection
|
||||||
#include <dt-bindings/gpio/gpio.h>
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
||||||
|
|
||||||
sfp_eth0: sfp-eth0 {
|
sfp2: sfp {
|
||||||
compatible = "sff,sfp";
|
compatible = "sff,sfp";
|
||||||
i2c-bus = <&sfpp0_i2c>;
|
i2c-bus = <&sfp_i2c>;
|
||||||
los-gpios = <&cps_gpio1 28 GPIO_ACTIVE_HIGH>;
|
los-gpios = <&cps_gpio1 28 GPIO_ACTIVE_HIGH>;
|
||||||
mod-def0-gpios = <&cps_gpio1 27 GPIO_ACTIVE_LOW>;
|
mod-def0-gpios = <&cps_gpio1 27 GPIO_ACTIVE_LOW>;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
@ -126,17 +126,17 @@ examples:
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
|
||||||
p0_phy: ethernet-phy@0 {
|
phy: ethernet-phy@0 {
|
||||||
compatible = "ethernet-phy-ieee802.3-c45";
|
compatible = "ethernet-phy-ieee802.3-c45";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&cpm_phy0_pins &cps_phy0_pins>;
|
pinctrl-0 = <&cpm_phy0_pins &cps_phy0_pins>;
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
interrupt = <&cpm_gpio2 18 IRQ_TYPE_EDGE_FALLING>;
|
interrupt = <&cpm_gpio2 18 IRQ_TYPE_EDGE_FALLING>;
|
||||||
sfp = <&sfp_eth0>;
|
sfp = <&sfp2>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
cpm_eth0 {
|
ethernet {
|
||||||
phy = <&p0_phy>;
|
phy = <&phy>;
|
||||||
phy-mode = "10gbase-kr";
|
phy-mode = "10gbase-kr";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue