Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1992643yba; Thu, 25 Apr 2019 08:57:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqzkrPrrSOpD/IkSxbOTwGKmgFlTZ7+uMfj/nkKpdg2807QVvDE/G8F1Gipwj9myYXyYCu9T X-Received: by 2002:a62:4d44:: with SMTP id a65mr2361894pfb.150.1556207831449; Thu, 25 Apr 2019 08:57:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556207831; cv=none; d=google.com; s=arc-20160816; b=KTbHEo8QXPFNTIHATpKSnGslkVLtdbIpIGPEulv3IL/8mJjlijSOud+Dp0iwFWYtdQ UPcPPxlBrtInFEIf2DqbI5LvSEE15fu7dQ2sr72y4ZrNFprE1RIxm4lazBwgGuK1e7Uo 7nr8rqh8x6D8H7nUsmj1bQu032+bABoK4FTHQbrCoTfwhBDFEntZ/MY/6KDRJjVbCP80 LkaR64sUIxxeX2z/ua00c/hqccytKeaPr1W8tCCd/cQrFJCr/P8DoWRIspEkxScG1LrM 5ExuR1kS5YpctJtSBtCCIpNmm58NGjSNN6RdThnwYKSMe+j/t2GS/uAj9e3OcyEJwOCG gxog== 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=EQZebXY+mt3yu8UQ3H5HJ//T82gsOsOO5Su/uSnul7EUNyFGpH4kMoIMuJKnu0px/n bXUyVBepdRJn39ogGEW3HGp8I1jeE5uYtNwkCjv5pDBsZ0rAae3qP0GWHYPZb8OndfzD /e7o+mOgAG7YYmYBobm16UkZHw6a4eDnLnHs1Zz17jIopySiSba9Ot/H9ad0f6JXiHyu THAsaoo/xrt2tMk7WxTHp/KmWuXeeB01Ueigb/Xri/mukaiapGjSq7FDlsEDjXY5ysLK gd1S+hCmSMaBmG4zHMnlNBLS07EUGyMj+gDaUPqXPQKn/gijwNMyCMC5jJ9OsS18Sq0X CKtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZXBpAtwb; 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 24si22704996pfi.21.2019.04.25.08.56.56; Thu, 25 Apr 2019 08:57:11 -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=ZXBpAtwb; 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 S1729916AbfDYPcs (ORCPT + 99 others); Thu, 25 Apr 2019 11:32:48 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:46547 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729901AbfDYPcq (ORCPT ); Thu, 25 Apr 2019 11:32:46 -0400 Received: by mail-pf1-f193.google.com with SMTP id j11so72875pff.13; Thu, 25 Apr 2019 08:32:45 -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=ZXBpAtwbbbojc7JxUhsbCf3bMqrAJug3Vl1FxI+U8Lidue3J9RNX+CCaDfjaxmJK5M Sg0WMoLR2AvBx/ZlqsNZ7DQrNTyAl+OBrBh+Vz4CtsJjdvlZi92cOBo98OXq78nzxGaw tDsT0yEPyQcOP2Uy6Fy1aMGc9vuVKTbGEIa47KW18cdJ0oYAseRpMg6POweWofg3Fqtu YeGPwRflm2kL4c2wIfrr9IB1/s7IK4tyUSdkK0HUV7F2nw6Uu48BdJLJfeuOTTt4cYjm 36bnYMTxIrqdeVDMnR+UKzSbJNttXwoyn8PqIa/Ntv5rHTNyTzyqx1JjMxHdD8DnoICs Izhw== 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=MCoquvJwidv8Df/rjQfAzamyPnKO3Ek6C+6/sCNb3jBV5ul/nNhdvhlJjB3s/EUi7H 3+CBVSv+p/f9DAcmkF6amQ2p4Z95O/3O2Y1UwB2PRKU0KNUeP48BwURXFn+WEDWAcbMv 71D6EYCaaovsy+ZjkVFwpFEOX8xmhNDv5yJArgxJZUv0t6DdG+8sHan9+quG/TYr2AIK oOeMU6fAcA2mkC8NWEcgld62Kx4jey+f9p+qZDcDsrxZaZwSpilJycWhB70nPPPobM/F ejEmzwR97LwXk0HDF3jjIFYx+X5i6t2cKiGXwowsyGMaKS6TwDAM90Bz+WOcEQalPo7z oIGA== X-Gm-Message-State: APjAAAUgpCPvGWjNR5jooCk/+i7hB4+E398YECtE1swWd+y6nxyoxgD8 F4T/Na53XfFXubBfn7Lrxfw= X-Received: by 2002:a63:6e09:: with SMTP id j9mr38174965pgc.416.1556206365276; Thu, 25 Apr 2019 08:32:45 -0700 (PDT) Received: from localhost.localdomain ([104.238.181.70]) by smtp.gmail.com with ESMTPSA id c14sm2643363pgj.94.2019.04.25.08.32.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Apr 2019 08:32:44 -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 v6 12/24] Documentation: ACPI: move i2c-muxes.txt to firmware-guide/acpi and convert to reST Date: Thu, 25 Apr 2019 23:31:05 +0800 Message-Id: <20190425153117.16057-13-changbin.du@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190425153117.16057-1-changbin.du@gmail.com> References: <20190425153117.16057-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