Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2460245ybl; Sun, 11 Aug 2019 02:06:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqzq+qF0Cd+BrJ0KhBvTv7nDvRTYU793s7Ugw5vpv88YHVGVa88IGtBlmoghxrUO2W0rpkpD X-Received: by 2002:a17:902:4681:: with SMTP id p1mr27728567pld.256.1565514371016; Sun, 11 Aug 2019 02:06:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565514371; cv=none; d=google.com; s=arc-20160816; b=v1Tm1wmTOAbJmxVbUXjP6xtBBW+/03NYHJXtIPmYD/a5J/u27FKwrnIJ12OUGYaTGu Gy57n1C5QtbVhx6sZwltKn1YJRBGT5XqOabfr2RqQrushEaBrTjnO0AlyvdOndWjuWVL fGEaDR2QdMGdgSWw504SOd+OO7Cm1BJs/e+ayM4tMTM+aYHZaB29lQPMWzBcIG66+k0N 3WChhlMc560PoKikTWwSN34sZVlx2d08WfSXF1MEfR24+4e+qOcNWfSu1cBDsWEXbZ3s NFWCz2874DmyxrAzt3PwURhp3+eSbjagUvLm8gjRMDXcmnlXC8bXw6TcIj3oAvdZYFMf Sk7Q== 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; bh=j3Ifly1foxb2daR0o6J+zTU4WYUy2bJbtxT4XK1OLrg=; b=YedvQesfl8DKPUYcNTFM8VrRkOlIaDXQwcpGbfNrQq4whFpFIK3ZqR8pfZpLxpniAH NnkhV4lEV2jiiXvb8nkORVVpVlHwvY8j8o5exohjnGF1OSZu2oorzPmNIpnBLf+yxxRC 4gAYkQd14SK/e2OzmvaGKlQx6NVHmExSXU10TVCuqPEPcC2p/Kdspx6/h2NLGWiqIIgl lMD2a0GF1Q7Wml6I+KH9Tx0kXC35uBySK++3f8qI7LkLylWnZtAZ0Ge/VqEdLZl5WCt5 ewxfP5sH4n47sOgT7/Xk1amQXG+d1zI31CnNkVnvN1S20CZMlBwAq3xu7OFZoETuO2tr khIA== ARC-Authentication-Results: i=1; mx.google.com; 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 d5si52371767plo.396.2019.08.11.02.05.55; Sun, 11 Aug 2019 02:06:11 -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; 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 S1726452AbfHKJFU (ORCPT + 99 others); Sun, 11 Aug 2019 05:05:20 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:38925 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725826AbfHKJFT (ORCPT ); Sun, 11 Aug 2019 05:05:19 -0400 Received: by mail-pg1-f193.google.com with SMTP id u17so48012110pgi.6; Sun, 11 Aug 2019 02:05:19 -0700 (PDT) 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=j3Ifly1foxb2daR0o6J+zTU4WYUy2bJbtxT4XK1OLrg=; b=ZpSGyTg+Pc1nyUjFA5ewHi+L4znya+bvuCp4OFK9cnPbtQUappIWG/yKt0Pc/i5EBr rBxo+jdFT6gFnvSxV22jBemcjuNqjA0sr+sF0fn62bZzmdChaCIn6nZiiAwz9sDmbia+ 6WjwKP6VWvNkgKTGhYfabk9LdlOk3z6B1zVKEnBRwaZWZ3XRte24R1bgmOII+hqJyd2d FKDPEUPPXxSlT6CwT8QAjDukEOR4jli0c6rOVTMyP3bhw+yjTj1JCHZihZSpAZ7l5YQg 748HBKpMKmhlZwOZyfALA2XBOaV5+0OIagSRGjqekRqJ8gH2O55rXPVZ5i2RuW6rPNl9 l+tg== X-Gm-Message-State: APjAAAXpb1KtFSLgnGoNtVoxNiKNGpQCaJEBRav4pg1jR2Oqz2L1tiFM NooDALi2lmVKJz8oj2fmiHo= X-Received: by 2002:a62:c584:: with SMTP id j126mr527338pfg.21.1565514318668; Sun, 11 Aug 2019 02:05:18 -0700 (PDT) Received: from archbox.localdomain ([203.88.145.156]) by smtp.gmail.com with ESMTPSA id r75sm129923096pfc.18.2019.08.11.02.05.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Aug 2019 02:05:18 -0700 (PDT) From: Bhushan Shah To: Icenowy Zheng , Maxime Ripard , Chen-Yu Tsai , Rob Herring , Mark Rutland , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhushan Shah Subject: [PATCH 1/2] arm64: allwinner: h6: add I2C nodes Date: Sun, 11 Aug 2019 14:35:02 +0530 Message-Id: <20190811090503.32396-2-bshah@kde.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190811090503.32396-1-bshah@kde.org> References: <20190811090503.32396-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 --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 54 ++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index bcecca17d61d..1d9ad3ec0b65 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,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,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,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"; -- 2.17.1