mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-22 04:56:15 +00:00
4f4cb52e24
73a9f9f857947bc63fef1aefb7e2e4b906fb9d2b added support. Let's use it. Calibration data is not yet supported. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16256 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
149 lines
2.5 KiB
Plaintext
149 lines
2.5 KiB
Plaintext
#include "mt7621_mikrotik.dtsi"
|
|
|
|
/ {
|
|
compatible = "mikrotik,routerboard-m33g", "mediatek,mt7621-soc";
|
|
model = "MikroTik RouterBOARD M33G";
|
|
|
|
aliases {
|
|
led-boot = &led_usr;
|
|
led-failsafe = &led_usr;
|
|
led-running = &led_usr;
|
|
led-upgrade = &led_usr;
|
|
label-mac-device = &gmac1;
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
led_usr: usr {
|
|
label = "green:usr";
|
|
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
};
|
|
|
|
pcie0_vcc_reg {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "pcie0_vcc";
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
|
|
enable-active-high;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
};
|
|
|
|
pcie1_vcc_reg {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "pcie1_vcc";
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
|
|
enable-active-high;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
};
|
|
|
|
pcie2_vcc_reg {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "pcie2_vcc";
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
|
|
enable-active-high;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
};
|
|
|
|
usb_vcc_reg {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "usb_vcc";
|
|
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
|
|
enable-active-high;
|
|
regulator-always-on;
|
|
};
|
|
};
|
|
|
|
&spi0 {
|
|
flash@1 {
|
|
compatible = "jedec,spi-nor";
|
|
reg = <1>;
|
|
spi-max-frequency = <33000000>;
|
|
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
// Region <0x0 0x40000> seems reserved by OEM
|
|
|
|
partition@40000 {
|
|
compatible = "mikrotik,minor";
|
|
label = "firmware";
|
|
reg = <0x040000 0xfc0000>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&gmac1 {
|
|
status = "okay";
|
|
label = "wan";
|
|
phy-handle = <ðphy0>;
|
|
|
|
nvmem-cells = <&macaddr_hard 0>;
|
|
nvmem-cell-names = "mac-address";
|
|
};
|
|
|
|
ðphy0 {
|
|
/delete-property/ interrupts;
|
|
};
|
|
|
|
&switch0 {
|
|
ports {
|
|
port@1 {
|
|
status = "okay";
|
|
label = "lan1";
|
|
|
|
nvmem-cells = <&macaddr_hard 1>;
|
|
nvmem-cell-names = "mac-address";
|
|
};
|
|
|
|
port@2 {
|
|
status = "okay";
|
|
label = "lan2";
|
|
|
|
nvmem-cells = <&macaddr_hard 2>;
|
|
nvmem-cell-names = "mac-address";
|
|
};
|
|
};
|
|
};
|
|
|
|
&state_default {
|
|
gpio {
|
|
groups = "uart2", "wdt";
|
|
function = "gpio";
|
|
};
|
|
};
|
|
|
|
&sdhci {
|
|
status = "okay";
|
|
};
|
|
|
|
&i2c {
|
|
status = "okay";
|
|
};
|
|
|
|
&pcie {
|
|
status = "okay";
|
|
};
|
|
|
|
&uartlite3 {
|
|
status = "okay";
|
|
};
|