Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | /* |
| 3 | * Device Tree file for the Kontron KSwitch D10 MMT 6G-2GS |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | #include "lan966x-kontron-kswitch-d10-mmt.dtsi" |
| 8 | |
| 9 | / { |
| 10 | model = "Kontron KSwitch D10 MMT 6G-2GS"; |
| 11 | compatible = "kontron,kswitch-d10-mmt-6g-2gs", "kontron,s1921", |
| 12 | "microchip,lan9668", "microchip,lan966"; |
| 13 | |
| 14 | aliases { |
| 15 | i2c0 = &i2c4; |
| 16 | i2c1 = &i2c1; |
| 17 | }; |
| 18 | |
| 19 | sfp0: sfp0 { |
| 20 | compatible = "sff,sfp"; |
| 21 | i2c-bus = <&i2c4>; |
| 22 | los-gpios = <&sgpio_in 1 0 GPIO_ACTIVE_HIGH>; |
| 23 | mod-def0-gpios = <&sgpio_in 1 1 GPIO_ACTIVE_LOW>; |
| 24 | maximum-power-milliwatt = <2500>; |
| 25 | tx-disable-gpios = <&sgpio_out 3 0 GPIO_ACTIVE_LOW>; |
| 26 | tx-fault-gpios = <&sgpio_in 0 2 GPIO_ACTIVE_HIGH>; |
| 27 | rate-select0-gpios = <&sgpio_out 2 0 GPIO_ACTIVE_HIGH>; |
| 28 | rate-select1-gpios = <&sgpio_out 2 1 GPIO_ACTIVE_HIGH>; |
| 29 | }; |
| 30 | |
| 31 | sfp1: sfp1 { |
| 32 | compatible = "sff,sfp"; |
| 33 | i2c-bus = <&i2c1>; |
| 34 | los-gpios = <&sgpio_in 1 2 GPIO_ACTIVE_HIGH>; |
| 35 | mod-def0-gpios = <&sgpio_in 1 3 GPIO_ACTIVE_LOW>; |
| 36 | maximum-power-milliwatt = <2500>; |
| 37 | tx-disable-gpios = <&sgpio_out 3 1 GPIO_ACTIVE_LOW>; |
| 38 | tx-fault-gpios = <&sgpio_in 0 3 GPIO_ACTIVE_HIGH>; |
| 39 | rate-select0-gpios = <&sgpio_out 2 2 GPIO_ACTIVE_HIGH>; |
| 40 | rate-select1-gpios = <&sgpio_out 2 3 GPIO_ACTIVE_HIGH>; |
| 41 | }; |
| 42 | }; |
| 43 | |
| 44 | &flx1 { |
| 45 | atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>; |
| 46 | status = "okay"; |
| 47 | |
| 48 | i2c1: i2c@600 { |
| 49 | pinctrl-0 = <&fc1_c_pins>; |
| 50 | pinctrl-names = "default"; |
| 51 | status = "okay"; |
| 52 | }; |
| 53 | }; |
| 54 | |
| 55 | &flx4 { |
| 56 | atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>; |
| 57 | status = "okay"; |
| 58 | |
| 59 | i2c4: i2c@600 { |
| 60 | pinctrl-0 = <&fc4_b_pins>; |
| 61 | pinctrl-names = "default"; |
| 62 | status = "okay"; |
| 63 | }; |
| 64 | }; |
| 65 | |
| 66 | &gpio { |
| 67 | fc1_c_pins: fc1-c-i2c-pins { |
| 68 | /* SCL, SDA */ |
| 69 | pins = "GPIO_47", "GPIO_48"; |
| 70 | function = "fc1_c"; |
| 71 | }; |
| 72 | |
| 73 | fc4_b_pins: fc4-b-i2c-pins { |
| 74 | /* SCL, SDA */ |
| 75 | pins = "GPIO_57", "GPIO_58"; |
| 76 | function = "fc4_b"; |
| 77 | }; |
| 78 | }; |
| 79 | |
| 80 | &port2 { |
| 81 | phys = <&serdes 2 SERDES6G(0)>; |
| 82 | sfp = <&sfp0>; |
| 83 | managed = "in-band-status"; |
| 84 | phy-mode = "sgmii"; |
| 85 | status = "okay"; |
| 86 | }; |
| 87 | |
| 88 | &port3 { |
| 89 | phys = <&serdes 3 SERDES6G(1)>; |
| 90 | sfp = <&sfp1>; |
| 91 | managed = "in-band-status"; |
| 92 | phy-mode = "sgmii"; |
| 93 | status = "okay"; |
| 94 | }; |