From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Porter Subject: [RFC PATCH 3/5] Documentation: dt-bindings: add YAML eeprom binding Date: Fri, 28 Aug 2015 01:23:51 -0400 Message-ID: <1440739433-6799-4-git-send-email-mporter@konsulko.com> References: <1440739433-6799-1-git-send-email-mporter@konsulko.com> Return-path: In-Reply-To: <1440739433-6799-1-git-send-email-mporter-OWPKS81ov/FWk0Htik3J/w@public.gmane.org> Sender: devicetree-spec-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Devicetree List , Devicetree Spec List , Grant Likely , Frank Rowand , Rob Herring Cc: Mark Rutland , Pantelis Antoniou , Behan Webster List-Id: devicetree@vger.kernel.org Convert the eeprom.txt binding to standard YAML DT binding format. Signed-off-by: Matt Porter --- Documentation/devicetree/bindings/eeprom.yaml | 44 +++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/eeprom.yaml diff --git a/Documentation/devicetree/bindings/eeprom.yaml b/Documentation/devicetree/bindings/eeprom.yaml new file mode 100644 index 0000000..bf1244b --- /dev/null +++ b/Documentation/devicetree/bindings/eeprom.yaml @@ -0,0 +1,44 @@ +%YAML 1.2 +--- +id: eeprom-i2c + +title: EEPROMs (I2C) + +compatible: + - name: ",24c00" + - name: ",24c01" + - name: ",24c02" + - name: ",24c04" + - name: ",24c08" + - name: ",24c16" + - name: ",24c32" + - name: ",24c64" + - name: ",24c128" + - name: ",24c256" + - name: ",24c512" + - name: ",24c1024" + - name: ",spd" + +required: + - name: "reg" + description: the I2c address of the EEPROM + +optional: + - name: "pagesize" + description: > + the length of the pagesize for writing. Please consult the + manual of your device, that value varies a lot. A wrong value + may result in data loss! If not specified, a safety value of + '1' is used which will be very slow. + - name: "read-only" + description: > + this parameterless property disables writes to the eeprom + +example: + - dts: | + eeprom@52 { + compatible = "atmel,24c32"; + reg = <0x52>; + pagesize = <32>; + }; +... -- 2.1.4