From patchwork Wed Apr 3 01:18:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ray Jui X-Patchwork-Id: 10882515 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3B3DA1708 for ; Wed, 3 Apr 2019 01:19:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B9D227F97 for ; Wed, 3 Apr 2019 01:19:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0FC6D283C5; Wed, 3 Apr 2019 01:19:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B1B0628329 for ; Wed, 3 Apr 2019 01:19:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=hEnEvm7IMa3nk7Axxt6iSvZfDxY6FCt78yMshNox6r0=; b=k94nFCMDhct3k1OtK4rUWx/mQF eQjQ0yJJ1VGR7NJ4Kvh/5eHrV5AiRFBbsh868IHHiqj4xi4vSSP1xFflrOZtNBdOl8+4AFInvO/Fd L6nEnKhSVFDiAghdIl7ARugeH1k9l62y/n1vJVTFmkaoTHjg1SuTUTMRq0irAGCdwRXLn8oajPIUz r6eEEay5XsrZSaadjhRwhhAo84JcOmnSpgDfi7xKn0oCzf7CiXItsE+NRQ9UIomtEFIYA41cxn1gg 7q5+QSBqI6lboQ0mHsB6abxS6B4ThHOgqHdOancyRHYBmI//BBXmqL3z7UqKhDThVbXPbsBEb8Bsr Xi6OC79w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBUYt-0000kG-Vn; Wed, 03 Apr 2019 01:19:31 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBUYP-0008Sc-46 for linux-arm-kernel@lists.infradead.org; Wed, 03 Apr 2019 01:19:06 +0000 Received: by mail-pf1-x442.google.com with SMTP id y13so7253272pfm.11 for ; Tue, 02 Apr 2019 18:19:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kSolIjpcS4KFmbpQ8n1/1zYx9/KPxw6Rm4TltMR98RE=; b=Mnvx0r7fCA3AF0FQVGTl6TDoJZtlKSVFgPQ4QNQtmbF/oKApQZk0ojEk1ae+qrLQhy StTVMKie0Hf/WXlo4XWxKc3qAiO/4NsilGMcasObnL5kBdlnWCtBeWYjAOsKeLR6O0AU zxP9E+5n4uobsLBhCf86BC89A1zi7mp46UmBA= 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; bh=kSolIjpcS4KFmbpQ8n1/1zYx9/KPxw6Rm4TltMR98RE=; b=rX3z7S+yc/H8CwMw+ayYhSH5MYR51ajgIci7dd5nucJCrwZHzJcZLR4Jc5stzWCFSe T9vJo+1k7Pd6Jy4p9ZLtTSl6xxBb1Jo72JS04z+1fSKV9Zd8cVbvg6I6Y4xnU/yTQlv1 kJys64/c8sqY6lTxjHTk+GFSlsh+tBoSX9FZdP/AtREQIFOGa6c3748eIdpjofCh3wXw bh+GqddAkBSNJD+95VvFQNuPgh43S8apNqv/ajTYbWtUlB8z571dw2Fv96VSVg63Ultf T4ajx6/OuckUyCnm/3ecSqHUcOC/bShaOd8Lv6Y33jRiF7jGVFPgNiwEoJ6Rqks3J7++ Y9yw== X-Gm-Message-State: APjAAAUCBZISPnl9mph3QGNnFHnMV/J/BcvC3+faOYbdJNCVRwjyh9mI GdAQXlXE/VHg4gtRrEGP2562mw== X-Google-Smtp-Source: APXvYqyihJc8gSfv03BZorpE/lldfFnsE3vrY4rP9rGMmMdKcithPLeAaC7qFSTeLWXB6rbeq9QI6g== X-Received: by 2002:a63:554b:: with SMTP id f11mr11120511pgm.77.1554254340513; Tue, 02 Apr 2019 18:19:00 -0700 (PDT) Received: from rj-aorus.ric.broadcom.com ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id 4sm19589046pfn.159.2019.04.02.18.18.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Apr 2019 18:18:59 -0700 (PDT) From: Ray Jui To: Wolfram Sang , Rob Herring , Mark Rutland Subject: [PATCH v6 4/9] dt-bindings: i2c: iproc: make 'interrupts' optional Date: Tue, 2 Apr 2019 18:18:25 -0700 Message-Id: <20190403011830.3254-5-ray.jui@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190403011830.3254-1-ray.jui@broadcom.com> References: <20190403011830.3254-1-ray.jui@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190402_181901_861115_CDBF943F X-CRM114-Status: GOOD ( 11.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Rayagonda Kokatanur , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-i2c@vger.kernel.org, Ray Jui , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Update the binding document to make the 'interrupts' property optional. For certain revisions of the I2C controller (e.g., iProc NIC I2C), I2C interrupt is unwired to the interrupt controller. In such case, this 'interrupts' property should be left unspecified, and driver will fall back to polling mode Signed-off-by: Ray Jui Signed-off-by: Rayagonda Kokatanur Reviewed-by: Rob Herring --- .../devicetree/bindings/i2c/brcm,iproc-i2c.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/i2c/brcm,iproc-i2c.txt b/Documentation/devicetree/bindings/i2c/brcm,iproc-i2c.txt index 81f982ccca31..7a32bf81bfa9 100644 --- a/Documentation/devicetree/bindings/i2c/brcm,iproc-i2c.txt +++ b/Documentation/devicetree/bindings/i2c/brcm,iproc-i2c.txt @@ -9,9 +9,6 @@ Required properties: Define the base and range of the I/O address space that contain the iProc I2C controller registers -- interrupts: - Should contain the I2C interrupt - - clock-frequency: This is the I2C bus clock. Need to be either 100000 or 400000 @@ -21,6 +18,14 @@ Required properties: - #size-cells: Always 0 +Optional properties: + +- interrupts: + Should contain the I2C interrupt. For certain revisions of the I2C + controller, I2C interrupt is unwired to the interrupt controller. In such + case, this property should be left unspecified, and driver will fall back + to polling mode + Example: i2c0: i2c@18008000 { compatible = "brcm,iproc-i2c";