Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4321520ybv; Sun, 16 Feb 2020 19:27:18 -0800 (PST) X-Google-Smtp-Source: APXvYqyoEBtkRhDFwKiu2wk3YGO4BfFGYLX/OFd6A/lPbx+HuT3hrirvroBctjfQhJZyJMRc/O6p X-Received: by 2002:aca:2307:: with SMTP id e7mr8869166oie.163.1581910038085; Sun, 16 Feb 2020 19:27:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581910038; cv=none; d=google.com; s=arc-20160816; b=JzF4VuEHoSy+HLsDM3lMISto/1NA4D0rDVSVpzixBa4GFW+9B29JMGtUCEqUc4vCLd lUbwAWsMJvChDzk3zqlz3nEUQHDHvKayBNfR3q3K3DuSeRONxoPR6mXsBiLgj+odUfwN ktjIl3jZaevzKGsUHvIu5BC12I7r/vrlXRc4f9dGfDFntn9Ezn7MRjhrbdckC5gJfK2M CaepmIo9x01aLx9F5taPvsAHnaqcQHwz+7lMU2dqo0hzgKKlpgjOIdBf+V8Zz8ZoULSz LXPHu1DCaUY46XZwpht9N0eZcgPnqquscRaZGMAGV1fvcNtkyEGc9AwXHidpqvYISsk0 /LKw== 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=DcuhmPmOEzXV6O6PT6pCK5U1bCnmpHS2UPQMSG1zqaI=; b=TmKKoVBxhAxjPGec6JF5Fk981uUWttf8Et/1YogAY4Yso2ygqXAg0aERr3HxFs5fuu fIXptIIBXPWxgz76lPMKu9Fq6zBmb5TApg7AOEGNonxY+90ISJaIBOcHJBtrL9qKmVM7 GVNTFK0fW4qpK9CoYpMAhEyZhy1W0bYS0lJV64LTEoBdC53s5J4FCMqe/S4uzw2KKBP8 i8wGV0NdmHHgBn/hONUuP3+QuuBX+RC05LHCtiNzgEmOq0Y55ESG3zaOpafAGNSFu/y4 DiAyObJh6WoSUx4brkC44i3QeCM1yC+xOTFkYeECyJxvAuZJsK/pIfpqwHwcDnt1ZZ8Y lKqw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7si6183865otp.260.2020.02.16.19.27.06; Sun, 16 Feb 2020 19:27:18 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728108AbgBQD0r (ORCPT + 99 others); Sun, 16 Feb 2020 22:26:47 -0500 Received: from inva020.nxp.com ([92.121.34.13]:46198 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727915AbgBQD0o (ORCPT ); Sun, 16 Feb 2020 22:26:44 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id A4C621A1F30; Mon, 17 Feb 2020 04:26:41 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id A895E1A1F39; Mon, 17 Feb 2020 04:26:31 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 72D68402E0; Mon, 17 Feb 2020 11:26:20 +0800 (SGT) From: Joakim Zhang To: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, Anson.Huang@nxp.com, leonard.crestez@nxp.com, daniel.baluta@nxp.com, aisheng.dong@nxp.com, peng.fan@nxp.com, fugang.duan@nxp.com, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Joakim Zhang Subject: [PATCH 5/7] arch: arm64: dts: imx8qxp: add device node for I2C and INTMUX in CM40 SS Date: Mon, 17 Feb 2020 11:19:19 +0800 Message-Id: <1581909561-12058-6-git-send-email-qiangqing.zhang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1581909561-12058-1-git-send-email-qiangqing.zhang@nxp.com> References: <1581909561-12058-1-git-send-email-qiangqing.zhang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add device node for I2C and INTMUX in CM40 SS. Signed-off-by: Joakim Zhang --- arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 27 +++++++++++ arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 47 +++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts index d3d26cca7d52..f88402ee650c 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts @@ -30,6 +30,26 @@ }; }; +&cm40_i2c { + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_cm40_i2c>; + status = "okay"; + + pca6416: gpio@20 { + compatible = "nxp,pca6416"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; +}; + +&cm40_intmux { + status = "okay"; +}; + &adma_lpuart0 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_lpuart0>; @@ -161,6 +181,13 @@ }; &iomuxc { + pinctrl_cm40_i2c: cm40i2cgrp { + fsl,pins = < + IMX8QXP_ADC_IN1_M40_I2C0_SDA 0x0600004c + IMX8QXP_ADC_IN0_M40_I2C0_SCL 0x0600004c + >; + }; + pinctrl_fec1: fec1grp { fsl,pins = < IMX8QXP_ENET0_MDC_CONN_ENET0_MDC 0x06000020 diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi index fb5f752b15fe..cd10519eced7 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi @@ -213,6 +213,53 @@ clock-output-names = "xtal_24MHz"; }; + cm40_subsys: bus@34000000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x34000000 0x0 0x34000000 0x4000000>; + + cm40_lpcg: clock-controller@375d0000 { + compatible = "fsl,imx8qxp-lpcg-cm40"; + reg = <0x375d0000 0x70000>; + #clock-cells = <1>; + }; + + cm40_i2c: i2c@37230000 { + compatible = "fsl,imx8qxp-lpi2c", "fsl,imx7ulp-lpi2c"; + reg = <0x37230000 0x1000>; + interrupts = <9 0>; + interrupt-parent = <&cm40_intmux>; + clocks = <&cm40_lpcg IMX_CM40_LPCG_I2C_CLK>, + <&cm40_lpcg IMX_CM40_LPCG_I2C_IPG_CLK>; + clock-names = "per", "ipg"; + assigned-clocks = <&clk IMX_CM40_I2C_CLK>; + assigned-clock-rates = <24000000>; + power-domains = <&pd IMX_SC_R_M4_0_I2C>; + status = "disabled"; + }; + + cm40_intmux: intmux@37400000 { + compatible = "fsl,imx-intmux"; + reg = <0x37400000 0x1000>; + interrupts = , + , + , + , + , + , + , + ; + interrupt-controller; + interrupt-parent = <&gic>; + #interrupt-cells = <2>; + clocks = <&clk IMX_CM40_IPG_CLK>; + clock-names = "ipg"; + power-domains = <&pd IMX_SC_R_M4_0_INTMUX>; + status = "disabled"; + }; + }; + adma_subsys: bus@59000000 { compatible = "simple-bus"; #address-cells = <1>; -- 2.17.1