forked from Ivasoft/openwrt
lantiq: kernel 4.14: cleanup dts files
Move common used parts to dtsi. Add labels to nodes and reference nodes via labels in dts files. Signed-off-by: Mathias Kresin <dev@kresin.me>
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
led-dsl = &dsl;
|
||||
led-internet = &internet;
|
||||
led-usb = &usb;
|
||||
led-usb = &led_usb;
|
||||
led-wifi = &wifi_green;
|
||||
};
|
||||
|
||||
@@ -22,55 +22,6 @@
|
||||
reg = <0x0 0x4000000>;
|
||||
};
|
||||
|
||||
fpi@10000000 {
|
||||
gpio: pinmux@E100B10 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&state_default>;
|
||||
|
||||
state_default: pinmux {
|
||||
exin {
|
||||
lantiq,groups = "exin1";
|
||||
lantiq,function = "exin";
|
||||
};
|
||||
pci {
|
||||
lantiq,groups = "gnt1", "req1";
|
||||
lantiq,function = "pci";
|
||||
};
|
||||
pci-in {
|
||||
lantiq,groups = "req1";
|
||||
lantiq,output = <0>;
|
||||
lantiq,open-drain = <1>;
|
||||
lantiq,pull = <2>;
|
||||
};
|
||||
pci-out {
|
||||
lantiq,groups = "gnt1";
|
||||
lantiq,output = <1>;
|
||||
lantiq,pull = <0>;
|
||||
};
|
||||
};
|
||||
pins_spi_default: pins_spi_default {
|
||||
spi_in {
|
||||
lantiq,groups = "spi_di";
|
||||
lantiq,function = "spi";
|
||||
};
|
||||
spi_out {
|
||||
lantiq,groups = "spi_do", "spi_clk",
|
||||
"spi_cs4";
|
||||
lantiq,function = "spi";
|
||||
lantiq,output = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
etop@E180000 {
|
||||
phy-mode = "mii";
|
||||
};
|
||||
|
||||
ifxhcd@E101000 {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
rtl8366rb {
|
||||
compatible = "realtek,rtl8366rb";
|
||||
gpio-sda = <&gpio 35 GPIO_ACTIVE_HIGH>;
|
||||
@@ -90,8 +41,6 @@
|
||||
>;
|
||||
};
|
||||
|
||||
|
||||
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
#address-cells = <1>;
|
||||
@@ -129,7 +78,7 @@
|
||||
label = "dgn3500:green:dsl";
|
||||
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
usb: usb {
|
||||
led_usb: usb {
|
||||
label = "dgn3500:green:usb";
|
||||
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
@@ -157,6 +106,49 @@
|
||||
};
|
||||
};
|
||||
|
||||
&gpio {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&state_default>;
|
||||
|
||||
state_default: pinmux {
|
||||
exin {
|
||||
lantiq,groups = "exin1";
|
||||
lantiq,function = "exin";
|
||||
};
|
||||
pci {
|
||||
lantiq,groups = "gnt1", "req1";
|
||||
lantiq,function = "pci";
|
||||
};
|
||||
pci-in {
|
||||
lantiq,groups = "req1";
|
||||
lantiq,output = <0>;
|
||||
lantiq,open-drain = <1>;
|
||||
lantiq,pull = <2>;
|
||||
};
|
||||
pci-out {
|
||||
lantiq,groups = "gnt1";
|
||||
lantiq,output = <1>;
|
||||
lantiq,pull = <0>;
|
||||
};
|
||||
};
|
||||
pins_spi_default: pins_spi_default {
|
||||
spi_in {
|
||||
lantiq,groups = "spi_di";
|
||||
lantiq,function = "spi";
|
||||
};
|
||||
spi_out {
|
||||
lantiq,groups = "spi_do", "spi_clk",
|
||||
"spi_cs4";
|
||||
lantiq,function = "spi";
|
||||
lantiq,output = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&gsw {
|
||||
phy-mode = "mii";
|
||||
};
|
||||
|
||||
&pci0 {
|
||||
status = "okay";
|
||||
gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
|
||||
@@ -169,11 +161,11 @@
|
||||
};
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pins_spi_default>;
|
||||
|
||||
status = "ok";
|
||||
|
||||
m25p80@4 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
@@ -211,3 +203,7 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&usb0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user