Received: by 10.223.176.5 with SMTP id f5csp2156611wra; Sun, 4 Feb 2018 22:13:40 -0800 (PST) X-Google-Smtp-Source: AH8x225KOC6itCeqJSreBW1DQ3yJAAV1Wl/mWR+OrjJEwsclaawXwMwfgUQZYYGbo7nDJMfLoREZ X-Received: by 10.98.207.6 with SMTP id b6mr48605048pfg.187.1517811219896; Sun, 04 Feb 2018 22:13:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517811219; cv=none; d=google.com; s=arc-20160816; b=BLa6YTxLcM5WxR9i8EOAONzqCJD1Nhf6FXcrMXgK4HU7EXWGxoGEHPx3BjVJpCKWdL UmDydRfZh0sc3uloWD8SJGT89HsGbmCrbUqhmhD+UbACHjw+3uZL3wE2dWCGSaQ2t8CV Mx+IzfzDxStMIZJN9nC+AeKdD8w6XsuFKNvGXNAqhgQe76mar+YUFDsYjF8IMI54Eks2 0c1srQOKJ4rEaScjtIN6B1l6o4nxe/st0yPdTWpPC7zIG65s3F3cBAFNZ/poLM2BhgZC ss9MjncMTIhBkUWOtD+jka7c/bAz3uvJSRQU/DqrO6WeYQwmQC68M/Koio/ApmWP1rEG W2wA== 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:arc-authentication-results; bh=80dOSK/moNt2O+1L+B6DY3wq65nhsKQKxNlaPsP8Wrs=; b=xfuFHCvOzjKY6Uk1qb65N/X/uLZdWgHhtqWtarHttGI/l7hsYdmnMnv3wW+FqQjTnE OfbzkbvN/EUnts5ub2T934/eR+6IMmY7nj4oMnoOIvj4MbFjtFVPtskPbjQ7H3SvXxRL +3xz2+/0pzZgTgTQkvgZMCszZw2jmaJXp1HOCVXT+H5m2ydBo4/KSXm3QsqAznqsO+Qo fO2E5iHZfM4GHOMUcEIRf3AQa6k7LPT04YdNiOOS5buXY0rn9/ftJLpSMZEKQsSfw0Ji ND+bLtMFEPrToFlITWWFdDwIXdXd5J+HosA9LGF1Ot/tuEyYLdrDB6qA2M5ikVJvlLnH d94A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m186si4430045pfm.25.2018.02.04.22.13.25; Sun, 04 Feb 2018 22:13:39 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753062AbeBEGMU (ORCPT + 99 others); Mon, 5 Feb 2018 01:12:20 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:43117 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752931AbeBEGJP (ORCPT ); Mon, 5 Feb 2018 01:09:15 -0500 Received: by mail-pg0-f66.google.com with SMTP id f6so1031870pgs.10; Sun, 04 Feb 2018 22:09:15 -0800 (PST) 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=80dOSK/moNt2O+1L+B6DY3wq65nhsKQKxNlaPsP8Wrs=; b=AkjzAvDweOS2nTlLUxX/DeZrnNmlIkx+JjY/FOS1WEDXTfb4VYQGUW1QtXlqvLTzRP Pl0oPvL9vUaWO/HjjjZmKQ9ads/UTDxDiF1ytKFyt0rKZNRz5a2lfAe3XfmE7PU4FbP/ Lqr/+W8XdK5Za+1Ie+kn1R+tSCZ6YSNv5pR6XMGF+XPc7RXrGk2g6wig6Uky+UKdp6ka BPTpnpBBwcC50UtU3n8JaDqHvytcRLYAPSsPqgJ8EEzc/WliVbhw0Ft7NXXjx623zLV5 uINbLLW90Dwy4nMKoCPWIQj/CNCWWRGT4uo+6PqVJzwOvtIxCPrrTtXb3r5Vn3efZSKh TUFQ== X-Gm-Message-State: APf1xPDWABQYh1yBJL7ABpbyc3Ys+Djj3xLc994Su9Q9dN04ntStJb/Q pDzyHzxuzPh79X5PYLMGag1Yelc3Jg== X-Received: by 10.98.139.196 with SMTP id e65mr3324249pfl.128.1517810954865; Sun, 04 Feb 2018 22:09:14 -0800 (PST) Received: from localhost ([50.225.178.238]) by smtp.gmail.com with ESMTPSA id v81sm15823109pfi.65.2018.02.04.22.09.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 04 Feb 2018 22:09:13 -0800 (PST) Date: Mon, 5 Feb 2018 00:09:13 -0600 From: Rob Herring To: sean.wang@mediatek.com Cc: matthias.bgg@gmail.com, rjw@rjwysocki.net, khilman@baylibre.com, ulf.hansson@linaro.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] soc: mediatek: add SCPSYS power domain driver for MediaTek MT7623A SoC Message-ID: <20180205060913.ak62ammdposybdsf@rob-hp-laptop> References: <975fb80e1cdbe7f6d4a1d04fd3a2a21b619a193d.1517479588.git.sean.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 01, 2018 at 06:12:48PM +0800, sean.wang@mediatek.com wrote: > From: Sean Wang > > Add SCPSYS power domain driver for MT7623A SoC. The MT7623A's power > domains are the subset of MT7623 SoC's ones. As MT7623 SoC has full > features whereas MT7623A is being designed just for router applications. > Thus, MT7623A doesn't include those power domains multimedia function > belongs to. In order to avoid certain errors undoubtedly happening at > registering those power domains on MT7623A SoC using the existing MT7623 > SCPSYS driver, it's required to define another setup specifically for > MT7623A SoC. Also, use a meaningful definition for bus_prot_mask instead > of just hardcoded for it. > > Signed-off-by: Sean Wang > --- > drivers/soc/mediatek/mtk-scpsys.c | 60 +++++++++++++++++++++++++++++-- > include/dt-bindings/power/mt7623a-power.h | 10 ++++++ This belongs in the binding patch. > include/linux/soc/mediatek/infracfg.h | 4 +++ > 3 files changed, 72 insertions(+), 2 deletions(-) > create mode 100644 include/dt-bindings/power/mt7623a-power.h >