From patchwork Wed May 17 08:37:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 9730467 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 1278E60138 for ; Wed, 17 May 2017 08:46:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 00BE128655 for ; Wed, 17 May 2017 08:46:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E95E728706; Wed, 17 May 2017 08:46:55 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 65F1728655 for ; Wed, 17 May 2017 08:46:55 +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=RVMfTbm5wUQsEcvc1jYxIxcnaOBpzMf5nNhq99Tubv8=; b=Kp0AYa7b9z5A2O+0vnbi4Qby2T wG4hivj7jKgXqPOMvrVd9AeU8h0G+KtEr3CTLZYI/HvNJmJedOzRUQB07HWpwmIiFOnEReKBGcAhs I0PQTEsVg+VvDaP8ymujdueYyJagI85uiYt5Jb6AmWN53tZGXYHk94uOhsjc86e7dHAuUqar/JjSj 8euK1cXcZTtXfna4NYrevLXx4DaOzhmf2uwVhx55hIEaYMjYkuHP7mdgRTcbtLJgg0ub0TkonR0w+ pm6k3Nu0OH79pvD+aswxYyFIBBio3OWLDqYF4siGaH6z+1SojA7+r8bwMGg9XDyHo9wsnoiwoUc5F ev/mrRBg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dAubd-00060k-Eu; Wed, 17 May 2017 08:46:53 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dAuU1-0000nG-1F for linux-arm-kernel@bombadil.infradead.org; Wed, 17 May 2017 08:39:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=R/slF/fdOeWZ43T8E80kJQcFp8IH7sRLB8INbfV2NkY=; b=bKcwJvpde3MzOuJRWuPFuvs+n M51em2upYwQz+96BTJKC0GwEvYpejhf/6JIGHFSKKXN/96NCK2fS803VaoH5/Q4gVXTZWmCia6YG2 X+/LfbTs0BjbOKXUWtM0bNULALhNwye1yEtiPUTipaBl5uWVOMt8PB/yqr6Xyk5x41biQZphMJFg1 4rDB3YdCga1v6kUUJyiE2Jhyo4tFeQOMAdPSn0HRuidwNwjfqhQddIYC1G8YcbHvrDlT8VeG+D7Fj BgF2vxTRhXQKsJukS/TdE1OXc16m6pS78HAOhdJDa8fFAPEmuH9W3z2qSEU98me387WsNMfGOt1Oy KS8duoj/A==; Received: from mail-pg0-x22e.google.com ([2607:f8b0:400e:c05::22e]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dAuTz-0003cU-Mw for linux-arm-kernel@lists.infradead.org; Wed, 17 May 2017 08:39:00 +0000 Received: by mail-pg0-x22e.google.com with SMTP id x64so3753198pgd.3 for ; Wed, 17 May 2017 01:38:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=R/slF/fdOeWZ43T8E80kJQcFp8IH7sRLB8INbfV2NkY=; b=jh5P8lSKH+dnXQ6p1ryvXvff4vvRCRD3vS3cbEO1eYNgmJHySnq/DFmII8/QZWa5BF ShneYPaU6O8zIPvW3tTTQPgXHXIG14OqGGU1X2ao02nXSiof+Pos0qS/qgTzonOkMRhZ ObEbmTuhWeaUito8zzE+kT7vHhHnbr+VnMKco= 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=R/slF/fdOeWZ43T8E80kJQcFp8IH7sRLB8INbfV2NkY=; b=A05x8iDXpK8VZb/Pk+oelHN2kfiCzGVPq85DvZGZ/8+FylzT1os8L9H1IbB+H7kOOh /hUyCnyeO8kfZuNFVxSfJ2fn9HNFi7IRE5r9qCAvDsi4asnRjbRDkMQZvt2C4j+qjgDK juTlGwlmBP0RwnFMEGbIyxe3bcxia8Kxn0FNqPYsSyqP3fBKOu0HI/Cv8YBQm761MgvH pXV1D/0s83EWWmuzdJuGa/b6YfOgz4sRc6WbaoXD55xTHy9IlCX5880J16n2+9E61444 99FmrPPaSwjdDieY5XJvn6lApSm+qK+ISIBP4E7TNmJLI11mDdRZvUhavS3ixDjLHHxH YrVw== X-Gm-Message-State: AODbwcDJdAFzk5mFbHxkhN93BI5CUO4nMaHYf0HFdMOLzk0m1CwKzIlF Gznw6NNHuC8ZPAJB X-Received: by 10.98.95.193 with SMTP id t184mr2494301pfb.191.1495010318344; Wed, 17 May 2017 01:38:38 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.164]) by smtp.gmail.com with ESMTPSA id u9sm3029519pgn.55.2017.05.17.01.38.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 May 2017 01:38:37 -0700 (PDT) From: Guodong Xu To: robh+dt@kernel.org, xuwei5@hisilicon.com, catalin.marinas@arm.com, will.deacon@arm.com, wangkefeng.wang@huawei.com, puck.chen@hisilicon.com, xuejiancheng@hisilicon.com, devicetree@vger.kernel.org Subject: [PATCH 05/12] arm64: dts: Add I2C nodes for Hi3660 Date: Wed, 17 May 2017 16:37:38 +0800 Message-Id: <20170517083745.24479-6-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170517083745.24479-1-guodong.xu@linaro.org> References: <20170517083745.24479-1-guodong.xu@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170517_043859_820243_09BFB3DD X-CRM114-Status: UNSURE ( 9.36 ) X-CRM114-Notice: Please train this message. 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: Zhangfei Gao , Guodong Xu , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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: Zhangfei Gao Add I2C nodes for Hi3660-hikey960. On HiKey960, I2C0, I2C7 is connected to Low Speed Expansion Connector. I2C1 is connected to ADV7535. I2C3 is connected to USB5734. Signed-off-by: Zhangfei Gao Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 18 ++++++++ arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 56 +++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts index 64875a5..f685b1e 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts @@ -29,6 +29,24 @@ }; }; +&i2c0 { + status = "okay"; +}; + +&i2c1 { + status = "okay"; + + adv7533: adv7533@39 { + status = "ok"; + compatible = "adi,adv7533"; + reg = <0x39>; + }; +}; + +&i2c7 { + status = "okay"; +}; + &uart5 { status = "okay"; }; diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index f55710a..f217c9d 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi @@ -186,6 +186,62 @@ #reset-cells = <2>; }; + i2c0: i2c@FFD71000 { + compatible = "snps,designware-i2c"; + reg = <0x0 0xFFD71000 0x0 0x1000>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <400000>; + clocks = <&crg_ctrl HI3660_CLK_GATE_I2C0>; + resets = <&iomcu_rst 0x20 3>; + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pmx_func &i2c0_cfg_func>; + status = "disabled"; + }; + + i2c1: i2c@FFD72000 { + compatible = "snps,designware-i2c"; + reg = <0x0 0xFFD72000 0x0 0x1000>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <400000>; + clocks = <&crg_ctrl HI3660_CLK_GATE_I2C1>; + resets = <&iomcu_rst 0x20 4>; + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pmx_func &i2c1_cfg_func>; + status = "disabled"; + }; + + i2c3: i2c@FDF0C000 { + compatible = "snps,designware-i2c"; + reg = <0x0 0xFDF0C000 0x0 0x1000>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <400000>; + clocks = <&crg_ctrl HI3660_CLK_GATE_I2C3>; + resets = <&crg_rst 0x78 7>; + pinctrl-names = "default"; + pinctrl-0 = <&i2c3_pmx_func &i2c3_cfg_func>; + status = "disabled"; + }; + + i2c7: i2c@FDF0B000 { + compatible = "snps,designware-i2c"; + reg = <0x0 0xFDF0B000 0x0 0x1000>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <400000>; + clocks = <&crg_ctrl HI3660_CLK_GATE_I2C7>; + resets = <&crg_rst 0x60 14>; + pinctrl-names = "default"; + pinctrl-0 = <&i2c7_pmx_func &i2c7_cfg_func>; + status = "disabled"; + }; + uart5: serial@fdf05000 { compatible = "arm,pl011", "arm,primecell"; reg = <0x0 0xfdf05000 0x0 0x1000>;