-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'linux-can-next-for-4.4-20150917' of git://git.kernel.org/p…
…ub/scm/linux/kernel/git/mkl/linux-can-next Marc Kleine-Budde says: ==================== pull-request: can-next 2015-09-17 this is a pull request of two patches for net-next/master. Gerhard Bertelsmann adds support for the CAN controller found on the Allwinner A10/A20 SoC. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Showing
4 changed files
with
904 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Allwinner A10/A20 CAN controller Device Tree Bindings | ||
----------------------------------------------------- | ||
|
||
Required properties: | ||
- compatible: "allwinner,sun4i-a10-can" | ||
- reg: physical base address and size of the Allwinner A10/A20 CAN register map. | ||
- interrupts: interrupt specifier for the sole interrupt. | ||
- clock: phandle and clock specifier. | ||
|
||
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,sun4i-a10-can"; | ||
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"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.