-
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.
yaml --- r: 308362 b: refs/heads/master c: 304ea74 h: refs/heads/master v: v3
- Loading branch information
Arnd Bergmann
committed
May 14, 2012
1 parent
f10ae2f
commit 2ae5826
Showing
329 changed files
with
8,542 additions
and
7,516 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 6b204283f2802a92cf91fc14c2c1b04e7295761b | ||
refs/heads/master: 304ea74770c892cf115e128b0e0dc6636148b010 |
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
19 changes: 19 additions & 0 deletions
19
trunk/Documentation/devicetree/bindings/dma/fsl-mxs-dma.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,19 @@ | ||
* Freescale MXS DMA | ||
|
||
Required properties: | ||
- compatible : Should be "fsl,<chip>-dma-apbh" or "fsl,<chip>-dma-apbx" | ||
- reg : Should contain registers location and length | ||
|
||
Supported chips: | ||
imx23, imx28. | ||
|
||
Examples: | ||
dma-apbh@80004000 { | ||
compatible = "fsl,imx28-dma-apbh"; | ||
reg = <0x80004000 2000>; | ||
}; | ||
|
||
dma-apbx@80024000 { | ||
compatible = "fsl,imx28-dma-apbx"; | ||
reg = <0x80024000 2000>; | ||
}; |
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,87 @@ | ||
* Freescale MXS GPIO controller | ||
|
||
The Freescale MXS GPIO controller is part of MXS PIN controller. The | ||
GPIOs are organized in port/bank. Each port consists of 32 GPIOs. | ||
|
||
As the GPIO controller is embedded in the PIN controller and all the | ||
GPIO ports share the same IO space with PIN controller, the GPIO node | ||
will be represented as sub-nodes of MXS pinctrl node. | ||
|
||
Required properties for GPIO node: | ||
- compatible : Should be "fsl,<soc>-gpio". The supported SoCs include | ||
imx23 and imx28. | ||
- interrupts : Should be the port interrupt shared by all 32 pins. | ||
- gpio-controller : Marks the device node as a gpio controller. | ||
- #gpio-cells : Should be two. The first cell is the pin number and | ||
the second cell is used to specify optional parameters (currently | ||
unused). | ||
- interrupt-controller: Marks the device node as an interrupt controller. | ||
- #interrupt-cells : Should be 2. The first cell is the GPIO number. | ||
The second cell bits[3:0] is used to specify trigger type and level flags: | ||
1 = low-to-high edge triggered. | ||
2 = high-to-low edge triggered. | ||
4 = active high level-sensitive. | ||
8 = active low level-sensitive. | ||
|
||
Note: Each GPIO port should have an alias correctly numbered in "aliases" | ||
node. | ||
|
||
Examples: | ||
|
||
aliases { | ||
gpio0 = &gpio0; | ||
gpio1 = &gpio1; | ||
gpio2 = &gpio2; | ||
gpio3 = &gpio3; | ||
gpio4 = &gpio4; | ||
}; | ||
|
||
pinctrl@80018000 { | ||
compatible = "fsl,imx28-pinctrl", "simple-bus"; | ||
reg = <0x80018000 2000>; | ||
|
||
gpio0: gpio@0 { | ||
compatible = "fsl,imx28-gpio"; | ||
interrupts = <127>; | ||
gpio-controller; | ||
#gpio-cells = <2>; | ||
interrupt-controller; | ||
#interrupt-cells = <2>; | ||
}; | ||
|
||
gpio1: gpio@1 { | ||
compatible = "fsl,imx28-gpio"; | ||
interrupts = <126>; | ||
gpio-controller; | ||
#gpio-cells = <2>; | ||
interrupt-controller; | ||
#interrupt-cells = <2>; | ||
}; | ||
|
||
gpio2: gpio@2 { | ||
compatible = "fsl,imx28-gpio"; | ||
interrupts = <125>; | ||
gpio-controller; | ||
#gpio-cells = <2>; | ||
interrupt-controller; | ||
#interrupt-cells = <2>; | ||
}; | ||
|
||
gpio3: gpio@3 { | ||
compatible = "fsl,imx28-gpio"; | ||
interrupts = <124>; | ||
gpio-controller; | ||
#gpio-cells = <2>; | ||
interrupt-controller; | ||
#interrupt-cells = <2>; | ||
}; | ||
|
||
gpio4: gpio@4 { | ||
compatible = "fsl,imx28-gpio"; | ||
interrupts = <123>; | ||
gpio-controller; | ||
#gpio-cells = <2>; | ||
interrupt-controller; | ||
#interrupt-cells = <2>; | ||
}; | ||
}; |
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,16 @@ | ||
* Freescale MXS Inter IC (I2C) Controller | ||
|
||
Required properties: | ||
- compatible: Should be "fsl,<chip>-i2c" | ||
- reg: Should contain registers location and length | ||
- interrupts: Should contain ERROR and DMA interrupts | ||
|
||
Examples: | ||
|
||
i2c0: i2c@80058000 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
compatible = "fsl,imx28-i2c"; | ||
reg = <0x80058000 2000>; | ||
interrupts = <111 68>; | ||
}; |
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,25 @@ | ||
* Freescale MXS MMC controller | ||
|
||
The Freescale MXS Synchronous Serial Ports (SSP) can act as a MMC controller | ||
to support MMC, SD, and SDIO types of memory cards. | ||
|
||
Required properties: | ||
- compatible: Should be "fsl,<chip>-mmc". The supported chips include | ||
imx23 and imx28. | ||
- reg: Should contain registers location and length | ||
- interrupts: Should contain ERROR and DMA interrupts | ||
- fsl,ssp-dma-channel: APBH DMA channel for the SSP | ||
- bus-width: Number of data lines, can be <1>, <4>, or <8> | ||
|
||
Optional properties: | ||
- wp-gpios: Specify GPIOs for write protection | ||
|
||
Examples: | ||
|
||
ssp0: ssp@80010000 { | ||
compatible = "fsl,imx28-mmc"; | ||
reg = <0x80010000 2000>; | ||
interrupts = <96 82>; | ||
fsl,ssp-dma-channel = <0>; | ||
bus-width = <8>; | ||
}; |
132 changes: 132 additions & 0 deletions
132
trunk/Documentation/devicetree/bindings/pinctrl/nvidia,tegra20-pinmux.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,132 @@ | ||
NVIDIA Tegra20 pinmux controller | ||
|
||
Required properties: | ||
- compatible: "nvidia,tegra20-pinmux" | ||
- reg: Should contain the register physical address and length for each of | ||
the tri-state, mux, pull-up/down, and pad control register sets. | ||
|
||
Please refer to pinctrl-bindings.txt in this directory for details of the | ||
common pinctrl bindings used by client devices, including the meaning of the | ||
phrase "pin configuration node". | ||
|
||
Tegra's pin configuration nodes act as a container for an abitrary number of | ||
subnodes. Each of these subnodes represents some desired configuration for a | ||
pin, a group, or a list of pins or groups. This configuration can include the | ||
mux function to select on those pin(s)/group(s), and various pin configuration | ||
parameters, such as pull-up, tristate, drive strength, etc. | ||
|
||
The name of each subnode is not important; all subnodes should be enumerated | ||
and processed purely based on their content. | ||
|
||
Each subnode only affects those parameters that are explicitly listed. In | ||
other words, a subnode that lists a mux function but no pin configuration | ||
parameters implies no information about any pin configuration parameters. | ||
Similarly, a pin subnode that describes a pullup parameter implies no | ||
information about e.g. the mux function or tristate parameter. For this | ||
reason, even seemingly boolean values are actually tristates in this binding: | ||
unspecified, off, or on. Unspecified is represented as an absent property, | ||
and off/on are represented as integer values 0 and 1. | ||
|
||
Required subnode-properties: | ||
- nvidia,pins : An array of strings. Each string contains the name of a pin or | ||
group. Valid values for these names are listed below. | ||
|
||
Optional subnode-properties: | ||
- nvidia,function: A string containing the name of the function to mux to the | ||
pin or group. Valid values for function names are listed below. See the Tegra | ||
TRM to determine which are valid for each pin or group. | ||
- nvidia,pull: Integer, representing the pull-down/up to apply to the pin. | ||
0: none, 1: down, 2: up. | ||
- nvidia,tristate: Integer. | ||
0: drive, 1: tristate. | ||
- nvidia,high-speed-mode: Integer. Enable high speed mode the pins. | ||
0: no, 1: yes. | ||
- nvidia,schmitt: Integer. Enables Schmitt Trigger on the input. | ||
0: no, 1: yes. | ||
- nvidia,low-power-mode: Integer. Valid values 0-3. 0 is least power, 3 is | ||
most power. Controls the drive power or current. See "Low Power Mode" | ||
or "LPMD1" and "LPMD0" in the Tegra TRM. | ||
- nvidia,pull-down-strength: Integer. Controls drive strength. 0 is weakest. | ||
The range of valid values depends on the pingroup. See "CAL_DRVDN" in the | ||
Tegra TRM. | ||
- nvidia,pull-up-strength: Integer. Controls drive strength. 0 is weakest. | ||
The range of valid values depends on the pingroup. See "CAL_DRVUP" in the | ||
Tegra TRM. | ||
- nvidia,slew-rate-rising: Integer. Controls rising signal slew rate. 0 is | ||
fastest. The range of valid values depends on the pingroup. See | ||
"DRVDN_SLWR" in the Tegra TRM. | ||
- nvidia,slew-rate-falling: Integer. Controls falling signal slew rate. 0 is | ||
fastest. The range of valid values depends on the pingroup. See | ||
"DRVUP_SLWF" in the Tegra TRM. | ||
|
||
Note that many of these properties are only valid for certain specific pins | ||
or groups. See the Tegra TRM and various pinmux spreadsheets for complete | ||
details regarding which groups support which functionality. The Linux pinctrl | ||
driver may also be a useful reference, since it consolidates, disambiguates, | ||
and corrects data from all those sources. | ||
|
||
Valid values for pin and group names are: | ||
|
||
mux groups: | ||
|
||
These all support nvidia,function, nvidia,tristate, and many support | ||
nvidia,pull. | ||
|
||
ata, atb, atc, atd, ate, cdev1, cdev2, crtp, csus, dap1, dap2, dap3, dap4, | ||
ddc, dta, dtb, dtc, dtd, dte, dtf, gma, gmb, gmc, gmd, gme, gpu, gpu7, | ||
gpv, hdint, i2cp, irrx, irtx, kbca, kbcb, kbcc, kbcd, kbce, kbcf, lcsn, | ||
ld0, ld1, ld2, ld3, ld4, ld5, ld6, ld7, ld8, ld9, ld10, ld11, ld12, ld13, | ||
ld14, ld15, ld16, ld17, ldc, ldi, lhp0, lhp1, lhp2, lhs, lm0, lm1, lpp, | ||
lpw0, lpw1, lpw2, lsc0, lsc1, lsck, lsda, lsdi, lspi, lvp0, lvp1, lvs, | ||
owc, pmc, pta, rm, sdb, sdc, sdd, sdio1, slxa, slxc, slxd, slxk, spdi, | ||
spdo, spia, spib, spic, spid, spie, spif, spig, spih, uaa, uab, uac, uad, | ||
uca, ucb, uda. | ||
|
||
tristate groups: | ||
|
||
These only support nvidia,pull. | ||
|
||
ck32, ddrc, pmca, pmcb, pmcc, pmcd, pmce, xm2c, xm2d, ls, lc, ld17_0, | ||
ld19_18, ld21_20, ld23_22. | ||
|
||
drive groups: | ||
|
||
With some exceptions, these support nvidia,high-speed-mode, | ||
nvidia,schmitt, nvidia,low-power-mode, nvidia,pull-down-strength, | ||
nvidia,pull-up-strength, nvidia,slew_rate-rising, nvidia,slew_rate-falling. | ||
|
||
drive_ao1, drive_ao2, drive_at1, drive_at2, drive_cdev1, drive_cdev2, | ||
drive_csus, drive_dap1, drive_dap2, drive_dap3, drive_dap4, drive_dbg, | ||
drive_lcd1, drive_lcd2, drive_sdmmc2, drive_sdmmc3, drive_spi, drive_uaa, | ||
drive_uab, drive_uart2, drive_uart3, drive_vi1, drive_vi2, drive_xm2a, | ||
drive_xm2c, drive_xm2d, drive_xm2clk, drive_sdio1, drive_crt, drive_ddc, | ||
drive_gma, drive_gmb, drive_gmc, drive_gmd, drive_gme, drive_owr, | ||
drive_uda. | ||
|
||
Example: | ||
|
||
pinctrl@70000000 { | ||
compatible = "nvidia,tegra20-pinmux"; | ||
reg = < 0x70000014 0x10 /* Tri-state registers */ | ||
0x70000080 0x20 /* Mux registers */ | ||
0x700000a0 0x14 /* Pull-up/down registers */ | ||
0x70000868 0xa8 >; /* Pad control registers */ | ||
}; | ||
|
||
Example board file extract: | ||
|
||
pinctrl@70000000 { | ||
sdio4_default: sdio4_default { | ||
atb { | ||
nvidia,pins = "atb", "gma", "gme"; | ||
nvidia,function = "sdio4"; | ||
nvidia,pull = <0>; | ||
nvidia,tristate = <0>; | ||
}; | ||
}; | ||
}; | ||
|
||
sdhci@c8000600 { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&sdio4_default>; | ||
}; |
Oops, something went wrong.