Hello! I'd like to run the longterm branch of the kernel on my OrangePi Plus. I'm upgrading from 4.9.12; I pulled a fresh copy of linux-stable v4.9.55.
Commits from sun8i-emac-wip branch of https://github.com/montjoie/linux/tree/ apply cleanly but fail to build DTBs. I tried to update the DTS for the CCU driver: ---8<--- diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi index f4ba088b225e..f58f75371757 100644 --- a/arch/arm/boot/dts/sun8i-h3.dtsi +++ b/arch/arm/boot/dts/sun8i-h3.dtsi @@ -530,6 +541,21 @@ #size-cells = <0>; }; + emac: ethernet@1c30000 { + compatible = "allwinner,sun8i-h3-emac"; + reg = <0x01c30000 0x104>, <0x01c00030 0x4>; + reg-names = "emac", "syscon"; + interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>; + // resets = <&ahb_rst 17>, <&ahb_rst 66>; + resets = <&ccu RST_BUS_EMAC>, <&ccu RST_BUS_EPHY>; + reset-names = "ahb", "ephy"; + clocks = <&ccu CLK_BUS_EMAC>, <&ccu CLK_BUS_EPHY>; + clock-names = "ahb", "ephy"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + gic: interrupt-controller@01c81000 { compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic"; reg = <0x01c81000 0x1000>, ---8<--- The kernel booted, found the networking interface but corrupted packets (the device obtained the address via DHCP successfully and could show a short static web page, but any SSH or HTTPS or a long unencrypted transfer resulted in corrupted data). Commits from the sun8i-emac-v5.1 branch don't apply as cleanly, but mostly complain about missing dts files for newer devices and lack of context in arch/arm/configs/multi_v7_defconfig. DTBs fail to build, this time with the message "Label or path mdio(or emac) not found" because v4.9.54 misses arch/arm/boot/dts/sunxi-h3-h5.dtsi. Once I downloaded it and put an #include "sunxi-h3-h5.dtsi" in sun8i-h3.dtsi, I was able to build DTBs again, but the driver still doesn't like the device tree: ---8<--- sun8i-h3-pinctrl 1c20800.pinctrl: missing allwinner,function property in node emac0 sun8i-emac: probe of 1c30000.ethernet failed with error -22 ---8<--- Of course, I'm probably TRWTF because I'm trying to use an unsupported driver. Still, can someone direct me to possible ways of running sun8i-emac on v4.9.55? -- Best regards, Ivan -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.