From patchwork Fri Aug 16 08:43:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhushan Shah X-Patchwork-Id: 1148073 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; dmarc=none (p=none dis=none) header.from=kde.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kde.org header.i=@kde.org header.b="N249T6Mm"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 468xhD2RtLz9sNp for ; Fri, 16 Aug 2019 18:44:28 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727021AbfHPIoU (ORCPT ); Fri, 16 Aug 2019 04:44:20 -0400 Received: from letterbox.kde.org ([46.43.1.242]:39518 "EHLO letterbox.kde.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726810AbfHPIoS (ORCPT ); Fri, 16 Aug 2019 04:44:18 -0400 Received: from archbox.localdomain (unknown [203.187.238.17]) (Authenticated sender: bshah) by letterbox.kde.org (Postfix) with ESMTPSA id B068A287B59; Fri, 16 Aug 2019 09:44:16 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kde.org; s=users; t=1565945057; bh=LhSaj2Wrav0bh3x+ATV1e3H8mqMrzwJ+KYcnBJnUEqg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=N249T6Mm6GsclAsGLypNLsYd2Zxo40RcZtnfKomveedfFiRvnSKu8juzl07ijUVuH kbM1mLahMimlAgC/lToDwRI8feFpleu+2KBjMUCatZArdG78/B4QGZiDollNI6Hww+ SF77VbIeA1QyOB1lESkXI9y4zhiyqpZHQ4FpifIoPJmupc2vauWm3/zirCDfRnSOM7 VDtZzZreie+sJEGX4e5dmAYffk5TgFWy1JTSMV7TG9aPD6AddNdZCnLFV3CXNZzoUz EL68X8LZ9yu1jYr3y9VSkluQl6ti4rZE38vFXZE3qpRp6pwbJsTkJmYQPAjhjp8XfO 7Bp3ulN6LlPyQ== From: Bhushan Shah To: Icenowy Zheng , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Gregory CLEMENT , Wolfram Sang , Bhushan Shah , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 1/2] dt-bindings: i2c: mv64xxx: Add compatible for the H6 i2c node. Date: Fri, 16 Aug 2019 14:13:08 +0530 Message-Id: <20190816084309.27440-2-bshah@kde.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190816084309.27440-1-bshah@kde.org> References: <20190816064710.18280-1-bshah@kde.org> <20190816084309.27440-1-bshah@kde.org> Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Allwinner H6 have a mv64xxx i2c interface available to be used. Signed-off-by: Bhushan Shah Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml b/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml index 001f2b7abad0..c779000515d6 100644 --- a/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml +++ b/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml @@ -26,6 +26,9 @@ properties: - items: - const: allwinner,sun50i-a64-i2c - const: allwinner,sun6i-a31-i2c + - items: + - const: allwinner,sun50i-h6-i2c + - const: allwinner,sun6i-a31-i2c - const: marvell,mv64xxx-i2c - const: marvell,mv78230-i2c From patchwork Fri Aug 16 08:43:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhushan Shah X-Patchwork-Id: 1148072 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; dmarc=none (p=none dis=none) header.from=kde.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kde.org header.i=@kde.org header.b="Br0y0a6v"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 468xhC2J4sz9sNF for ; Fri, 16 Aug 2019 18:44:27 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726810AbfHPIoW (ORCPT ); Fri, 16 Aug 2019 04:44:22 -0400 Received: from letterbox.kde.org ([46.43.1.242]:39534 "EHLO letterbox.kde.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727035AbfHPIoW (ORCPT ); Fri, 16 Aug 2019 04:44:22 -0400 Received: from archbox.localdomain (unknown [203.187.238.17]) (Authenticated sender: bshah) by letterbox.kde.org (Postfix) with ESMTPSA id 44D8E2809BC; Fri, 16 Aug 2019 09:44:19 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kde.org; s=users; t=1565945059; bh=sAbIIO25DFg96Y7To2es2ueSVMDPNv0p6SZWhrXB2FI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Br0y0a6vew+9OIPXxe4HVf75OTvlvAQOWBlv42czZM1VT8G9CTdhCSFc+ETQDTXmj E12KzdzF72kObah17DUTIyOg0wOVn6fB9O/Qe4wnpwtbhdw5CxqSIuN3/S9UfbMimj KQpRQ1cfGw5oR2ESsu+KDTGm5DJWB+qO+uo+De3f7nope/OHfT7Yjwn8KY3KzLfBwH vrXN8Y5SQQG7g19be6ybba2QIqSNWfnfdMJJviQrWOSQt+cxRa0MnDZ9qZiExrq1uG 1C+A6Y0ltffihQ3iRhDPUXbZAFM4tgNIZEEqG7hMRRxeeW/g29VcL8e0drtr85R2j4 iJ9IWE/XVY4VQ== From: Bhushan Shah To: Icenowy Zheng , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Gregory CLEMENT , Wolfram Sang , Bhushan Shah , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 2/2] arm64: allwinner: h6: add I2C nodes Date: Fri, 16 Aug 2019 14:13:09 +0530 Message-Id: <20190816084309.27440-3-bshah@kde.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190816084309.27440-1-bshah@kde.org> References: <20190816064710.18280-1-bshah@kde.org> <20190816084309.27440-1-bshah@kde.org> Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Add device-tree nodes for i2c0 to i2c2, and also add relevant pinctrl nodes. Suggested-by: Icenowy Zheng Signed-off-by: Bhushan Shah --- Changes in v3: - fix compatible for the i2c arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 60 +++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index db71807255ef..5dc174715311 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -332,6 +332,21 @@ function = "hdmi"; }; + i2c0_pins: i2c0-pins { + pins = "PD25", "PD26"; + function = "i2c0"; + }; + + i2c1_pins: i2c1-pins { + pins = "PH5", "PH6"; + function = "i2c1"; + }; + + i2c2_pins: i2c2-pins { + pins = "PD23", "PD24"; + function = "i2c2"; + }; + mmc0_pins: mmc0-pins { pins = "PF0", "PF1", "PF2", "PF3", "PF4", "PF5"; @@ -467,6 +482,48 @@ status = "disabled"; }; + i2c0: i2c@5002000 { + compatible = "allwinner,sun50i-h6-i2c", + "allwinner,sun6i-a31-i2c"; + reg = <0x05002000 0x400>; + interrupts = ; + clocks = <&ccu CLK_BUS_I2C0>; + resets = <&ccu RST_BUS_I2C0>; + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins>; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; + }; + + i2c1: i2c@5002400 { + compatible = "allwinner,sun50i-h6-i2c", + "allwinner,sun6i-a31-i2c"; + reg = <0x05002400 0x400>; + interrupts = ; + clocks = <&ccu CLK_BUS_I2C1>; + resets = <&ccu RST_BUS_I2C1>; + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins>; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; + }; + + i2c2: i2c@5002800 { + compatible = "allwinner,sun50i-h6-i2c", + "allwinner,sun6i-a31-i2c"; + reg = <0x05002800 0x400>; + interrupts = ; + clocks = <&ccu CLK_BUS_I2C2>; + resets = <&ccu RST_BUS_I2C2>; + pinctrl-names = "default"; + pinctrl-0 = <&i2c2_pins>; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; + }; + emac: ethernet@5020000 { compatible = "allwinner,sun50i-h6-emac", "allwinner,sun50i-a64-emac"; @@ -798,7 +855,8 @@ }; r_i2c: i2c@7081400 { - compatible = "allwinner,sun6i-a31-i2c"; + compatible = "allwinner,sun50i-h6-i2c", + "allwinner,sun6i-a31-i2c"; reg = <0x07081400 0x400>; interrupts = ; clocks = <&r_ccu CLK_R_APB2_I2C>;