Documentation / devicetree / bindings / nvmem / sprd,sc2731-efuse.yaml


Based on kernel version 6.13. Page generated on 2025-01-21 08:20 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/nvmem/sprd,sc2731-efuse.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Spreadtrum SC27XX PMIC eFuse

maintainers:
  - Orson Zhai <orsonzhai@gmail.com>
  - Baolin Wang <baolin.wang7@gmail.com>
  - Chunyan Zhang <zhang.lyra@gmail.com>

properties:
  compatible:
    enum:
      - sprd,sc2720-efuse
      - sprd,sc2721-efuse
      - sprd,sc2723-efuse
      - sprd,sc2730-efuse
      - sprd,sc2731-efuse

  reg:
    maxItems: 1

  hwlocks:
    maxItems: 1

required:
  - compatible
  - reg
  - hwlocks

allOf:
  - $ref: nvmem.yaml#
  - $ref: nvmem-deprecated-cells.yaml#

unevaluatedProperties: false

examples:
  - |
    pmic {
      #address-cells = <1>;
      #size-cells = <0>;
 
      efuse@380 {
        compatible = "sprd,sc2731-efuse";
        reg = <0x380>;
        hwlocks = <&hwlock 12>;
        #address-cells = <1>;
        #size-cells = <1>;
 
        /* Data cells */
        fgu_calib: calib@6 {
          reg = <0x6 0x2>;
          bits = <0 9>;
        };
 
        adc_big_scale: calib@24 {
          reg = <0x24 0x2>;
        };
 
        adc_small_scale: calib@26 {
          reg = <0x26 0x2>;
        };
      };
    };
...