lantiq: VGV7510KW22 - fix pinmux configuration
authorMathias Kresin <dev@kresin.me>
Thu, 26 May 2016 21:11:16 +0000 (23:11 +0200)
committerJohn Crispin <john@phrozen.org>
Fri, 27 May 2016 13:50:17 +0000 (15:50 +0200)
The STP pinmux was initially added in assumption LAN2 led is driven by
it. It worked somehow because STP group and gphy0 led0 share the GPIO.
Do it the right way by adding the gphy0 led0 the gphy function.

According to the author, the SPI node is a copy & paste leftover. Which
makes sense since nothing is connected to the SPI bus on this device.

Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/lantiq/dts/VGV7510KW22.dtsi

index c9045fa7efc2e1ac579c68930f97024fc0d34ea5..ed3a6e8d7858a007f9a9b539b48868fec7165969 100644 (file)
                                        lantiq,pull = <1>;
                                };
                                gphy-leds {
-                                       lantiq,groups = "gphy0 led1",
+                                       lantiq,groups = "gphy0 led0", "gphy0 led1",
                                                        "gphy1 led0", "gphy1 led1";
                                        lantiq,function = "gphy";
                                        lantiq,open-drain = <0>;
-                                       lantiq,pull = <0>;
-                                       lantiq,output = <1>;
-                               };
-                               stp {
-                                       lantiq,groups = "stp";
-                                       lantiq,function = "stp";
                                        lantiq,pull = <2>;
-                                       lantiq,open-drain = <0>;
                                        lantiq,output = <1>;
                                };
                                mdio {
                                        lantiq,pull = <0>;
                                        lantiq,output = <1>;
                                };
-                               spi {
-                                       lantiq,groups = "spi_di", "spi_do", "spi_clk";
-                                       lantiq,function = "spi";
-                               };
                        };
                };
 
-               stp: stp@E100BB0 {
-                       compatible = "lantiq,gpio-stp-xway";
-                       reg = <0xE100BB0 0x40>;
-                       #gpio-cells = <2>;
-                       gpio-controller;
-
-                       lantiq,shadow = <0xff>;
-                       lantiq,groups = <0x1>;
-                       lantiq,dsl = <0x0>;
-                       lantiq,phy1 = <0x7>;
-                       lantiq,phy2 = <0x7>; /* enable gphy0 led2 = LAN2 LED */
-               };
-
                ifxhcd@E101000 {
                        status = "okay";
                        gpios = <&gpio 47 0>;