0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Copyright (c) 2017-2018 MediaTek Inc.
0004 * Author: Sean Wang <sean.wang@mediatek.com>
0005 *
0006 */
0007
0008 /dts-v1/;
0009 #include <dt-bindings/input/input.h>
0010 #include "mt7623n.dtsi"
0011 #include "mt6323.dtsi"
0012
0013 / {
0014 model = "MediaTek MT7623N with eMMC reference board";
0015 compatible = "mediatek,mt7623n-rfb-emmc", "mediatek,mt7623";
0016
0017 aliases {
0018 serial0 = &uart0;
0019 serial1 = &uart1;
0020 serial2 = &uart2;
0021 };
0022
0023 chosen {
0024 stdout-path = "serial2:115200n8";
0025 };
0026
0027 connector {
0028 compatible = "hdmi-connector";
0029 label = "hdmi";
0030 type = "d";
0031 ddc-i2c-bus = <&hdmiddc0>;
0032
0033 port {
0034 hdmi_connector_in: endpoint {
0035 remote-endpoint = <&hdmi0_out>;
0036 };
0037 };
0038 };
0039
0040 cpus {
0041 cpu@0 {
0042 proc-supply = <&mt6323_vproc_reg>;
0043 };
0044
0045 cpu@1 {
0046 proc-supply = <&mt6323_vproc_reg>;
0047 };
0048
0049 cpu@2 {
0050 proc-supply = <&mt6323_vproc_reg>;
0051 };
0052
0053 cpu@3 {
0054 proc-supply = <&mt6323_vproc_reg>;
0055 };
0056 };
0057
0058 gpio-keys {
0059 compatible = "gpio-keys";
0060 pinctrl-names = "default";
0061 pinctrl-0 = <&key_pins_a>;
0062
0063 button-factory {
0064 label = "factory";
0065 linux,code = <BTN_0>;
0066 gpios = <&pio 256 GPIO_ACTIVE_LOW>;
0067 };
0068
0069 button-wps {
0070 label = "wps";
0071 linux,code = <KEY_WPS_BUTTON>;
0072 gpios = <&pio 257 GPIO_ACTIVE_HIGH>;
0073 };
0074 };
0075
0076 memory@80000000 {
0077 device_type = "memory";
0078 reg = <0 0x80000000 0 0x40000000>;
0079 };
0080
0081 reg_1p8v: regulator-1p8v {
0082 compatible = "regulator-fixed";
0083 regulator-name = "fixed-1.8V";
0084 regulator-min-microvolt = <1800000>;
0085 regulator-max-microvolt = <1800000>;
0086 regulator-boot-on;
0087 regulator-always-on;
0088 };
0089
0090 reg_3p3v: regulator-3p3v {
0091 compatible = "regulator-fixed";
0092 regulator-name = "fixed-3.3V";
0093 regulator-min-microvolt = <3300000>;
0094 regulator-max-microvolt = <3300000>;
0095 regulator-boot-on;
0096 regulator-always-on;
0097 };
0098
0099 reg_5v: regulator-5v {
0100 compatible = "regulator-fixed";
0101 regulator-name = "fixed-5V";
0102 regulator-min-microvolt = <5000000>;
0103 regulator-max-microvolt = <5000000>;
0104 regulator-boot-on;
0105 regulator-always-on;
0106 };
0107
0108 sound {
0109 compatible = "mediatek,mt2701-wm8960-machine";
0110 mediatek,platform = <&afe>;
0111 audio-routing =
0112 "Headphone", "HP_L",
0113 "Headphone", "HP_R",
0114 "LINPUT1", "AMIC",
0115 "RINPUT1", "AMIC";
0116 mediatek,audio-codec = <&wm8960>;
0117 pinctrl-names = "default";
0118 pinctrl-0 = <&i2s0_pins_a>;
0119 };
0120 };
0121
0122 &bls {
0123 status = "okay";
0124 };
0125
0126 &btif {
0127 status = "okay";
0128 };
0129
0130 &cec {
0131 status = "okay";
0132 };
0133
0134 &cir {
0135 pinctrl-names = "default";
0136 pinctrl-0 = <&cir_pins_a>;
0137 status = "okay";
0138 };
0139
0140 &crypto {
0141 status = "okay";
0142 };
0143
0144 &dpi0 {
0145 status = "okay";
0146
0147 ports {
0148 #address-cells = <1>;
0149 #size-cells = <0>;
0150 port@0 {
0151 reg = <0>;
0152 dpi0_out: endpoint {
0153 remote-endpoint = <&hdmi0_in>;
0154 };
0155 };
0156 };
0157 };
0158
0159 ð {
0160 status = "okay";
0161
0162 gmac0: mac@0 {
0163 compatible = "mediatek,eth-mac";
0164 reg = <0>;
0165 phy-mode = "trgmii";
0166
0167 fixed-link {
0168 speed = <1000>;
0169 full-duplex;
0170 pause;
0171 };
0172 };
0173
0174 mac@1 {
0175 compatible = "mediatek,eth-mac";
0176 reg = <1>;
0177 phy-mode = "rgmii";
0178 phy-handle = <&phy5>;
0179 };
0180
0181 mdio-bus {
0182 #address-cells = <1>;
0183 #size-cells = <0>;
0184
0185 phy5: ethernet-phy@5 {
0186 reg = <5>;
0187 phy-mode = "rgmii-rxid";
0188 };
0189
0190 switch@0 {
0191 compatible = "mediatek,mt7530";
0192 reg = <0>;
0193 reset-gpios = <&pio 33 0>;
0194 core-supply = <&mt6323_vpa_reg>;
0195 io-supply = <&mt6323_vemc3v3_reg>;
0196
0197 ports {
0198 #address-cells = <1>;
0199 #size-cells = <0>;
0200
0201 port@0 {
0202 reg = <0>;
0203 label = "lan0";
0204 };
0205
0206 port@1 {
0207 reg = <1>;
0208 label = "lan1";
0209 };
0210
0211 port@2 {
0212 reg = <2>;
0213 label = "lan2";
0214 };
0215
0216 port@3 {
0217 reg = <3>;
0218 label = "lan3";
0219 };
0220
0221 port@4 {
0222 reg = <4>;
0223 label = "wan";
0224 };
0225
0226 port@6 {
0227 reg = <6>;
0228 label = "cpu";
0229 ethernet = <&gmac0>;
0230 phy-mode = "trgmii";
0231
0232 fixed-link {
0233 speed = <1000>;
0234 full-duplex;
0235 };
0236 };
0237 };
0238 };
0239 };
0240 };
0241
0242 &hdmi0 {
0243 pinctrl-names = "default";
0244 pinctrl-0 = <&hdmi_pins_a>;
0245 status = "okay";
0246
0247 ports {
0248 #address-cells = <1>;
0249 #size-cells = <0>;
0250 port@0 {
0251 reg = <0>;
0252 hdmi0_in: endpoint {
0253 remote-endpoint = <&dpi0_out>;
0254 };
0255 };
0256
0257 port@1 {
0258 reg = <1>;
0259 hdmi0_out: endpoint {
0260 remote-endpoint = <&hdmi_connector_in>;
0261 };
0262 };
0263 };
0264 };
0265
0266 &hdmiddc0 {
0267 pinctrl-names = "default";
0268 pinctrl-0 = <&hdmi_ddc_pins_a>;
0269 status = "okay";
0270 };
0271
0272 &hdmi_phy {
0273 mediatek,ibias = <0xa>;
0274 mediatek,ibias_up = <0x1c>;
0275 status = "okay";
0276 };
0277
0278 &i2c0 {
0279 pinctrl-names = "default";
0280 pinctrl-0 = <&i2c0_pins_a>;
0281 status = "okay";
0282 };
0283
0284 &i2c1 {
0285 pinctrl-names = "default";
0286 pinctrl-0 = <&i2c1_pins_b>;
0287 status = "okay";
0288
0289 wm8960: wm8960@1a {
0290 compatible = "wlf,wm8960";
0291 reg = <0x1a>;
0292 };
0293 };
0294
0295 &i2c2 {
0296 pinctrl-names = "default";
0297 pinctrl-0 = <&i2c2_pins_a>;
0298 status = "okay";
0299 };
0300
0301 &mmc0 {
0302 pinctrl-names = "default", "state_uhs";
0303 pinctrl-0 = <&mmc0_pins_default>;
0304 pinctrl-1 = <&mmc0_pins_uhs>;
0305 status = "okay";
0306 bus-width = <8>;
0307 max-frequency = <50000000>;
0308 cap-mmc-highspeed;
0309 vmmc-supply = <®_3p3v>;
0310 vqmmc-supply = <®_1p8v>;
0311 non-removable;
0312 };
0313
0314 &mmc1 {
0315 pinctrl-names = "default", "state_uhs";
0316 pinctrl-0 = <&mmc1_pins_default>;
0317 pinctrl-1 = <&mmc1_pins_uhs>;
0318 status = "okay";
0319 bus-width = <4>;
0320 max-frequency = <50000000>;
0321 cap-sd-highspeed;
0322 cd-gpios = <&pio 261 GPIO_ACTIVE_LOW>;
0323 vmmc-supply = <®_3p3v>;
0324 vqmmc-supply = <®_3p3v>;
0325 };
0326
0327 &pcie {
0328 pinctrl-names = "default";
0329 pinctrl-0 = <&pcie_default>;
0330 status = "okay";
0331
0332 pcie@0,0 {
0333 status = "okay";
0334 };
0335
0336 pcie@1,0 {
0337 status = "okay";
0338 };
0339 };
0340
0341 &pcie0_phy {
0342 status = "okay";
0343 };
0344
0345 &pcie1_phy {
0346 status = "okay";
0347 };
0348
0349 &pwm {
0350 pinctrl-names = "default";
0351 pinctrl-0 = <&pwm_pins_a>;
0352 status = "okay";
0353 };
0354
0355 &spi0 {
0356 pinctrl-names = "default";
0357 pinctrl-0 = <&spi0_pins_a>;
0358 status = "okay";
0359 };
0360
0361 &spi1 {
0362 pinctrl-names = "default";
0363 pinctrl-0 = <&spi1_pins_a>;
0364 status = "okay";
0365 };
0366
0367 &spi2 {
0368 pinctrl-names = "default";
0369 pinctrl-0 = <&spi2_pins_a>;
0370 status = "okay";
0371 };
0372
0373 &uart0 {
0374 pinctrl-names = "default";
0375 pinctrl-0 = <&uart0_pins_a>;
0376 status = "okay";
0377 };
0378
0379 &uart1 {
0380 pinctrl-names = "default";
0381 pinctrl-0 = <&uart1_pins_a>;
0382 status = "okay";
0383 };
0384
0385 &uart2 {
0386 pinctrl-names = "default";
0387 pinctrl-0 = <&uart2_pins_a>;
0388 status = "okay";
0389 };
0390
0391 &usb1 {
0392 vusb33-supply = <®_3p3v>;
0393 vbus-supply = <®_5v>;
0394 status = "okay";
0395 };
0396
0397 &u3phy1 {
0398 status = "okay";
0399 };