Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1185807yba; Sun, 21 Apr 2019 00:44:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCMIRAKQaau/SjQWYm+Aah0nnV0kSLsunnWLwJyE+30wRX2Yp5J7CLPDMH/YLjoht0eihq X-Received: by 2002:a17:902:70c8:: with SMTP id l8mr13841532plt.177.1555832670612; Sun, 21 Apr 2019 00:44:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555832670; cv=none; d=google.com; s=arc-20160816; b=gojrwOETuYA9tPA9WflebMpElupwHGRYRtsNSyZdISom4pnzF7xQIhTZzvAKGksSfg VQPxjI+yKhMmSZFV2UxGTgKlNRhBcaUb8MM5MG73XC3+wYTz2Al6uIxO5lsqIhrgwGHG QQA5Fj83cuQRg2ArdOvil90KpDv55FT8MpzQdaB/+8OpdiHzn66ZKEtyJfkV0V+OApHO GfO+PL1pUN+ajRjT22dXhR2r9s3c1IkOivXNFjkrY8RDfkXYOleyE3jJmWpaX3iVFSnf xJz+Vhw4JtrO+X2C76jgMEJSn3CxtPMl/uy7nUhJatC9/EwpeVlj1ZEwZILtZ0sFAhT4 ONow== 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=MtnOv++q3/K3XEUktySCQU8ylpPOSY5ZJjuduLr5vZQ=; b=Hud0yRS8oQNxCo2u3WgikhGsHtlARat0dSlsd0zr3mABKnkR9cNqzGHAwei0pJL3oq w1tYGzzoe7aFXs3Uthw+Hc0wGGceU62Wys5NLl5UUO1dFCAiJQJbLwFsV8oRhd8PHL9J sUhl3MHSAFxddGAgKot6cBPOXoO265DQytnyL/lfk9SyP1pQ4if8Bbn/E1zyJ/TfRV3M tLC7z8ANr7sKjtzpY6e+b2994m34HMU9y7KqcQDahs/DVYcmdwJwASxCw9JfeoHnwMMA HvOt99QsMtxhsKoZ/PkeMKTJcpthhGN0JQYTFU0iF026qZoPSi+Yyk07jvt9smp3D2lr CvyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=b0pcba+m; 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 l6si4831811pgp.489.2019.04.21.00.43.49; Sun, 21 Apr 2019 00:44:30 -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=b0pcba+m; 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 S1726728AbfDUHk1 (ORCPT + 99 others); Sun, 21 Apr 2019 03:40:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:60900 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725936AbfDUHk1 (ORCPT ); Sun, 21 Apr 2019 03:40:27 -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 336842087F; Sun, 21 Apr 2019 07:40:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555832426; bh=Pb6r3vWA/DTvoY0vZsBOP1/4gpXHCnVCuOnEawkWSNQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=b0pcba+m8lOH685aoS1r2KLDj6By0mI9FJ6Fjb7oz31ze/Azf0ervTA2doN/WWkec xpnywYh2M+q0vaCz7yisMjYTAf2APzqGANlrQ8kT+4EaSNDfX2JeoGycFaQqvjtVcQ GgHebgD8Rr6tcZo+zxrS3WQrSfLoYECGqlIYnkC0= Date: Sun, 21 Apr 2019 15:40:00 +0800 From: Shawn Guo To: Anson Huang Cc: "catalin.marinas@arm.com" , "will.deacon@arm.com" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "heiko@sntech.de" , "horms+renesas@verge.net.au" , "olof@lixom.net" , Andy Gross , "bjorn.andersson@linaro.org" , "jagan@amarulasolutions.com" , "enric.balletbo@collabora.com" , "stefan.wahren@i2se.com" , "ezequiel@collabora.com" , "marc.w.gonzalez@free.fr" , "robh@kernel.org" , "l.stach@pengutronix.de" , Abel Vesa , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Subject: Re: [PATCH 1/2] soc: imx-sc: add i.MX system controller soc driver support Message-ID: <20190421073958.GC19962@dragon> References: <1554965048-19450-1-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1554965048-19450-1-git-send-email-Anson.Huang@nxp.com> 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 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. Shawn