2017-06-17 00:06:27 +07:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 MediaTek Inc.
|
|
|
|
* Author: Ming Huang <ming.huang@mediatek.com>
|
|
|
|
* Sean Wang <sean.wang@mediatek.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: (GPL-2.0 OR MIT)
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2018-02-18 02:54:39 +07:00
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
2017-06-17 00:06:27 +07:00
|
|
|
#include "mt7622.dtsi"
|
2018-02-18 02:54:40 +07:00
|
|
|
#include "mt6380.dtsi"
|
2017-06-17 00:06:27 +07:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "MediaTek MT7622 RFB1 board";
|
|
|
|
compatible = "mediatek,mt7622-rfb1", "mediatek,mt7622";
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
bootargs = "console=ttyS0,115200n1";
|
|
|
|
};
|
|
|
|
|
2018-02-18 02:54:41 +07:00
|
|
|
cpus {
|
|
|
|
cpu@0 {
|
|
|
|
proc-supply = <&mt6380_vcpu_reg>;
|
|
|
|
sram-supply = <&mt6380_vm_reg>;
|
|
|
|
};
|
|
|
|
|
|
|
|
cpu@1 {
|
|
|
|
proc-supply = <&mt6380_vcpu_reg>;
|
|
|
|
sram-supply = <&mt6380_vm_reg>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-02-18 02:54:39 +07:00
|
|
|
gpio-keys {
|
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
poll-interval = <100>;
|
|
|
|
|
|
|
|
factory {
|
|
|
|
label = "factory";
|
|
|
|
linux,code = <BTN_0>;
|
|
|
|
gpios = <&pio 0 0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wps {
|
|
|
|
label = "wps";
|
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
|
|
gpios = <&pio 102 0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-06-17 00:06:27 +07:00
|
|
|
memory {
|
|
|
|
reg = <0 0x40000000 0 0x3F000000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-02-18 02:54:46 +07:00
|
|
|
&pcie {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pcie0_pins>;
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
pcie@0,0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-02-18 02:54:39 +07:00
|
|
|
&pio {
|
|
|
|
/* eMMC is shared pin with parallel NAND */
|
|
|
|
emmc_pins_default: emmc-pins-default {
|
|
|
|
mux {
|
|
|
|
function = "emmc", "emmc_rst";
|
|
|
|
groups = "emmc";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
emmc_pins_uhs: emmc-pins-uhs {
|
|
|
|
mux {
|
|
|
|
function = "emmc";
|
|
|
|
groups = "emmc";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
eth_pins: eth-pins {
|
|
|
|
mux {
|
|
|
|
function = "eth";
|
|
|
|
groups = "mdc_mdio", "rgmii_via_gmac2";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c1_pins: i2c1-pins {
|
|
|
|
mux {
|
|
|
|
function = "i2c";
|
|
|
|
groups = "i2c1_0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c2_pins: i2c2-pins {
|
|
|
|
mux {
|
|
|
|
function = "i2c";
|
|
|
|
groups = "i2c2_0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
i2s1_pins: i2s1-pins {
|
|
|
|
mux {
|
|
|
|
function = "i2s";
|
|
|
|
groups = "i2s_out_bclk_ws_mclk",
|
|
|
|
"i2s1_in_data",
|
|
|
|
"i2s1_out_data";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
irrx_pins: irrx-pins {
|
|
|
|
mux {
|
|
|
|
function = "ir";
|
|
|
|
groups = "ir_1_rx";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
irtx_pins: irtx-pins {
|
|
|
|
mux {
|
|
|
|
function = "ir";
|
|
|
|
groups = "ir_1_tx";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Parallel nand is shared pin with eMMC */
|
|
|
|
parallel_nand_pins: parallel-nand-pins {
|
|
|
|
mux {
|
|
|
|
function = "flash";
|
|
|
|
groups = "par_nand";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
pcie0_pins: pcie0-pins {
|
|
|
|
mux {
|
|
|
|
function = "pcie";
|
|
|
|
groups = "pcie0_pad_perst",
|
|
|
|
"pcie0_1_waken",
|
|
|
|
"pcie0_1_clkreq";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
pcie1_pins: pcie1-pins {
|
|
|
|
mux {
|
|
|
|
function = "pcie";
|
|
|
|
groups = "pcie1_pad_perst",
|
|
|
|
"pcie1_0_waken",
|
|
|
|
"pcie1_0_clkreq";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
pmic_bus_pins: pmic-bus-pins {
|
|
|
|
mux {
|
|
|
|
function = "pmic";
|
|
|
|
groups = "pmic_bus";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
pwm7_pins: pwm1-2-pins {
|
|
|
|
mux {
|
|
|
|
function = "pwm";
|
|
|
|
groups = "pwm_ch7_2";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
wled_pins: wled-pins {
|
|
|
|
mux {
|
|
|
|
function = "led";
|
|
|
|
groups = "wled";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
sd0_pins_default: sd0-pins-default {
|
|
|
|
mux {
|
|
|
|
function = "sd";
|
|
|
|
groups = "sd_0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
sd0_pins_uhs: sd0-pins-uhs {
|
|
|
|
mux {
|
|
|
|
function = "sd";
|
|
|
|
groups = "sd_0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Serial NAND is shared pin with SPI-NOR */
|
|
|
|
serial_nand_pins: serial-nand-pins {
|
|
|
|
mux {
|
|
|
|
function = "flash";
|
|
|
|
groups = "snfi";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
spic0_pins: spic0-pins {
|
|
|
|
mux {
|
|
|
|
function = "spi";
|
|
|
|
groups = "spic0_0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
spic1_pins: spic1-pins {
|
|
|
|
mux {
|
|
|
|
function = "spi";
|
|
|
|
groups = "spic1_0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/* SPI-NOR is shared pin with serial NAND */
|
|
|
|
spi_nor_pins: spi-nor-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";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
uart0_pins: uart0-pins {
|
|
|
|
mux {
|
|
|
|
function = "uart";
|
|
|
|
groups = "uart0_0_tx_rx" ;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
uart2_pins: uart2-pins {
|
|
|
|
mux {
|
|
|
|
function = "uart";
|
|
|
|
groups = "uart2_1_tx_rx" ;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
watchdog_pins: watchdog-pins {
|
|
|
|
mux {
|
|
|
|
function = "watchdog";
|
|
|
|
groups = "watchdog";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-02-18 02:54:44 +07:00
|
|
|
&bch {
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
arm64: dts: mt7622: add SoC and peripheral related device nodes
Add watchdog, rtc, auxadc, cir, efuse, rng, uart[1-4], pwm, i2c[0-2],
spi[0-1], btif and thermal related nodes.
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Cc: Andrew-CT Chen <andrew-ct.chen@mediatek.com>
Cc: Zhiyong Tao <zhiyong.tao@mediatek.com>
Cc: Zhi Mao <zhi.mao@mediatek.com>
Cc: Jun Gao <jun.gao@mediatek.com>
Cc: Leilk Liu <leilk.liu@mediatek.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
2018-02-18 02:54:43 +07:00
|
|
|
&btif {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&cir {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&irrx_pins>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-02-18 02:54:45 +07:00
|
|
|
ð {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <ð_pins>;
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
gmac1: mac@1 {
|
|
|
|
compatible = "mediatek,eth-mac";
|
|
|
|
reg = <1>;
|
|
|
|
phy-handle = <&phy5>;
|
|
|
|
};
|
|
|
|
|
|
|
|
mdio-bus {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
phy5: ethernet-phy@5 {
|
|
|
|
reg = <5>;
|
|
|
|
phy-mode = "sgmii";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
arm64: dts: mt7622: add SoC and peripheral related device nodes
Add watchdog, rtc, auxadc, cir, efuse, rng, uart[1-4], pwm, i2c[0-2],
spi[0-1], btif and thermal related nodes.
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Cc: Andrew-CT Chen <andrew-ct.chen@mediatek.com>
Cc: Zhiyong Tao <zhiyong.tao@mediatek.com>
Cc: Zhi Mao <zhi.mao@mediatek.com>
Cc: Jun Gao <jun.gao@mediatek.com>
Cc: Leilk Liu <leilk.liu@mediatek.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
2018-02-18 02:54:43 +07:00
|
|
|
&i2c1 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&i2c1_pins>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&i2c2 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&i2c2_pins>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-02-18 02:54:44 +07:00
|
|
|
&nandc {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <¶llel_nand_pins>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
&nor_flash {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&spi_nor_pins>;
|
|
|
|
status = "disabled";
|
|
|
|
|
|
|
|
flash@0 {
|
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
reg = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
arm64: dts: mt7622: add SoC and peripheral related device nodes
Add watchdog, rtc, auxadc, cir, efuse, rng, uart[1-4], pwm, i2c[0-2],
spi[0-1], btif and thermal related nodes.
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Cc: Andrew-CT Chen <andrew-ct.chen@mediatek.com>
Cc: Zhiyong Tao <zhiyong.tao@mediatek.com>
Cc: Zhi Mao <zhi.mao@mediatek.com>
Cc: Jun Gao <jun.gao@mediatek.com>
Cc: Leilk Liu <leilk.liu@mediatek.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
2018-02-18 02:54:43 +07:00
|
|
|
&pwm {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pwm7_pins>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-02-18 02:54:40 +07:00
|
|
|
&pwrap {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pmic_bus_pins>;
|
|
|
|
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-02-18 02:54:47 +07:00
|
|
|
&sata {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&sata_phy {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
arm64: dts: mt7622: add SoC and peripheral related device nodes
Add watchdog, rtc, auxadc, cir, efuse, rng, uart[1-4], pwm, i2c[0-2],
spi[0-1], btif and thermal related nodes.
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Cc: Andrew-CT Chen <andrew-ct.chen@mediatek.com>
Cc: Zhiyong Tao <zhiyong.tao@mediatek.com>
Cc: Zhi Mao <zhi.mao@mediatek.com>
Cc: Jun Gao <jun.gao@mediatek.com>
Cc: Leilk Liu <leilk.liu@mediatek.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
2018-02-18 02:54:43 +07:00
|
|
|
&spi0 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&spic0_pins>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi1 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&spic1_pins>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2017-06-17 00:06:27 +07:00
|
|
|
&uart0 {
|
arm64: dts: mt7622: add SoC and peripheral related device nodes
Add watchdog, rtc, auxadc, cir, efuse, rng, uart[1-4], pwm, i2c[0-2],
spi[0-1], btif and thermal related nodes.
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Cc: Andrew-CT Chen <andrew-ct.chen@mediatek.com>
Cc: Zhiyong Tao <zhiyong.tao@mediatek.com>
Cc: Zhi Mao <zhi.mao@mediatek.com>
Cc: Jun Gao <jun.gao@mediatek.com>
Cc: Leilk Liu <leilk.liu@mediatek.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
2018-02-18 02:54:43 +07:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart0_pins>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart2 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart2_pins>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&watchdog {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&watchdog_pins>;
|
2017-06-17 00:06:27 +07:00
|
|
|
status = "okay";
|
|
|
|
};
|