Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp653538lqs; Fri, 14 Jun 2024 01:14:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVSmQtYRmR8cETmp3EEtMOQFvKLeHiO/TR9zM72u07ErFWRoHGNcdtXejSRho157nwiz3tuZdCOqgKDj+zfr9yLeTzEDnbXGi2p17RZaw== X-Google-Smtp-Source: AGHT+IGgorEVVa1WNJJd+zIA/eOI+PObx4sDtmvKqX7Axl5Sh88q/ofbxOlBg4p7J0JY/nSLm09j X-Received: by 2002:a50:9b04:0:b0:578:60a6:7c69 with SMTP id 4fb4d7f45d1cf-57cbd69e7a0mr1539504a12.30.1718352875184; Fri, 14 Jun 2024 01:14:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718352875; cv=pass; d=google.com; s=arc-20160816; b=zqCPn5kn9+joM39es19/BMXAl47PqdBdAwgCsXV9FnQqKS2r9iERP8R/SezcnBk6m8 WoQzq8itrbF4VOgiCNEmIuztGtWvRdWAqRNT3lK7aVpXpcGXh5B3e9ID/iqzdsiqGxhd ZusYh1wrMbSYRCNGlSrumo44/MDn9eHseoP1JQsKTEZpB7Z5QBMR6Uu5tQKxrPujuYmm qXvF9OHWnZQoJ6rxKrO+UGPuW4/SyrEUwj0QeaFhKuaVsMKpghC7gbkkhsYOo57deSXV MlieQcCPkCejyQxcqyHPbkpIRRuU7FC33erNSN8uPTaH3nH79irz1w4mDufoRWej36KK 8GEA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=x+OirvJmm2z8OY7TiPcj0ELlgpYDPQ+Seo1lKvUO+VI=; fh=DvlLwYedOz1MXZrei6dMAGS8JbTyCh16lkr3WuboMPc=; b=aUORijhfZSBr1fbyy669FUT8JuMzzDod5+dcKX3AVB3YdR9KMvWsukL7ByZZqQouYf 79idDYLJn8NBKC+g8ipL4dwqnyDgKgjJLD6q5Xr1OD7VET+ONhbST6KZ7HT0omzXvvp6 MkhsbMS2uM3VoE+1iuzMCWFEWmIyQrtwt3VaOpf+wsrDaklRtmpSCNugD4Jg2Sp/l/pL +ndfYKAb7i/0KaWT+PR7BZApLZtEgNa/51HnWpa4/j0R6JeQwTJ7gKRlxTXNrR/4ZDTk /Sh31CRNXEZOBDrnPaBrYG7b8lh3HfjdVjJfwLJUIY1fan09dJzc4Y0CZD77DvzN14Ly T+oQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=PX3Vsfla; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-214519-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214519-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb72d6b17si1507479a12.91.2024.06.14.01.14.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 01:14:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214519-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=PX3Vsfla; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-214519-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214519-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DFED21F2231A for ; Fri, 14 Jun 2024 08:14:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 423B1187562; Fri, 14 Jun 2024 08:13:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="PX3Vsfla" Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89623187352 for ; Fri, 14 Jun 2024 08:12:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718352779; cv=none; b=FA8pwZZUCKzUYRG6ES2FX1dmrAURo9gJmZRJhqpfOt2ClpntrL+JsxX7dSYeH9Y9lpBcstaTVBGQNFto6o+R4GNF2Hjk7QwXj8ze63cOtCq7CKqsuVJbeToRU5RXz0fEitGEQUlhzWZEAAmZ49uFhejAL+N9jBizfTKlEUzwXzA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718352779; c=relaxed/simple; bh=BVEwSEZWW70n3zK43WnEFFNovrnrFP6C9VNMi4Zg6mM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=acCjwo0BDrFcxCBym1gWDGhxYF3ACJa9oU5K31z3nRiBiXEfBXIoUCu3i+0dZrJxM4SXnRomuPYegLFNZGbGiSAegaozSAPQLOJTStZQIDNFMSLohZTnwiCisOGmrdutarl02OFrs2AGgYeKnY5xFdz2jJ27OwAd0XRA7ObZn3s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=PX3Vsfla; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=k1; bh=x+OirvJmm2z8OY7TiPcj0ELlgpYDPQ+Seo1lKvUO+VI=; b=PX3Vsf laINXXGy3e3zub0bL77RqjsZYszfE483pUzNdyKQdEEvpy6I9/Mtr6t/pVGqWb/R dvaPM3v2WhJ9KefQ/ritD72/2c4eubbeE+PKAF93EoYbgnOzOLrD51nFjMIvhw5r b5CVo2SsGSagW+NEgkJa9tOliyu3sPBf7EY55Oe5Qxdr/N8I0YNRp5yBHXV3VuCe bE6aKjND8v0eLk7qyS0fI5IVAvkkpTjnmQ9kBfKjCltaGe5yLnbPL+aPNXrsOQW4 vajav7vusIciE4k2MuWTSjaOBGOezzRqEAz9Rp7Kqg/LIUF9vqHGmznNAZds7uiG TfrbPUzL/Fi2yGNQ== Received: (qmail 1438219 invoked from network); 14 Jun 2024 10:12:51 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 14 Jun 2024 10:12:51 +0200 X-UD-Smtp-Session: l3s3148p1@wNCFLtUaNIIgAwDPXzjQABqqX1QYyOSW From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Easwar Hariharan , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Andi Shyti , Wolfram Sang Subject: [PATCH v3 6/6] docs: i2c: summary: be clearer with 'controller/target' and 'adapter/client' pairs Date: Fri, 14 Jun 2024 10:12:44 +0200 Message-ID: <20240614081239.7128-14-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240614081239.7128-8-wsa+renesas@sang-engineering.com> References: <20240614081239.7128-8-wsa+renesas@sang-engineering.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This not only includes rewording, but also where to put which emphasis on terms in this document. Signed-off-by: Wolfram Sang --- Documentation/i2c/summary.rst | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/Documentation/i2c/summary.rst b/Documentation/i2c/summary.rst index ff8bda32b9c3..90f46f1504fe 100644 --- a/Documentation/i2c/summary.rst +++ b/Documentation/i2c/summary.rst @@ -31,9 +31,7 @@ implement all the common SMBus protocol semantics or messages. Terminology =========== -The I2C bus connects one or more *controller* chips and one or more *target* -chips. - +The I2C bus connects one or more controller chips and one or more target chips. .. kernel-figure:: i2c_bus.svg :alt: Simple I2C bus with one controller and 3 targets @@ -41,16 +39,16 @@ chips. Simple I2C bus A **controller** chip is a node that starts communications with targets. In the -Linux kernel implementation it is called an **adapter** or bus. Adapter -drivers are in the ``drivers/i2c/busses/`` subdirectory. +Linux kernel implementation it is called an "adapter" or "bus". Controller +drivers are usually in the ``drivers/i2c/busses/`` subdirectory. -An **algorithm** contains general code that can be used to implement a -whole class of I2C adapters. Each specific adapter driver either depends on -an algorithm driver in the ``drivers/i2c/algos/`` subdirectory, or includes -its own implementation. +An **algorithm** contains general code that can be used to implement a whole +class of I2C controllers. Each specific controller driver either depends on an +algorithm driver in the ``drivers/i2c/algos/`` subdirectory, or includes its +own implementation. A **target** chip is a node that responds to communications when addressed by a -controller. In the Linux kernel implementation it is called a **client**. While +controller. In the Linux kernel implementation it is called a "client". While targets are usually separate external chips, Linux can also act as a target (needs hardware support) and respond to another controller on the bus. This is then called a **local target**. In contrast, an external chip is called a @@ -60,9 +58,18 @@ Target drivers are kept in a directory specific to the feature they provide, for example ``drivers/gpio/`` for GPIO expanders and ``drivers/media/i2c/`` for video-related chips. -For the example configuration in figure, you will need a driver for your -I2C adapter, and drivers for your I2C devices (usually one driver for each -device). +For the example configuration in the figure above, you will need one driver for +the I2C controller, and drivers for your I2C targets. Usually one driver for +each target. + +Synonyms +-------- + +As mentioned above, the Linux I2C implementation historically uses the terms +"adapter" for controller and "client" for target. A number of data structures +have these synonyms in their name. So, to discuss implementation details, it +might be easier to use these terms. If speaking about I2C in general, the +official terminology is preferred. Outdated terminology -------------------- -- 2.43.0