From patchwork Thu Oct 16 08:15:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Werner X-Patchwork-Id: 400170 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 937A71400A0 for ; Thu, 16 Oct 2014 18:30:37 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750805AbaJPHah (ORCPT ); Thu, 16 Oct 2014 03:30:37 -0400 Received: from mail1.bemta14.messagelabs.com ([193.109.254.108]:60750 "EHLO mail1.bemta14.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750765AbaJPHag (ORCPT ); Thu, 16 Oct 2014 03:30:36 -0400 X-Greylist: delayed 396 seconds by postgrey-1.27 at vger.kernel.org; Thu, 16 Oct 2014 03:30:36 EDT Received: from [85.158.140.211:28052] by server-4.bemta-14.messagelabs.com id 68/C0-01677-E827F345; Thu, 16 Oct 2014 07:23:58 +0000 X-Env-Sender: Andreas.Werner@men.de X-Msg-Ref: server-3.tower-194.messagelabs.com!1413444237!19546310!1 X-Originating-IP: [80.255.6.145] X-StarScan-Received: X-StarScan-Version: 6.12.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 22915 invoked from network); 16 Oct 2014 07:23:57 -0000 Received: from unknown (HELO keys.men.de) (80.255.6.145) by server-3.tower-194.messagelabs.com with AES128-SHA encrypted SMTP; 16 Oct 2014 07:23:57 -0000 Received: from MEN-EX1.intra.men.de ([192.168.1.2]) by keys.men.de (PGP Universal service); Thu, 16 Oct 2014 09:23:57 +0200 X-PGP-Universal: processed; by keys.men.de on Thu, 16 Oct 2014 09:23:57 +0200 Received: from awelinux (192.1.1.171) by MEN-EX1.intra.men.de (192.168.1.2) with Microsoft SMTP Server (TLS) id 14.3.181.6; Thu, 16 Oct 2014 09:23:57 +0200 Date: Thu, 16 Oct 2014 10:15:27 +0200 From: Andreas Werner To: CC: , , , , Subject: [PATCH 2/2] Documentation/ABI/testing/men_eeprod: Added sysfs description for men_eeprod Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [192.1.1.171] Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org This patch adds the description for the men_eeprod. men_eeprod is a driver for the MEN Board Information EEPROM which exports the data using sysfs entries. Signed-off-by: Andreas Werner --- .../ABI/testing/sysfs-bus-i2c-devices-men_eeprod | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-i2c-devices-men_eeprod diff --git a/Documentation/ABI/testing/sysfs-bus-i2c-devices-men_eeprod b/Documentation/ABI/testing/sysfs-bus-i2c-devices-men_eeprod new file mode 100644 index 0000000..a488d0e --- /dev/null +++ b/Documentation/ABI/testing/sysfs-bus-i2c-devices-men_eeprod @@ -0,0 +1,69 @@ +What: /sys/bus/i2c/devices/i2c-/-/eeprod_id +Date: October 2014 +Contact: Andreas Werner +Description: + Show the identifier of the EEPROM structure. + There are different layouts of the EEPROM with more or less + information. The ID identifies each of the layouts. + + Currently supported structure is EEPROD2 (0x0E) + +What: /sys/bus/i2c/devices/i2c-/-/revision +Date: October 2014 +Contact: Andreas Werner +Description: + Show the revision of the board. + Format of the revision field is XX.XX.XX + +What: /sys/bus/i2c/devices/i2c-/-/serialnr +Date: October 2014 +Contact: Andreas Werner +Description: + Show the serialnumber of the board. The serial number is + a decimal number. + +What: /sys/bus/i2c/devices/i2c-/-/hw_name +Date: October 2014 +Contact: Andreas Werner +Description: + Show the name of the board including the model. + There are boards which have different features such as + different size of RAM, the model identifies the different + types. + + Format of the hw_name is: . + Example: F075P00 where F75P is the hw_name and 00 the model. + +What: /sys/bus/i2c/devices/i2c-/-/prod_date +Date: October 2014 +Contact: Andreas Werner +Description: + Show the board production date. + + Format of the date: YYYY-MM-DD + +What: /sys/bus/i2c/devices/i2c-/-/rep_date +Date: October 2014 +Contact: Andreas Werner +Description: + Show the last repair date. + If the board returns back to the repair department, this field + will be programmed with the current date. + If the board has never returned, the field will be empty and + the read access to this sysfs entry returns -EINVAL. + + Format of the date: YYYY-MM-DD + +What: /sys/bus/i2c/devices/i2c-/-/user_section +Date: October 2014 +Contact: Andreas Werner +Description: + Read or write access to the user section of the EEPROM + This sysfs entry is a binary file where customer can write + there own data to. + The size of this file depends on the EEPROM layout which is + identified by the eeprod_id. + + eeprod_id user_section size + --------------------------------- + 0x0E 232 byte