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