Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp149957imj; Thu, 14 Feb 2019 17:25:09 -0800 (PST) X-Google-Smtp-Source: AHgI3IbP1IcAUGoG3ZRVZU4OnGo5e5U+Yo0ZaAZotSTz6arKKtFETCM2okwn5OmElYnGH0W3dQcj X-Received: by 2002:a17:902:bcc2:: with SMTP id o2mr7126301pls.69.1550193909456; Thu, 14 Feb 2019 17:25:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550193909; cv=none; d=google.com; s=arc-20160816; b=ruLK34KFpbqJPa7EksDg0MIycaa05VkrGPLHuHx2lWG0zPELNAOPDtiGvbhNSgXZ3F wuOfnO2fbUoL2dcqs03UjrqDsALcm9r0NixS0MlAxZp1+FAK9nV2VEMHVRTP3kSjfwCI BEpqLGBhTOyjQfV0XMVhmeN9GKItcSUz43nazrBIKIiXW8kG6CJ80955y0eB0tbqEuBO aXPg5eLgWjrUp7N805ERpVE6SbnHiEjzmiETY9EjPRuSTD+qB0cBFLIBtvwdh+B6Zp3J BOEUcY8lv7FK9hqZr7wDPYkN21X6rhkxv6NCzFm3p2BXFzJYxTWu5Y3mVI6w0+d4gxJJ 5isA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=qd5kI+SJawXscvy5gQFO6CdGhw4ESxIavmw5z4kZ0JE=; b=Bw6cHtcvK9n1ObQTo7r0PGnKOHTXAUtPHxyPqy/yIpuv3t/fCd9iaJSj1YMfyf7Wi1 WztSlWeEwKfRO5s4Q67j167DbObl0Q5UEOqOl5r3bqUqeTBpjp7Om7426w5DaYsQsR7B 5mVt/RLzMc3dZpNVOFY1f/jkmwNCmLJed1DUhbnh6gXrGMEuFRPj0VdlaaDax2bzgRtp oHLkkSwYH6w2uaB4hzvTHWPBSjXfiAwZfb1uzUBT9GlcVrCzIClqA622HROZ/UA644AB AaXYm9m3wIphTotLi/4ZS0FdBY4AgPgDOe1lHuo51nnagK5kRl4yEiW678ZRQS7vCJ8/ MYRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=IhlLw0Jf; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k3si3891126plt.117.2019.02.14.17.24.54; Thu, 14 Feb 2019 17:25:09 -0800 (PST) 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=@broadcom.com header.s=google header.b=IhlLw0Jf; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437763AbfBNR54 (ORCPT + 99 others); Thu, 14 Feb 2019 12:57:56 -0500 Received: from mail-it1-f193.google.com ([209.85.166.193]:39202 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437748AbfBNR5x (ORCPT ); Thu, 14 Feb 2019 12:57:53 -0500 Received: by mail-it1-f193.google.com with SMTP id l15so3675159iti.4 for ; Thu, 14 Feb 2019 09:57:52 -0800 (PST) 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=qd5kI+SJawXscvy5gQFO6CdGhw4ESxIavmw5z4kZ0JE=; b=IhlLw0Jf9Ut/A90TYhXhoRD+hkewG/boZsw/12RupQo+z5Z0IcUcQ6SvcCS5o0M4fU 3a/A3P61va0qcZohzWHF/mb6bHmZj71/KwYLFpsATu/igCw410WnKmbBImRzWOAuUzyP wkWOeMfjI0nf2SO5efto6SnXCdzcpoBOE5EJ4= 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=qd5kI+SJawXscvy5gQFO6CdGhw4ESxIavmw5z4kZ0JE=; b=Fi4oT8l4yQbucsWJu/0G6KZ5z/eRBJpQVjFr5N2wJYouSJUYM3s+70E4R0Xjxr0kBI e8hrroaQNUJ4VUU1535isdYj+fxqoL36Em1oIwa9ltCoaA68DjCAsFnn8bEWfX/3P/0Z 9uNmxeliCeSAJWmuv+lTAFJIuPQGP+YLWoumyrD/heMFerSWkuqG3XI+Ai+hoqKCbIxj GLQsiKK8drx+KB7kjaVSTuwoZ0waH4JKqxq+Bs79GxHf++OCOYTOESzZ74C8HzqUyubG W06oUV+T3hpiKKxqrO8BoF9NNgyAcV2DrNhheJSqBptdHdq42K/nESysQKahzGDVsOvk pNFw== X-Gm-Message-State: AHQUAuYmgCevoj4H8oV5cSfd/b0qmPye8ljH95Ah6JafH5wbCiNEoSF1 irVS8I3PepWH9HgnvbDq9rvUMA== X-Received: by 2002:a02:9c16:: with SMTP id q22mr2884177jak.49.1550167072510; Thu, 14 Feb 2019 09:57:52 -0800 (PST) Received: from rj-aorus.ric.broadcom.com ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id t64sm1534178itb.5.2019.02.14.09.57.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Feb 2019 09:57:51 -0800 (PST) From: Ray Jui To: Wolfram Sang , Rob Herring , Mark Rutland Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Rayagonda Kokatanur , Ray Jui Subject: [PATCH v5 3/8] dt-bindings: i2c: iproc: make 'interrupts' optional Date: Thu, 14 Feb 2019 09:57:20 -0800 Message-Id: <20190214175725.60462-4-ray.jui@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190214175725.60462-1-ray.jui@broadcom.com> References: <20190214175725.60462-1-ray.jui@broadcom.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- .../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"; -- 2.17.1