Skip to content

Commit

Permalink
Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/arm/arm-soc

Pull ARM SoC fixes from Olof Johansson:
 "A couple of late-arriving fixes before final 4.13:

   - A few reverts of DT bindings on Allwinner for their ethernet
     driver. Discussion didn't converge, and since bindings are
     considered ABI it makes sense to revert instead of having to
     support two bindings long-term.

   - A fix to enumerate GPIOs properly on Marvell Armada AP806"

* tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
  arm64: dts: marvell: fix number of GPIOs in Armada AP806 description
  arm: dts: sunxi: Revert EMAC changes
  arm64: dts: allwinner: Revert EMAC changes
  dt-bindings: net: Revert sun8i dwmac binding
  • Loading branch information
torvalds committed Sep 2, 2017
2 parents f8c6d72 + 6f71a92 commit 54f70f5
Show file tree
Hide file tree
Showing 20 changed files with 2 additions and 349 deletions.
84 changes: 0 additions & 84 deletions Documentation/devicetree/bindings/net/dwmac-sun8i.txt

This file was deleted.

9 changes: 0 additions & 9 deletions arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@

aliases {
serial0 = &uart0;
/* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */
ethernet0 = &emac;
ethernet1 = &xr819;
};

Expand Down Expand Up @@ -104,13 +102,6 @@
status = "okay";
};

&emac {
phy-handle = <&int_mii_phy>;
phy-mode = "mii";
allwinner,leds-active-low;
status = "okay";
};

&mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins_a>;
Expand Down
19 changes: 0 additions & 19 deletions arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
compatible = "sinovoip,bpi-m2-plus", "allwinner,sun8i-h3";

aliases {
ethernet0 = &emac;
serial0 = &uart0;
serial1 = &uart1;
};
Expand Down Expand Up @@ -115,30 +114,12 @@
status = "okay";
};

&emac {
pinctrl-names = "default";
pinctrl-0 = <&emac_rgmii_pins>;
phy-supply = <&reg_gmac_3v3>;
phy-handle = <&ext_rgmii_phy>;
phy-mode = "rgmii";

allwinner,leds-active-low;
status = "okay";
};

&ir {
pinctrl-names = "default";
pinctrl-0 = <&ir_pins_a>;
status = "okay";
};

&mdio {
ext_rgmii_phy: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0>;
};
};

&mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>;
Expand Down
7 changes: 0 additions & 7 deletions arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,3 @@
model = "FriendlyARM NanoPi NEO";
compatible = "friendlyarm,nanopi-neo", "allwinner,sun8i-h3";
};

&emac {
phy-handle = <&int_mii_phy>;
phy-mode = "mii";
allwinner,leds-active-low;
status = "okay";
};
8 changes: 0 additions & 8 deletions arch/arm/boot/dts/sun8i-h3-orangepi-2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
aliases {
serial0 = &uart0;
/* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */
ethernet0 = &emac;
ethernet1 = &rtl8189;
};

Expand Down Expand Up @@ -118,13 +117,6 @@
status = "okay";
};

&emac {
phy-handle = <&int_mii_phy>;
phy-mode = "mii";
allwinner,leds-active-low;
status = "okay";
};

&ir {
pinctrl-names = "default";
pinctrl-0 = <&ir_pins_a>;
Expand Down
8 changes: 0 additions & 8 deletions arch/arm/boot/dts/sun8i-h3-orangepi-one.dts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
compatible = "xunlong,orangepi-one", "allwinner,sun8i-h3";

aliases {
ethernet0 = &emac;
serial0 = &uart0;
};

Expand Down Expand Up @@ -98,13 +97,6 @@
status = "okay";
};

&emac {
phy-handle = <&int_mii_phy>;
phy-mode = "mii";
allwinner,leds-active-low;
status = "okay";
};

&mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>;
Expand Down
5 changes: 0 additions & 5 deletions arch/arm/boot/dts/sun8i-h3-orangepi-pc-plus.dts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@
};
};

&emac {
/* LEDs changed to active high on the plus */
/delete-property/ allwinner,leds-active-low;
};

