2021-03-07 17:36:16 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
/dts-v1/;
|
|
|
|
|
2023-08-27 09:21:28 +00:00
|
|
|
#include "mt7622-buffalo-wsr.dtsi"
|
2021-03-07 17:36:16 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Buffalo WSR-2533DHP2";
|
|
|
|
compatible = "buffalo,wsr-2533dhp2", "mediatek,mt7622";
|
|
|
|
|
|
|
|
aliases {
|
2023-08-27 09:04:04 +00:00
|
|
|
label-mac-device = &gmac0;
|
2021-03-07 17:36:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
memory {
|
|
|
|
reg = <0 0x40000000 0 0x0F000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
rtkgsw: rtkgsw@0 {
|
|
|
|
compatible = "mediatek,rtk-gsw";
|
|
|
|
mediatek,ethsys = <ðsys>;
|
|
|
|
mediatek,mdio = <&mdio>;
|
|
|
|
mediatek,reset-pin = <&pio 54 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&pio {
|
|
|
|
/* Parallel nand is shared pin with eMMC */
|
|
|
|
parallel_nand_pins: parallel-nand-pins {
|
|
|
|
mux {
|
|
|
|
function = "flash";
|
|
|
|
groups = "par_nand";
|
|
|
|
};
|
|
|
|
|
|
|
|
conf-cmd-dat {
|
|
|
|
pins = "NCEB", "NWEB", "NREB",
|
|
|
|
"NDL4", "NDL5", "NDL6",
|
|
|
|
"NDL7", "NRB", "NCLE",
|
|
|
|
"NALE", "NDL0", "NDL1",
|
|
|
|
"NDL2", "NDL3";
|
|
|
|
input-enable;
|
|
|
|
drive-strength = <8>;
|
|
|
|
bias-pull-up;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-08-27 09:21:28 +00:00
|
|
|
&gmac0 {
|
|
|
|
nvmem-cells = <&macaddr_factory_4 (-1)>;
|
|
|
|
nvmem-cell-names = "mac-address";
|
2021-03-07 17:36:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&nandc {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <¶llel_nand_pins>;
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
nand@0 {
|
|
|
|
reg = <0>;
|
|
|
|
nand-ecc-mode = "hw";
|
|
|
|
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "Preloader";
|
|
|
|
reg = <0x0 0x80000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@80000 {
|
|
|
|
label = "ATF";
|
|
|
|
reg = <0x80000 0x40000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@c0000 {
|
|
|
|
label = "Bootloader";
|
|
|
|
reg = <0xc0000 0x80000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@140000 {
|
|
|
|
label = "Config";
|
|
|
|
reg = <0x140000 0x80000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
factory: partition@1c0000 {
|
2023-08-27 06:10:53 +00:00
|
|
|
compatible = "nvmem-cells";
|
2021-03-07 17:36:16 +00:00
|
|
|
label = "factory";
|
|
|
|
reg = <0x1c0000 0x40000>;
|
|
|
|
read-only;
|
2023-08-27 06:10:53 +00:00
|
|
|
|
|
|
|
nvmem-layout {
|
|
|
|
compatible = "fixed-layout";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
macaddr_factory_4: macaddr@4 {
|
|
|
|
compatible = "mac-base";
|
|
|
|
reg = <0x4 0x6>;
|
|
|
|
#nvmem-cell-cells = <1>;
|
|
|
|
};
|
|
|
|
};
|
2021-03-07 17:36:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
partition@200000 {
|
|
|
|
compatible = "brcm,trx";
|
2021-04-18 19:51:00 +00:00
|
|
|
brcm,trx-magic = <0x32504844>;
|
2021-03-07 17:36:16 +00:00
|
|
|
label = "firmware";
|
|
|
|
reg = <0x200000 0x3a00000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@3C00000 {
|
|
|
|
label = "Kernel2";
|
|
|
|
reg = <0x3c00000 0x3a00000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@7600000 {
|
|
|
|
label = "glbcfg";
|
|
|
|
reg = <0x7600000 0x200000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@7800000 {
|
|
|
|
label = "board_data";
|
|
|
|
reg = <0x7800000 0x200000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|