From patchwork Fri Jun 1 06:28:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 10442495 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 44FF2602BD for ; Fri, 1 Jun 2018 06:30:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3426F28CD2 for ; Fri, 1 Jun 2018 06:30:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 330D428D6C; Fri, 1 Jun 2018 06:30:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B543128FC4 for ; Fri, 1 Jun 2018 06:30:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=stj2dg/JUF6CadjPnUbN/xwwEG2xHlNlqJzjrycY4Dk=; b=Shf/L3LileKRW0z82QOMZ1OePB E37HDX363RXkgPZWBUp4mGgl1QU4bu0VHGbHBR3voPCzcm4hQv8w6r1GKpTf9ckVw86nwCsZxAhHL /f+tDKvi7x50AHwJO62KtcOiEwFJ4LQHN2iCjHE3BmSmaZQNY8+qunnhR6kTGq55l+YHf+4v3rF3D 3n5oGuQ8A93/khg9MWcxvOMPvIhdJGfKqy6k3Lj5cBltPt/PO5faqiapQnpufc2WqrbdYpI1o5zjT fC/Vcj/DWot3cGLFVrLgQJH9XbBC+XlxO6oJi9dIIn9jSpMCHtOiYoKtAuUNmmcch3VNjcb2qFpJ/ TRTRyhXQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fOdZj-0002Xx-3g; Fri, 01 Jun 2018 06:30:11 +0000 Received: from mail-pl0-x242.google.com ([2607:f8b0:400e:c01::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fOdYu-0001pG-5D for linux-arm-kernel@lists.infradead.org; Fri, 01 Jun 2018 06:29:22 +0000 Received: by mail-pl0-x242.google.com with SMTP id az12-v6so14724324plb.8 for ; Thu, 31 May 2018 23:29:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DilgEsh0W7Wi5b3lBauJLxTWfaW0mQrp5tTVZ0NTdko=; b=OhkBaZDveYYiCSJ9kduYklFfcPX/dhyPUdpkBG0bSwUBSfxeRldUoc69W/sqxhKqxM 9ODQeLL2JlCKcJDy5zZ2NAK/RN+Nes81o+KFyXTRFXLGYw54+7ORyKMA0QtTw5jUvpSa 4ZL61EBkdu0019jKFSgrM1INNXrx9vmD3qKfo/OZ4GE8FZRqpMOf/+bc2lsAet06qnyz q6mRjjvys6PQC8WVaJTFWPLpD/WZ5xac5Z+977XOls4Ljb8Ec8vtMtbBY4ZOWUMQ138Y W4Il/KGuXzo5xkQ5AihMD1WrDMbbyWwggUTtP2kRNSVT7MbWy5a4y59wpGto34p7n/o7 vDiw== 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=DilgEsh0W7Wi5b3lBauJLxTWfaW0mQrp5tTVZ0NTdko=; b=n4sYl1InHvoCEU8LembkFbeoeQ/g39Gr2ltAd2dEn3wL50tizG7cyinAgkfewqBOZB wwFB/tSpaujrMesKoxzdGJNzVT0K/LZ50CTlqw/YzzkJ7xpwQE362dpV+Ka788nNk5Jy Kp2m+DAUNvrY16CPR/8NG3k70wk4X2RO0WyhYWQxIrKZNfhwLULlaiTfRlVLFovbmlDk GOd6YP5p73lX+7KIRqOI61P1p4B5Pj+Tyj1FO+KzbDw6khsNW56M/FtwomGZ1VxUpDtx y1yVQb/HvbZkX4Amh/Ue9g3K+PRqgNP2QyVolCA81kOoZC7ptO+aw4zHy4UQwXTh5xpU ZMYQ== X-Gm-Message-State: ALKqPwfVOM/rZZ5l7rdTVdonJ4jUgri3wZKSbkXwIbsJ9TctlnPWTr4K z9J0DDWcXjn/O5OLJAvh5iY= X-Google-Smtp-Source: ADUXVKKkp1mD40o+aWMubFF6KwoGxlWmP6rUWqlwymxy6DTdIvwIKU+Fgb6fVhTZkBEjXzm5UpuisQ== X-Received: by 2002:a17:902:aa03:: with SMTP id be3-v6mr9915518plb.61.1527834549436; Thu, 31 May 2018 23:29:09 -0700 (PDT) Received: from anarsoul-thinkpad.lan (216-71-193-140.dyn.novuscom.net. [216.71.193.140]) by smtp.gmail.com with ESMTPSA id d22-v6sm11149949pfl.10.2018.05.31.23.29.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 May 2018 23:29:08 -0700 (PDT) From: Vasily Khoruzhick To: Maxime Ripard , Chen-Yu Tsai , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH 1/3] arm64: allwinner: a64: add R_I2C controller Date: Thu, 31 May 2018 23:28:59 -0700 Message-Id: <20180601062901.8052-2-anarsoul@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180601062901.8052-1-anarsoul@gmail.com> References: <20180601062901.8052-1-anarsoul@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180531_232920_212776_5C7F518D X-CRM114-Status: GOOD ( 14.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Icenowy Zheng MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Icenowy Zheng Allwinner A64 has a I2C controller, which is in the R_ MMIO zone and has two groups of pinmuxes on PL bank, so it's called R_I2C. Add support for this I2C controller and the pinmux which doesn't conflict with RSB. Signed-off-by: Icenowy Zheng --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 1b2ef28c42bd..b5e903ccf0ec 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -46,6 +46,7 @@ #include #include #include +#include / { interrupt-parent = <&gic>; @@ -655,6 +656,17 @@ #reset-cells = <1>; }; + r_i2c: i2c@1f02400 { + compatible = "allwinner,sun6i-a31-i2c"; + reg = <0x01f02400 0x400>; + interrupts = ; + clocks = <&r_ccu CLK_APB0_I2C>; + resets = <&r_ccu RST_APB0_I2C>; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; + }; + r_pio: pinctrl@1f02c00 { compatible = "allwinner,sun50i-a64-r-pinctrl"; reg = <0x01f02c00 0x400>; @@ -670,6 +682,11 @@ pins = "PL0", "PL1"; function = "s_rsb"; }; + + r_i2c_pins_a: i2c-a { + pins = "PL8", "PL9"; + function = "s_i2c"; + }; }; r_rsb: rsb@1f03400 {