Changeset View
Changeset View
Standalone View
Standalone View
sys/gnu/dts/mips/PSG1218.dtsi
- This file was copied from sys/gnu/dts/mips/Y1.dtsi.
#include "mt7620a.dtsi" | #include "mt7620a.dtsi" | ||||
#include <dt-bindings/gpio/gpio.h> | |||||
#include <dt-bindings/input/input.h> | |||||
/ { | / { | ||||
chosen { | compatible = "phicomm,psg1218", "ralink,mt7620a-soc"; | ||||
bootargs = "console=ttyS0,115200"; | |||||
}; | |||||
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 = <&gpio0 11 1>; | gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; | ||||
linux,code = <0x198>; | linux,code = <KEY_RESTART>; | ||||
}; | }; | ||||
}; | }; | ||||
}; | }; | ||||
&gpio0 { | &gpio0 { | ||||
status = "okay"; | status = "okay"; | ||||
}; | }; | ||||
&gpio2 { | |||||
status = "okay"; | |||||
}; | |||||
&gpio3 { | |||||
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>; | ||||
read-only; | read-only; | ||||
}; | }; | ||||
partition@30000 { | partition@20000 { | ||||
label = "u-boot-env"; | label = "u-boot-env"; | ||||
reg = <0x30000 0x10000>; | reg = <0x30000 0x10000>; | ||||
read-only; | read-only; | ||||
}; | }; | ||||
factory: partition@40000 { | factory: partition@30000 { | ||||
label = "factory"; | label = "factory"; | ||||
reg = <0x40000 0x10000>; | reg = <0x40000 0x10000>; | ||||
read-only; | read-only; | ||||
}; | }; | ||||
partition@50000 { | partition@40000 { | ||||
label = "firmware"; | label = "firmware"; | ||||
reg = <0x50000 0xfb0000>; | reg = <0x50000 0x7b0000>; | ||||
}; | }; | ||||
}; | }; | ||||
}; | }; | ||||
&ehci { | |||||
status = "okay"; | |||||
}; | |||||
&ohci { | |||||
status = "okay"; | |||||
}; | |||||
&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>; | ||||
}; | }; | ||||
}; | }; | ||||
}; | }; | ||||
&wmac { | &wmac { | ||||
ralink,mtd-eeprom = <&factory 0>; | ralink,mtd-eeprom = <&factory 0>; | ||||
}; | |||||
&pinctrl { | |||||
state_default: pinctrl0 { | |||||
gpio { | |||||
ralink,group = "uartf", "wled", "nd_sd"; | |||||
ralink,function = "gpio"; | |||||
}; | |||||
pa { | |||||
ralink,group = "pa"; | |||||
ralink,function = "pa"; | |||||
}; | |||||
}; | |||||
}; | }; |