Commit cc212241 authored by Ryder Lee's avatar Ryder Lee Committed by Matthias Brugger

arm: dts: mediatek: add basic support for MT7629 SoC

This adds basic support for MT7629 reference board.
Tested-by: default avatarKevin Hilman <khilman@baylibre.com>
Signed-off-by: default avatarRyder Lee <ryder.lee@mediatek.com>
Signed-off-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
parent 5f9e832c
......@@ -1262,6 +1262,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \
mt7623a-rfb-nand.dtb \
mt7623n-rfb-emmc.dtb \
mt7623n-bananapi-bpi-r2.dtb \
mt7629-rfb.dtb \
mt8127-moose.dtb \
mt8135-evbp1.dtb
dtb-$(CONFIG_ARCH_MILBEAUT) += milbeaut-m10v-evb.dtb
......
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2019 MediaTek Inc.
* Author: Ryder Lee <ryder.lee@mediatek.com>
*/
/dts-v1/;
#include <dt-bindings/input/input.h>
#include "mt7629.dtsi"
/ {
model = "MediaTek MT7629 reference board";
compatible = "mediatek,mt7629-rfb", "mediatek,mt7629";
aliases {
serial0 = &uart0;
};
chosen {
stdout-path = "serial0:115200n8";
};
gpio-keys {
compatible = "gpio-keys";
reset {
label = "factory";
linux,code = <KEY_RESTART>;
gpios = <&pio 60 GPIO_ACTIVE_LOW>;
};
wps {
label = "wps";
linux,code = <KEY_WPS_BUTTON>;
gpios = <&pio 58 GPIO_ACTIVE_LOW>;
};
};
memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x10000000>;
};
reg_3p3v: regulator-3p3v {
compatible = "regulator-fixed";
regulator-name = "fixed-3.3V";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-boot-on;
regulator-always-on;
};
reg_5v: regulator-5v {
compatible = "regulator-fixed";
regulator-name = "fixed-5V";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
regulator-boot-on;
regulator-always-on;
};
};
&eth {
pinctrl-names = "default";
pinctrl-0 = <&eth_pins>;
pinctrl-1 = <&ephy_leds_pins>;
status = "okay";
gmac1: mac@1 {
compatible = "mediatek,eth-mac";
reg = <1>;
phy-handle = <&phy0>;
};
mdio: mdio-bus {
#address-cells = <1>;
#size-cells = <0>;
phy0: ethernet-phy@0 {
reg = <0>;
phy-mode = "gmii";
};
};
};
&i2c {
pinctrl-names = "default";
pinctrl-0 = <&i2c_pins>;
status = "okay";
};
&qspi {
pinctrl-names = "default";
pinctrl-0 = <&qspi_pins>;
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x00000 0x60000>;
read-only;
};
partition@60000 {
label = "u-boot-env";
reg = <0x60000 0x10000>;
read-only;
};
factory: partition@70000 {
label = "factory";
reg = <0x70000 0x40000>;
read-only;
};
partition@b0000 {
label = "kernel";
reg = <0xb0000 0xb50000>;
};
};
};
};
&pcie {
pinctrl-names = "default";
pinctrl-0 = <&pcie_pins>;
};
&pciephy1 {
status = "okay";
};
&pio {
eth_pins: eth-pins {
mux {
function = "eth";
groups = "mdc_mdio";
};
};
ephy_leds_pins: ephy-leds-pins {
mux {
function = "led";
groups = "gphy_leds_0", "ephy_leds";
};
};
i2c_pins: i2c-pins {
mux {
function = "i2c";
groups = "i2c_0";
};
conf {
pins = "I2C_SDA", "I2C_SCL";
drive-strength = <4>;
bias-disable;
};
};
pcie_pins: pcie-pins {
mux {
function = "pcie";
groups = "pcie_clkreq",
"pcie_pereset",
"pcie_wake";
};
};
pwm_pins: pwm-pins {
mux {
function = "pwm";
groups = "pwm_0";
};
};
/* SPI-NOR is shared pin with serial NAND */
qspi_pins: qspi-pins {
mux {
function = "flash";
groups = "spi_nor";
};
};
/* Serial NAND is shared pin with SPI-NOR */
serial_nand_pins: serial-nand-pins {
mux {
function = "flash";
groups = "snfi";
};
};
spi_pins: spi-pins {
mux {
function = "spi";
groups = "spi_0";
};
};
uart0_pins: uart0-pins {
mux {
function = "uart";
groups = "uart0_txd_rxd" ;
};
};
uart1_pins: uart1-pins {
mux {
function = "uart";
groups = "uart1_0_tx_rx" ;
};
};
uart2_pins: uart2-pins {
mux {
function = "uart";
groups = "uart2_0_txd_rxd" ;
};
};
watchdog_pins: watchdog-pins {
mux {
function = "watchdog";
groups = "watchdog";
};
};
};
&spi {
pinctrl-names = "default";
pinctrl-0 = <&spi_pins>;
status = "okay";
};
&ssusb {
vusb33-supply = <&reg_3p3v>;
vbus-supply = <&reg_5v>;
status = "okay";
};
&u3phy0 {
status = "okay";
};
&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_pins>;
status = "okay";
};
&watchdog {
pinctrl-names = "default";
pinctrl-0 = <&watchdog_pins>;
status = "okay";
};
This diff is collapsed.
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (C) 2019 MediaTek Inc.
*/
#ifndef _DT_BINDINGS_RESET_CONTROLLER_MT7629
#define _DT_BINDINGS_RESET_CONTROLLER_MT7629
/* INFRACFG resets */
#define MT7629_INFRA_EMI_MPU_RST 0
#define MT7629_INFRA_UART5_RST 2
#define MT7629_INFRA_CIRQ_EINT_RST 3
#define MT7629_INFRA_APXGPT_RST 4
#define MT7629_INFRA_SCPSYS_RST 5
#define MT7629_INFRA_KP_RST 6
#define MT7629_INFRA_SPI1_RST 7
#define MT7629_INFRA_SPI4_RST 8
#define MT7629_INFRA_SYSTIMER_RST 9
#define MT7629_INFRA_IRRX_RST 10
#define MT7629_INFRA_AO_BUS_RST 16
#define MT7629_INFRA_EMI_RST 32
#define MT7629_INFRA_APMIXED_RST 35
#define MT7629_INFRA_MIPI_RST 36
#define MT7629_INFRA_TRNG_RST 37
#define MT7629_INFRA_SYSCIRQ_RST 38
#define MT7629_INFRA_MIPI_CSI_RST 39
#define MT7629_INFRA_GCE_FAXI_RST 40
#define MT7629_INFRA_I2C_SRAM_RST 41
#define MT7629_INFRA_IOMMU_RST 47
/* PERICFG resets */
#define MT7629_PERI_UART0_SW_RST 0
#define MT7629_PERI_UART1_SW_RST 1
#define MT7629_PERI_UART2_SW_RST 2
#define MT7629_PERI_BTIF_SW_RST 6
#define MT7629_PERI_PWN_SW_RST 8
#define MT7629_PERI_DMA_SW_RST 11
#define MT7629_PERI_NFI_SW_RST 14
#define MT7629_PERI_I2C0_SW_RST 22
#define MT7629_PERI_SPI0_SW_RST 33
#define MT7629_PERI_SPI1_SW_RST 34
#define MT7629_PERI_FLASHIF_SW_RST 36
/* PCIe Subsystem resets */
#define MT7629_PCIE1_CORE_RST 19
#define MT7629_PCIE1_MMIO_RST 20
#define MT7629_PCIE1_HRST 21
#define MT7629_PCIE1_USER_RST 22
#define MT7629_PCIE1_PIPE_RST 23
#define MT7629_PCIE0_CORE_RST 27
#define MT7629_PCIE0_MMIO_RST 28
#define MT7629_PCIE0_HRST 29
#define MT7629_PCIE0_USER_RST 30
#define MT7629_PCIE0_PIPE_RST 31
/* SSUSB Subsystem resets */
#define MT7629_SSUSB_PHY_PWR_RST 3
#define MT7629_SSUSB_MAC_PWR_RST 4
/* ETH Subsystem resets */
#define MT7629_ETHSYS_SYS_RST 0
#define MT7629_ETHSYS_MCM_RST 2
#define MT7629_ETHSYS_HSDMA_RST 5
#define MT7629_ETHSYS_FE_RST 6
#define MT7629_ETHSYS_ESW_RST 16
#define MT7629_ETHSYS_GMAC_RST 23
#define MT7629_ETHSYS_EPHY_RST 24
#define MT7629_ETHSYS_CRYPTO_RST 29
#define MT7629_ETHSYS_PPE_RST 31
#endif /* _DT_BINDINGS_RESET_CONTROLLER_MT7629 */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment