2018-07-14 21:53:47 +00:00
|
|
|
#include "bcm63268.dtsi"
|
|
|
|
|
|
|
|
#include <dt-bindings/input/input.h>
|
2024-02-07 13:48:35 +00:00
|
|
|
#include <dt-bindings/leds/common.h>
|
2018-07-14 21:53:47 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "SKY SR102";
|
2020-01-05 12:14:43 +00:00
|
|
|
compatible = "sky,sr102", "brcm,bcm63168", "brcm,bcm63268";
|
2018-07-14 21:53:47 +00:00
|
|
|
|
2020-05-11 22:36:15 +00:00
|
|
|
aliases {
|
|
|
|
led-boot = &led_power_white;
|
|
|
|
led-failsafe = &led_power_white;
|
|
|
|
led-running = &led_power_white;
|
|
|
|
led-upgrade = &led_power_white;
|
|
|
|
};
|
|
|
|
|
2018-07-14 21:53:47 +00:00
|
|
|
chosen {
|
|
|
|
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
|
|
|
|
stdout-path = "serial0:115200n8";
|
|
|
|
};
|
|
|
|
|
2018-12-30 11:17:25 +00:00
|
|
|
keys {
|
2018-07-14 21:53:47 +00:00
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
poll-interval = <20>;
|
|
|
|
|
|
|
|
wps {
|
|
|
|
label = "wps";
|
|
|
|
gpios = <&pinctrl 33 0>;
|
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
2018-12-11 22:02:04 +00:00
|
|
|
debounce-interval = <60>;
|
2018-07-14 21:53:47 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-30 11:42:53 +00:00
|
|
|
leds {
|
2018-07-14 21:53:47 +00:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
lan1_green {
|
2020-10-10 17:44:02 +00:00
|
|
|
label = "green:lan1";
|
2018-07-14 21:53:47 +00:00
|
|
|
gpios = <&pinctrl 1 1>;
|
|
|
|
};
|
|
|
|
power_red {
|
2024-02-07 13:48:35 +00:00
|
|
|
function = LED_FUNCTION_POWER;
|
|
|
|
color = <LED_COLOR_ID_RED>;
|
2018-07-14 21:53:47 +00:00
|
|
|
gpios = <&pinctrl 2 1>;
|
|
|
|
};
|
|
|
|
wifi_red {
|
2020-10-10 17:44:02 +00:00
|
|
|
label = "red:wifi";
|
2018-07-14 21:53:47 +00:00
|
|
|
gpios = <&pinctrl 3 1>;
|
|
|
|
};
|
|
|
|
inet_red {
|
2020-10-10 17:44:02 +00:00
|
|
|
label = "red:inet";
|
2018-07-14 21:53:47 +00:00
|
|
|
gpios = <&pinctrl 4 1>;
|
|
|
|
};
|
|
|
|
inet_white {
|
2020-10-10 17:44:02 +00:00
|
|
|
label = "white:inet";
|
2018-07-14 21:53:47 +00:00
|
|
|
gpios = <&pinctrl 5 0>;
|
|
|
|
};
|
2020-05-11 22:36:15 +00:00
|
|
|
led_power_white: power_white {
|
2024-02-07 13:48:35 +00:00
|
|
|
function = LED_FUNCTION_POWER;
|
|
|
|
color = <LED_COLOR_ID_WHITE>;
|
2018-07-14 21:53:47 +00:00
|
|
|
gpios = <&pinctrl 6 0>;
|
|
|
|
default-state = "on";
|
|
|
|
};
|
|
|
|
wifi_white {
|
2020-10-10 17:44:02 +00:00
|
|
|
label = "white:wifi";
|
2018-07-14 21:53:47 +00:00
|
|
|
gpios = <&pinctrl 8 0>;
|
|
|
|
};
|
|
|
|
lan2_red {
|
2020-10-10 17:44:02 +00:00
|
|
|
label = "red:lan2";
|
2018-07-14 21:53:47 +00:00
|
|
|
gpios = <&pinctrl 9 1>;
|
|
|
|
};
|
|
|
|
lan3_red {
|
2020-10-10 17:44:02 +00:00
|
|
|
label = "red:lan3";
|
2018-07-14 21:53:47 +00:00
|
|
|
gpios = <&pinctrl 10 1>;
|
|
|
|
};
|
|
|
|
lan4_red {
|
2020-10-10 17:44:02 +00:00
|
|
|
label = "red:lan4";
|
2018-07-14 21:53:47 +00:00
|
|
|
gpios = <&pinctrl 11 1>;
|
|
|
|
};
|
|
|
|
lan1_red {
|
2020-10-10 17:44:02 +00:00
|
|
|
label = "red:lan1";
|
2018-07-14 21:53:47 +00:00
|
|
|
gpios = <&pinctrl 12 1>;
|
|
|
|
};
|
|
|
|
lan2_green {
|
2020-10-10 17:44:02 +00:00
|
|
|
label = "green:lan2";
|
2018-07-14 21:53:47 +00:00
|
|
|
gpios = <&pinctrl 13 0>;
|
|
|
|
};
|
|
|
|
lan3_green {
|
2020-10-10 17:44:02 +00:00
|
|
|
label = "green:lan3";
|
2018-07-14 21:53:47 +00:00
|
|
|
gpios = <&pinctrl 14 1>;
|
|
|
|
};
|
|
|
|
lan4_green {
|
2020-10-10 17:44:02 +00:00
|
|
|
label = "green:lan4";
|
2018-07-14 21:53:47 +00:00
|
|
|
gpios = <&pinctrl 15 1>;
|
|
|
|
};
|
|
|
|
hd_white {
|
2020-10-10 17:44:02 +00:00
|
|
|
label = "white:hd";
|
2018-07-14 21:53:47 +00:00
|
|
|
gpios = <&pinctrl 18 0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&hsspi {
|
2020-05-11 09:49:43 +00:00
|
|
|
status = "okay";
|
2018-07-14 21:53:47 +00:00
|
|
|
|
|
|
|
flash@0 {
|
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
spi-max-frequency = <16666667>;
|
|
|
|
spi-tx-bus-width = <2>;
|
|
|
|
spi-rx-bus-width = <2>;
|
|
|
|
reg = <0>;
|
|
|
|
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partitions {
|
|
|
|
compatible = "brcm,bcm963xx-cfe-nor-partitions";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart0 {
|
2020-05-11 09:49:43 +00:00
|
|
|
status = "okay";
|
2018-07-14 21:53:47 +00:00
|
|
|
};
|