Here again
the output of the command dtc
/dts-v1/;
/ {
#address-cells = <0x02>;
model = "Bananapi BPI-R3";
#size-cells = <0x02>;
interrupt-parent = <0x01>;
compatible = "bananapi,bpi-r3\0mediatek,mt7986a";
regulator-3p3v {
regulator-max-microvolt = <0x325aa0>;
regulator-boot-on;
regulator-always-on;
regulator-min-microvolt = <0x325aa0>;
regulator-name = "fixed-3.3V";
compatible = "regulator-fixed";
phandle = <0x10>;
};
oscillator@0 {
clock-output-names = "clkxtal";
#clock-cells = <0x00>;
clock-frequency = <0x2625a00>;
compatible = "fixed-clock";
phandle = <0x18>;
};
sfp1 {
i2c-bus = <0x24>;
los-gpio = <0x06 0x2e 0x00>;
tx-disable-gpio = <0x06 0x14 0x00>;
tx-fault-gpio = <0x06 0x07 0x00>;
compatible = "sff,sfp";
moddef0-gpio = <0x06 0x31 0x01>;
phandle = <0x1c>;
};
memory@40000000 {
device_type = "memory";
reg = <0x00 0x40000000 0x00 0x80000000>;
};
regulator-5v {
regulator-max-microvolt = <0x4c4b40>;
regulator-boot-on;
regulator-always-on;
regulator-min-microvolt = <0x4c4b40>;
regulator-name = "fixed-5V";
compatible = "regulator-fixed";
phandle = <0x11>;
};
i2c-gpio-1 {
#address-cells = <0x01>;
#size-cells = <0x00>;
compatible = "i2c-gpio";
i2c-gpio,delay-us = <0x02>;
phandle = <0x25>;
scl-gpios = <0x06 0x13 0x06>;
sda-gpios = <0x06 0x12 0x06>;
};
soc {
#address-cells = <0x02>;
#size-cells = <0x02>;
compatible = "simple-bus";
ranges;
syscon@10060000 {
#clock-cells = <0x01>;
compatible = "mediatek,mt7986-sgmiisys_0\0syscon";
reg = <0x00 0x10060000 0x00 0x1000>;
phandle = <0x1a>;
};
infracfg@10001000 {
#clock-cells = <0x01>;
compatible = "mediatek,mt7986-infracfg\0syscon";
reg = <0x00 0x10001000 0x00 0x1000>;
phandle = <0x03>;
};
usb@11200000 {
clock-names = "sys_ck\0xhci_ck\0ref_ck\0mcu_ck\0dma_ck";
reg-names = "mac\0ippc";
vusb33-supply = <0x10>;
interrupts = <0x00 0xad 0x04>;
clocks = <0x03 0x31 0x02 0x3b 0x03 0x32 0x03 0x2f 0x03 0x30>;
vbus-supply = <0x11>;
compatible = "mediatek,mt7986-xhci\0mediatek,mtk-xhci";
status = "okay";
phys = <0x0d 0x03 0x0e 0x04 0x0f 0x03>;
reg = <0x00 0x11200000 0x00 0x2e00 0x00 0x11203e00 0x00 0x100>;
};
spi@1100b000 {
pinctrl-names = "default";
#address-cells = <0x01>;
pinctrl-0 = <0x05>;
clock-names = "parent-clk\0sel-clk\0spi-clk\0hclk";
interrupts = <0x00 0x8d 0x04>;
clocks = <0x02 0x04 0x02 0x1d 0x03 0x24 0x03 0x26>;
#size-cells = <0x00>;
compatible = "mediatek,mt7986-spi-ipm\0mediatek,spi-ipm";
status = "okay";
reg = <0x00 0x1100b000 0x00 0x100>;
cs-gpios = <0x00 0x00>;
};
mmc@11230000 {
pinctrl-names = "default\0state_uhs";
pinctrl-0 = <0x12>;
clock-names = "source\0hclk\0axi_cg\0ahb_cg";
cap-sd-highspeed;
vqmmc-supply = <0x14>;
assigned-clocks = <0x02 0x23 0x02 0x22>;
assigned-clock-parents = <0x07 0x06 0x02 0x12>;
bus-width = <0x04>;
interrupts = <0x00 0x8f 0x04>;
clocks = <0x03 0x28 0x03 0x29 0x03 0x2b 0x03 0x2a>;
vmmc-supply = <0x10>;
compatible = "mediatek,mt7986-mmc";
pinctrl-1 = <0x13>;
status = "okay";
reg = <0x00 0x11230000 0x00 0x1000 0x00 0x11c20000 0x00 0x1000>;
max-frequency = <0x3197500>;
};
serial@11002000 {
clock-names = "baud\0bus";
assigned-clocks = <0x02 0x1e 0x03 0x01>;
assigned-clock-parents = <0x02 0x00 0x02 0x1e>;
interrupts = <0x00 0x7b 0x04>;
clocks = <0x03 0x01 0x03 0x1d>;
compatible = "mediatek,mt7986-uart\0mediatek,mt6577-uart";
status = "okay";
reg = <0x00 0x11002000 0x00 0x400>;
};
apmixedsys@1001e000 {
#clock-cells = <0x01>;
compatible = "mediatek,mt7986-apmixedsys";
reg = <0x00 0x1001e000 0x00 0x1000>;
phandle = <0x07>;
};
t-phy@11e10000 {
#address-cells = <0x02>;
#size-cells = <0x02>;
compatible = "mediatek,mt7986-tphy\0mediatek,generic-tphy-v2";
ranges;
status = "okay";
usb-phy@11e10700 {
clock-names = "ref";
clocks = <0x02 0x35>;
#phy-cells = <0x01>;
reg = <0x00 0x11e10700 0x00 0x900>;
phandle = <0x0e>;
};
usb-phy@11e10000 {
clock-names = "ref\0da_ref";
clocks = <0x02 0x3c 0x02 0x3d>;
#phy-cells = <0x01>;
reg = <0x00 0x11e10000 0x00 0x700>;
phandle = <0x0d>;
};
usb-phy@11e11000 {
clock-names = "ref\0da_ref";
clocks = <0x02 0x3c 0x02 0x3d>;
#phy-cells = <0x01>;
reg = <0x00 0x11e11000 0x00 0x700>;
phandle = <0x0f>;
};
};
trng@1020f000 {
clock-names = "rng";
clocks = <0x03 0x37>;
compatible = "mediatek,mt7986-rng\0mediatek,mt7623-rng";
status = "okay";
reg = <0x00 0x1020f000 0x00 0x100>;
};
t-phy@11c00000 {
#address-cells = <0x02>;
#size-cells = <0x02>;
compatible = "mediatek,mt7986-tphy\0mediatek,generic-tphy-v2";
ranges;
status = "okay";
pcie-phy@11c00000 {
clock-names = "ref";
clocks = <0x18>;
#phy-cells = <0x01>;
reg = <0x00 0x11c00000 0x00 0x20000>;
phandle = <0x15>;
};
};
syscon@10070000 {
#clock-cells = <0x01>;
compatible = "mediatek,mt7986-sgmiisys_1\0syscon";
reg = <0x00 0x10070000 0x00 0x1000>;
phandle = <0x1b>;
};
i2c@11008000 {
clock-div = <0x05>;
pinctrl-names = "default";
#address-cells = <0x01>;
pinctrl-0 = <0x0c>;
clock-names = "main\0dma";
interrupts = <0x00 0x88 0x04>;
#size-cells = <0x00>;
compatible = "mediatek,mt7986-i2c";
status = "okay";
reg = <0x00 0x11008000 0x00 0x90 0x00 0x10217080 0x00 0x80>;
};
watchdog@1001c000 {
#reset-cells = <0x01>;
interrupts = <0x00 0x6e 0x04>;
compatible = "mediatek,mt7986-wdt\0mediatek,mt6589-wdt";
status = "disabled";
reg = <0x00 0x1001c000 0x00 0x1000>;
phandle = <0x1f>;
};
pwm@10048000 {
pinctrl-names = "default";
pinctrl-0 = <0x08 0x09>;
clock-names = "top\0main\0pwm1\0pwm2";
interrupts = <0x00 0x89 0x04>;
#clock-cells = <0x01>;
#pwm-cells = <0x02>;
compatible = "mediatek,mt7986-pwm";
status = "okay";
reg = <0x00 0x10048000 0x00 0x1000>;
};
wifi@18000000 {
pinctrl-names = "default\0dbdc";
mediatek,eeprom-data = <0x86790900 0xc4326 0x60000000 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x1000000 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x800 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x24649090 0x280000 0x5100000 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x21e00 0x21e0002 0x1e00021e 0x22800 0x2280002 0x28000228 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x8080 0x8080fdf7 0x903150d 0x80808080 0x80808080 0x5050d0d 0x1313c6c6 0xc3c3c200 0xc200c2 0x8182 0x8585c2c2 0x82828282 0x858500c2 0xc2000081 0x82858587 0x87c2c200 0x81818285 0x858787c2 0xc2000081 0x82858587 0x87c2c200 0x818285 0x858787c2 0xc2000081 0x82858587 0x87c4c4c2 0xc100c300 0xc3c3c100 0x818383c3 0xc3c3c100 0x81838300 0xc2c2c2c0 0x81828484 0xc3 0xc3c3c100 0x81838386 0x86c3c3c3 0xc1008183 0x838686c2 0xc2c2c081 0x82848486 0x86c3c3c3 0xc1008183 0x838686c3 0xc3c3c100 0x81838386 0x86c3c3c3 0xc1008183 0x83868622 0x28002228 0x222800 0x22280000 0xdddddddd 0xdddddddd 0xddbbbbbb 0xccccccdd 0xdddddddd 0xdddddddd 0xeeeeeecc 0xccccdddd 0xdddddddd 0x4a5662 0x4a 0x56620000 0x4a5662 0x4a 0x56620000 0x88888888 0x33333326 0x26262626 0x26262600 0x33333326 0x26262626 0x26262600 0x33333326 0x26262626 0x26262600 0x33333326 0x26262626 0x26262600 0x00 0xf0f0cc00 0x00 0xaaaa 0xaabbbbbb 0xcccccccc 0xccccbbbb 0xbbbbbbbb 0xbbbbbbaa 0xaaaabbbb 0xbbaaaaaa 0x999999aa 0xaaaabbbb 0xbbcccccc 0x00 0xaaaa 0xaa000000 0xbbbbbbbb 0xbbbbaaaa 0xaa999999 0xaaaaaaaa 0xaaaaaaaa 0xaaaaaaaa 0xaaaaaaaa 0xaaaabbbb 0xbbbbbbbb 0x00 0x00 0x00 0x99999999 0x9999aaaa 0xaaaaaaaa 0x999999aa 0xaaaaaaaa 0xaaaaaaaa 0xaaaaaaaa 0xaaaabbbb 0xbbbbbbbb 0x00 0xeeee 0xeeffffff 0xcccccccc 0xccccdddd 0xddbbbbbb 0xccccccbb 0xbbbbbbbb 0xbbbbbbbb 0xbbbbbbbb 0xbbbbcccc 0xccdddddd 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x88888888 0x88888888 0x88888888 0x88888888 0x88888888 0x88888888 0x88888888 0x88888888 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x6000100 0x1050002 0xff0300 0xf900fe03 0x00 0x00 0x9b 0x6e370000 0x00 0xfc0009 0xa00fe00 0x60700fe 0x70800 0x5000b0a 0x00 0x00 0xe2 0x96460000 0x00 0x400f7 0xf8000300 0xfcfe0003 0xfbfc00 0xee00e3f2 0x00 0x00 0x11 0xbb550000 0x00 0x600f6 0xfc000300 0xfbfe0004 0xfafe00 0xf600ecf2 0x00 0x00 0x1f 0xbf580000 0x00 0x600f5 0xf6000400 0xf8f90004 0xf7f800 0xf700f0f4 0x00 0x00 0x24 0xbe570000 0x00 0x800f8 0xfe000600 0xf8fd0007 0xf9fe00 0xf500f0f4 0x00 0x00 0x2d 0xd6610000 0x00 0x400f7 0xfc000500 0xf7fc0005 0xf7fc00 0xf900f5f8 0x00 0x00 0x26 0xd96e0000 0x00 0x400f7 0xf9000600 0xf5f70005 0xf5f800 0xf900f4f7 0x00 0x00 0x1b 0xce690000 0x00 0x300f8 0xf8000600 0xf6f60004 0xf6f700 0xf900f4f7 0x00 0x00 0x18 0xd8720000 0x00 0x00 0x2404002 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xc1c2c1c2 0x41c341c3 0x3fc13fc1 0x40c13fc2 0x3fc240c1 0x41c040c0 0x3fc23fc2 0x40c13fc2 0x3fc140c0 0x41c040c0 0x3fc33fc3 0x40c23fc2 0x3fc240c1 0x41c040c0 0x3fc23fc2 0x40c23fc2 0x3fc140c1 0x41c040c0 0x00 0x00 0x41c741c7 0xc1c7c1c7 0x00 0x00 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0xa0ce00 0x00 0xb6840000 0x00 0x00 0x00 0x18181818 0x18181818 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x4b5763 0x4b 0x57630000 0x4b5763 0x4b 0x57630000 0x88888888 0x8474759 0x69780849 0x49596d7a 0x849495a 0x6d790848 0x48596c78 0x8484858 0x6a780848 0x48586a78 0x8484858 0x6c78084a 0x4a5b6d79 0x8474759 0x697a0848 0x48596b79 0x8484859 0x6c7a0848 0x48586c79 0x8484857 0x68770848 0x48576877 0x8484857 0x6a77084a 0x4a5a6a77 0x8464659 0x69790848 0x48586b79 0x8484858 0x6c7a0848 0x48596c79 0x8484857 0x68770848 0x48576877 0x8494958 0x6d7a084b 0x4b5c6c77 0x847475a 0x6a7b0849 0x495a6e7c 0x849495a 0x6e7c0849 0x495b6e7c 0x8494959 0x6a7a0849 0x49596a7a 0x84a4a5a 0x6f7d084b 0x4b5c6e7b 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x85848484 0xc3c4c4c5 0xc4c3c33f 0xc3c3c2c2 0xc2c2c03f 0xc3c3c3c4 0xc4c4c33f 0xc2c2c2c2 0xc1c3c1c1 0xc0c08282 0x83848686 0x88880000 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x1111 0x00 0x8080f703 0x10808080 0x80050d13 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xa4 0xce000000 0xb684 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00>;
pinctrl-0 = <0x21 0x22>;
clock-names = "mcu\0ap2conn";
resets = <0x1f 0x17>;
memory-region = <0x20>;
interrupts = <0x00 0xd5 0x04 0x00 0xd6 0x04 0x00 0xd7 0x04 0x00 0xd8 0x04>;
clocks = <0x02 0x32 0x02 0x3e>;
compatible = "mediatek,mt7986-wmac";
pinctrl-1 = <0x23 0x22>;
status = "okay";
reg = <0x00 0x18000000 0x00 0x1000000 0x00 0x10003000 0x00 0x1000 0x00 0x11d10000 0x00 0x1000>;
reset-names = "consys";
};
pinctrl@1001f000 {
reg-names = "gpio\0iocfg_rt\0iocfg_rb\0iocfg_lt\0iocfg_lb\0iocfg_tr\0iocfg_tl\0eint";
gpio-controller;
interrupts = <0x00 0xe1 0x04>;
interrupt-parent = <0x01>;
compatible = "mediatek,mt7986a-pinctrl";
#interrupt-cells = <0x02>;
reg = <0x00 0x1001f000 0x00 0x1000 0x00 0x11c30000 0x00 0x1000 0x00 0x11c40000 0x00 0x1000 0x00 0x11e20000 0x00 0x1000 0x00 0x11e30000 0x00 0x1000 0x00 0x11f00000 0x00 0x1000 0x00 0x11f10000 0x00 0x1000 0x00 0x1000b000 0x00 0x1000>;
phandle = <0x06>;
#gpio-cells = <0x02>;
gpio-ranges = <0x06 0x00 0x00 0x64>;
interrupt-controller;
wf-2g-5g-pins {
phandle = <0x21>;
mux {
function = "wifi";
groups = "wf_2g\0wf_5g";
};
conf {
pins = "WF0_HB1\0WF0_HB2\0WF0_HB3\0WF0_HB4\0WF0_HB0\0WF0_HB0_B\0WF0_HB5\0WF0_HB6\0WF0_HB7\0WF0_HB8\0WF0_HB9\0WF0_HB10\0WF0_TOP_CLK\0WF0_TOP_DATA\0WF1_HB1\0WF1_HB2\0WF1_HB3\0WF1_HB4\0WF1_HB0\0WF1_HB5\0WF1_HB6\0WF1_HB7\0WF1_HB8\0WF1_TOP_CLK\0WF1_TOP_DATA";
drive-strength = <0x04>;
};
};
wf-dbdc-pins {
phandle = <0x23>;
mux {
function = "wifi";
groups = "wf_dbdc";
};
conf {
pins = "WF0_HB1\0WF0_HB2\0WF0_HB3\0WF0_HB4\0WF0_HB0\0WF0_HB0_B\0WF0_HB5\0WF0_HB6\0WF0_HB7\0WF0_HB8\0WF0_HB9\0WF0_HB10\0WF0_TOP_CLK\0WF0_TOP_DATA\0WF1_HB1\0WF1_HB2\0WF1_HB3\0WF1_HB4\0WF1_HB0\0WF1_HB5\0WF1_HB6\0WF1_HB7\0WF1_HB8\0WF1_TOP_CLK\0WF1_TOP_DATA";
drive-strength = <0x04>;
};
};
mmc0-uhs-pins {
phandle = <0x13>;
conf-cmd-dat {
pins = "EMMC_DATA_0\0EMMC_DATA_1\0EMMC_DATA_2\0EMMC_DATA_3\0EMMC_DATA_4\0EMMC_DATA_5\0EMMC_DATA_6\0EMMC_DATA_7\0EMMC_CMD";
drive-strength = <0x04>;
input-enable;
mediatek,pull-up-adv = <0x01>;
};
conf-rst {
pins = "EMMC_RSTB";
drive-strength = <0x04>;
mediatek,pull-up-adv = <0x01>;
};
conf-clk {
pins = "EMMC_CK";
drive-strength = <0x06>;
mediatek,pull-down-adv = <0x02>;
};
mux {
function = "emmc";
groups = "emmc_51";
};
conf-ds {
pins = "EMMC_DSL";
mediatek,pull-down-adv = <0x02>;
};
};
pcie-pins {
phandle = <0x17>;
mux {
function = "pcie";
groups = "pcie_clk\0pcie_pereset";
};
};
spi-flash-pins {
phandle = <0x04>;
mux {
function = "spi";
groups = "spi0\0spi0_wp_hold";
};
};
pwm1-pin-22 {
phandle = <0x09>;
mux {
function = "pwm";
groups = "pwm1_0";
};
};
spic-pins {
phandle = <0x05>;
mux {
function = "spi";
groups = "spi1_0";
};
};
mmc0-pins {
phandle = <0x12>;
conf-cmd-dat {
pins = "EMMC_DATA_0\0EMMC_DATA_1\0EMMC_DATA_2\0EMMC_DATA_3\0EMMC_DATA_4\0EMMC_DATA_5\0EMMC_DATA_6\0EMMC_DATA_7\0EMMC_CMD";
drive-strength = <0x04>;
input-enable;
mediatek,pull-up-adv = <0x01>;
};
conf-rst {
pins = "EMMC_RSTB";
drive-strength = <0x04>;
mediatek,pull-up-adv = <0x01>;
};
conf-clk {
pins = "EMMC_CK";
drive-strength = <0x06>;
mediatek,pull-down-adv = <0x02>;
};
mux {
function = "emmc";
groups = "emmc_51";
};
conf-ds {
pins = "EMMC_DSL";
mediatek,pull-down-adv = <0x02>;
};
};
uart2-pins {
phandle = <0x0b>;
mux {
function = "uart";
groups = "uart2_0_rx_tx";
};
};
pwm0-pin-21 {
phandle = <0x08>;
mux {
function = "pwm";
groups = "pwm0";
};
};
uart1-pins {
phandle = <0x0a>;
mux {
function = "uart";
groups = "uart1_rx_tx";
};
};
wf-led-pins {
phandle = <0x22>;
mux {
function = "led";
groups = "wifi_led";
};
};
i2c-pins-3-4 {
phandle = <0x0c>;
mux {
function = "i2c";
groups = "i2c";
};
};
};
ethernet@15100000 {
#reset-cells = <0x01>;
#address-cells = <0x01>;
clock-names = "fe\0gp2\0gp1\0wocpu1\0wocpu0\0sgmii_tx250m\0sgmii_rx250m\0sgmii_cdr_ref\0sgmii_cdr_fb\0sgmii2_tx250m\0sgmii2_rx250m\0sgmii2_cdr_ref\0sgmii2_cdr_fb\0netsys0\0netsys1";
assigned-clocks = <0x02 0x2e 0x02 0x2f>;
assigned-clock-parents = <0x07 0x01 0x07 0x03>;
interrupts = <0x00 0xc4 0x04 0x00 0xc5 0x04 0x00 0xc6 0x04 0x00 0xc7 0x04>;
clocks = <0x19 0x00 0x19 0x01 0x19 0x02 0x19 0x03 0x19 0x04 0x1a 0x00 0x1a 0x01 0x1a 0x02 0x1a 0x03 0x1b 0x00 0x1b 0x01 0x1b 0x02 0x1b 0x03 0x02 0x2b 0x02 0x2c>;
mediatek,sgmiisys = <0x1a 0x1b>;
#size-cells = <0x00>;
mediatek,ethsys = <0x19>;
compatible = "mediatek,mt7986-eth";
status = "okay";
reg = <0x00 0x15100000 0x00 0x80000>;
mac@0 {
phy-mode = "2500base-x";
compatible = "mediatek,eth-mac";
reg = <0x00>;
phandle = <0x1e>;
fixed-link {
full-duplex;
speed = <0x9c4>;
pause;
};
};
mdio-bus {
#address-cells = <0x01>;
#size-cells = <0x00>;
switch@0 {
reset-gpios = <0x06 0x20 0x00>;
compatible = "mediatek,mt7531";
reg = <0x1f>;
ports {
#address-cells = <0x01>;
#size-cells = <0x00>;
port@0 {
label = "wan";
reg = <0x00>;
};
port@5 {
phy-mode = "2500base-x";
label = "lan4";
managed = "in-band-status";
reg = <0x05>;
sfp = <0x1d>;
};
port@3 {
label = "lan2";
reg = <0x03>;
};
port@1 {
label = "lan0";
reg = <0x01>;
};
port@6 {
phy-mode = "2500base-x";
label = "cpu";
reg = <0x06>;
ethernet = <0x1e>;
fixed-link {
full-duplex;
speed = <0x9c4>;
pause;
};
};
port@4 {
label = "lan3";
reg = <0x04>;
};
port@2 {
label = "lan1";
reg = <0x02>;
};
};
};
};
mac@1 {
phy-mode = "2500base-x";
compatible = "mediatek,eth-mac";
reg = <0x01>;
sfp = <0x1c>;
fixed-link {
full-duplex;
speed = <0x3e8>;
pause;
};
};
};
spi@1100a000 {
pinctrl-names = "default";
#address-cells = <0x01>;
pinctrl-0 = <0x04>;
clock-names = "parent-clk\0sel-clk\0spi-clk\0hclk";
interrupts = <0x00 0x8c 0x04>;
clocks = <0x02 0x04 0x02 0x1c 0x03 0x23 0x03 0x25>;
#size-cells = <0x00>;
compatible = "mediatek,mt7986-spi-ipm\0mediatek,spi-ipm";
status = "okay";
reg = <0x00 0x1100a000 0x00 0x100>;
cs-gpios = <0x00 0x00>;
spi_nand@0 {
spi-tx-buswidth = <0x04>;
spi-max-frequency = <0x989680>;
spi-rx-buswidth = <0x04>;
compatible = "spi-nand";
reg = <0x00>;
partitions {
#address-cells = <0x01>;
#size-cells = <0x01>;
compatible = "fixed-partitions";
partition@380000 {
read-only;
label = "fip";
reg = <0x380000 0x200000>;
};
partition@0 {
read-only;
label = "bl2";
reg = <0x00 0x80000>;
};
partition@80000 {
label = "reserved";
reg = <0x80000 0x300000>;
};
partition@580000 {
label = "ubi";
reg = <0x580000 0x7a80000>;
};
};
};
};
serial@11004000 {
pinctrl-names = "default";
pinctrl-0 = <0x0b>;
clock-names = "baud\0bus";
assigned-clocks = <0x03 0x03>;
assigned-clock-parents = <0x02 0x36>;
interrupts = <0x00 0x7d 0x04>;
clocks = <0x03 0x03 0x03 0x1f>;
compatible = "mediatek,mt7986-uart\0mediatek,mt6577-uart";
status = "okay";
reg = <0x00 0x11004000 0x00 0x400>;
};
interrupt-controller@c000000 {
interrupts = <0x01 0x09 0x04>;
interrupt-parent = <0x01>;
compatible = "arm,gic-v3";
#interrupt-cells = <0x03>;
reg = <0x00 0xc000000 0x00 0x10000 0x00 0xc080000 0x00 0x80000 0x00 0xc400000 0x00 0x2000 0x00 0xc410000 0x00 0x1000 0x00 0xc420000 0x00 0x2000>;
phandle = <0x01>;
interrupt-controller;
};
crypto@10320000 {
clock-names = "infra_eip97_ck";
assigned-clocks = <0x02 0x33>;
assigned-clock-parents = <0x07 0x01>;
interrupts = <0x00 0x74 0x04 0x00 0x75 0x04 0x00 0x76 0x04 0x00 0x77 0x04>;
clocks = <0x03 0x10>;
compatible = "inside-secure,safexcel-eip97";
status = "okay";
interrupt-names = "ring0\0ring1\0ring2\0ring3";
reg = <0x00 0x10320000 0x00 0x40000>;
};
pcie@11280000 {
pinctrl-names = "default";
#address-cells = <0x03>;
phy-names = "pcie-phy";
bus-range = <0x00 0xff>;
pinctrl-0 = <0x17>;
reg-names = "pcie-mac";
interrupts = <0x00 0xa8 0x04>;
clocks = <0x03 0x09 0x03 0x33 0x03 0x34 0x03 0x35 0x03 0x36>;
interrupt-map = <0x00 0x00 0x00 0x01 0x16 0x00 0x00 0x00 0x00 0x02 0x16 0x01 0x00 0x00 0x00 0x03 0x16 0x02 0x00 0x00 0x00 0x04 0x16 0x03>;
#size-cells = <0x02>;
device_type = "pci";
interrupt-map-mask = <0x00 0x00 0x00 0x07>;
compatible = "mediatek,mt7986-pcie\0mediatek,mt8192-pcie";
ranges = <0x82000000 0x00 0x20000000 0x00 0x20000000 0x00 0x10000000>;
#interrupt-cells = <0x01>;
status = "okay";
phys = <0x15 0x02>;
reg = <0x00 0x11280000 0x00 0x4000>;
interrupt-controller {
#address-cells = <0x00>;
#interrupt-cells = <0x01>;
phandle = <0x16>;
interrupt-controller;
};
};
serial@11003000 {
pinctrl-names = "default";
pinctrl-0 = <0x0a>;
clock-names = "baud\0bus";
assigned-clocks = <0x03 0x02>;
assigned-clock-parents = <0x02 0x36>;
interrupts = <0x00 0x7c 0x04>;
clocks = <0x03 0x02 0x03 0x1e>;
compatible = "mediatek,mt7986-uart\0mediatek,mt6577-uart";
status = "okay";
reg = <0x00 0x11003000 0x00 0x400>;
};
syscon@15000000 {
#reset-cells = <0x01>;
#address-cells = <0x01>;
#size-cells = <0x01>;
#clock-cells = <0x01>;
compatible = "mediatek,mt7986-ethsys\0syscon";
reg = <0x00 0x15000000 0x00 0x1000>;
phandle = <0x19>;
};
topckgen@1001b000 {
#clock-cells = <0x01>;
compatible = "mediatek,mt7986-topckgen\0syscon";
reg = <0x00 0x1001b000 0x00 0x1000>;
phandle = <0x02>;
};
};
leds {
compatible = "gpio-leds";
led-1 {
function = "status";
color = <0x03>;
default-state = "off";
gpios = <0x06 0x56 0x00>;
};
led-0 {
function = "power";
color = <0x02>;
default-state = "on";
gpios = <0x06 0x45 0x00>;
};
};
psci {
method = "smc";
compatible = "arm,psci-0.2";
};
gpio-keys {
compatible = "gpio-keys";
wps {
label = "wps";
linux,code = <0x211>;
gpios = <0x06 0x0a 0x01>;
};
factory {
label = "reset";
linux,code = <0x198>;
gpios = <0x06 0x09 0x01>;
};
};
sfp2 {
tx-disable-gpios = <0x06 0x0f 0x00>;
i2c-bus = <0x25>;
mod-def0-gpios = <0x06 0x2f 0x01>;
compatible = "sff,sfp";
tx-fault-gpios = <0x06 0x30 0x00>;
phandle = <0x1d>;
los-gpios = <0x06 0x1f 0x00>;
};
regulator-1p8v {
regulator-max-microvolt = <0x1b7740>;
regulator-boot-on;
regulator-always-on;
regulator-min-microvolt = <0x1b7740>;
regulator-name = "fixed-1.8V";
compatible = "regulator-fixed";
phandle = <0x14>;
};
timer {
interrupts = <0x01 0x0d 0x08 0x01 0x0e 0x08 0x01 0x0b 0x08 0x01 0x0a 0x08>;
interrupt-parent = <0x01>;
compatible = "arm,armv8-timer";
};
aliases {
serial0 = "/soc/serial@11002000";
};
chosen {
u-boot,version = "2022.07";
bootargs = "board=DiagBox earlycon=uart8250,mmio32,0x11002000 debug=7 root=/dev/mmcblk0p6";
u-boot,bootconf = "conf-1";
stdout-path = "serial0:115200n8";
};
i2c-gpio-0 {
#address-cells = <0x01>;
#size-cells = <0x00>;
compatible = "i2c-gpio";
i2c-gpio,delay-us = <0x02>;
phandle = <0x24>;
scl-gpios = <0x06 0x11 0x06>;
sda-gpios = <0x06 0x10 0x06>;
};
cpus {
#address-cells = <0x01>;
#size-cells = <0x00>;
cpu@1 {
device_type = "cpu";
compatible = "arm,cortex-a53";
reg = <0x01>;
enable-method = "psci";
#cooling-cells = <0x02>;
};
cpu@2 {
device_type = "cpu";
compatible = "arm,cortex-a53";
reg = <0x02>;
enable-method = "psci";
#cooling-cells = <0x02>;
};
cpu@0 {
device_type = "cpu";
compatible = "arm,cortex-a53";
reg = <0x00>;
enable-method = "psci";
#cooling-cells = <0x02>;
};
cpu@3 {
device_type = "cpu";
compatible = "arm,cortex-a53";
reg = <0x03>;
enable-method = "psci";
#cooling-cells = <0x02>;
};
};
reserved-memory {
#address-cells = <0x02>;
#size-cells = <0x02>;
ranges;
secmon@43000000 {
reg = <0x00 0x43000000 0x00 0x30000>;
no-map;
};
wmcpu-reserved@4fc00000 {
reg = <0x00 0x4fc00000 0x00 0x100000>;
phandle = <0x20>;
no-map;
};
};
};
And here the output of dmesg | grep nand and mtd
# dmesg | grep 'nand'
[ 1.064452] spi-nand spi0.0: Winbond SPI NAND was found.
[ 1.069776] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
# dmesg | grep 'nmtd'
# dmesg | grep 'mtd'
[ 2.845252] mtdblock: MTD device 'fip' is NAND, please consider using UBI block devices instead.
[ 2.846263] mtdblock: MTD device 'bl2' is NAND, please consider using UBI block devices instead.
[ 2.854526] mtdblock: MTD device 'reserved' is NAND, please consider using UBI block devices instead.
[ 2.854537] mtdblock: MTD device 'ubi' is NAND, please consider using UBI block devices instead.