Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | = Spreadtrum eFuse device tree bindings = |
| 2 | |
| 3 | Required properties: |
| 4 | - compatible: Should be "sprd,ums312-efuse". |
| 5 | - reg: Specify the address offset of efuse controller. |
| 6 | - clock-names: Should be "enable". |
| 7 | - clocks: The phandle and specifier referencing the controller's clock. |
| 8 | - hwlocks: Reference to a phandle of a hwlock provider node. |
| 9 | |
| 10 | = Data cells = |
| 11 | Are child nodes of eFuse, bindings of which as described in |
| 12 | bindings/nvmem/nvmem.txt |
| 13 | |
| 14 | Example: |
| 15 | |
| 16 | ap_efuse: efuse@32240000 { |
| 17 | compatible = "sprd,ums312-efuse"; |
| 18 | reg = <0 0x32240000 0 0x10000>; |
| 19 | clock-names = "enable"; |
| 20 | hwlocks = <&hwlock 8>; |
| 21 | clocks = <&aonapb_gate CLK_EFUSE_EB>; |
| 22 | |
| 23 | /* Data cells */ |
| 24 | thermal_calib: calib@10 { |
| 25 | reg = <0x10 0x2>; |
| 26 | }; |
| 27 | }; |
| 28 | |
| 29 | = Data consumers = |
| 30 | Are device nodes which consume nvmem data cells. |
| 31 | |
| 32 | Example: |
| 33 | |
| 34 | thermal { |
| 35 | ... |
| 36 | |
| 37 | nvmem-cells = <&thermal_calib>; |
| 38 | nvmem-cell-names = "calibration"; |
| 39 | }; |