ramips: fix whitespace and comment issues in dts

Fix space vs. tabs issue and trainling whitespaces. Use C style
comments or drop the comments if they explain what is already to see in
the devicetree parameters.

Signed-off-by: Mathias Kresin <dev@kresin.me>
This commit is contained in:
Mathias Kresin 2018-07-22 10:33:42 +02:00
parent 53624c1702
commit bfd65fc4ab
28 changed files with 80 additions and 84 deletions

View File

@ -14,11 +14,6 @@
gpio-leds { gpio-leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
// Only USB LED is connected to GPIO.
// All of other LEDs are connected directly to
// switch, WiFi chip, Vcc, so they are not controllable
// via GPIO
usb { usb {
label = "11acnas:green:usb"; label = "11acnas:green:usb";
gpios = <&gpio0 27 GPIO_ACTIVE_LOW>; gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;

View File

@ -94,9 +94,11 @@
realtek,extif0 = <1 0 1 1 1 1 1 1 2>; realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
}; };
/* Unclear if this is the correct gpio setup; the USB ports are /*
unpopulated on a stock BR-6475nD, even though the hardware exists * Unclear if this is the correct gpio setup; the USB ports are
and the headers are there. */ * unpopulated on a stock BR-6475nD, even though the hardware exists
* and the headers are there.
*/
/* /*
gpio_export { gpio_export {
compatible = "gpio-export"; compatible = "gpio-export";

View File

@ -48,20 +48,24 @@
gpio-export { gpio-export {
compatible = "gpio-export"; compatible = "gpio-export";
// Used to enable power-over-ethernet passthrough from port0 to port1. /*
// Disable passthrough by default to prevent accidental equipment damage. * Used to enable power-over-ethernet passthrough from port0 to port1.
* Disable passthrough by default to prevent accidental equipment damage.
*/
poe { poe {
gpio-export,name = "poe-passthrough"; gpio-export,name = "poe-passthrough";
gpio-export,output = <1>; // OUT_INIT_HIGH gpio-export,output = <1>;
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; // GPIO 11, ACTIVE_LOW gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
}; };
}; };
gpio-leds { gpio-leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
// The following leds are defined in the ArcOS firmware, but reportedly /*
// not present in the Freestation5 device. * The following leds are defined in the ArcOS firmware, but reportedly
* not present in the Freestation5 device.
*/
wifi { wifi {
label = "freestation5:unknown:wifi"; label = "freestation5:unknown:wifi";
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;

View File

@ -53,7 +53,7 @@
linux,code = <BTN_0>; linux,code = <BTN_0>;
}; };
BTN_1 { BTN_1 {
label = "BTN_1"; label = "BTN_1";
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
linux,code = <BTN_1>; linux,code = <BTN_1>;

View File

@ -120,14 +120,14 @@
}; };
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 = "firmware"; label = "firmware";
reg = <0x50000 0xfb0000>; reg = <0x50000 0xfb0000>;
}; };
}; };
}; };

View File

@ -48,7 +48,7 @@
linux,code = <BTN_0>; linux,code = <BTN_0>;
}; };
BTN_1 { BTN_1 {
label = "BTN_1"; label = "BTN_1";
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
linux,code = <BTN_1>; linux,code = <BTN_1>;

View File

@ -48,7 +48,7 @@
linux,code = <BTN_0>; linux,code = <BTN_0>;
}; };
BTN_1 { BTN_1 {
label = "BTN_1"; label = "BTN_1";
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
linux,code = <BTN_1>; linux,code = <BTN_1>;

View File

@ -22,15 +22,15 @@
}; };
}; };
gpio-keys-polled { gpio-keys-polled {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
poll-interval = <20>; poll-interval = <20>;
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };
}; };

View File

@ -109,20 +109,20 @@
}; };
&gpio0 { &gpio0 {
status = "okay"; status = "okay";
}; };
&gpio1 { &gpio1 {
status = "okay"; status = "okay";
}; };
&i2c { &i2c {
status = "okay"; status = "okay";
}; };
&uart { &uart {
status = "okay"; status = "okay";
reset-names = "gpio uartf"; reset-names = "gpio uartf";
}; };
&pinctrl { &pinctrl {

View File

@ -104,7 +104,6 @@
label = "firmware"; label = "firmware";
reg = <0x50000 0xfb0000>; reg = <0x50000 0xfb0000>;
}; };
}; };
}; };

View File

