Changeset View
Changeset View
Standalone View
Standalone View
sys/gnu/dts/mips/K2P.dts
- This file was copied from sys/gnu/dts/mips/SAP-G3200U3.dts.
/dts-v1/; | /dts-v1/; | ||||
#include "mt7621.dtsi" | #include "mt7621.dtsi" | ||||
#include <dt-bindings/gpio/gpio.h> | |||||
#include <dt-bindings/input/input.h> | |||||
/ { | / { | ||||
compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc"; | compatible = "phicomm,k2p", "mediatek,mt7621-soc"; | ||||
model = "STORYLiNK SAP-G3200U3"; | model = "Phicomm K2P"; | ||||
memory@0 { | memory@0 { | ||||
device_type = "memory"; | device_type = "memory"; | ||||
reg = <0x0 0x8000000>; | reg = <0x0 0x8000000>; | ||||
}; | }; | ||||
chosen { | chosen { | ||||
bootargs = "console=ttyS0,57600"; | bootargs = "console=ttyS0,57600"; | ||||
}; | }; | ||||
gpio-leds { | gpio-leds { | ||||
compatible = "gpio-leds"; | compatible = "gpio-leds"; | ||||
usb { | stat_r { | ||||
label = "sap-g3200u3:green:usb"; | label = "k2p:red:status"; | ||||
gpios = <&gpio0 13 1>; | gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; | ||||
}; | }; | ||||
stat_y { | |||||
label = "k2p:yellow:status"; | |||||
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; | |||||
}; | }; | ||||
stat_b { | |||||
label = "k2p:blue:status"; | |||||
gpios = <&gpio0 15 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 = <&gpio0 16 1>; | gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; | ||||
linux,code = <0x198>; | linux,code = <KEY_RESTART>; | ||||
}; | }; | ||||
rfkill { | |||||
label = "rfkill"; | |||||
gpios = <&gpio0 14 1>; | |||||
linux,code = <0xf7>; | |||||
}; | }; | ||||
}; | }; | ||||
}; | |||||
&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", "en25q64"; | |||||
spi-max-frequency = <10000000>; | spi-max-frequency = <10000000>; | ||||
m25p,chunked-io = <32>; | |||||
partition@0 { | partition@0 { | ||||
label = "u-boot"; | label = "u-boot"; | ||||
reg = <0x0 0x30000>; | reg = <0x0 0x30000>; | ||||
read-only; | read-only; | ||||
}; | }; | ||||
partition@30000 { | partition@30000 { | ||||
label = "u-boot-env"; | label = "u-boot-env"; | ||||
reg = <0x30000 0x1000>; | reg = <0x30000 0x10000>; | ||||
read-only; | read-only; | ||||
}; | }; | ||||
partition@31000 { | |||||
label = "config"; | |||||
reg = <0x31000 0xf000>; | |||||
read-only; | |||||
}; | |||||
factory: partition@40000 { | factory: partition@40000 { | ||||
label = "factory"; | label = "factory"; | ||||
reg = <0x40000 0x10000>; | reg = <0x40000 0x10000>; | ||||
read-only; | read-only; | ||||
}; | }; | ||||
partition@50000 { | partition@50000 { | ||||
label = "permanent_config"; | |||||
reg = <0x50000 0x50000>; | |||||
read-only; | |||||
}; | |||||
partition@a0000 { | |||||
label = "firmware"; | label = "firmware"; | ||||
reg = <0x50000 0x7b0000>; | reg = <0xa0000 0xf60000>; | ||||
}; | }; | ||||
}; | }; | ||||
}; | }; | ||||
&pcie { | &pcie { | ||||
status = "okay"; | status = "okay"; | ||||
pcie0 { | pcie0 { | ||||
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 0x0>; | ||||
mediatek,2ghz = <0>; | |||||
}; | }; | ||||
}; | }; | ||||
pcie1 { | |||||
mt76@1,0 { | |||||
reg = <0x0000 0 0 0 0>; | |||||
device_type = "pci"; | |||||
mediatek,mtd-eeprom = <&factory 0x0000>; | |||||
mediatek,5ghz = <0>; | |||||
}; | }; | ||||
}; | |||||
}; | |||||
ðernet { | ðernet { | ||||
mtd-mac-address = <&factory 0xe006>; | mtd-mac-address = <&factory 0xe006>; | ||||
}; | }; | ||||
&pinctrl { | &pinctrl { | ||||
state_default: pinctrl0 { | state_default: pinctrl0 { | ||||
gpio { | gpio { | ||||
ralink,group = "uart3", "jtag"; | ralink,group = "i2c", "jtag"; | ||||
ralink,function = "gpio"; | ralink,function = "gpio"; | ||||
}; | }; | ||||
}; | }; | ||||
}; | }; |