Received: by 10.223.176.46 with SMTP id f43csp2199608wra; Thu, 25 Jan 2018 06:28:01 -0800 (PST) X-Google-Smtp-Source: AH8x226bc3ebCAUPLdNRwh9yutgF4Io2qdD8lRhmvkZO/7m7L0hNIQIkDqyRwhSpcTKpalI0skgS X-Received: by 10.99.97.200 with SMTP id v191mr13611950pgb.121.1516890481547; Thu, 25 Jan 2018 06:28:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516890481; cv=none; d=google.com; s=arc-20160816; b=E9ZzzDjEQe3nejHGkIuISqQ6SrDnG5LDWGcxVul08/HEmXudmV7ds+qV5rA+NdrUKb 2MGG6EH8N8AMrZVPZi4xflFLWZokat7knnEkIROakkftlG8Yd0z4EA3ldA86MQSsdtTF 4hOuJD8qRg8UVrS9ojMI7WqxLXxXw3zR5sLnxVLYyuQrUhDBS0/aY17MfcbiyA4QeaNn MXD9OG0Tjg8e133pn8WQWtS8NmN8szzyWMKaaJJazLCEr5IrLFIAUXkzYLFKMZQ2TOq2 YQu3rYugw72hTMw/xBGIQpg5aT580of4ufLv+/JQVkGzd9ppNgvq7iqS21sdmBQHy/+G rnbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=/hDGUKv6VL3P/T3+1e3NBdgbRYiBOuQQ142YN41TcMc=; b=NjUhzgUBDb/wM6CTVe7wh1iO4Rw5uUQNM2wW8jJY2s2GW86X3iZhcXYyFYXcFiRRac NRFwamZnuFa3UqUtJUZHF6HLn6QJXX5iJsn+XnwXVL86LtYv8XuvAkjYfqzTkry1YvoQ 9fFc8oHIajHaSQvLFaXmE7Cw8UTddubStkys+1PwDGd29JaxpJOvI2MNuIuZEJOo9VkJ gPCF7kjYpN545qiC1FXOiD5QqhCjTTtmnZDD6PFk4HNu5qtNDCiqJDdfJ66UsnGFX/jr pvgYWQzWhQ3gnsLF+qXCze5lFmdQUDv7kEL20HCq5OYlZ6lBW4ZM78JYAgEjtijMWP91 TirQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h3t69qFi; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g16-v6si1382038pli.823.2018.01.25.06.27.47; Thu, 25 Jan 2018 06:28:01 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h3t69qFi; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752109AbeAYNWH (ORCPT + 99 others); Thu, 25 Jan 2018 08:22:07 -0500 Received: from mail-ot0-f195.google.com ([74.125.82.195]:35092 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751674AbeAYNWF (ORCPT ); Thu, 25 Jan 2018 08:22:05 -0500 Received: by mail-ot0-f195.google.com with SMTP id 53so6665298otj.2; Thu, 25 Jan 2018 05:22:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=/hDGUKv6VL3P/T3+1e3NBdgbRYiBOuQQ142YN41TcMc=; b=h3t69qFibqxhGvyrtGILhVPCATRYIgF6sx0YhBSm2L21vrEkBCOXbQKQe+NjdqaIsv X6CGa9P+Jgh/YKu9sFgBBD8uADb05BgfMz0AGUgqTq+sygA0y6Sxna6gBxZx4Q8W2qGy J2MFa/jKhGq+JpEJHRQ1IHxM5qn2tfp0x+g91TW1I21Ywac0poPDhXoPR+RJ5mKWTBN5 GVn1Tfy+ef4delYUGK4FGbRYye/niKpa5Z5zxT/e4GsXwGQYbVpUaKjLMjMWr/tlaQPb jttOmRr2UiQhCJ1rUAhTQAibbbcxE6+ogj/lE2/MWVpSr9WgK6vrz5gCUpi0F8+NNLoX dwDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=/hDGUKv6VL3P/T3+1e3NBdgbRYiBOuQQ142YN41TcMc=; b=j1DZYY/OvYWr3jzZR8w7drOpo8G30wFRcGBgV5tDn65qBxZXuazK+Bsq9KjSAucxFF QYQe01+UTS8qTwf35tPOYm9+mcPknUtc+KrukLGMjON+VuGu5bITXDGMVkeaZrt57K4k pnGJ6Tyh+Ck6hPQFUx9uSHbuvteTSn28DBU8Anily9bm/tLFw63VCeBoPp/xYLWrwpDX 00HUTyTmY+HIt0RSTP/hPIrXMuppLf9NBGr8FlBOu8rFGYN7sM05B2p+nnsCWxL8jZqZ idj0rOlqRgypt1iUr/QX690JNOYkclmYNkKTydTf7aR+7Y7EhE31UGKlj/EHl5KmtzsA w9bw== X-Gm-Message-State: AKwxytdaUOOveb6mIoq6mKdH0YP2NVg/PxrQ9aZ4Tl46SrOUhCI8dAOP +mXXzEMF7rGAMy3e4kq+Z4QcB3rCLaaQjQB9LGk= X-Received: by 10.157.82.167 with SMTP id f39mr10708550oth.368.1516886524142; Thu, 25 Jan 2018 05:22:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.61.203 with HTTP; Thu, 25 Jan 2018 05:22:03 -0800 (PST) In-Reply-To: <1516367470-24340-11-git-send-email-aisheng.dong@nxp.com> References: <1516367470-24340-1-git-send-email-aisheng.dong@nxp.com> <1516367470-24340-11-git-send-email-aisheng.dong@nxp.com> From: Fabio Estevam Date: Thu, 25 Jan 2018 11:22:03 -0200 Message-ID: Subject: Re: [PATCH V3 10/10] add imx7ulp support To: Dong Aisheng Cc: linux-clk , Ping Bai , Yongcai Huang , Michael Turquette , Stephen Boyd , linux-kernel , linux-imx@nxp.com, Fabio Estevam , Shawn Guo , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 19, 2018 at 11:11 AM, Dong Aisheng wrote: Please always add a commit log. > Signed-off-by: Dong Aisheng > --- > arch/arm/boot/dts/Makefile | 2 + > arch/arm/boot/dts/imx7ulp-evk.dts | 87 +++++++++++++++ > arch/arm/boot/dts/imx7ulp.dtsi | 202 +++++++++++++++++++++++++++++++++++ > arch/arm/configs/imx_v6_v7_defconfig | 16 ++- > arch/arm/mach-imx/Kconfig | 9 ++ > arch/arm/mach-imx/Makefile | 1 + > arch/arm/mach-imx/common.h | 1 + > arch/arm/mach-imx/cpu.c | 3 + > arch/arm/mach-imx/mach-imx7ulp.c | 37 +++++++ > arch/arm/mach-imx/mxc.h | 1 + > arch/arm/mach-imx/pm-imx7ulp.c | 32 ++++++ > 11 files changed, 381 insertions(+), 10 deletions(-) > create mode 100644 arch/arm/boot/dts/imx7ulp-evk.dts > create mode 100644 arch/arm/boot/dts/imx7ulp.dtsi > create mode 100644 arch/arm/mach-imx/mach-imx7ulp.c > create mode 100644 arch/arm/mach-imx/pm-imx7ulp.c > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index d0381e9..3257e71 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -519,6 +519,8 @@ dtb-$(CONFIG_SOC_IMX7D) += \ > imx7d-sdb-sht11.dtb \ > imx7s-colibri-eval-v3.dtb \ > imx7s-warp.dtb > +dtb-$(CONFIG_SOC_IMX7ULP) += \ > + imx7ulp-evk.dtb > dtb-$(CONFIG_SOC_LS1021A) += \ > ls1021a-qds.dtb \ > ls1021a-twr.dtb > diff --git a/arch/arm/boot/dts/imx7ulp-evk.dts b/arch/arm/boot/dts/imx7ulp-evk.dts > new file mode 100644 > index 0000000..cc4e6ef > --- /dev/null > +++ b/arch/arm/boot/dts/imx7ulp-evk.dts > @@ -0,0 +1,87 @@ > +/* > + * Copyright 2017 NXP > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License version 2 as > + * published by the Free Software Foundation. Please use SPDX identifier. > + */ > + > +/dts-v1/; > + > +#include "imx7ulp.dtsi" > + > +/ { > + model = "NXP i.MX7ULP EVK"; > + compatible = "fsl,imx7ulp-evk", "fsl,imx7ulp", "Generic DT based system"; Please remove the '"Generic DT based system" entry. > + > + chosen { > + bootargs = "console=ttyLP0,115200 earlycon=lpuart32,0x402D0010,115200"; > + stdout-path = &lpuart4; Better remove bootargs. > + }; > + > + memory { memory@60000000 , otherwise building with W=1 will give you warning. Please make sure that you don't get dtc warnings with W=1. > + device_type = "memory"; > + reg = <0x60000000 0x40000000>; > + }; > +}; > + > +&lpuart4 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_lpuart4>; > + status = "okay"; > +}; > + > +&usdhc0 { > + pinctrl-names = "default"; > + pinctrl-0 = <>; > + pinctrl-0 = <&pinctrl_usdhc0_cmd_data>, <&pinctrl_usdhc0_clk>; > +// <&pinctrl_usdhc0_cd>, <&pinctrl_usdhc0_rst>; Just remove the line instead of commenting it. > diff --git a/arch/arm/boot/dts/imx7ulp.dtsi b/arch/arm/boot/dts/imx7ulp.dtsi > new file mode 100644 > index 0000000..05410ba > --- /dev/null > +++ b/arch/arm/boot/dts/imx7ulp.dtsi > @@ -0,0 +1,202 @@ > +/* > + * Copyright NXP No year information? > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License version 2 as > + * published by the Free Software Foundation. Please use SPDX identifier instead. > diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig > index 0d44949..3ce8ff6 100644 > --- a/arch/arm/configs/imx_v6_v7_defconfig > +++ b/arch/arm/configs/imx_v6_v7_defconfig > @@ -41,6 +41,7 @@ CONFIG_SOC_IMX6SL=y > CONFIG_SOC_IMX6SX=y > CONFIG_SOC_IMX6UL=y > CONFIG_SOC_IMX7D=y > +CONFIG_SOC_IMX7ULP=y This should be part of a separate patch. > CONFIG_SOC_VF610=y > CONFIG_PCI=y > CONFIG_PCI_MSI=y > @@ -48,9 +49,7 @@ CONFIG_PCI_IMX6=y > CONFIG_SMP=y > CONFIG_ARM_PSCI=y > CONFIG_PREEMPT_VOLUNTARY=y > -CONFIG_AEABI=y > CONFIG_HIGHMEM=y > -CONFIG_CMA=y > CONFIG_FORCE_MAX_ZONEORDER=14 > CONFIG_CMDLINE="noinitrd console=ttymxc0,115200" > CONFIG_KEXEC=y > @@ -81,7 +80,6 @@ CONFIG_CAN_FLEXCAN=y > CONFIG_BT=y > CONFIG_BT_HCIUART=y > CONFIG_BT_HCIUART_H4=y > -CONFIG_BT_HCIUART_LL=y > CONFIG_CFG80211=y > CONFIG_CFG80211_WEXT=y > CONFIG_MAC80211=y > @@ -90,7 +88,6 @@ CONFIG_RFKILL_INPUT=y > CONFIG_DEVTMPFS=y > CONFIG_DEVTMPFS_MOUNT=y > # CONFIG_STANDALONE is not set > -CONFIG_DMA_CMA=y > CONFIG_CMA_SIZE_MBYTES=64 > CONFIG_IMX_WEIM=y > CONFIG_CONNECTOR=y > @@ -167,9 +164,9 @@ CONFIG_MOUSE_PS2_ELANTECH=y > CONFIG_INPUT_TOUCHSCREEN=y > CONFIG_TOUCHSCREEN_ADS7846=y > CONFIG_TOUCHSCREEN_EGALAX=y > +CONFIG_TOUCHSCREEN_MAX11801=y > CONFIG_TOUCHSCREEN_IMX6UL_TSC=y > CONFIG_TOUCHSCREEN_EDT_FT5X06=y > -CONFIG_TOUCHSCREEN_MAX11801=y > CONFIG_TOUCHSCREEN_MC13783=y > CONFIG_TOUCHSCREEN_TSC2004=y > CONFIG_TOUCHSCREEN_TSC2007=y > @@ -178,7 +175,6 @@ CONFIG_TOUCHSCREEN_SX8654=y > CONFIG_TOUCHSCREEN_COLIBRI_VF50=y > CONFIG_INPUT_MISC=y > CONFIG_INPUT_MMA8450=y > -CONFIG_HID_MULTITOUCH=y > CONFIG_SERIO_SERPORT=m > # CONFIG_LEGACY_PTYS is not set > CONFIG_SERIAL_IMX=y > @@ -228,13 +224,13 @@ CONFIG_REGULATOR_GPIO=y > CONFIG_REGULATOR_MC13783=y > CONFIG_REGULATOR_MC13892=y > CONFIG_REGULATOR_PFUZE100=y > +CONFIG_RC_CORE=y > +CONFIG_RC_DEVICES=y > +CONFIG_IR_GPIO_CIR=y > CONFIG_MEDIA_SUPPORT=y > CONFIG_MEDIA_CAMERA_SUPPORT=y > -CONFIG_RC_CORE=y > CONFIG_MEDIA_CONTROLLER=y > CONFIG_VIDEO_V4L2_SUBDEV_API=y > -CONFIG_RC_DEVICES=y > -CONFIG_IR_GPIO_CIR=y > CONFIG_MEDIA_USB_SUPPORT=y > CONFIG_USB_VIDEO_CLASS=m > CONFIG_V4L_PLATFORM_DRIVERS=y > @@ -245,7 +241,6 @@ CONFIG_VIDEO_CODA=m > # CONFIG_MEDIA_SUBDRV_AUTOSELECT is not set > CONFIG_VIDEO_ADV7180=m > CONFIG_VIDEO_OV5640=m > -CONFIG_SOC_CAMERA_OV2640=y > CONFIG_IMX_IPUV3_CORE=y > CONFIG_DRM=y > CONFIG_DRM_PANEL_SIMPLE=y > @@ -283,6 +278,7 @@ CONFIG_SND_SOC_CS42XX8_I2C=y > CONFIG_SND_SOC_TLV320AIC3X=y > CONFIG_SND_SOC_WM8960=y > CONFIG_SND_SIMPLE_CARD=y > +CONFIG_HID_MULTITOUCH=y Don't do the defconfig cleanup in the same patch. > CONFIG_USB=y > CONFIG_USB_EHCI_HCD=y > CONFIG_USB_EHCI_MXC=y > diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig > index 782699e..54002c3 100644 > --- a/arch/arm/mach-imx/Kconfig > +++ b/arch/arm/mach-imx/Kconfig > @@ -554,6 +554,15 @@ comment "Cortex-A/Cortex-M asymmetric multiprocessing platforms" > > if ARCH_MULTI_V7 || ARM_SINGLE_ARMV7M > > +config SOC_IMX7ULP > + bool "i.MX7ULP support" > + select ARM_GIC > + select CLKSRC_IMX_TPM > + select HAVE_ARM_ARCH_TIMER > + select PINCTRL_IMX7ULP > + help > + This enables support for Freescale i.MX7 Ultra Low Power processor. > + > config SOC_VF610 > bool "Vybrid Family VF610 support" > select ARM_GIC if ARCH_MULTI_V7 > diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile > index 8ff7105..69c2517 100644 > --- a/arch/arm/mach-imx/Makefile > +++ b/arch/arm/mach-imx/Makefile arch/arm/mach-imx changes can also go in a different patch.