@ -113,7 +113,6 @@
reg = <0xf000 0x71000>; reg = <0xf000 0x71000>;
read-only; read-only;
}; };
}; };
w25q128@1 { w25q128@1 {

View File

@ -3,10 +3,10 @@
/ { / {
compatible = "olimex,rt5350f-olinuxino", "ralink,rt5350-soc"; compatible = "olimex,rt5350f-olinuxino", "ralink,rt5350-soc";
aliases { aliases {
serial0 = &uartlite; serial0 = &uartlite;
serial1 = &uart; serial1 = &uart;
}; };
}; };

View File

@ -83,7 +83,6 @@
label = "firmware"; label = "firmware";
reg = <0x50000 0xfb0000>; reg = <0x50000 0xfb0000>;
}; };
}; };
}; };

View File

@ -27,17 +27,17 @@
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
poll-interval = <20>; poll-interval = <20>;
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };
gpio_export { gpio_export {

View File

@ -77,10 +77,12 @@
}; };
&spi0 { &spi0 {
/* This board has 2Mb spi flash soldered in and visible /*
from manufacturer's firmware. * This board has 2Mb spi flash soldered in and visible
But this SoC shares spi and nand pins, * from manufacturer's firmware.
and current driver does't handle this sharing well */ * But this SoC shares spi and nand pins,
* and current driver doesn't handle this sharing well
*/
status = "disabled"; status = "disabled";
m25p80@0 { m25p80@0 {

View File

@ -13,11 +13,6 @@
gpio-leds { gpio-leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
// Only USB LED is connected to GPIO.
// All of other LEDs are connected directly to
// switch, WiFi chip, Vcc, so they are not controllable
// via GPIO
usb { usb {
label = "w2914nsv2:green:usb"; label = "w2914nsv2:green:usb";
gpios = <&gpio0 27 GPIO_ACTIVE_LOW>; gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;

View File

@ -49,7 +49,7 @@
}; };
&i2c { &i2c {
status = "okay"; status = "okay";
}; };
&spi0 { &spi0 {

View File

@ -133,7 +133,7 @@
&pinctrl { &pinctrl {
state_default: pinctrl0 { state_default: pinctrl0 {
gpio { gpio {
ralink,group = "rgmii2", "mdio", "wdt"; ralink,group = "rgmii2", "mdio", "wdt";
ralink,function = "gpio"; ralink,function = "gpio";
}; };
}; };

View File

@ -137,8 +137,10 @@
&pcie { &pcie {
status = "okay"; status = "okay";
// WRC-1167GHBK2-S has MT7615D for 2.4/5 GHz wifi, /*
// but it's not supported in OpenWrt. * WRC-1167GHBK2-S has MT7615D for 2.4/5 GHz wifi,
* but it's not supported in OpenWrt.
*/
}; };
&xhci { &xhci {

View File

@ -167,8 +167,7 @@
&pcie { &pcie {
status = "okay"; status = "okay";
// WRC-2533GST has MT7615 for 2.4/5 GHz wifi, /* WRC-2533GST has MT7615 for 2.4/5 GHz wifi, but it's not supported */
// but it's not supported in OpenWrt.
}; };
&xhci { &xhci {

View File

@ -13,11 +13,11 @@
gpio_export { gpio_export {
compatible = "gpio-export"; compatible = "gpio-export";
#size-cells = <0>; #size-cells = <0>;
/* GPIO 54、55、56 USB1、2、3 */
usb0 { usb0 {
gpio-export,name = "usb0"; gpio-export,name = "usb0";
gpio-export,output = <1>; // GPIOF_OUT_INIT_HIGH gpio-export,output = <1>;
gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>; // GPIO2:40+14=GPIO 54 gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>;
}; };
usb1 { usb1 {
gpio-export,name = "usb1"; gpio-export,name = "usb1";

View File

@ -155,13 +155,13 @@
}; };
cpc: cpc@1fbf0000 { cpc: cpc@1fbf0000 {
compatible = "mtk,mt7621-cpc"; compatible = "mtk,mt7621-cpc";
reg = <0x1fbf0000 0x8000>; reg = <0x1fbf0000 0x8000>;
}; };
mc: mc@1fbf8000 { mc: mc@1fbf8000 {
compatible = "mtk,mt7621-mc"; compatible = "mtk,mt7621-mc";
reg = <0x1fbf8000 0x8000>; reg = <0x1fbf8000 0x8000>;
}; };
uartlite: uartlite@c00 { uartlite: uartlite@c00 {