9
0
Fork 0
barebox/arch/mips/dts/black-swift.dts

67 lines
944 B
Plaintext

/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <mips/qca/ar9331.dtsi>
/ {
model = "Black Swift";
compatible = "smartlx,black-swift";
aliases {
spiflash = &spiflash;
};
memory@0 {
device_type = "memory";
reg = <0x00000000 0x4000000>;
};
buttons {
compatible = "gpio-keys";
s1 {
label = "S1";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
leds {
compatible = "gpio-leds";
s1 {
label = "LED1";
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};
};
&ref {
clock-frequency = <25000000>;
};
&uart {
status = "okay";
};
&gpio {
status = "okay";
};
&spi {
num-chipselects = <1>;
status = "okay";
/* Winbond W25Q128FV SPI flash */
spiflash: w25q128@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "winbond,w25q128", "jedec,spi-nor";
spi-max-frequency = <104000000>;
reg = <0>;
};
};