Update CAN overlays for 4.12

This commit is contained in:
zador-blood-stained
2017-07-12 20:28:02 +03:00
parent d925cfbb0c
commit 97af53d951
2 changed files with 8 additions and 48 deletions

View File

@@ -1,35 +1,15 @@
/dts-v1/;
/plugin/;
#include <dt-bindings/interrupt-controller/arm-gic.h>
/ {
compatible = "allwinner,sun4i-a10";
fragment@0 {
target = <&pio>;
target = <&can0>;
__overlay__ {
can_pins: can_pins {
pins = "PH20", "PH21";
function = "can";
};
};
};
fragment@1 {
target-path = "/soc@01c00000";
__overlay__ {
#address-cells = <1>;
#size-cells = <1>;
can@01c2bc00 {
compatible = "allwinner,sun4i-a10-can";
reg = <0x01c2bc00 0x400>;
interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&apb1_gates 4>;
pinctrl-names = "default";
pinctrl-0 = <&can_pins>;
status = "okay";
};
pinctrl-names = "default";
pinctrl-0 = <&can0_pins_a>;
status = "okay";
};
};
};

View File

@@ -1,35 +1,15 @@
/dts-v1/;
/plugin/;
#include <dt-bindings/interrupt-controller/arm-gic.h>
/ {
compatible = "allwinner,sun7i-a20";
fragment@0 {
target = <&pio>;
target = <&can0>;
__overlay__ {
can_pins: can_pins {
pins = "PH20", "PH21";
function = "can";
};
};
};
fragment@1 {
target-path = "/soc@01c00000";
__overlay__ {
#address-cells = <1>;
#size-cells = <1>;
can@01c2bc00 {
compatible = "allwinner,sun4i-a10-can";
reg = <0x01c2bc00 0x400>;
interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&apb1_gates 4>;
pinctrl-names = "default";
pinctrl-0 = <&can_pins>;
status = "okay";
};
pinctrl-names = "default";
pinctrl-0 = <&can0_pins_a>;
status = "okay";
};
};
};