&mmc1 {
pinctrl-names = "default";
pinctrl-0 = <&mmc1_pins_a>;
Expand Down
8 changes: 0 additions & 8 deletions arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
compatible = "xunlong,orangepi-pc", "allwinner,sun8i-h3";

aliases {
ethernet0 = &emac;
serial0 = &uart0;
};

Expand Down Expand Up @@ -114,13 +113,6 @@
status = "okay";
};

&emac {
phy-handle = <&int_mii_phy>;
phy-mode = "mii";
allwinner,leds-active-low;
status = "okay";
};

&ir {
pinctrl-names = "default";
pinctrl-0 = <&ir_pins_a>;
Expand Down
22 changes: 0 additions & 22 deletions arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@
model = "Xunlong Orange Pi Plus / Plus 2";
compatible = "xunlong,orangepi-plus", "allwinner,sun8i-h3";

aliases {
ethernet0 = &emac;
};

reg_gmac_3v3: gmac-3v3 {
compatible = "regulator-fixed";
regulator-name = "gmac-3v3";
Expand Down Expand Up @@ -78,24 +74,6 @@
status = "okay";
};

&emac {
pinctrl-names = "default";
pinctrl-0 = <&emac_rgmii_pins>;
phy-supply = <&reg_gmac_3v3>;
phy-handle = <&ext_rgmii_phy>;
phy-mode = "rgmii";

allwinner,leds-active-low;
status = "okay";
};

&mdio {
ext_rgmii_phy: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0>;
};
};

&mmc2 {
pinctrl-names = "default";
pinctrl-0 = <&mmc2_8bit_pins>;
Expand Down
16 changes: 0 additions & 16 deletions arch/arm/boot/dts/sun8i-h3-orangepi-plus2e.dts
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,3 @@
gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */
};
};

&emac {
pinctrl-names = "default";
pinctrl-0 = <&emac_rgmii_pins>;
phy-supply = <&reg_gmac_3v3>;
phy-handle = <&ext_rgmii_phy>;
phy-mode = "rgmii";
status = "okay";
};

&mdio {
ext_rgmii_phy: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
};
};
26 changes: 0 additions & 26 deletions arch/arm/boot/dts/sunxi-h3-h5.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -391,32 +391,6 @@
clocks = <&osc24M>;
};

emac: ethernet@1c30000 {
compatible = "allwinner,sun8i-h3-emac";
syscon = <&syscon>;
reg = <0x01c30000 0x10000>;
interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq";
resets = <&ccu RST_BUS_EMAC>;
reset-names = "stmmaceth";
clocks = <&ccu CLK_BUS_EMAC>;
clock-names = "stmmaceth";
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";

mdio: mdio {
#address-cells = <1>;
#size-cells = <0>;
int_mii_phy: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
clocks = <&ccu CLK_BUS_EPHY>;
resets = <&ccu RST_BUS_EPHY>;
};
};
};

spi0: spi@01c68000 {
compatible = "allwinner,sun8i-h3-spi";
reg = <0x01c68000 0x1000>;
Expand Down
16 changes: 0 additions & 16 deletions arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
compatible = "sinovoip,bananapi-m64", "allwinner,sun50i-a64";

aliases {
ethernet0 = &emac;
serial0 = &uart0;
serial1 = &uart1;
};
Expand All @@ -68,14 +67,6 @@
};
};

&emac {
pinctrl-names = "default";
pinctrl-0 = <&rgmii_pins>;
phy-mode = "rgmii";
phy-handle = <&ext_rgmii_phy>;
status = "okay";
};

&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
Expand All @@ -86,13 +77,6 @@
bias-pull-up;
};

&mdio {
ext_rgmii_phy: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
};
};

&mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins>;
Expand Down
15 changes: 0 additions & 15 deletions arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,3 @@

/* TODO: Camera, touchscreen, etc. */
};

&emac {
pinctrl-names = "default";
pinctrl-0 = <&rgmii_pins>;
phy-mode = "rgmii";
phy-handle = <&ext_rgmii_phy>;
status = "okay";
};

&mdio {
ext_rgmii_phy: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
};
};
Loading

0 comments on commit 54f70f5

Please sign in to comment.