1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 /* 2 /* 3 * Copyright (c) 2017-2018 MediaTek Inc. 3 * Copyright (c) 2017-2018 MediaTek Inc. 4 * Author: Sean Wang <sean.wang@mediatek.com> 4 * Author: Sean Wang <sean.wang@mediatek.com> 5 * 5 * 6 */ 6 */ 7 7 8 /dts-v1/; 8 /dts-v1/; 9 #include <dt-bindings/power/mt7623a-power.h> 9 #include <dt-bindings/power/mt7623a-power.h> 10 #include "mt7623.dtsi" 10 #include "mt7623.dtsi" 11 11 12 &afe { 12 &afe { 13 power-domains = <&scpsys MT7623A_POWER 13 power-domains = <&scpsys MT7623A_POWER_DOMAIN_IFR_MSC>; 14 }; 14 }; 15 15 16 &crypto { 16 &crypto { 17 power-domains = <&scpsys MT7623A_POWER 17 power-domains = <&scpsys MT7623A_POWER_DOMAIN_ETH>; 18 }; 18 }; 19 19 20 &gmac0 { 20 &gmac0 { 21 status = "okay"; 21 status = "okay"; 22 phy-mode = "trgmii"; 22 phy-mode = "trgmii"; 23 23 24 fixed-link { 24 fixed-link { 25 speed = <1000>; 25 speed = <1000>; 26 full-duplex; 26 full-duplex; 27 pause; 27 pause; 28 }; 28 }; 29 }; 29 }; 30 30 31 &gmac1 { 31 &gmac1 { 32 status = "okay"; 32 status = "okay"; 33 phy-mode = "rgmii"; 33 phy-mode = "rgmii"; 34 34 35 fixed-link { 35 fixed-link { 36 speed = <1000>; 36 speed = <1000>; 37 full-duplex; 37 full-duplex; 38 pause; 38 pause; 39 }; 39 }; 40 }; 40 }; 41 41 42 ð { 42 ð { 43 status = "okay"; 43 status = "okay"; 44 power-domains = <&scpsys MT7623A_POWER 44 power-domains = <&scpsys MT7623A_POWER_DOMAIN_ETH>; 45 45 46 mdio: mdio-bus { 46 mdio: mdio-bus { 47 #address-cells = <1>; 47 #address-cells = <1>; 48 #size-cells = <0>; 48 #size-cells = <0>; 49 49 50 switch0: switch@1f { 50 switch0: switch@1f { 51 compatible = "mediatek 51 compatible = "mediatek,mt7530"; 52 reg = <0x1f>; 52 reg = <0x1f>; 53 mediatek,mcm; 53 mediatek,mcm; 54 resets = <ðsys MT27 54 resets = <ðsys MT2701_ETHSYS_MCM_RST>; 55 reset-names = "mcm"; 55 reset-names = "mcm"; 56 core-supply = <&mt6323 56 core-supply = <&mt6323_vpa_reg>; 57 io-supply = <&mt6323_v 57 io-supply = <&mt6323_vemc3v3_reg>; 58 58 59 ports { 59 ports { 60 #address-cells 60 #address-cells = <1>; 61 #size-cells = 61 #size-cells = <0>; 62 62 63 port@0 { 63 port@0 { 64 status 64 status = "disabled"; 65 reg = 65 reg = <0>; 66 label 66 label = "swp0"; 67 }; 67 }; 68 68 69 port@1 { 69 port@1 { 70 status 70 status = "disabled"; 71 reg = 71 reg = <1>; 72 label 72 label = "swp1"; 73 }; 73 }; 74 74 75 port@2 { 75 port@2 { 76 status 76 status = "disabled"; 77 reg = 77 reg = <2>; 78 label 78 label = "swp2"; 79 }; 79 }; 80 80 81 port@3 { 81 port@3 { 82 status 82 status = "disabled"; 83 reg = 83 reg = <3>; 84 label 84 label = "swp3"; 85 }; 85 }; 86 86 87 port@4 { 87 port@4 { 88 status 88 status = "disabled"; 89 reg = 89 reg = <4>; 90 label 90 label = "swp4"; 91 }; 91 }; 92 92 93 port@5 { 93 port@5 { 94 reg = 94 reg = <5>; 95 label 95 label = "cpu"; 96 ethern 96 ethernet = <&gmac1>; 97 phy-mo 97 phy-mode = "rgmii"; 98 98 99 fixed- 99 fixed-link { 100 100 speed = <1000>; 101 101 full-duplex; 102 102 pause; 103 }; 103 }; 104 }; 104 }; 105 105 106 port@6 { 106 port@6 { 107 reg = 107 reg = <6>; 108 label 108 label = "cpu"; 109 ethern 109 ethernet = <&gmac0>; 110 phy-mo 110 phy-mode = "trgmii"; 111 111 112 fixed- 112 fixed-link { 113 113 speed = <1000>; 114 114 full-duplex; 115 115 pause; 116 }; 116 }; 117 }; 117 }; 118 }; 118 }; 119 }; 119 }; 120 }; 120 }; 121 }; 121 }; 122 122 123 &nandc { 123 &nandc { 124 power-domains = <&scpsys MT7623A_POWER 124 power-domains = <&scpsys MT7623A_POWER_DOMAIN_IFR_MSC>; 125 }; 125 }; 126 126 127 &pcie { 127 &pcie { 128 power-domains = <&scpsys MT7623A_POWER 128 power-domains = <&scpsys MT7623A_POWER_DOMAIN_HIF>; 129 }; 129 }; 130 130 131 &scpsys { 131 &scpsys { 132 compatible = "mediatek,mt7623a-scpsys" 132 compatible = "mediatek,mt7623a-scpsys"; 133 clocks = <&topckgen CLK_TOP_ETHIF_SEL> 133 clocks = <&topckgen CLK_TOP_ETHIF_SEL>; 134 clock-names = "ethif"; 134 clock-names = "ethif"; 135 }; 135 }; 136 136 137 &usb0 { 137 &usb0 { 138 power-domains = <&scpsys MT7623A_POWER 138 power-domains = <&scpsys MT7623A_POWER_DOMAIN_IFR_MSC>; 139 }; 139 }; 140 140 141 &usb1 { 141 &usb1 { 142 power-domains = <&scpsys MT7623A_POWER 142 power-domains = <&scpsys MT7623A_POWER_DOMAIN_HIF>; 143 }; 143 }; 144 144 145 &usb2 { 145 &usb2 { 146 power-domains = <&scpsys MT7623A_POWER 146 power-domains = <&scpsys MT7623A_POWER_DOMAIN_HIF>; 147 }; 147 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.