Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/mtd/partitions/nvmem-cells.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Nvmem cells
0008 
0009 description: |
0010   Any partition containing the compatible "nvmem-cells" will register as a
0011   nvmem provider.
0012   Each direct subnodes represents a nvmem cell following the nvmem binding.
0013   Nvmem binding to declare nvmem-cells can be found in:
0014   Documentation/devicetree/bindings/nvmem/nvmem.yaml
0015 
0016 maintainers:
0017   - Ansuel Smith <ansuelsmth@gmail.com>
0018 
0019 allOf:
0020   - $ref: /schemas/nvmem/nvmem.yaml#
0021 
0022 properties:
0023   compatible:
0024     const: nvmem-cells
0025 
0026 required:
0027   - compatible
0028 
0029 additionalProperties: true
0030 
0031 examples:
0032   - |
0033     partitions {
0034       compatible = "fixed-partitions";
0035       #address-cells = <1>;
0036       #size-cells = <1>;
0037 
0038       /* ... */
0039 
0040       };
0041       art: art@1200000 {
0042         compatible = "nvmem-cells";
0043         reg = <0x1200000 0x0140000>;
0044         label = "art";
0045         read-only;
0046         #address-cells = <1>;
0047         #size-cells = <1>;
0048 
0049         macaddr_gmac1: macaddr_gmac1@0 {
0050           reg = <0x0 0x6>;
0051         };
0052 
0053         macaddr_gmac2: macaddr_gmac2@6 {
0054           reg = <0x6 0x6>;
0055         };
0056 
0057         pre_cal_24g: pre_cal_24g@1000 {
0058           reg = <0x1000 0x2f20>;
0059         };
0060 
0061         pre_cal_5g: pre_cal_5g@5000{
0062           reg = <0x5000 0x2f20>;
0063         };
0064       };
0065   - |
0066     partitions {
0067         compatible = "fixed-partitions";
0068         #address-cells = <1>;
0069         #size-cells = <1>;
0070 
0071         partition@0 {
0072             label = "bootloader";
0073             reg = <0x000000 0x100000>;
0074             read-only;
0075         };
0076 
0077         firmware@100000 {
0078             compatible = "brcm,trx";
0079             label = "firmware";
0080             reg = <0x100000 0xe00000>;
0081         };
0082 
0083         calibration@f00000 {
0084             compatible = "nvmem-cells";
0085             label = "calibration";
0086             reg = <0xf00000 0x100000>;
0087             ranges = <0 0xf00000 0x100000>;
0088             #address-cells = <1>;
0089             #size-cells = <1>;
0090 
0091             wifi0@0 {
0092                 reg = <0x000000 0x080000>;
0093             };
0094 
0095             wifi1@80000 {
0096                 reg = <0x080000 0x080000>;
0097             };
0098         };
0099     };