Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1187580yba; Sun, 21 Apr 2019 00:47:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqwamehDfyX3HPpJz3Zz9/XtuSu2+QTBimjG/rX2lNu5MYBMQxgK2V/xWBXDbnFDjN1L81VN X-Received: by 2002:a62:61c2:: with SMTP id v185mr13832872pfb.117.1555832875922; Sun, 21 Apr 2019 00:47:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555832875; cv=none; d=google.com; s=arc-20160816; b=c3jsmtCYNBG1N7RlwL2SHtXvXQRUh7zmGYQD8rSG32j0kIjUKJ7E/OLPrQh5eGRSk+ tY0Q1oPMzoOojKzelV9bhGx5qGDVSlcQnlwcJ4kU1U5kgKTuUKNcaapkP+yJq1o27bqz T+axxURJaTePo1cUy3zTma378W2V06dHfGG2ItAnphtX49XX4npm/HQyVlhAggWRj9bT l2jEk+9nXVz6V0os7EM/60gLlqbu6pIg3MumDXlopZdm6edOENEDh7oya0PgfBG0H+m9 +UINpizhrhD+Pi8+Z3HV8OOyck3u+/do+4YcQjpTaItsJKmL6M7Qy5chpMLdlzGgXkPl h0fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NUkFsD2JprT+FMYHsCqa/unO7+vrHSsQMc3Vi3NNaKw=; b=kRqkQmRCxyqyznFTzl2gvnVx1C+06AfzC8cBAsJytfXYTWmw1/loJhAgetKYtN7X58 WibR09ew4nVV6S1EBhXZ8UjZuxbj/MilLHHWsHdXbi6/Cn4HLe1aepY9QRt/lz61NYb5 F9JAsjTlVe/7ZCG3blYGJKFSh6LnBcCk3Y97rB+RhTLt4Y0i+cpEISO6pLaOkj8rbQs1 FsemoWU50ipR7RN8/a9BWcgzw8wqAMah9/ELWbQpYlDxX0yF7kxvFOPcNAR6/BnES3tD +ysewDpMMVZ5VNOnZXOU6nvNXP9xA6d9XWeqGY7eoQjVJeSLl0dbS19NWMJtu6t83qiU HRuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=c8hIy7MU; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a22si10223286pfc.217.2019.04.21.00.47.40; Sun, 21 Apr 2019 00:47:55 -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=@kernel.org header.s=default header.b=c8hIy7MU; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727156AbfDUHmQ (ORCPT + 99 others); Sun, 21 Apr 2019 03:42:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:33054 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725936AbfDUHmQ (ORCPT ); Sun, 21 Apr 2019 03:42:16 -0400 Received: from dragon (98.142.130.235.16clouds.com [98.142.130.235]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2AAC62087F; Sun, 21 Apr 2019 07:42:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555832535; bh=9FSqfsaaOvDnXhPjfgQ6ssV0b4vkshvgBx2j1Yv/trg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=c8hIy7MUGwz6DvxiLzNwdq9sh52bM/SXDDcDZy1rVgyhc4CjJp3YGY76ki4mDSgvf QMKp3aVFhoX6fNEr3RggUJq8HjBXIGLn3Pkr8E+e9YUFg7D14kM95lMlbLKl10XEXi NkuccbSqpP6FFl4B1BGiBeTSE201Ui0RixzS+MVE= Date: Sun, 21 Apr 2019 15:41:54 +0800 From: Shawn Guo To: Anson Huang Cc: "stefan.wahren@i2se.com" , "enric.balletbo@collabora.com" , "linux-kernel@vger.kernel.org" , "heiko@sntech.de" , "marc.w.gonzalez@free.fr" , "ezequiel@collabora.com" , "catalin.marinas@arm.com" , "s.hauer@pengutronix.de" , "will.deacon@arm.com" , Abel Vesa , "bjorn.andersson@linaro.org" , Andy Gross , "jagan@amarulasolutions.com" , "kernel@pengutronix.de" , dl-linux-imx , "olof@lixom.net" , "horms+renesas@verge.net.au" , "festevam@gmail.com" , "robh@kernel.org" , "linux-arm-kernel@lists.infradead.org" , "l.stach@pengutronix.de" Subject: Re: [PATCH 1/2] soc: imx-sc: add i.MX system controller soc driver support Message-ID: <20190421074152.GD19962@dragon> References: <1554965048-19450-1-git-send-email-Anson.Huang@nxp.com> <20190421073958.GC19962@dragon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190421073958.GC19962@dragon> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 21, 2019 at 03:40:00PM +0800, Shawn Guo wrote: > On Thu, Apr 11, 2019 at 06:49:12AM +0000, Anson Huang wrote: > > i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller > > inside, the system controller is in charge of controlling power, > > clock and fuse etc.. > > > > This patch adds i.MX system controller soc driver support, > > Linux kernel has to communicate with system controller via MU > > (message unit) IPC to get soc revision, uid etc.. > > > > With this patch, soc info can be read from sysfs: > > > > i.mx8qxp-mek# cat /sys/devices/soc0/family > > Freescale i.MX > > > > i.mx8qxp-mek# cat /sys/devices/soc0/soc_id > > i.MX8QXP > > > > i.mx8qxp-mek# cat /sys/devices/soc0/machine > > Freescale i.MX8QXP MEK > > > > i.mx8qxp-mek# cat /sys/devices/soc0/revision > > 1.1 > > > > i.mx8qxp-mek# cat /sys/devices/soc0/soc_uid > > 7B64280B57AC1898 > > > > Signed-off-by: Anson Huang > > --- > > drivers/soc/imx/Kconfig | 7 ++ > > drivers/soc/imx/Makefile | 1 + > > drivers/soc/imx/soc-imx-sc.c | 220 +++++++++++++++++++++++++++++++++++++++++++ > > 3 files changed, 228 insertions(+) > > create mode 100644 drivers/soc/imx/soc-imx-sc.c > > Rather than creating a new driver, please take a look at Abel's generic > i.MX8 SoC driver, and see if it can be extended to cover i.MX8QXP. Forgot to give pointer to Abel's driver. https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git/commit/?h=imx/drivers&id=a7e26f356ca12906a164d83c9e9f8527ee7da022 Shawn