Hi Franz,
I've marked the Git as obsolete because the driver is in the kernel. You may need to change the device tree (DT).
That's are the patches (80.-*) for:
root@ubuntu ~/lib (git)-[master] # find ./ -name '80[12]*'
./patch/kernel/sunxi-next/801-dt-sun7i-add-can-bananapi.patch
./patch/kernel/sunxi-next/802-dt-sun7i-add-can-bananapro.patch
./patch/kernel/sunxi-dev/801-dt-sun7i-add-can-bananapi.patch
./patch/kernel/sunxi-dev/802-dt-sun7i-add-can-bananapro.patch
root@ubuntu ~/lib (git)-[master] # cat ./patch/kernel/sunxi-next/802-dt-sun7i-add-can-bananapro.patch
--- a/arch/arm/boot/dts/sun7i-a20-bananapro.dts 2016-01-11 00:01:32.000000000 +0100
+++ b/arch/arm/boot/dts/sun7i-a20-bananapro.dts 2016-02-03 20:12:28.285742989 +0100
@@ -104,6 +104,12 @@
status = "okay";
};
+&can0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&can0_pins_a>;
+ status = "okay";
+};
+
&ehci0 {
status = "okay";
};
root@ubuntu ~/lib (git)-[master] # cat ./patch/kernel/sunxi-next/801-dt-sun7i-add-can-bananapi.patch
--- a/arch/arm/boot/dts/sun7i-a20-bananapi.dts 2016-01-11 00:01:32.000000000 +0100
+++ b/arch/arm/boot/dts/sun7i-a20-bananapi.dts 2016-02-03 20:07:27.074726689 +0100
@@ -92,6 +92,12 @@
status = "okay";
};
+&can0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&can0_pins_a>;
+ status = "okay";
+};
+
&cpu0 {
cpu-supply = <®_dcdc2>;
operating-points = <
FEX is for 3.x kernels and not applicable here.
Try to load the kernel model 'modprobe sun4i_can'.
There should a dmesg entry like:
[ 10.063815] sun4i_can 1c2bc00.can: device registered (base=f1428c00, irq=48)
Otherwise look at the DT (again).
Regards
Gerd