^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) %YAML 1.2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) ---
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) $id: http://devicetree.org/schemas/nvmem/rockchip-efuse.yaml#
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) $schema: http://devicetree.org/meta-schemas/core.yaml#
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) title: Rockchip eFuse device tree bindings
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) maintainers:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) - Heiko Stuebner <heiko@sntech.de>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) allOf:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) - $ref: "nvmem.yaml#"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) compatible:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) enum:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) - rockchip,rk1808-efuse
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) - rockchip,rk3066a-efuse
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) - rockchip,rk3128-efuse
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) - rockchip,rk3188-efuse
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) - rockchip,rk3228-efuse
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) - rockchip,rk3288-efuse
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) - rockchip,rk3288-secure-efuse
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) - rockchip,rk3328-efuse
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) - rockchip,rk3368-efuse
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) - rockchip,rk3399-efuse
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) # Deprecated: old compatible value for rk3066a, rk3188 and rk3288
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) - rockchip,rockchip-efuse
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) reg:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) Registers location and eFuse size.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) maxItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) clocks:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) eFuse clock id.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) maxItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) clock-names:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) const: pclk_efuse
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) rockchip,efuse-size:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) eFuse size in bytes. The eFuse size in property <reg> will be invalid if
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) this property is defined.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) $ref: /schemas/types.yaml#/definitions/uint32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) required:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) - compatible
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) - reg
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) - clocks
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) - clock-names
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) unevaluatedProperties: false
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) examples:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) - |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) #include <dt-bindings/clock/rk3288-cru.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) efuse: efuse@ffb40000 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) compatible = "rockchip,rk3288-efuse";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) reg = <0xffb40000 0x20>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) #address-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) #size-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) clocks = <&cru PCLK_EFUSE256>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) clock-names = "pclk_efuse";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) /* Data cells */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) cpu_leakage: cpu_leakage@17 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) reg = <0x17 0x1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) ...