Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: nvmem: add binding for Rockchip OTP controller

Newer Rockchip SoCs use a different IP for accessing special one-
time-programmable memory, so add a binding for these controllers.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20191029114240.14905-10-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Heiko Stuebner and committed by
Greg Kroah-Hartman
de02fc40 b210fac7

+25
+25
Documentation/devicetree/bindings/nvmem/rockchip-otp.txt
··· 1 + Rockchip internal OTP (One Time Programmable) memory device tree bindings 2 + 3 + Required properties: 4 + - compatible: Should be one of the following. 5 + - "rockchip,px30-otp" - for PX30 SoCs. 6 + - "rockchip,rk3308-otp" - for RK3308 SoCs. 7 + - reg: Should contain the registers location and size 8 + - clocks: Must contain an entry for each entry in clock-names. 9 + - clock-names: Should be "otp", "apb_pclk" and "phy". 10 + - resets: Must contain an entry for each entry in reset-names. 11 + See ../../reset/reset.txt for details. 12 + - reset-names: Should be "phy". 13 + 14 + See nvmem.txt for more information. 15 + 16 + Example: 17 + otp: otp@ff290000 { 18 + compatible = "rockchip,px30-otp"; 19 + reg = <0x0 0xff290000 0x0 0x4000>; 20 + #address-cells = <1>; 21 + #size-cells = <1>; 22 + clocks = <&cru SCLK_OTP_USR>, <&cru PCLK_OTP_NS>, 23 + <&cru PCLK_OTP_PHY>; 24 + clock-names = "otp", "apb_pclk", "phy"; 25 + };