Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp698849imm; Fri, 22 Jun 2018 03:55:13 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJYfgqhRLr8g3Su0bFq2jir8UHSR60HzIX2mDkSPKYOUt9q8CgYmggjt1wC7Xfj/mL/MVxr X-Received: by 2002:a65:5c02:: with SMTP id u2-v6mr960633pgr.304.1529664913841; Fri, 22 Jun 2018 03:55:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529664913; cv=none; d=google.com; s=arc-20160816; b=pUuUkJndLNIvYko3iKTSoSt6B2/ZYGR5lqJzxk2rTHQyE91XjP4481UtE2KL0sd937 /hRIsHYIcodJMI79Ljpp6o2KcyosEBhO50mFzmnH+t/8CxG4cj1XRAzOnYsM6Qld5JpT drdrdrqZvwpUGRhP3a0kK/3419DN/X9dKF7kXQLG3ZLMlatoeOjWcCNVAW+2HeL5R9pq BgdPFsT/YoZVuxCZX0I7EorHUXlm8Hqj9MXnVNBIPLvx3Zoanfsso3qMVCnOOl/Euxlx H80yECnVG3GYAaOfy8xJejsceSbC5cp1P1wrF3hUA+77k9FxlZeNoJ9P1hRBvTSBfMUz t+GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=HU2hRNOaJeEFCKZXcy8TNhvkgqJ3gODxFfONAPm3pZ8=; b=JSkFPzuFej6+ttgHNZFVcHiSjNFDfFye9x6kWxC4pq0j1ErDVmwrYDo3AOFxuvLQ5H udSr8rn5WDjI5qv9wpB26XjSBbS3NSebJE78hdBNFGNDEPlAUiLfW1dVq6V1i7JhSFo2 JvjktjEVme3TSCz8uTzT0l0l4VE95iMaGenrNYk3sPkS9LfKGhann1wtF50jKIXL2tuC Hqcu3DANxkHvlVCwh/P6kpXrlyZ/NnwxCw5RW0QXbdQbI/0g+F5bbwc39VfU4Ij5s4MD e0bkJKAoqjJV1sxBD26qTaFURncrBW3O6OIxxPG8aAqcc8tZU797ULGnV9m5kHeMahk9 aGSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s22-v6si6028612pgs.396.2018.06.22.03.54.59; Fri, 22 Jun 2018 03:55:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933731AbeFVKwm (ORCPT + 99 others); Fri, 22 Jun 2018 06:52:42 -0400 Received: from mail.bootlin.com ([62.4.15.54]:49417 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933292AbeFVKtr (ORCPT ); Fri, 22 Jun 2018 06:49:47 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 4A20120719; Fri, 22 Jun 2018 12:49:45 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost.localdomain (AAubervilliers-681-1-50-153.w90-88.abo.wanadoo.fr [90.88.168.153]) by mail.bootlin.com (Postfix) with ESMTPSA id 9B467207EB; Fri, 22 Jun 2018 12:49:34 +0200 (CEST) From: Boris Brezillon To: Wolfram Sang , linux-i2c@vger.kernel.org, Jonathan Corbet , linux-doc@vger.kernel.org, Greg Kroah-Hartman , Arnd Bergmann Cc: Przemyslaw Sroka , Arkadiusz Golec , Alan Douglas , Bartosz Folta , Damian Kos , Alicja Jurasik-Urbaniak , Cyprian Wronka , Suresh Punnoose , Rafal Ciepiela , Thomas Petazzoni , Nishanth Menon , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vitor Soares , Geert Uytterhoeven , Linus Walleij , Xiang Lin , linux-gpio@vger.kernel.org, Sekhar Nori , Przemyslaw Gaj , Boris Brezillon Subject: [PATCH v5 03/10] i3c: Add sysfs ABI spec Date: Fri, 22 Jun 2018 12:49:23 +0200 Message-Id: <20180622104930.32050-4-boris.brezillon@bootlin.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180622104930.32050-1-boris.brezillon@bootlin.com> References: <20180622104930.32050-1-boris.brezillon@bootlin.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document sysfs files/directories/symlinks exposed by the I3C subsystem. Signed-off-by: Boris Brezillon --- Changes in v5: - Fix the kernel version - Rename address into dynamic_address to match changes done in the code Changes in v4: - none Changes in v3: - none Changes in v2: - new patch --- Documentation/ABI/testing/sysfs-bus-i3c | 95 +++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-i3c diff --git a/Documentation/ABI/testing/sysfs-bus-i3c b/Documentation/ABI/testing/sysfs-bus-i3c new file mode 100644 index 000000000000..068fd1e97c01 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-bus-i3c @@ -0,0 +1,95 @@ +What: /sys/bus/i3c/devices/i3c- +KernelVersion: 4.19 +Contact: linux-i3c@vger.kernel.org +Description: + An I3C bus. This directory will contain one sub-directory per + I3C device present on the bus. + +What: /sys/bus/i3c/devices/i3c-/current_master +KernelVersion: 4.19 +Contact: linux-i3c@vger.kernel.org +Description: + Expose the master that owns the bus (-) at + the time this file is read. Note that bus ownership can change + overtime, so there's no guarantee that when the read() call + returns, the value returned is still valid. + +What: /sys/bus/i3c/devices/i3c-/mode +KernelVersion: 4.19 +Contact: linux-i3c@vger.kernel.org +Description: + I3C bus mode. Can be "pure", "mixed-fast" or "mixed-slow". See + the I3C specification for a detailed description of what each + of these modes implies. + +What: /sys/bus/i3c/devices/i3c-/i3c_scl_frequency +KernelVersion: 4.19 +Contact: linux-i3c@vger.kernel.org +Description: + The frequency (expressed in Hz) of the SCL signal when + operating in I3C SDR mode. + +What: /sys/bus/i3c/devices/i3c-/i2c_scl_frequency +KernelVersion: 4.19 +Contact: linux-i3c@vger.kernel.org +Description: + The frequency (expressed in Hz) of the SCL signal when + operating in I2C mode. + +What: /sys/bus/i3c/devices/i3c-/- +KernelVersion: 4.19 +Contact: linux-i3c@vger.kernel.org +Description: + An I3C device present on I3C bus identified by . Note + that all devices are represented including the master driving + the bus. + +What: /sys/bus/i3c/devices/i3c-/-/dynamic_address +KernelVersion: 4.19 +Contact: linux-i3c@vger.kernel.org +Description: + Dynamic address assigned to device -. This + address may change if the bus is re-initialized. + +What: /sys/bus/i3c/devices/i3c-/-/bcr +KernelVersion: 4.19 +Contact: linux-i3c@vger.kernel.org +Description: + BCR stands for Bus Characteristics Register and express the + device capabilities in term of speed, maximum read/write + length, etc. See the I3C specification for more details. + +What: /sys/bus/i3c/devices/i3c-/-/dcr +KernelVersion: 4.19 +Contact: linux-i3c@vger.kernel.org +Description: + DCR stands for Device Characteristics Register and express the + device capabilities in term of exposed features. See the I3C + specification for more details. + +What: /sys/bus/i3c/devices/i3c-/-/pid +KernelVersion: 4.19 +Contact: linux-i3c@vger.kernel.org +Description: + PID stands for Provisional ID and is used to uniquely identify + a device on a bus. This PID contains information about the + vendor, the part and an instance ID so that several devices of + the same type can be connected on the same bus. + See the I3C specification for more details. + +What: /sys/bus/i3c/devices/i3c-/-/hdrcap +KernelVersion: 4.19 +Contact: linux-i3c@vger.kernel.org +Description: + Expose the HDR (High Data Rate) capabilities of a device. + Returns a list of supported HDR mode, each element is separated + by space. Modes can be "hdr-ddr", "hdr-tsp" and "hdr-tsl". + See the I3C specification for more details about these HDR + modes. + +What: /sys/bus/i3c/devices/- +KernelVersion: 4.19 +Contact: linux-i3c@vger.kernel.org +Description: + These directories are just symbolic links to + /sys/bus/i3c/devices/i3c-/-. -- 2.14.1