Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4841966imj; Wed, 13 Feb 2019 01:57:37 -0800 (PST) X-Google-Smtp-Source: AHgI3IZLV93/C4VeL4u5xaXgo0PjdJSnP++Fv2sE2Q0/V298WI2M8ze0kyz4gh4HG+X+WvZYxdAY X-Received: by 2002:a63:cf42:: with SMTP id b2mr2364557pgj.173.1550051857599; Wed, 13 Feb 2019 01:57:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550051857; cv=none; d=google.com; s=arc-20160816; b=1GqgTxLBF1GFlSCoeQ6rVEdJCtJ8LjPXFb2+J3OLQcNO3O80RbSK5Zm9gAAMxad96B OEP2mprCdfxHGyhquYn+pXKoWIVvAoSyf3kMmLRfhSl4QUo+7ZdQkgkP2Cb0+Tkk8K2J +LrjAUwyGTYgkDNq+8ZovLQrsST0Vc6H7YPKReswlLGVNfZng3kDdPfAjrVaN3zpZnKY duQmZ7czvVA5wm5XOhLWyvtMZb8kiDxeSLwO3YFeXFPD5MrUhDaoi2PQKu6OV2rO+dpu 9VLuzuZ3YpjpyBlEv69jo9jPMo85D8AsMzTptQuboJL7mHFhRW688lIM1OUC6B6zoXnK yedw== 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=vykvHra8yq7WQFpSVoMklR3MmMLAQ8rqYPPLApssG0M=; b=yUDNHq7OgVxg+2HTo0i8KogVz1friWQH0R5/ssLqteogmz+afUXXXx7qZLprDmLUMd i1UsY9PIUQARU0762oDQgMRGwCG++Rz52NtzJXQ7/EKiE4ChqgeXSGZEg1HsZA9l55Pf t2AHw453Rj+mhDQgPPDcqCRw3pVp+Oo4v+rrAoSaFbLcn4g/MepI8xPFLnj0DJ5NK3f9 61JJNi9Q9OmaCP5qKg2Su85jIjXkaQ3qzU7hTJSPzPL80NrfJXMkj3Xsu2K3tX31R3Vt hssXZmzEc8jJvVtGGConSf0Ey6+D7lOWrtI4Df916EKFChQhu22qryecH+08RKzueZUg MNiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EQnOohxM; 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 i13si379552pgj.199.2019.02.13.01.57.21; Wed, 13 Feb 2019 01:57:37 -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=@linaro.org header.s=google header.b=EQnOohxM; 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 S2388705AbfBMHJJ (ORCPT + 99 others); Wed, 13 Feb 2019 02:09:09 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:34261 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726940AbfBMHJJ (ORCPT ); Wed, 13 Feb 2019 02:09:09 -0500 Received: by mail-pl1-f195.google.com with SMTP id w4so760684plz.1 for ; Tue, 12 Feb 2019 23:09:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=vykvHra8yq7WQFpSVoMklR3MmMLAQ8rqYPPLApssG0M=; b=EQnOohxMtVenP1TgNqecDBgl7ZUw2GguD/DliPNQ/LXbSijsAL5WJFL1LogwX70x8Q 7Aj7KIOFAOnJrMAzotfhh+ojG1GTWs75ZU4D8T7hwC/IFFr5Z/oS49YmEiABxAhfA/sF wGuNfhvfQU1/n4glxLX+/Z69gBfQ0ii8gWhNKkCpj8eherLrr9QfMiU6T/CdZTMzJWRn AZ6Q0f7AhaVbvg2cFVuzNOKVQ2eb0IMtYWqrTM/LmlcTrO69Adj7V8+opkobRmYeuwTN l6WCThKJ9zdaEYISTF/Cxvk5Br/Y14AElly+gWSbaPl65nRAjEaSv225SYLPBtbTQE/4 PXTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=vykvHra8yq7WQFpSVoMklR3MmMLAQ8rqYPPLApssG0M=; b=F+pQhJnF9RnD+whIzr7IMPa1+FYNxf/oX52AusKsfX3ZcUenKIajKH0rPLRVjlxJe7 vjNwIZyOxeYx6KfqRM76j2wOQRndZfeb+1kzUE1eh/MHqwUZ4LdWQwvO3olqLPpvusXh 2bdX0IuZPt6/BbkzUtRtIppuvKzRW3XgodSr5drFBlIwgteNEtblEv9EQh8YYw5ID6EP wb9nNBTquPSKRSHdMNAeBVHKNzIrNbpJKxdwzOk01O4lJwd7wM99qFIiXMggzwvsiBXm xxCPezRJPsvnVZ21nqwwQePPX7GgodhtjLw9ca7tsG/LqnXMbT9NputGHCV0mLicD9Gg rSrQ== X-Gm-Message-State: AHQUAubv03ivGOkyEAugFjA6IP0FO5BbHlDl5vNZvQMDQ7GMReBd7VTP mk+FP0J7nKEpbbtvFMti2FzoVg== X-Received: by 2002:a17:902:2a69:: with SMTP id i96mr8278118plb.58.1550041748336; Tue, 12 Feb 2019 23:09:08 -0800 (PST) Received: from localhost ([122.172.102.63]) by smtp.gmail.com with ESMTPSA id b2sm19014678pgg.87.2019.02.12.23.09.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Feb 2019 23:09:06 -0800 (PST) Date: Wed, 13 Feb 2019 12:39:04 +0530 From: Viresh Kumar To: Anson Huang Cc: "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , "rjw@rjwysocki.net" , Aisheng Dong , Daniel Baluta , Andy Gross , "horms+renesas@verge.net.au" , "heiko@sntech.de" , "arnd@arndb.de" , "bjorn.andersson@linaro.org" , "jagan@amarulasolutions.com" , "enric.balletbo@collabora.com" , "marc.w.gonzalez@free.fr" , "olof@lixom.net" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-pm@vger.kernel.org" , dl-linux-imx Subject: Re: [PATCH 3/3] cpufreq: imx-sc: add i.mx system controller cpufreq support Message-ID: <20190213070904.3oswrjafy6cqedsr@vireshk-i7> References: <1550027011-7884-1-git-send-email-Anson.Huang@nxp.com> <1550027011-7884-3-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1550027011-7884-3-git-send-email-Anson.Huang@nxp.com> User-Agent: NeoMutt/20180323-120-3dd1ac Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13-02-19, 03:09, Anson Huang wrote: > On NXP's i.MX SoCs with system controller inside, CPU frequency > scaling can ONLY be done by system controller firmware, and it > can ONLY be requested from secure mode, so Linux cpufreq driver has > to call ARM SMC to trap to ARM-Trusted-Firmware to request system > controller firmware to do CPU frequency scaling. > > This patch adds i.MX system controller cpufreq driver support, > when doing CPU frequency scaling, cpufreq driver will do ARM SMC > call and trap to ARM-Trusted-Firmware, then SIP(silicon provider) > service will communicate with system controller for CPU frequenct > scaling. > > Signed-off-by: Anson Huang > --- > drivers/cpufreq/Kconfig.arm | 9 ++ > drivers/cpufreq/Makefile | 1 + > drivers/cpufreq/imx-sc-cpufreq.c | 183 +++++++++++++++++++++++++++++++++++++++ > 3 files changed, 193 insertions(+) > create mode 100644 drivers/cpufreq/imx-sc-cpufreq.c Why can't you use cpufreq-dt driver like everyone else ? -- viresh