dt-bindings: add binding document for Rockchip otp

This patch documents the Rockchip otp device tree binding.

Change-Id: I90dc6110c386bd0fab3b9531d857514b300c81df
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
This commit is contained in:
Finley Xiao
2018-01-23 20:57:06 +08:00
committed by Tao Huang
parent ef6433360d
commit bb88c004d1

View File

@@ -0,0 +1,23 @@
Rockchip internal OTP (One Time Programmable) memory device tree bindings
Required properties:
- compatible: Should be "rockchip,px30-otp"
- reg: Must contain an entry with the physical base address and length
for each entry in reg-names.
- address-cells: must be set to 1.
- size-cells: must be set to 1.
- clocks: Must contain an entry for each entry in clock-names.
- clock-names: Should be "clk_opt", "pclk_otp" and "pclk_otp_phy".
See nvmem.txt for more information.
Example:
otp: otp@ff290000 {
compatible = "rockchip,px30-otp";
reg = <0x0 0xff290000 0x0 0x4000>;
#address-cells = <1>;
#size-cells = <1>;
clocks = <&cru SCLK_OTP_USR>, <&cru PCLK_OTP_NS>,
<&cru PCLK_OTP_PHY>;
clock-names = "clk_opt", "pclk_otp", "pclk_otp_phy";
};