developer | 24455dd | 2021-10-28 10:55:41 +0800 | [diff] [blame] | 1 | /dts-v1/; |
| 2 | #include "mt7981-fpga.dtsi" |
| 3 | / { |
| 4 | model = "MediaTek MT7981 FPGA"; |
| 5 | compatible = "mediatek,mt7981-fpga-emmc"; |
| 6 | chosen { |
| 7 | bootargs = "console=ttyS0,115200n1 loglevel=8 \ |
| 8 | earlycon=uart8250,mmio32,0x11002000 \ |
| 9 | root=/dev/mmcblk0p7 rootfstype=squashfs,f2fs"; |
| 10 | }; |
| 11 | |
| 12 | memory { |
| 13 | // fpga ddr2: 128MB*2 |
| 14 | reg = <0 0x40000000 0 0x10000000>; |
| 15 | }; |
| 16 | |
| 17 | wsys_adie: wsys_adie@0 { |
| 18 | // fpga cases need to manual change adie_id / sku_type for dvt only |
| 19 | compatible = "mediatek,rebb-mt7981-adie"; |
| 20 | adie_id = <7976>; |
| 21 | sku_type = <3000>; |
| 22 | }; |
| 23 | |
| 24 | reg_3p3v: regulator-3p3v { |
| 25 | compatible = "regulator-fixed"; |
| 26 | regulator-name = "fixed-3.3V"; |
| 27 | regulator-min-microvolt = <3300000>; |
| 28 | regulator-max-microvolt = <3300000>; |
| 29 | regulator-boot-on; |
| 30 | regulator-always-on; |
| 31 | }; |
| 32 | }; |
| 33 | |
| 34 | &uart0 { |
| 35 | status = "okay"; |
| 36 | }; |
| 37 | |
| 38 | &spi1 { |
| 39 | pinctrl-names = "default"; |
| 40 | /* pin shared with snfi */ |
| 41 | pinctrl-0 = <&spic_pins>; |
| 42 | status = "disabled"; |
| 43 | }; |
| 44 | |
| 45 | &pcie { |
| 46 | pinctrl-names = "default"; |
| 47 | pinctrl-0 = <&pcie_pins>; |
| 48 | status = "okay"; |
| 49 | }; |
| 50 | |
| 51 | &pio { |
| 52 | pcie_pins: pcie-pins { |
| 53 | mux { |
| 54 | function = "pcie"; |
| 55 | groups = "pcie_pereset", "pcie_clk", "pcie_wake"; |
| 56 | }; |
| 57 | }; |
| 58 | |
| 59 | spic_pins: spi1-pins { |
| 60 | mux { |
| 61 | function = "spi"; |
| 62 | groups = "spi1_1"; |
| 63 | }; |
| 64 | }; |
| 65 | |
| 66 | mmc0_pins_default: mmc0-pins-default { |
| 67 | mux { |
| 68 | function = "flash"; |
| 69 | groups = "emmc_45"; |
| 70 | }; |
| 71 | }; |
| 72 | |
| 73 | mmc0_pins_uhs: mmc0-pins-uhs { |
| 74 | mux { |
| 75 | function = "flash"; |
| 76 | groups = "emmc_45"; |
| 77 | }; |
| 78 | }; |
| 79 | }; |
| 80 | |
| 81 | &watchdog { |
| 82 | status = "disabled"; |
| 83 | }; |
| 84 | |
| 85 | &mmc0 { |
| 86 | pinctrl-names = "default", "state_uhs"; |
| 87 | pinctrl-0 = <&mmc0_pins_default>; |
| 88 | pinctrl-1 = <&mmc0_pins_uhs>; |
| 89 | bus-width = <4>; |
| 90 | max-frequency = <3000000>; |
| 91 | cap-sd-highspeed; |
| 92 | vmmc-supply = <®_3p3v>; |
| 93 | vqmmc-supply = <®_3p3v>; |
| 94 | status = "okay"; |
| 95 | }; |
| 96 | |
| 97 | ð { |
| 98 | status = "okay"; |
| 99 | |
| 100 | gmac0: mac@0 { |
| 101 | compatible = "mediatek,eth-mac"; |
| 102 | reg = <0>; |
| 103 | phy-mode = "rgmii"; |
| 104 | |
| 105 | fixed-link { |
| 106 | speed = <100>; |
| 107 | full-duplex; |
| 108 | pause; |
| 109 | }; |
| 110 | }; |
| 111 | |
| 112 | gmac1: mac@1 { |
| 113 | compatible = "mediatek,eth-mac"; |
| 114 | reg = <1>; |
| 115 | phy-mode = "rgmii"; |
| 116 | |
| 117 | fixed-link { |
| 118 | speed = <100>; |
| 119 | full-duplex; |
| 120 | pause; |
| 121 | }; |
| 122 | }; |
| 123 | |
| 124 | mdio: mdio-bus { |
| 125 | #address-cells = <1>; |
| 126 | #size-cells = <0>; |
| 127 | }; |
| 128 | }; |
| 129 | |
| 130 | &hnat { |
| 131 | mtketh-wan = "eth1"; |
| 132 | mtketh-lan = "eth0"; |
| 133 | mtketh-max-gmac = <2>; |
| 134 | status = "okay"; |
| 135 | }; |