M7350/kernel/Documentation/devicetree/bindings/mtd/msm_qpic_nand.txt

66 lines
2.0 KiB
Plaintext
Raw Normal View History

2024-09-09 08:57:42 +00:00
Qualcomm Technologies, Inc. Parallel Interface controller (QPIC) for NAND devices
2024-09-09 08:52:07 +00:00
Required properties:
- compatible : "qcom,msm-nand".
- reg : should specify QPIC NANDc and BAM physical address range.
- reg-names : should specify relevant names to each reg property defined.
- interrupts : should specify QPIC/BAM interrupt numbers.
- interrupt-names : should specify relevant names to each interrupts property
defined.
MTD flash partition layout for NAND devices -
Each partition is represented as a sub-node of the qcom,mtd-partitions device.
Each node's name represents the name of the corresponding partition.
2024-09-09 08:57:42 +00:00
This is now completely optional as the partition information is avaialble from
bootloader.
2024-09-09 08:52:07 +00:00
Optional properties:
2024-09-09 08:57:42 +00:00
- reg : The partition offset and size
- label : The label / name for this partition.
2024-09-09 08:52:07 +00:00
- read-only: This parameter, if present, indicates that this partition
should only be mounted read-only.
2024-09-09 08:57:42 +00:00
- Refer to "Documentation/devicetree/bindings/arm/msm/msm_bus.txt" for
below optional properties:
- qcom,msm-bus,name
- qcom,msm-bus,num-cases
- qcom,msm-bus,active-only
- qcom,msm-bus,num-paths
- qcom,msm-bus,vectors-KBps
2024-09-09 08:52:07 +00:00
Examples:
qcom,nand@f9af0000 {
compatible = "qcom,msm-nand";
reg = <0xf9af0000 0x1000>,
<0xf9ac4000 0x8000>;
reg-names = "nand_phys",
"bam_phys";
interrupts = <0 279 0>;
interrupt-names = "bam_irq";
2024-09-09 08:57:42 +00:00
qcom,msm-bus,name = "qpic_nand";
qcom,msm-bus,num-cases = <1>;
qcom,msm-bus,num-paths = <1>;
qcom,msm-bus,vectors-KBps = <91 512 0 0>,
2024-09-09 08:52:07 +00:00
};
qcom,mtd-partitions {
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "boot";
reg = <0x0 0x1000>;
read-only;
};
partition@20000 {
label = "userdata";
reg = <0x20000 0x1000>;
};
partition@40000 {
label = "system";
reg = <0x40000 0x1000>;
};
};