Signed-off-by: Gerhard Bertelsmann <[email protected]>
---
 .../devicetree/bindings/net/can/sunxi_can.txt      |  40 +
 1 files changed, 49 insertions(+)

diff --git a/Documentation/devicetree/bindings/net/can/sunxi_can.txt 
b/Documentation/devicetree/bindings/net/can/sunxi_can.txt
new file mode 100644
index 0000000..5db9abc
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/can/sunxi_can.txt
@@ -0,0 +1,40 @@
+Allwinner A10/A20 CAN controller Device Tree Bindings
+-----------------------------------------------------
+
+Required properties:
+- compatible: "allwinner,sunxican"
+- reg: physical base address and size of the Allwinner A10/A20 CAN register 
map.
+- interrupts: interrupt specifier for the sole interrupt.
+- clocks: phandle and clock specifier.
+- pinctrl-0: pin control group to be used for this controller.
+- pinctrl-names: must be "default".
+
+
+Example
+-------
+
+SoC common .dtsi file:
+
+       can0_pins_a: can0@0 {
+               allwinner,pins = "PH20","PH21";
+               allwinner,function = "can";
+               allwinner,drive = <0>;
+               allwinner,pull = <0>;
+       };
+...
+       can0: can@01c2bc00 {
+               compatible = "allwinner,sunxican";
+               reg = <0x01c2bc00 0x400>;
+               interrupts = <0 26 4>;
+               clocks = <&apb1_gates 4>;
+               status = "disabled";
+       };
+
+Board specific .dts file:
+
+       can0: can@01c2bc00 {
+               pinctrl-names = "default";
+               pinctrl-0 = <&can0_pins_a>;
+               status = "okay";
+       };
+

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to