diff options
author | Mathias Kresin <dev@kresin.me> | 2018-01-01 17:58:30 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-02-20 19:25:17 +0100 |
commit | f519fea4c6dbffc9824b0084b8d720507793754d (patch) | |
tree | 2ecfbcddc029712907717ee5faa9a92b06947b72 /target/linux/lantiq/files-4.14/arch/mips/boot/dts/DGN3500.dtsi | |
parent | 82ae68be70a666618e080c56aa57af41859469b8 (diff) | |
download | upstream-f519fea4c6dbffc9824b0084b8d720507793754d.tar.gz upstream-f519fea4c6dbffc9824b0084b8d720507793754d.tar.bz2 upstream-f519fea4c6dbffc9824b0084b8d720507793754d.zip |
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>
Diffstat (limited to 'target/linux/lantiq/files-4.14/arch/mips/boot/dts/DGN3500.dtsi')
-rw-r--r-- | target/linux/lantiq/files-4.14/arch/mips/boot/dts/DGN3500.dtsi | 106 |
1 files changed, 51 insertions, 55 deletions
diff --git a/target/linux/lantiq/files-4.14/arch/mips/boot/dts/DGN3500.dtsi b/target/linux/lantiq/files-4.14/arch/mips/boot/dts/DGN3500.dtsi index d58d717537..775f3f2917 100644 --- a/target/linux/lantiq/files-4.14/arch/mips/boot/dts/DGN3500.dtsi +++ b/target/linux/lantiq/files-4.14/arch/mips/boot/dts/DGN3500.dtsi @@ -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"; +}; |