Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp870648yba; Wed, 24 Apr 2019 10:57:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+1Y6bwF/NN5A70KuwlPlnZl4yfa90bOhe7Wy0qX6GipWK6DKkijKRA22pKMqIgjthSh1R X-Received: by 2002:a17:902:a614:: with SMTP id u20mr593532plq.117.1556128642278; Wed, 24 Apr 2019 10:57:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556128642; cv=none; d=google.com; s=arc-20160816; b=kWz+DHYs/Fu4PRHGmH31QRKUvjc794VV0aRN2r+BGtGcHPqgBTQNc8fII6WqegHupx C8gxom7+IFaBPywm5yaZJHk+h+EOYQ4z11mcBwkLi4/1AH7FwV31vy3uMKRjdgMv9XtO a+XH3mkRGdUUMP86AV+/4vvxltPV6V2qZuk5mOedJK0/r8mqrNSTTuvvkOBRDdmNLo6U UcVbChpSyPYewZcfeuT+26Bs4LF4GQ/dbcL/ffzF3UI54HH31w9MKdJcySe1mbdLRJgE SywTYcopt3QMXGOntOLY0NTsXEy61sqrm2Ek9BQgIc3WN0IWxHvUt+hKMHep7H0VpoO9 mE6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SyEwlX82c6Bq2y5y3PF+BOLHdI7/R7pprHZNYOVIDmE=; b=Tj4YG2Kdpz397mSkK9zFe8tiTAl+JeaeLuNaBnlCa6l7WRhPtnCOlVdTpPlnPcZYOi gUfEcI7/zLSScI7W4+UmtOPPbjQ2eC2itE7WSphSnbS7ssby3bBAldUvXAntCFDRO0Kd 47gjhbLVKn2B3NhNni/6fGYYGjSL5ICN00+CpdnBZtHVB+wSHTDqEs9INCbPSxLj5fq7 9SFtzd0AMiXxr/P8GjXuNFsW2wy9y3C3749h/aA0D5GS6zdsv9LV5RaV2HwpPJxWY1iW +FjPFLtKYpAUZ7PTTEvgjCIE9sbLE2eab7dJHFCuZIzdF/odVDrjB0TlgcqqC0H92K3D TEbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ao8c3o27; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k15si19398531pll.142.2019.04.24.10.57.07; Wed, 24 Apr 2019 10:57:22 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ao8c3o27; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392125AbfDXRzc (ORCPT + 99 others); Wed, 24 Apr 2019 13:55:32 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:41392 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388824AbfDXRzb (ORCPT ); Wed, 24 Apr 2019 13:55:31 -0400 Received: by mail-pl1-f193.google.com with SMTP id d9so3730772pls.8; Wed, 24 Apr 2019 10:55:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SyEwlX82c6Bq2y5y3PF+BOLHdI7/R7pprHZNYOVIDmE=; b=Ao8c3o27DVJS+td3Zq4h0fQmDtNlyrCXvNmeV0mWTf4BylpV2abAvznJGC83EfFAem Uy5Jm6DQdOgcv0AE7qZMa+HhO1cKZXRVFlKaPlm13Usjs3aWJ2BGr7iijHxjJxuSK2rN 78hjGJDmOctLdAVSCoaVylbbnhartcgElPduqEHHhDYzRnSU3SKyvVgjnYXcAE3wbGm8 ZdV3059adtGHrzqfgJtS9Iq1u+vyz+Ntzhax8wN6oX3T0k5mTFL6bnoza862T0t77DXa gNP+dyYyUCN3jqYFO5xr1BFe6Iwsxvcr3WB3Divx9HsuxbSlhHGwNL1gUaGgPTvLShet 0znA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SyEwlX82c6Bq2y5y3PF+BOLHdI7/R7pprHZNYOVIDmE=; b=H//SfFDNfLnO5/hBOQD6Z0GDoKNSgTq0i4DVL+R0vzpmb4F5+1Po0L0R9jiyytLmVq hQekGWXrw2ncYsf125cDc1i7NEiflDrsquVTg1h/3e72faF778qpy5aE29DQOkUd+AaV B4XBjg4fI+QBxzPCZGGxlRuCwySBtECB2MZOA8FTHqyWxUCd0+Br0P8icoFUBETuqH/L OsJEH1L/u/zOkB60Q6pek/D/7HNqw1KFO1qQUBEecjSy6OP582PNNqDJWUdIueqtxkny +7qSUt7L2+ySvp7fT+LxG96OmrL/njJ2fXglYBUaFYcuFXyE4VqoLBf96g0KtCQXtUEJ /1SQ== X-Gm-Message-State: APjAAAX/7fHw2FIEYzMQwGMt1DtcifJXQ6lQ/mjHoQUq4tfR0hRTCa/m HsWEw5/u4kVaYSK3yX8oyrU= X-Received: by 2002:a17:902:864b:: with SMTP id y11mr31964530plt.1.1556128529965; Wed, 24 Apr 2019 10:55:29 -0700 (PDT) Received: from localhost.localdomain ([104.238.181.70]) by smtp.gmail.com with ESMTPSA id 6sm29275630pfp.143.2019.04.24.10.55.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Apr 2019 10:55:29 -0700 (PDT) From: Changbin Du To: rjw@rjwysocki.net, Jonathan Corbet Cc: Bjorn Helgaas , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, fenghua.yu@intel.com, linuxppc-dev@lists.ozlabs.org, linux-acpi@vger.kernel.org, linux-gpio@vger.kernel.org, mchehab+samsung@kernel.org, Changbin Du Subject: [PATCH v5 11/23] Documentation: ACPI: move i2c-muxes.txt to firmware-guide/acpi and convert to reST Date: Thu, 25 Apr 2019 01:52:54 +0800 Message-Id: <20190424175306.25880-12-changbin.du@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190424175306.25880-1-changbin.du@gmail.com> References: <20190424175306.25880-1-changbin.du@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Reviewed-by: Mauro Carvalho Chehab --- Documentation/acpi/i2c-muxes.txt | 58 ------------------ .../firmware-guide/acpi/i2c-muxes.rst | 61 +++++++++++++++++++ Documentation/firmware-guide/acpi/index.rst | 3 +- 3 files changed, 63 insertions(+), 59 deletions(-) delete mode 100644 Documentation/acpi/i2c-muxes.txt create mode 100644 Documentation/firmware-guide/acpi/i2c-muxes.rst diff --git a/Documentation/acpi/i2c-muxes.txt b/Documentation/acpi/i2c-muxes.txt deleted file mode 100644 index 9fcc4f0b885e..000000000000 --- a/Documentation/acpi/i2c-muxes.txt +++ /dev/null @@ -1,58 +0,0 @@ -ACPI I2C Muxes --------------- - -Describing an I2C device hierarchy that includes I2C muxes requires an ACPI -Device () scope per mux channel. - -Consider this topology: - -+------+ +------+ -| SMB1 |-->| MUX0 |--CH00--> i2c client A (0x50) -| | | 0x70 |--CH01--> i2c client B (0x50) -+------+ +------+ - -which corresponds to the following ASL: - -Device (SMB1) -{ - Name (_HID, ...) - Device (MUX0) - { - Name (_HID, ...) - Name (_CRS, ResourceTemplate () { - I2cSerialBus (0x70, ControllerInitiated, I2C_SPEED, - AddressingMode7Bit, "^SMB1", 0x00, - ResourceConsumer,,) - } - - Device (CH00) - { - Name (_ADR, 0) - - Device (CLIA) - { - Name (_HID, ...) - Name (_CRS, ResourceTemplate () { - I2cSerialBus (0x50, ControllerInitiated, I2C_SPEED, - AddressingMode7Bit, "^CH00", 0x00, - ResourceConsumer,,) - } - } - } - - Device (CH01) - { - Name (_ADR, 1) - - Device (CLIB) - { - Name (_HID, ...) - Name (_CRS, ResourceTemplate () { - I2cSerialBus (0x50, ControllerInitiated, I2C_SPEED, - AddressingMode7Bit, "^CH01", 0x00, - ResourceConsumer,,) - } - } - } - } -} diff --git a/Documentation/firmware-guide/acpi/i2c-muxes.rst b/Documentation/firmware-guide/acpi/i2c-muxes.rst new file mode 100644 index 000000000000..3a8997ccd7c4 --- /dev/null +++ b/Documentation/firmware-guide/acpi/i2c-muxes.rst @@ -0,0 +1,61 @@ +.. SPDX-License-Identifier: GPL-2.0 + +============== +ACPI I2C Muxes +============== + +Describing an I2C device hierarchy that includes I2C muxes requires an ACPI +Device () scope per mux channel. + +Consider this topology:: + + +------+ +------+ + | SMB1 |-->| MUX0 |--CH00--> i2c client A (0x50) + | | | 0x70 |--CH01--> i2c client B (0x50) + +------+ +------+ + +which corresponds to the following ASL:: + + Device (SMB1) + { + Name (_HID, ...) + Device (MUX0) + { + Name (_HID, ...) + Name (_CRS, ResourceTemplate () { + I2cSerialBus (0x70, ControllerInitiated, I2C_SPEED, + AddressingMode7Bit, "^SMB1", 0x00, + ResourceConsumer,,) + } + + Device (CH00) + { + Name (_ADR, 0) + + Device (CLIA) + { + Name (_HID, ...) + Name (_CRS, ResourceTemplate () { + I2cSerialBus (0x50, ControllerInitiated, I2C_SPEED, + AddressingMode7Bit, "^CH00", 0x00, + ResourceConsumer,,) + } + } + } + + Device (CH01) + { + Name (_ADR, 1) + + Device (CLIB) + { + Name (_HID, ...) + Name (_CRS, ResourceTemplate () { + I2cSerialBus (0x50, ControllerInitiated, I2C_SPEED, + AddressingMode7Bit, "^CH01", 0x00, + ResourceConsumer,,) + } + } + } + } + } diff --git a/Documentation/firmware-guide/acpi/index.rst b/Documentation/firmware-guide/acpi/index.rst index d1d069b26bbc..1c89888f6ee8 100644 --- a/Documentation/firmware-guide/acpi/index.rst +++ b/Documentation/firmware-guide/acpi/index.rst @@ -12,4 +12,5 @@ ACPI Support osi method-customizing DSD-properties-rules - gpio-properties \ No newline at end of file + gpio-properties + i2c-muxes -- 2.20.1