From patchwork Wed Jun 14 08:23:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 105489 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp207552qgd; Wed, 14 Jun 2017 02:55:06 -0700 (PDT) X-Received: by 10.98.111.194 with SMTP id k185mr3232071pfc.13.1497434106719; Wed, 14 Jun 2017 02:55:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497434106; cv=none; d=google.com; s=arc-20160816; b=eyysWMcqVebPZKYDzidgh3j3GgYqKrzoJq6BgQ6p4fQE46BIrnlSTlt1EhqcQQKpU7 VPMfraxcaapGlDrFH6KKIa+zWfzyOQBsFfGHJzS7IFfTh5Y8f3+VX8q6tx8ghOWRPFOK Mf9EeNVLAx4wy4I8JxXMvfcsOV1ekK+5CkecpFKJJzmhjItXDQh/JRBDS0U5Kcn0t8Df 767lEa2bwZ0MhSz9dRprh42ljgiGBf18pZcTVnwpkzlBrWkjBo+k2XLGZAG5MlD/OTEm b1IEK36IE7eekoi7QHBjJsOpRUVqpqtf9OKww1yBB4+5tEuPLlNfQYDZfOcvCgGch4n4 Zy+Q== 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:arc-authentication-results; bh=jXFtgFIjDk5tb4iZZTJ1ZCyrIT65KjYJF6ztgq0q2pk=; b=e0EYVnjy5X/lDchnPI9uhlq0RP/ePdgUlCnT73KGMeBMss6paUxwn0qEqJvwalNEGv rC8lvnpnMt3flL/f12jJPtvayoEeWVtUNQmfbbR53bzs8TTxXyqgCeWuybs5vde1yAM4 TXfjnm50cS02yu3NvubofBzEZ/m6M02n7XZA24FypQU4mnyw+WxiJZnobePNi4o2EMSp hzeuRd776VkIymLujSHt3ZN8tUJvuvVzQIv9E240L9RqeybUbyHWzeUphWsEI+NLCjC3 b5fVVT2oNigAHscDBBEZGqA0zUqByhZutAJAN+LzTqkyuWqxCUbuDJE3DyUVU/aEEmBK ViSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=XfozYQ7y; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 62si328735plb.111.2017.06.14.02.55.06; Wed, 14 Jun 2017 02:55:06 -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=@linaro.org header.b=XfozYQ7y; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752346AbdFNJyo (ORCPT + 25 others); Wed, 14 Jun 2017 05:54:44 -0400 Received: from mail-pf0-f179.google.com ([209.85.192.179]:34284 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754569AbdFNIYY (ORCPT ); Wed, 14 Jun 2017 04:24:24 -0400 Received: by mail-pf0-f179.google.com with SMTP id s66so12692700pfs.1 for ; Wed, 14 Jun 2017 01:24:24 -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=jXFtgFIjDk5tb4iZZTJ1ZCyrIT65KjYJF6ztgq0q2pk=; b=XfozYQ7yeP4NrYRIY0pwKYvq4KPXF7Kng8xObqOhSMHWT4WgmmKFrCFmts57R4REor EtrcmwgNd098zbHUCXwAY2Te61EmqO6OPpjmEQRHJ1wFx/a36cyxSgjKOYz2vsPBTrib d7VhBnGLGCxPw+ioYn60TntiCWEQ2GghJW5ss= 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=jXFtgFIjDk5tb4iZZTJ1ZCyrIT65KjYJF6ztgq0q2pk=; b=nJkrYHl6mj+Km5giWab5nMPAKEJXny37I0lCPihhcWBeR1X1/Knyay3Fy53lRNS3Zy cLxl8C9VuMqCOyqeTh7kEyjY4LV5DZkqOkOQO3eEufiWojfiP2+VFaWD+Y8UU87XDopI h2BUzzCq62V4iPxTQXxCG0F3sG8BX3VTBxcKJ4LLN/lk9bGWeWSMfrmIq1Hy/xWIXTav ApCdn5XXtYY3Rs2sbScvNzjOr81rN1grbvZk3vrvbqSIVPPJ0CguSjl3vwz/BkX6baY8 Tqa7tGe8FPX8dPhQ1XinWkcMlTSFt9N5/ep+yuZrIWmoV8nrivatBf1FgmaoJ8y44RCf fZ5Q== X-Gm-Message-State: AKS2vOwy4XHg5dDCxbOIbr+pBRHGUz24GDN+KCfTnxakB2iD1KLzc9rj dH9DbHRuHPSRFYPb X-Received: by 10.99.107.136 with SMTP id g130mr3307761pgc.3.1497428663873; Wed, 14 Jun 2017 01:24:23 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.99]) by smtp.gmail.com with ESMTPSA id h14sm766802pfh.71.2017.06.14.01.24.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Jun 2017 01:24:23 -0700 (PDT) From: Guodong Xu To: robh+dt@kernel.org, mark.rutland@arm.com, xuwei5@hisilicon.com, catalin.marinas@arm.com, will.deacon@arm.com, wangkefeng.wang@huawei.com, xuejiancheng@hisilicon.com, peter.griffin@linaro.org, puck.chen@hisilicon.com, lee.jones@linaro.org, ulf.hansson@linaro.org, bhelgaas@google.com, arnd@arndb.de Cc: zhangfei.gao@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, linux-pci@vger.kernel.org, Jarkko Nikula , Guodong Xu Subject: [PATCH v3 05/21] arm64: dts: Add I2C nodes for Hi3660 Date: Wed, 14 Jun 2017 16:23:22 +0800 Message-Id: <20170614082338.15673-6-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170614082338.15673-1-guodong.xu@linaro.org> References: <20170614082338.15673-1-guodong.xu@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zhangfei Gao Add I2C nodes for Hi3660-hikey960. On HiKey960, I2C0, I2C7 are connected to Low Speed Expansion Connector. I2C1 is connected to ADV7535. I2C3 is connected to USB5734. Cc: Jarkko Nikula Signed-off-by: Zhangfei Gao Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 22 +++++++++ arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 56 +++++++++++++++++++++++ 2 files changed, 78 insertions(+) -- 2.10.2 diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts index 64875a5..1a4d6c5 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts @@ -29,6 +29,28 @@ }; }; +&i2c0 { + /* On Low speed expansion */ + label = "LS-I2C0"; + status = "okay"; +}; + +&i2c1 { + status = "okay"; + + adv7533: adv7533@39 { + status = "ok"; + compatible = "adi,adv7533"; + reg = <0x39>; + }; +}; + +&i2c7 { + /* On Low speed expansion */ + label = "LS-I2C1"; + 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..9abe84e 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>;