Changeset View
Changeset View
Standalone View
Standalone View
sys/gnu/dts/mips/MIWIFI-MINI.dts
- This file was copied to sys/gnu/dts/mips/ZBT-APE522II.dts.
/dts-v1/; | /dts-v1/; | ||||
#include "mt7620a.dtsi" | #include "mt7620a.dtsi" | ||||
#include <dt-bindings/gpio/gpio.h> | |||||
#include <dt-bindings/input/input.h> | |||||
/ { | / { | ||||
compatible = "xiaomi,miwifi-mini", "ralink,mt7620a-soc"; | compatible = "xiaomi,miwifi-mini", "ralink,mt7620a-soc"; | ||||
model = "Xiaomi MiWiFi Mini"; | model = "Xiaomi MiWiFi Mini"; | ||||
chosen { | chosen { | ||||
bootargs = "console=ttyS0,115200"; | bootargs = "console=ttyS0,115200"; | ||||
}; | }; | ||||
gpio-leds { | gpio-leds { | ||||
compatible = "gpio-leds"; | compatible = "gpio-leds"; | ||||
blue { | blue { | ||||
label = "miwifi-mini:blue:status"; | label = "miwifi-mini:blue:status"; | ||||
gpios = <&gpio1 0 1>; | gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; | ||||
}; | }; | ||||
yellow { | yellow { | ||||
label = "miwifi-mini:yellow:status"; | label = "miwifi-mini:yellow:status"; | ||||
gpios = <&gpio1 2 1>; | gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; | ||||
}; | }; | ||||
red { | red { | ||||
label = "miwifi-mini:red:status"; | label = "miwifi-mini:red:status"; | ||||
gpios = <&gpio1 5 1>; | gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; | ||||
}; | }; | ||||
}; | }; | ||||
gpio-keys-polled { | gpio-keys-polled { | ||||
compatible = "gpio-keys-polled"; | compatible = "gpio-keys-polled"; | ||||
#address-cells = <1>; | #address-cells = <1>; | ||||
#size-cells = <0>; | #size-cells = <0>; | ||||
poll-interval = <20>; | poll-interval = <20>; | ||||
reset { | reset { | ||||
label = "reset"; | label = "reset"; | ||||
gpios = <&gpio1 6 0>; | gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; | ||||
linux,code = <0x198>; | linux,code = <KEY_RESTART>; | ||||
}; | }; | ||||
}; | }; | ||||
}; | }; | ||||
&gpio0 { | &gpio0 { | ||||
status = "okay"; | status = "okay"; | ||||
}; | }; | ||||
&gpio1 { | &gpio1 { | ||||
status = "okay"; | status = "okay"; | ||||
}; | }; | ||||
&gpio2 { | &gpio2 { | ||||
status = "okay"; | status = "okay"; | ||||
}; | }; | ||||
&spi0 { | &spi0 { | ||||
status = "okay"; | status = "okay"; | ||||
m25p80@0 { | m25p80@0 { | ||||
#address-cells = <1>; | #address-cells = <1>; | ||||
#size-cells = <1>; | #size-cells = <1>; | ||||
compatible = "jedec,spi-nor"; | compatible = "jedec,spi-nor"; | ||||
reg = <0>; | reg = <0>; | ||||
linux,modalias = "m25p80", "w25q128"; | |||||
spi-max-frequency = <10000000>; | spi-max-frequency = <10000000>; | ||||
partition@0 { | partition@0 { | ||||
label = "u-boot"; | label = "u-boot"; | ||||
reg = <0x0 0x30000>; | reg = <0x0 0x30000>; | ||||
}; | }; | ||||
partition@30000 { | partition@30000 { | ||||
Show All 37 Lines | |||||
&ohci { | &ohci { | ||||
status = "okay"; | status = "okay"; | ||||
}; | }; | ||||
ðernet { | ðernet { | ||||
pinctrl-names = "default"; | pinctrl-names = "default"; | ||||
pinctrl-0 = <&ephy_pins>; | pinctrl-0 = <&ephy_pins>; | ||||
mtd-mac-address = <&factory 0x4>; | mtd-mac-address = <&factory 0x28>; | ||||
mediatek,portmap = "llllw"; | mediatek,portmap = "llllw"; | ||||
}; | }; | ||||
&wmac { | &wmac { | ||||
ralink,mtd-eeprom = <&factory 0>; | ralink,mtd-eeprom = <&factory 0>; | ||||
pinctrl-names = "default"; | |||||
pinctrl-0 = <&pa_pins>; | |||||
}; | }; | ||||
&pcie { | &pcie { | ||||
status = "okay"; | status = "okay"; | ||||
pcie-bridge { | pcie-bridge { | ||||
mt76@0,0 { | mt76@0,0 { | ||||
reg = <0x0000 0 0 0 0>; | reg = <0x0000 0 0 0 0>; | ||||
device_type = "pci"; | device_type = "pci"; | ||||
mediatek,mtd-eeprom = <&factory 0x8000>; | mediatek,mtd-eeprom = <&factory 0x8000>; | ||||
mediatek,2ghz = <0>; | ieee80211-freq-limit = <5000000 6000000>; | ||||
}; | }; | ||||
}; | }; | ||||
}; | }; | ||||
&pinctrl { | &pinctrl { | ||||
state_default: pinctrl0 { | state_default: pinctrl0 { | ||||
gpio { | gpio { | ||||
ralink,group = "i2c", "rgmii1"; | ralink,group = "i2c", "rgmii1"; | ||||
ralink,function = "gpio"; | ralink,function = "gpio"; | ||||
}; | |||||
pa { | |||||
ralink,group = "pa"; | |||||
ralink,function = "pa"; | |||||
}; | }; | ||||
}; | }; | ||||
}; | }; |