From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joachim Eastwood Subject: Re: [PATCH 2/3] nvmem: dt: document lpc1850 OTP binding Date: Fri, 23 Sep 2016 22:05:54 +0200 Message-ID: References: <20160913161241.22492-1-manabian@gmail.com> <20160913161241.22492-3-manabian@gmail.com> <20160923133529.GA23548@rob-hp-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: In-Reply-To: <20160923133529.GA23548@rob-hp-laptop> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Rob Herring Cc: Srinivas Kandagatla , Maxime Ripard , "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" , devicetree List-Id: devicetree@vger.kernel.org On 23 September 2016 at 15:35, Rob Herring wrote: > On Tue, Sep 13, 2016 at 06:12:40PM +0200, Joachim Eastwood wrote: >> Documenation for the LPC18xx/43xx OTP memory bindings. >> >> Signed-off-by: Joachim Eastwood >> --- >> .../devicetree/bindings/nvmem/lpc1850-otp.txt | 20 ++++++++++++++++++++ >> 1 file changed, 20 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/nvmem/lpc1850-otp.txt >> >> diff --git a/Documentation/devicetree/bindings/nvmem/lpc1850-otp.txt b/Documentation/devicetree/bindings/nvmem/lpc1850-otp.txt >> new file mode 100644 >> index 0000000..853b6a7 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/nvmem/lpc1850-otp.txt >> @@ -0,0 +1,20 @@ >> +* NXP LPC18xx OTP memory >> + >> +Internal OTP (One Time Programmable) memory for NXP LPC18xx/43xx devices. >> + >> +Required properties: >> + - compatible: Should be "nxp,lpc1850-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. > > Not needed unless you have child nodes. They will have "nvmem" cell children. See patch 3/3 + /* Flashless devices has part ID in OTP bank 0 */ + part_id: identification@0 { + reg = <0x0 0x10>; + }; These cells are documented in nvmem.txt. regards, Joachim Eastwood -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: manabian@gmail.com (Joachim Eastwood) Date: Fri, 23 Sep 2016 22:05:54 +0200 Subject: [PATCH 2/3] nvmem: dt: document lpc1850 OTP binding In-Reply-To: <20160923133529.GA23548@rob-hp-laptop> References: <20160913161241.22492-1-manabian@gmail.com> <20160913161241.22492-3-manabian@gmail.com> <20160923133529.GA23548@rob-hp-laptop> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 23 September 2016 at 15:35, Rob Herring wrote: > On Tue, Sep 13, 2016 at 06:12:40PM +0200, Joachim Eastwood wrote: >> Documenation for the LPC18xx/43xx OTP memory bindings. >> >> Signed-off-by: Joachim Eastwood >> --- >> .../devicetree/bindings/nvmem/lpc1850-otp.txt | 20 ++++++++++++++++++++ >> 1 file changed, 20 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/nvmem/lpc1850-otp.txt >> >> diff --git a/Documentation/devicetree/bindings/nvmem/lpc1850-otp.txt b/Documentation/devicetree/bindings/nvmem/lpc1850-otp.txt >> new file mode 100644 >> index 0000000..853b6a7 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/nvmem/lpc1850-otp.txt >> @@ -0,0 +1,20 @@ >> +* NXP LPC18xx OTP memory >> + >> +Internal OTP (One Time Programmable) memory for NXP LPC18xx/43xx devices. >> + >> +Required properties: >> + - compatible: Should be "nxp,lpc1850-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. > > Not needed unless you have child nodes. They will have "nvmem" cell children. See patch 3/3 + /* Flashless devices has part ID in OTP bank 0 */ + part_id: identification at 0 { + reg = <0x0 0x10>; + }; These cells are documented in nvmem.txt. regards, Joachim Eastwood