mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-05 16:07:46 -04:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
126
Documentation/devicetree/bindings/mips/cavium/bootbus.txt
Normal file
126
Documentation/devicetree/bindings/mips/cavium/bootbus.txt
Normal file
|
@ -0,0 +1,126 @@
|
|||
* Boot Bus
|
||||
|
||||
The Octeon Boot Bus is a configurable parallel bus with 8 chip
|
||||
selects. Each chip select is independently configurable.
|
||||
|
||||
Properties:
|
||||
- compatible: "cavium,octeon-3860-bootbus"
|
||||
|
||||
Compatibility with all cn3XXX, cn5XXX and cn6XXX SOCs.
|
||||
|
||||
- reg: The base address of the Boot Bus' register bank.
|
||||
|
||||
- #address-cells: Must be <2>. The first cell is the chip select
|
||||
within the bootbus. The second cell is the offset from the chip select.
|
||||
|
||||
- #size-cells: Must be <1>.
|
||||
|
||||
- ranges: There must be one one triplet of (child-bus-address,
|
||||
parent-bus-address, length) for each active chip select. If the
|
||||
length element for any triplet is zero, the chip select is disabled,
|
||||
making it inactive.
|
||||
|
||||
The configuration parameters for each chip select are stored in child
|
||||
nodes.
|
||||
|
||||
Configuration Properties:
|
||||
- compatible: "cavium,octeon-3860-bootbus-config"
|
||||
|
||||
- cavium,cs-index: A single cell indicating the chip select that
|
||||
corresponds to this configuration.
|
||||
|
||||
- cavium,t-adr: A cell specifying the ADR timing (in nS).
|
||||
|
||||
- cavium,t-ce: A cell specifying the CE timing (in nS).
|
||||
|
||||
- cavium,t-oe: A cell specifying the OE timing (in nS).
|
||||
|
||||
- cavium,t-we: A cell specifying the WE timing (in nS).
|
||||
|
||||
- cavium,t-rd-hld: A cell specifying the RD_HLD timing (in nS).
|
||||
|
||||
- cavium,t-wr-hld: A cell specifying the WR_HLD timing (in nS).
|
||||
|
||||
- cavium,t-pause: A cell specifying the PAUSE timing (in nS).
|
||||
|
||||
- cavium,t-wait: A cell specifying the WAIT timing (in nS).
|
||||
|
||||
- cavium,t-page: A cell specifying the PAGE timing (in nS).
|
||||
|
||||
- cavium,t-rd-dly: A cell specifying the RD_DLY timing (in nS).
|
||||
|
||||
- cavium,pages: A cell specifying the PAGES parameter (0 = 8 bytes, 1
|
||||
= 2 bytes, 2 = 4 bytes, 3 = 8 bytes).
|
||||
|
||||
- cavium,wait-mode: Optional. If present, wait mode (WAITM) is selected.
|
||||
|
||||
- cavium,page-mode: Optional. If present, page mode (PAGEM) is selected.
|
||||
|
||||
- cavium,bus-width: A cell specifying the WIDTH parameter (in bits) of
|
||||
the bus for this chip select.
|
||||
|
||||
- cavium,ale-mode: Optional. If present, ALE mode is selected.
|
||||
|
||||
- cavium,sam-mode: Optional. If present, SAM mode is selected.
|
||||
|
||||
- cavium,or-mode: Optional. If present, OR mode is selected.
|
||||
|
||||
Example:
|
||||
bootbus: bootbus@1180000000000 {
|
||||
compatible = "cavium,octeon-3860-bootbus";
|
||||
reg = <0x11800 0x00000000 0x0 0x200>;
|
||||
/* The chip select number and offset */
|
||||
#address-cells = <2>;
|
||||
/* The size of the chip select region */
|
||||
#size-cells = <1>;
|
||||
ranges = <0 0 0x0 0x1f400000 0xc00000>,
|
||||
<1 0 0x10000 0x30000000 0>,
|
||||
<2 0 0x10000 0x40000000 0>,
|
||||
<3 0 0x10000 0x50000000 0>,
|
||||
<4 0 0x0 0x1d020000 0x10000>,
|
||||
<5 0 0x0 0x1d040000 0x10000>,
|
||||
<6 0 0x0 0x1d050000 0x10000>,
|
||||
<7 0 0x10000 0x90000000 0>;
|
||||
|
||||
cavium,cs-config@0 {
|
||||
compatible = "cavium,octeon-3860-bootbus-config";
|
||||
cavium,cs-index = <0>;
|
||||
cavium,t-adr = <20>;
|
||||
cavium,t-ce = <60>;
|
||||
cavium,t-oe = <60>;
|
||||
cavium,t-we = <45>;
|
||||
cavium,t-rd-hld = <35>;
|
||||
cavium,t-wr-hld = <45>;
|
||||
cavium,t-pause = <0>;
|
||||
cavium,t-wait = <0>;
|
||||
cavium,t-page = <35>;
|
||||
cavium,t-rd-dly = <0>;
|
||||
|
||||
cavium,pages = <0>;
|
||||
cavium,bus-width = <8>;
|
||||
};
|
||||
.
|
||||
.
|
||||
.
|
||||
cavium,cs-config@6 {
|
||||
compatible = "cavium,octeon-3860-bootbus-config";
|
||||
cavium,cs-index = <6>;
|
||||
cavium,t-adr = <5>;
|
||||
cavium,t-ce = <300>;
|
||||
cavium,t-oe = <270>;
|
||||
cavium,t-we = <150>;
|
||||
cavium,t-rd-hld = <100>;
|
||||
cavium,t-wr-hld = <70>;
|
||||
cavium,t-pause = <0>;
|
||||
cavium,t-wait = <0>;
|
||||
cavium,t-page = <320>;
|
||||
cavium,t-rd-dly = <0>;
|
||||
|
||||
cavium,pages = <0>;
|
||||
cavium,wait-mode;
|
||||
cavium,bus-width = <16>;
|
||||
};
|
||||
.
|
||||
.
|
||||
.
|
||||
};
|
26
Documentation/devicetree/bindings/mips/cavium/ciu.txt
Normal file
26
Documentation/devicetree/bindings/mips/cavium/ciu.txt
Normal file
|
@ -0,0 +1,26 @@
|
|||
* Central Interrupt Unit
|
||||
|
||||
Properties:
|
||||
- compatible: "cavium,octeon-3860-ciu"
|
||||
|
||||
Compatibility with all cn3XXX, cn5XXX and cn63XX SOCs.
|
||||
|
||||
- interrupt-controller: This is an interrupt controller.
|
||||
|
||||
- reg: The base address of the CIU's register bank.
|
||||
|
||||
- #interrupt-cells: Must be <2>. The first cell is the bank within
|
||||
the CIU and may have a value of 0 or 1. The second cell is the bit
|
||||
within the bank and may have a value between 0 and 63.
|
||||
|
||||
Example:
|
||||
interrupt-controller@1070000000000 {
|
||||
compatible = "cavium,octeon-3860-ciu";
|
||||
interrupt-controller;
|
||||
/* Interrupts are specified by two parts:
|
||||
* 1) Controller register (0 or 1)
|
||||
* 2) Bit within the register (0..63)
|
||||
*/
|
||||
#interrupt-cells = <2>;
|
||||
reg = <0x10700 0x00000000 0x0 0x7000>;
|
||||
};
|
27
Documentation/devicetree/bindings/mips/cavium/ciu2.txt
Normal file
27
Documentation/devicetree/bindings/mips/cavium/ciu2.txt
Normal file
|
@ -0,0 +1,27 @@
|
|||
* Central Interrupt Unit
|
||||
|
||||
Properties:
|
||||
- compatible: "cavium,octeon-6880-ciu2"
|
||||
|
||||
Compatibility with 68XX SOCs.
|
||||
|
||||
- interrupt-controller: This is an interrupt controller.
|
||||
|
||||
- reg: The base address of the CIU's register bank.
|
||||
|
||||
- #interrupt-cells: Must be <2>. The first cell is the bank within
|
||||
the CIU and may have a value between 0 and 63. The second cell is
|
||||
the bit within the bank and may also have a value between 0 and 63.
|
||||
|
||||
Example:
|
||||
interrupt-controller@1070100000000 {
|
||||
compatible = "cavium,octeon-6880-ciu2";
|
||||
interrupt-controller;
|
||||
/* Interrupts are specified by two parts:
|
||||
* 1) Controller register (0..63)
|
||||
* 2) Bit within the register (0..63)
|
||||
*/
|
||||
#address-cells = <0>;
|
||||
#interrupt-cells = <2>;
|
||||
reg = <0x10701 0x00000000 0x0 0x4000000>;
|
||||
};
|
21
Documentation/devicetree/bindings/mips/cavium/dma-engine.txt
Normal file
21
Documentation/devicetree/bindings/mips/cavium/dma-engine.txt
Normal file
|
@ -0,0 +1,21 @@
|
|||
* DMA Engine.
|
||||
|
||||
The Octeon DMA Engine transfers between the Boot Bus and main memory.
|
||||
The DMA Engine will be referred to by phandle by any device that is
|
||||
connected to it.
|
||||
|
||||
Properties:
|
||||
- compatible: "cavium,octeon-5750-bootbus-dma"
|
||||
|
||||
Compatibility with all cn52XX, cn56XX and cn6XXX SOCs.
|
||||
|
||||
- reg: The base address of the DMA Engine's register bank.
|
||||
|
||||
- interrupts: A single interrupt specifier.
|
||||
|
||||
Example:
|
||||
dma0: dma-engine@1180000000100 {
|
||||
compatible = "cavium,octeon-5750-bootbus-dma";
|
||||
reg = <0x11800 0x00000100 0x0 0x8>;
|
||||
interrupts = <0 63>;
|
||||
};
|
46
Documentation/devicetree/bindings/mips/cavium/uctl.txt
Normal file
46
Documentation/devicetree/bindings/mips/cavium/uctl.txt
Normal file
|
@ -0,0 +1,46 @@
|
|||
* UCTL USB controller glue
|
||||
|
||||
Properties:
|
||||
- compatible: "cavium,octeon-6335-uctl"
|
||||
|
||||
Compatibility with all cn6XXX SOCs.
|
||||
|
||||
- reg: The base address of the UCTL register bank.
|
||||
|
||||
- #address-cells: Must be <2>.
|
||||
|
||||
- #size-cells: Must be <2>.
|
||||
|
||||
- ranges: Empty to signify direct mapping of the children.
|
||||
|
||||
- refclk-frequency: A single cell containing the reference clock
|
||||
frequency in Hz.
|
||||
|
||||
- refclk-type: A string describing the reference clock connection
|
||||
either "crystal" or "external".
|
||||
|
||||
Example:
|
||||
uctl@118006f000000 {
|
||||
compatible = "cavium,octeon-6335-uctl";
|
||||
reg = <0x11800 0x6f000000 0x0 0x100>;
|
||||
ranges; /* Direct mapping */
|
||||
#address-cells = <2>;
|
||||
#size-cells = <2>;
|
||||
/* 12MHz, 24MHz and 48MHz allowed */
|
||||
refclk-frequency = <24000000>;
|
||||
/* Either "crystal" or "external" */
|
||||
refclk-type = "crystal";
|
||||
|
||||
ehci@16f0000000000 {
|
||||
compatible = "cavium,octeon-6335-ehci","usb-ehci";
|
||||
reg = <0x16f00 0x00000000 0x0 0x100>;
|
||||
interrupts = <0 56>;
|
||||
big-endian-regs;
|
||||
};
|
||||
ohci@16f0000000400 {
|
||||
compatible = "cavium,octeon-6335-ohci","usb-ohci";
|
||||
reg = <0x16f00 0x00000400 0x0 0x100>;
|
||||
interrupts = <0 56>;
|
||||
big-endian-regs;
|
||||
};
|
||||
};
|
47
Documentation/devicetree/bindings/mips/cpu_irq.txt
Normal file
47
Documentation/devicetree/bindings/mips/cpu_irq.txt
Normal file
|
@ -0,0 +1,47 @@
|
|||
MIPS CPU interrupt controller
|
||||
|
||||
On MIPS the mips_cpu_intc_init() helper can be used to initialize the 8 CPU
|
||||
IRQs from a devicetree file and create a irq_domain for IRQ controller.
|
||||
|
||||
With the irq_domain in place we can describe how the 8 IRQs are wired to the
|
||||
platforms internal interrupt controller cascade.
|
||||
|
||||
Below is an example of a platform describing the cascade inside the devicetree
|
||||
and the code used to load it inside arch_init_irq().
|
||||
|
||||
Required properties:
|
||||
- compatible : Should be "mti,cpu-interrupt-controller"
|
||||
|
||||
Example devicetree:
|
||||
cpu-irq: cpu-irq@0 {
|
||||
#address-cells = <0>;
|
||||
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <1>;
|
||||
|
||||
compatible = "mti,cpu-interrupt-controller";
|
||||
};
|
||||
|
||||
intc: intc@200 {
|
||||
compatible = "ralink,rt2880-intc";
|
||||
reg = <0x200 0x100>;
|
||||
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <1>;
|
||||
|
||||
interrupt-parent = <&cpu-irq>;
|
||||
interrupts = <2>;
|
||||
};
|
||||
|
||||
|
||||
Example platform irq.c:
|
||||
static struct of_device_id __initdata of_irq_ids[] = {
|
||||
{ .compatible = "mti,cpu-interrupt-controller", .data = mips_cpu_intc_init },
|
||||
{ .compatible = "ralink,rt2880-intc", .data = intc_of_init },
|
||||
{},
|
||||
};
|
||||
|
||||
void __init arch_init_irq(void)
|
||||
{
|
||||
of_irq_init(of_irq_ids);
|
||||
}
|
17
Documentation/devicetree/bindings/mips/ralink.txt
Normal file
17
Documentation/devicetree/bindings/mips/ralink.txt
Normal file
|
@ -0,0 +1,17 @@
|
|||
Ralink MIPS SoC device tree bindings
|
||||
|
||||
1. SoCs
|
||||
|
||||
Each device tree must specify a compatible value for the Ralink SoC
|
||||
it uses in the compatible property of the root node. The compatible
|
||||
value must be one of the following values:
|
||||
|
||||
ralink,rt2880-soc
|
||||
ralink,rt3050-soc
|
||||
ralink,rt3052-soc
|
||||
ralink,rt3350-soc
|
||||
ralink,rt3352-soc
|
||||
ralink,rt3883-soc
|
||||
ralink,rt5350-soc
|
||||
ralink,mt7620a-soc
|
||||
ralink,mt7620n-soc
|
Loading…
Add table
Add a link
Reference in a new issue