^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) = Mediatek MTK-EFUSE device tree bindings =
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) This binding is intended to represent MTK-EFUSE which is found in most Mediatek SOCs.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) - compatible: should be
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) "mediatek,mt7622-efuse", "mediatek,efuse": for MT7622
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) "mediatek,mt7623-efuse", "mediatek,efuse": for MT7623
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) "mediatek,mt8173-efuse" or "mediatek,efuse": for MT8173
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) - reg: Should contain registers location and length
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) = Data cells =
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) Are child nodes of MTK-EFUSE, bindings of which as described in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) bindings/nvmem/nvmem.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) efuse: efuse@10206000 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) compatible = "mediatek,mt8173-efuse";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) reg = <0 0x10206000 0 0x1000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #address-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #size-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) /* Data cells */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) thermal_calibration: calib@528 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) reg = <0x528 0xc>;
^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)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) = Data consumers =
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) Are device nodes which consume nvmem data cells.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) For example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) thermal {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) ...
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) nvmem-cells = <&thermal_calibration>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) nvmem-cell-names = "calibration";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) };