From patchwork Thu Sep 28 04:04:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalyan Kinthada X-Patchwork-Id: 819396 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-i2c-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b="zmG9hbXt"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3y2h0p09DMz9t30 for ; Thu, 28 Sep 2017 14:04:58 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751082AbdI1EEQ (ORCPT ); Thu, 28 Sep 2017 00:04:16 -0400 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:52929 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750914AbdI1EEM (ORCPT ); Thu, 28 Sep 2017 00:04:12 -0400 Received: from mmarshal3.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 123268365F; Thu, 28 Sep 2017 17:04:10 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail; t=1506571450; bh=InaAEPHoi0Gb63PKTS6zupqlQd8KD987LtG/Dq/ZpYE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=zmG9hbXtRo/QXxB2ZVDD3h7DNzzj/ig4uGOUvaGuLxAhFqnn6W7cFP2Al2ux90FQW fC7opxltpiCF+4ZvjVQcYhhGYsGqyVQKJu9sJoMfrYDoGD8TcYNtb/2WrTiKKAblZ2 4+11nx44Lt/khHnCAGeEObXl7ivCDh5Iop8GfqdM= Received: from smtp (Not Verified[10.32.16.33]) by mmarshal3.atlnz.lc with Trustwave SEG (v7, 5, 8, 10121) id ; Thu, 28 Sep 2017 17:04:10 +1300 Received: from kalyank-dl.ws.atlnz.lc (kalyank-dl.ws.atlnz.lc [10.33.14.14]) by smtp (Postfix) with ESMTP id 61DCD13EECE; Thu, 28 Sep 2017 17:04:21 +1300 (NZDT) Received: by kalyank-dl.ws.atlnz.lc (Postfix, from userid 1628) id D1514C032B; Thu, 28 Sep 2017 17:04:09 +1300 (NZDT) From: Kalyan Kinthada To: jason@lakedaemon.net, andrew@lunn.ch, gregory.clement@free-electrons.com, sebastian.hesselbarth@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, wsa@the-dreams.de, devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, Chris Packham , Kalyan Kinthada Subject: [PATCH 1/2] ARM: dts: Fix I2C repeated start issue on Armada-38x Date: Thu, 28 Sep 2017 17:04:06 +1300 Message-Id: <20170928040407.8933-2-kalyan.kinthada@alliedtelesis.co.nz> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170928040407.8933-1-kalyan.kinthada@alliedtelesis.co.nz> References: <20170928040407.8933-1-kalyan.kinthada@alliedtelesis.co.nz> Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org All the Armada 38x(380, 385, 388) have a silicon issue in the I2C controller which violates the I2C repeated start timing (errata FE-8471889). i2c-mv64xxx driver handles this errata based on the compatible string "marvell,mv78230-a0-i2c". This patch activates the "marvell,mv78230-a0-i2c" compatible string for the I2C controller on armada-38x SoC based devices. Signed-off-by: Kalyan Kinthada --- arch/arm/boot/dts/armada-38x.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/armada-38x.dtsi b/arch/arm/boot/dts/armada-38x.dtsi index 7ff0811e61db..4960722aab32 100644 --- a/arch/arm/boot/dts/armada-38x.dtsi +++ b/arch/arm/boot/dts/armada-38x.dtsi @@ -178,7 +178,7 @@ }; i2c0: i2c@11000 { - compatible = "marvell,mv64xxx-i2c"; + compatible = "marvell,mv78230-a0-i2c", "marvell,mv64xxx-i2c"; reg = <0x11000 0x20>; #address-cells = <1>; #size-cells = <0>; @@ -189,7 +189,7 @@ }; i2c1: i2c@11100 { - compatible = "marvell,mv64xxx-i2c"; + compatible = "marvell,mv78230-a0-i2c", "marvell,mv64xxx-i2c"; reg = <0x11100 0x20>; #address-cells = <1>; #size-cells = <0>; From patchwork Thu Sep 28 04:04:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalyan Kinthada X-Patchwork-Id: 819394 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-i2c-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b="BS31Knpv"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3y2h01541jz9tXN for ; Thu, 28 Sep 2017 14:04:17 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751511AbdI1EEO (ORCPT ); Thu, 28 Sep 2017 00:04:14 -0400 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:52931 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750857AbdI1EEM (ORCPT ); Thu, 28 Sep 2017 00:04:12 -0400 Received: from mmarshal3.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 09BFE806A8; Thu, 28 Sep 2017 17:04:10 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail; t=1506571450; bh=krqXOrv2tFXRU2sOvVSMTm0eq1LJe3FYzpBzjVTe+Fk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=BS31Knpv3G0dtQ9+FGgumJznD9MSn0WcmaiadRV83DPfrZh3s6ZfC68IusnSJkyCp FSZ9kEHmRoxpBiQC3JVBFyBlT6AMHQLp5kKZ8rGlRYJ04b3BI0/N8qFFL+Rhy9MFDZ XBFeNB4rmr4tCf9jtN833q94e6kYo9jnHWBktnks= Received: from smtp (Not Verified[10.32.16.33]) by mmarshal3.atlnz.lc with Trustwave SEG (v7, 5, 8, 10121) id ; Thu, 28 Sep 2017 17:04:10 +1300 Received: from kalyank-dl.ws.atlnz.lc (kalyank-dl.ws.atlnz.lc [10.33.14.14]) by smtp (Postfix) with ESMTP id 642B713EEAD; Thu, 28 Sep 2017 17:04:21 +1300 (NZDT) Received: by kalyank-dl.ws.atlnz.lc (Postfix, from userid 1628) id D587DC075C; Thu, 28 Sep 2017 17:04:09 +1300 (NZDT) From: Kalyan Kinthada To: jason@lakedaemon.net, andrew@lunn.ch, gregory.clement@free-electrons.com, sebastian.hesselbarth@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, wsa@the-dreams.de, devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, Chris Packham , Kalyan Kinthada Subject: [PATCH 2/2] dt-bindings: i2c: Update documentation for "mv78230-a0-i2c" Date: Thu, 28 Sep 2017 17:04:07 +1300 Message-Id: <20170928040407.8933-3-kalyan.kinthada@alliedtelesis.co.nz> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170928040407.8933-1-kalyan.kinthada@alliedtelesis.co.nz> References: <20170928040407.8933-1-kalyan.kinthada@alliedtelesis.co.nz> Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org This commit modifies the documentation for "marvell,mv78230-a0-i2c" compatible string. The "marvell,mv78230-a0-i2c" compatible string enables the workaround for an i2c repeated start timing violation, but unlike "marvell,mv78230-i2c" it disables the i2c offload support. This is applicable to a number of SoCs such as early revisions of the Armada XP and the Armada 38x. Deleted the special note for "marvell,mv78230-a0-i2c" as it can be used by other SoCs as well. Signed-off-by: Kalyan Kinthada --- Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt b/Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt index 5c30026921ae..37c00ad1c0bb 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt +++ b/Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt @@ -10,10 +10,6 @@ Required properties : - "marvell,mv64xxx-i2c" - "marvell,mv78230-i2c" - "marvell,mv78230-a0-i2c" - * Note: Only use "marvell,mv78230-a0-i2c" for a - very rare, initial version of the SoC which - had broken offload support. Linux - auto-detects this and sets it appropriately. - interrupts : The interrupt number Optional properties :