mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 14:52:05 +00:00
b3149f4e33
Rk3399-efuse is organized as 32bits by 32 one-time programmable electrical fuses. The efuse of earlier SoCs are organized as 32bits by 8 one-time programmable electrical fuses with random access interface. Add different device tree compatible string for different SoCs to be able to differentiate between the two. The old binding is of course preserved, though deprecated. Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com> Reviewed-by: Heiko Stuebner <heiko@sntech.de> Reviewed-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
48 lines
1.1 KiB
Plaintext
48 lines
1.1 KiB
Plaintext
= Rockchip eFuse device tree bindings =
|
|
|
|
Required properties:
|
|
- compatible: Should be one of the following.
|
|
- "rockchip,rk3066a-efuse" - for RK3066a SoCs.
|
|
- "rockchip,rk3188-efuse" - for RK3188 SoCs.
|
|
- "rockchip,rk3288-efuse" - for RK3288 SoCs.
|
|
- "rockchip,rk3399-efuse" - for RK3399 SoCs.
|
|
- reg: Should contain the registers location and exact eFuse size
|
|
- clocks: Should be the clock id of eFuse
|
|
- clock-names: Should be "pclk_efuse"
|
|
|
|
Deprecated properties:
|
|
- compatible: "rockchip,rockchip-efuse"
|
|
Old efuse compatible value compatible to rk3066a, rk3188 and rk3288
|
|
efuses
|
|
|
|
= Data cells =
|
|
Are child nodes of eFuse, bindings of which as described in
|
|
bindings/nvmem/nvmem.txt
|
|
|
|
Example:
|
|
|
|
efuse: efuse@ffb40000 {
|
|
compatible = "rockchip,rk3288-efuse";
|
|
reg = <0xffb40000 0x20>;
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
clocks = <&cru PCLK_EFUSE256>;
|
|
clock-names = "pclk_efuse";
|
|
|
|
/* Data cells */
|
|
cpu_leakage: cpu_leakage {
|
|
reg = <0x17 0x1>;
|
|
};
|
|
};
|
|
|
|
= Data consumers =
|
|
Are device nodes which consume nvmem data cells.
|
|
|
|
Example:
|
|
|
|
cpu_leakage {
|
|
...
|
|
nvmem-cells = <&cpu_leakage>;
|
|
nvmem-cell-names = "cpu_leakage";
|
|
};
|