-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Luke Wren <wren6991@gmail.com>
- Loading branch information
1 parent
1ee3b49
commit e19c303
Showing
9 changed files
with
1,861 additions
and
1 deletion.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
Documentation/devicetree/bindings/misc/brcm,bcm2835-smi-dev.txt
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,17 @@ | ||
* Broadcom BCM2835 SMI character device driver. | ||
|
||
SMI or secondary memory interface is a peripheral specific to certain Broadcom | ||
SOCs, and is helpful for talking to things like parallel-interface displays | ||
and NAND flashes (in fact, most things with a parallel register interface). | ||
|
||
This driver adds a character device which provides a user-space interface to | ||
an instance of the SMI driver. | ||
|
||
Required properties: | ||
- compatible: "brcm,bcm2835-smi-dev" | ||
- smi_handle: a phandle to the smi node. | ||
|
||
Optional properties: | ||
- None. | ||
|
||
|
48 changes: 48 additions & 0 deletions
48
Documentation/devicetree/bindings/misc/brcm,bcm2835-smi.txt
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,48 @@ | ||
* Broadcom BCM2835 SMI driver. | ||
|
||
SMI or secondary memory interface is a peripheral specific to certain Broadcom | ||
SOCs, and is helpful for talking to things like parallel-interface displays | ||
and NAND flashes (in fact, most things with a parallel register interface). | ||
|
||
Required properties: | ||
- compatible: "brcm,bcm2835-smi" | ||
- reg: Should contain location and length of SMI registers and SMI clkman regs | ||
- interrupts: *the* SMI interrupt. | ||
- pinctrl-names: should be "default". | ||
- pinctrl-0: the phandle of the gpio pin node. | ||
- brcm,smi-clock-source: the clock source for clkman | ||
- brcm,smi-clock-divisor: the integer clock divisor for clkman | ||
- dmas: the dma controller phandle and the DREQ number (4 on a 2835) | ||
- dma-names: the name used by the driver to request its channel. | ||
Should be "rx-tx". | ||
|
||
Optional properties: | ||
- None. | ||
|
||
Examples: | ||
|
||
8 data pin configuration: | ||
|
||
smi: smi@7e600000 { | ||
compatible = "brcm,bcm2835-smi"; | ||
reg = <0x7e600000 0x44>, <0x7e1010b0 0x8>; | ||
interrupts = <2 16>; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&smi_pins>; | ||
brcm,smi-clock-source = <6>; | ||
brcm,smi-clock-divisor = <4>; | ||
dmas = <&dma 4>; | ||
dma-names = "rx-tx"; | ||
|
||
status = "okay"; | ||
}; | ||
|
||
smi_pins: smi_pins { | ||
brcm,pins = <2 3 4 5 6 7 8 9 10 11 12 13 14 15>; | ||
/* Alt 1: SMI */ | ||
brcm,function = <5 5 5 5 5 5 5 5 5 5 5 5 5 5>; | ||
/* /CS, /WE and /OE are pulled high, as they are | ||
generally active low signals */ | ||
brcm,pull = <2 2 2 2 2 2 0 0 0 0 0 0 0 0>; | ||
}; | ||
|
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.