Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/nvmem/rockchip-efuse.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Rockchip eFuse device tree bindings
0008 
0009 maintainers:
0010   - Heiko Stuebner <heiko@sntech.de>
0011 
0012 allOf:
0013   - $ref: "nvmem.yaml#"
0014 
0015 properties:
0016   compatible:
0017     enum:
0018       - rockchip,rk3066a-efuse
0019       - rockchip,rk3188-efuse
0020       - rockchip,rk3228-efuse
0021       - rockchip,rk3288-efuse
0022       - rockchip,rk3328-efuse
0023       - rockchip,rk3368-efuse
0024       - rockchip,rk3399-efuse
0025 
0026       # Deprecated: old compatible value for rk3066a, rk3188 and rk3288
0027       - rockchip,rockchip-efuse
0028 
0029   reg:
0030     description:
0031       Registers location and eFuse size.
0032     maxItems: 1
0033 
0034   clocks:
0035     description:
0036       eFuse clock id.
0037     maxItems: 1
0038 
0039   clock-names:
0040     const: pclk_efuse
0041 
0042   rockchip,efuse-size:
0043     description:
0044       eFuse size in bytes. The eFuse size in property <reg> will be invalid if
0045       this property is defined.
0046     $ref: /schemas/types.yaml#/definitions/uint32
0047 
0048 required:
0049   - compatible
0050   - reg
0051   - clocks
0052   - clock-names
0053 
0054 unevaluatedProperties: false
0055 
0056 examples:
0057   - |
0058     #include <dt-bindings/clock/rk3288-cru.h>
0059     efuse: efuse@ffb40000 {
0060             compatible = "rockchip,rk3288-efuse";
0061             reg = <0xffb40000 0x20>;
0062             #address-cells = <1>;
0063             #size-cells = <1>;
0064             clocks = <&cru PCLK_EFUSE256>;
0065             clock-names = "pclk_efuse";
0066 
0067             /* Data cells */
0068             cpu_leakage: cpu_leakage@17 {
0069                     reg = <0x17 0x1>;
0070             };
0071     };
0072 ...