mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 22:23:27 +00:00
621297e867
The "/dts-v1/;" identifier is supposed to be present once at the top of a device tree file after the includes have been processed. In ramips, we therefore requested to have in the DTS files so far, and omit it in the DTSI files. However, essentially the syntax of the parent mtxxxx/rtxxxx DTSI files already determines the DTS version, so putting it into the DTS files is just a useless repetition. Consequently, this patch puts the dts-v1 statement into the top-level SoC-based DTSI files, and removes all other occurences. Since the dts-v1 statement needs to be before any other definitions, this also moves the includes accordingly where necessary. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
31 lines
597 B
Plaintext
31 lines
597 B
Plaintext
#include "rt5350_olimex_rt5350f-olinuxino.dtsi"
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
/ {
|
|
compatible = "olimex,rt5350f-olinuxino-evb", "ralink,rt5350-soc";
|
|
model = "Olimex RT5350F-OLinuXino-EVB";
|
|
|
|
gpio_export {
|
|
compatible = "gpio-export";
|
|
#size-cells = <0>;
|
|
|
|
relay1 {
|
|
gpio-export,name = "relay1";
|
|
gpio-export,output = <0>;
|
|
gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
relay2 {
|
|
gpio-export,name = "relay2";
|
|
gpio-export,output = <0>;
|
|
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
button {
|
|
gpio-export,name = "button";
|
|
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
};
|