From: Gerhard Bertelsmann Subject: [PATCH v4 1/2] can: Allwinner A10/A20 CAN Controller support - Devicetree bindings Date: Fri, 11 Sep 2015 11:26:09 +0200 Message-ID: <1441963570-17930-2-git-send-email-info@gerhard-bertelsmann.de> References: <1441963570-17930-1-git-send-email-info@gerhard-bertelsmann.de> Return-path: Received: from mail.rdts.de ([195.243.153.28]:36604 "EHLO mail.rdts.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751927AbbIKJ0Y (ORCPT ); Fri, 11 Sep 2015 05:26:24 -0400 In-Reply-To: <1441963570-17930-1-git-send-email-info@gerhard-bertelsmann.de> Sender: linux-can-owner@vger.kernel.org List-ID: To: linux-can@vger.kernel.org Cc: mkl@pengutronix.de, Gerhard Bertelsmann Signed-off-by: Gerhard Bertelsmann --- .../devicetree/bindings/net/can/sunx_can.txt | 40 + 1 files changed, 40 insertions(+) diff --git a/Documentation/devicetree/bindings/net/can/sunx_can.txt b/Documentation/devicetree/bindings/net/can/sunx_can.txt new file mode 100644 index 0000000..5bc1958 --- /dev/null +++ b/Documentation/devicetree/bindings/net/can/sunx_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"; + }; +