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