mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 00:41:17 +00:00
d9753f0ec5
This patch fixes wrong usage of debounce-interval subnode property of gpio-keys-polled nodes, which was used inproperly in parent node, but it belongs to the subnodes, excerpt from the docs: Optional subnode-properties: - debounce-interval: Debouncing interval time in milliseconds. If not specified defaults to 5. And the docs are up to date as the source code matches that description as well: if (fwnode_property_read_u32(child, "debounce-interval", &button->debounce_interval)) button->debounce_interval = 5; While at it, I've also re-formatted gpio-keys-polled nodes, usually just adding new lines after every key subnode. Cc: Tomasz Maciej Nowak <tomek_n@o2.pl> Cc: Matt Merhar <mattmerhar@protonmail.com> Cc: Jonas Gorski <jonas.gorski@gmail.com> Signed-off-by: Petr Štetiar <ynezz@true.cz>
147 lines
2.2 KiB
Plaintext
147 lines
2.2 KiB
Plaintext
/dts-v1/;
|
|
|
|
#include "bcm6328.dtsi"
|
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
/ {
|
|
model = "Sercomm AD1018 (SPI flash mod)";
|
|
compatible = "sercomm,ad1018-nor", "brcm,bcm6328";
|
|
|
|
chosen {
|
|
bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
|
|
stdout-path = "serial0:115200n8";
|
|
};
|
|
|
|
gpio-keys-polled {
|
|
compatible = "gpio-keys-polled";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
poll-interval = <20>;
|
|
|
|
wps {
|
|
label = "wps";
|
|
gpios = <&pinctrl 24 1>;
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
debounce-interval = <60>;
|
|
};
|
|
|
|
wifi {
|
|
label = "wifi";
|
|
gpios = <&pinctrl 25 1>;
|
|
linux,code = <KEY_WLAN>;
|
|
debounce-interval = <60>;
|
|
};
|
|
|
|
reset {
|
|
label = "reset";
|
|
gpios = <&pinctrl 31 1>;
|
|
linux,code = <KEY_RESTART>;
|
|
debounce-interval = <60>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&pinctrl {
|
|
pinctrl_leds: leds {
|
|
function = "led";
|
|
pins = "gpio0", "gpio1";
|
|
};
|
|
};
|
|
|
|
&leds {
|
|
status = "ok";
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_leds &pinctrl_serial_led
|
|
&pinctrl_ephy0_spd_led &pinctrl_ephy1_act_led
|
|
&pinctrl_ephy2_act_led &pinctrl_ephy3_act_led>;
|
|
|
|
brcm,serial-leds;
|
|
brcm,serial-shift-inv;
|
|
brcm,serial-dat-low;
|
|
|
|
inet_red@0 {
|
|
reg = <0>;
|
|
active-low;
|
|
label = "AD1018:red:internet";
|
|
};
|
|
|
|
inet_green@1 {
|
|
reg = <1>;
|
|
active-low;
|
|
label = "AD1018:green:internet";
|
|
};
|
|
|
|
power_green@8 {
|
|
reg = <8>;
|
|
active-low;
|
|
label = "AD1018:green:power";
|
|
default-state = "on";
|
|
};
|
|
|
|
adsl_green@10 {
|
|
reg = <10>;
|
|
active-low;
|
|
label = "AD1018:green:adsl";
|
|
};
|
|
|
|
adsl_red@11 {
|
|
reg = <11>;
|
|
active-low;
|
|
label = "AD1018:red:adsl";
|
|
};
|
|
|
|
phone_green@12 {
|
|
reg = <12>;
|
|
active-low;
|
|
label = "AD1018:green:phone";
|
|
};
|
|
|
|
wps_green@13 {
|
|
reg = <13>;
|
|
active-low;
|
|
label = "AD1018:green:wps";
|
|
};
|
|
|
|
wifi_green@14 {
|
|
reg = <14>;
|
|
active-low;
|
|
label = "AD1018:green:wifi";
|
|
};
|
|
|
|
usb_green@15 {
|
|
reg = <15>;
|
|
active-low;
|
|
label = "AD1018:green:usb";
|
|
};
|
|
|
|
ephy0_spd@17 {
|
|
reg = <17>;
|
|
brcm,hardware-controlled;
|
|
};
|
|
};
|
|
|
|
&hsspi {
|
|
status = "ok";
|
|
|
|
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 {
|
|
status = "ok";
|
|
};
|