From bb88c004d187f8a1691dcff4074adcaff9347f93 Mon Sep 17 00:00:00 2001 From: Finley Xiao Date: Tue, 23 Jan 2018 20:57:06 +0800 Subject: [PATCH] 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 --- .../bindings/nvmem/rockchip-otp.txt | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/rockchip-otp.txt diff --git a/Documentation/devicetree/bindings/nvmem/rockchip-otp.txt b/Documentation/devicetree/bindings/nvmem/rockchip-otp.txt new file mode 100644 index 000000000000..2e3781cf7072 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/rockchip-otp.txt @@ -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"; + };