From patchwork Fri Aug 28 05:23:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Porter X-Patchwork-Id: 511759 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id F03471401C7 for ; Fri, 28 Aug 2015 15:24:07 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751565AbbH1FYG (ORCPT ); Fri, 28 Aug 2015 01:24:06 -0400 Received: from mail-io0-f178.google.com ([209.85.223.178]:34542 "EHLO mail-io0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751196AbbH1FYF (ORCPT ); Fri, 28 Aug 2015 01:24:05 -0400 Received: by iofe124 with SMTP id e124so16327511iof.1 for ; Thu, 27 Aug 2015 22:24:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=dOIEMkP3T4KiMvn1vi0UQTWwG0e8Qzw2YIHKN5XSKPo=; b=lmbAKXsGwA7Lez6NU8DOTNCrFkqhTwTQw5mCELmlJHRaZ5EwExoieUbCWHmTJDWa8m SvlKa9SMEfkjXa13XAZ1C2GN7OoqzeZgPg11eKSidFDkktK+G8U5nvwUYpTWXXeUHuEK CqC1cCnm+go1v5PyI5s3f/yCN4RYiwSL1kvUu9MVVOJcLNcV40MrYXqi0xp+/OLgiNRq PpIOAFBIvtckZ17pJocB1wo81uUHtAvX6gl6pgr0N/sea2GJTgIfHCYRH0TbDNPS604a KPo+/PYJfv5JQZDElzh+CBm4Vjrt7JoTXDjKbHV3HIra4SfdXP+hcBWYAEeLC7X4AKkH lMgw== X-Gm-Message-State: ALoCoQnmKrOj4GdEwTYuFpZFqY5L5kJg2a215p5q3Kfc5KcvurFJ2uGBUeLxkTALwTU3L6zf/sly X-Received: by 10.107.3.169 with SMTP id e41mr12790629ioi.113.1440739444440; Thu, 27 Aug 2015 22:24:04 -0700 (PDT) Received: from bacon.ohporter.com (cpe-107-10-23-53.neo.res.rr.com. [107.10.23.53]) by smtp.gmail.com with ESMTPSA id 85sm3275449iot.6.2015.08.27.22.24.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Aug 2015 22:24:03 -0700 (PDT) From: Matt Porter To: Devicetree List , Devicetree Spec List , Grant Likely , Frank Rowand , Rob Herring Cc: Mark Rutland , Pantelis Antoniou , Behan Webster 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> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1440739433-6799-1-git-send-email-mporter@konsulko.com> References: <1440739433-6799-1-git-send-email-mporter@konsulko.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: 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>; + }; +...