Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp561321ybl; Thu, 15 Aug 2019 23:58:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqycib8AGdfl9O51qh8YbH2KaM0cT6qtIgMn9jtsC0/KJ/IaasU00pjWftyFXGd9w78WRyh+ X-Received: by 2002:a17:90a:d793:: with SMTP id z19mr5698887pju.36.1565938685778; Thu, 15 Aug 2019 23:58:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565938685; cv=none; d=google.com; s=arc-20160816; b=NPZQZOn4343yBOU0Zatbaa83T8YCp+O9uT51HMetpcefON8GThdWdxMvPW1GjoDyRO rXsD/prnYf89eCp/Fabcdh5Hsf3NWyRqsIZXjcDr2pq7XjidmIwcjSxoW+tB4wPu/0f1 LUQZjr1X+VL9nO9UbRdU25n3nqijLp8hr8BXJpuT2DxyCo/+BmNZz4OQSeEbdCj0yZCd xmhhnZ7nih2/OEYCuCpQXu1M7jtwwDUhTk2EFhKkW33yr7B3dpMVMDDhSEoSZ+7T/s+X kF5WzDSvWFsgNg3yyJ6ukzm9OmlXBZtDADlAiEphurMSZKS3ZAJZsmAQD1nX/FC3T0Te 64Jw== 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=py1ztBn1XdaocFAZ/o0HlkGN6xIaCjB2FLD7M888Jkk=; b=cywuejxVXF2CytthJdFZOQV9v73yyuP8qFut5s1hE6FrYoS7Gn4G5HahvHOrB790yl mhcRRk++nPwBswcrrq3HRC1koQ71HhTb1e/VTjBkxtbFlEEjYRxI3icjza4cwr1SmE7R LYj5gzm+zRt7wvYGD0/qZY9wIWyabmwqnh1tVuYMg+IvWK2/iTM/Synmwa19XzToPbhC JHAjTTRdc+ItNv5yZq2u20XFkuydBL2i4E318N0hpyx8Qpnl7zkBiTXsZxDnfXVTops/ D6n2FC9A1+Knfg69biCLjfUYeP1SmRtRq2UfSzB4JkKgVxFlvKni/TBM26t57kRjNQFB ByHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kde.org header.s=users header.b=JaQk3ITD; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j22si3236120pgb.352.2019.08.15.23.57.50; Thu, 15 Aug 2019 23:58:05 -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=@kde.org header.s=users header.b=JaQk3ITD; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727129AbfHPGzj (ORCPT + 99 others); Fri, 16 Aug 2019 02:55:39 -0400 Received: from letterbox.kde.org ([46.43.1.242]:53668 "EHLO letterbox.kde.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725829AbfHPGz2 (ORCPT ); Fri, 16 Aug 2019 02:55:28 -0400 X-Greylist: delayed 466 seconds by postgrey-1.27 at vger.kernel.org; Fri, 16 Aug 2019 02:55:26 EDT Received: from archbox.localdomain (unknown [123.201.155.129]) (Authenticated sender: bshah) by letterbox.kde.org (Postfix) with ESMTPSA id C95EB28ACD4; Fri, 16 Aug 2019 07:47:43 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kde.org; s=users; t=1565938064; bh=py1ztBn1XdaocFAZ/o0HlkGN6xIaCjB2FLD7M888Jkk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JaQk3ITDsZkYq2OpOByS+hSpWW9YsIUsCPTu4TYHzjHOhWoEEOJROZ5IK1qRXqon2 6B9Ry20VIHjpEiVvf+X06/0NulBmv++Ff+Rw3hL/qZXXbdmDf048smKlpi4yxmT/KL /qOGkGFgiHkZVgHRysRt0UwC20jMTxgjgw5XAXwCjxTCI7axv3Xrza9HzLqpaShVv8 pNgUENFIlRb1bTmLOXfreflwxDh9L1XJSEIq1wn2AYkA5g+F7zgWe6Q3UFoUVe21aE gTSgu/CcHgAILH+2LW6a7f0WZo/+NggvPjgkQ7KwX/Sacp7RMDg8I4AFyY1OjAlf6W RABa+edqPLCTg== From: Bhushan Shah To: Icenowy Zheng , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Wolfram Sang , Gregory CLEMENT , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Bhushan Shah Subject: [PATCH v2 2/3] arm64: allwinner: h6: add I2C nodes Date: Fri, 16 Aug 2019 12:17:09 +0530 Message-Id: <20190816064710.18280-3-bshah@kde.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190816064710.18280-1-bshah@kde.org> References: <20190811090503.32396-1-bshah@kde.org> <20190816064710.18280-1-bshah@kde.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 v2: - Add the SoC specific compatible string instead of re-using a31 one. arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 56 +++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index bcecca17d61d..a1a329926540 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -329,6 +329,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"; @@ -464,6 +479,45 @@ status = "disabled"; }; + i2c0: i2c@5002000 { + compatible = "allwinner,sun50i-h6-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"; + 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"; + 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"; @@ -795,7 +849,7 @@ }; r_i2c: i2c@7081400 { - compatible = "allwinner,sun6i-a31-i2c"; + compatible = "allwinner,sun50i-h6-i2c"; reg = <0x07081400 0x400>; interrupts = ; clocks = <&r_ccu CLK_R_APB2_I2C>; -- 2.17.1