Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230566
b: refs/heads/master
c: d9240e6
h: refs/heads/master
v: v3
  • Loading branch information
Jonas Bonn authored and Ben Dooks committed Jan 4, 2011
1 parent 2b57300 commit a189bd6
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 47def5b80f087d033013c0609679812cfafd6b49
refs/heads/master: d9240e612ba79287e29f2eac52f94a2016fb0914
35 changes: 35 additions & 0 deletions trunk/drivers/i2c/busses/i2c-ocores.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,41 @@
* kind, whether express or implied.
*/

/*
* Device tree configuration:
*
* Required properties:
* - compatible : "opencores,i2c-ocores"
* - reg : bus address start and address range size of device
* - interrupts : interrupt number
* - regstep : size of device registers in bytes
* - clock-frequency : frequency of bus clock in Hz
*
* Example:
*
* i2c0: ocores@a0000000 {
* compatible = "opencores,i2c-ocores";
* reg = <0xa0000000 0x8>;
* interrupts = <10>;
*
* regstep = <1>;
* clock-frequency = <20000000>;
*
* -- Devices connected on this I2C bus get
* -- defined here; address- and size-cells
* -- apply to these child devices
*
* #address-cells = <1>;
* #size-cells = <0>;
*
* dummy@60 {
* compatible = "dummy";
* reg = <60>;
* };
* };
*
*/

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
Expand Down

0 comments on commit a189bd6

Please sign in to comment.