From patchwork Wed Jun 26 04:11:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 807607 Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7DCEF135417 for ; Wed, 26 Jun 2024 04:12:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=85.214.62.61 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719375164; cv=none; b=mPTEvkcgVXXwYOPLdKpAxHGoRIBBwi80rfkewMyu2S1iRvEpryY+nKw9Dc7jIvBlaTwxaAktYWXrJp4wu3TjNnrgzVPnnn+jvUlZhQODgLevT2IDKEoNfpsYZkof3Bor+siHl1pF3IfZuhCIfhv7bU0LZzfWrojygNCvMGZ+85Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719375164; c=relaxed/simple; bh=DMfHImeVQacrbJLdW9Gm1gJayI0A4oashzejx8lHTUY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QgluocgNi+X62FPAHHa9fQIEBnfppduDeqS8q+1pCtw8Jyi1GVQMP1PQTQZ3m+siNHO4jZlrd8HNoucsXiTSF/zwNsNnuP0bME03TA/gJknP+eRM/6csKEndfNdSC9hy9DcBNN5XsL/PR2HSeAvvQ8t+dOIsgPSP5g/6Z5GK0a8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=denx.de; spf=pass smtp.mailfrom=denx.de; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b=Np4ur2b4; arc=none smtp.client-ip=85.214.62.61 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=denx.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b="Np4ur2b4" Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 3A46888405; Wed, 26 Jun 2024 06:12:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1719375160; bh=3gO1NwHnOedIW6ntjXW2EqQTewKzsrtIp9NJodnbHzY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Np4ur2b4Eil5bKxfss60+7udvtyS5P4dtQWe9lubRtVQhpNrioD5s96Qfc2fAaLYB aix/RV4jFq3cxGBKkuFHFvSW9xCB4l2Gw/00oxGqljBlcx8YNzkg3V6xTYoqubWp9s 5obEw1eu8lNUu1lKaUp+9kEH0jMK8ybLoswizOiCxmyAEKTtcZl37084B+L3Qdql6b fEIe3E+a6YPB/ggl67xdKEnTXx8As1SrGDln18Fl7wcm5Ntu1HM6hKDtGGkSjHHJeV s1EmoP+yK81Tl0OPMt03Gu+x13dtHOvBa/1G/S1F+BD19RgX2HhlV+agWWg0akAypC 8qtGCu+eYEanA== From: Marek Vasut To: linux-i2c@vger.kernel.org Cc: Marek Vasut , Alexandre Belloni , Arnd Bergmann , Bartosz Golaszewski , Greg Kroah-Hartman , Srinivas Kandagatla Subject: [PATCH v3 2/4] nvmem: Document type attribute Date: Wed, 26 Jun 2024 06:11:15 +0200 Message-ID: <20240626041214.513242-2-marex@denx.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240626041214.513242-1-marex@denx.de> References: <20240626041214.513242-1-marex@denx.de> Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Document a type attribute used by userspace to discern different types of NVMEM devices. The implementation is already present, the ABI document is missing, add it. Reviewed-by: Alexandre Belloni Signed-off-by: Marek Vasut --- Cc: Alexandre Belloni Cc: Arnd Bergmann Cc: Bartosz Golaszewski Cc: Greg Kroah-Hartman Cc: Srinivas Kandagatla Cc: linux-i2c@vger.kernel.org --- V2: - New patch V3: - Add RB from Alexandre - Add trailing full stop to the paragraph --- Documentation/ABI/stable/sysfs-bus-nvmem | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/ABI/stable/sysfs-bus-nvmem b/Documentation/ABI/stable/sysfs-bus-nvmem index 854bd11d72ac4..3f0a95250aa84 100644 --- a/Documentation/ABI/stable/sysfs-bus-nvmem +++ b/Documentation/ABI/stable/sysfs-bus-nvmem @@ -20,3 +20,14 @@ Description: ... * 0001000 + +What: /sys/bus/nvmem/devices/.../type +Date: November 2018 +KernelVersion: 5.0 +Contact: Alexandre Belloni +Description: + This read-only attribute allows user to read the NVMEM + device type. Supported types are "Unknown", "EEPROM", + "OTP", "Battery backed", "FRAM". + Note: This file is only present if CONFIG_NVMEM_SYSFS + is enabled.