Received: by 10.223.176.5 with SMTP id f5csp67960wra; Thu, 8 Feb 2018 16:42:25 -0800 (PST) X-Google-Smtp-Source: AH8x225arK+IkmumGwNXgu9i/g2o0VdLPlUWuF0nGpXmbdgTEunDrhfr/gV3WvbASrXkZG16hLoc X-Received: by 2002:a17:902:585d:: with SMTP id f29-v6mr712332plj.39.1518136945645; Thu, 08 Feb 2018 16:42:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518136945; cv=none; d=google.com; s=arc-20160816; b=mL9LdS5ZAHo2pd5WitABBWjxdIwkiWo30KZdKr1vCaazoC7+/xtBxrjsAhXW99FYdA hK/NqHNVHxcOeq3eqeWcFVBVlkWtoXibrnQ9bL0q+thriCy2c/W4RbmSw64YhZpRDF/k p7And+502EBlSh4+QZP1lPtQSLhSbWHTpdmgfGEZQuCrE3z6RflHIZhlFA7WNv7CKnZI 3dqqWcaUxKipiQ8D4j0HBB5Md1py7O7lDboA675FgWUoqw05DAqaebffBitRuSaiVUCZ 7+Sz8F3u5zNS07apsxjohH6l9cIMK4ECZOI+uNwJH5d+6Y/GSkaxgiWiL6SBHGnwqeJb 02sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:organization:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=VtccvGNnKMgJHgfomJ/dCdjjBXzhIW+0NcUEGEsOY9E=; b=lqdSdjCUWEjcAonljVS/dpU8oCDFtEET7PJtdktVLwAqqUwe6aZE3M2Q1T7msqIPBu DqJznjZJnt/invm4Qhq95x4TqzNn0fn5tJzOd6Pun4W0bZqk/LqHSkP9OQbVeRKrmbKY Dssln7AlPhj0YofwQCjup57++nWD9RuvUDQy5CVM7ZcMdKaQHzALvu6dIf/W+b7UOsAR lYtlM2TgPou8FU2SSfxpG6DqxAddVsnA/UW1Y2luRPpnVp/RXr7zzBGNbqxEMel4/pyZ SJX+OlpgLzSxNQa1vQClU4vkBzP30ewcZFPaqSkmV6sAlS0NTaMygh6cTUzU7Y7icNzE JwZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=nSF0yS2I; 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 u11-v6si658344pls.480.2018.02.08.16.42.11; Thu, 08 Feb 2018 16:42:25 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=nSF0yS2I; 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 S1752308AbeBIAk7 (ORCPT + 99 others); Thu, 8 Feb 2018 19:40:59 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:41161 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751756AbeBIAk5 (ORCPT ); Thu, 8 Feb 2018 19:40:57 -0500 Received: by mail-pg0-f68.google.com with SMTP id t4so1466562pgp.8 for ; Thu, 08 Feb 2018 16:40:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version; bh=VtccvGNnKMgJHgfomJ/dCdjjBXzhIW+0NcUEGEsOY9E=; b=nSF0yS2IUzNdjLGiTjohEVBKUKDUxca3k90MaYOxLBVdNWI5KB3+3bsVm8LFvdOte2 rNOUjvgYf+w44cjuhW+tegIjzV7NDF/xel12hIuBnH6gklCQypsfxNJdCwy/4hPpI/1r zb33JPlCJhLa0gyEAJbuUmBElE670Uv9/zIh1rnPuWI4Mkysz065OOucsdt3fDbq2I2e IJO/ZK2zGH4wmFO2BxXQtWBGvf4dXhCz30cnFRmYbae0m0bCwXxzyoAbrsB3NN1+fy9G fDYczcmhBQbOJ5a6Swmz2syDFrQI8nZRuu9qwvlkmB07K0FY4jYXjpyCRfYXy6DXINm2 s3tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:organization:references:date :in-reply-to:message-id:user-agent:mime-version; bh=VtccvGNnKMgJHgfomJ/dCdjjBXzhIW+0NcUEGEsOY9E=; b=WPiimXVkGLKonkA9THaoT1nAQNuQNw4Fs758COHa9wRKG1G4ORKis5mNd3ayR1M+LA 4PM3FOJaI0u8WrOHHH++we04DsjD1yR/pnbNiiWv7Aqw1kElOMXM3NjV6Bv2nJ56wQt/ 122MLwWKnnvHceFlnzT6sLzudS4BfvFo6/VWT3cML5JPoeEG6DpBECFb2HfSwjMbWOzi 5QhU1Dubnb/1vRcZabQEPE15qtHu6WdIyJjYCbWX9iKNcEAd68cqs0jhAQvrsTjTEl2K 2bcIyFaMuqnRRPo73IoUPsKi7KaWM3mQrvGm4TK39rEsU4H7i6ycD1ZaLH3SPxdb8VXx W6HQ== X-Gm-Message-State: APf1xPBkOI+CjjKTqkm4WdTzYTTvdxCTa6qPyOLt26ouayT+vaWczL4L aempSXBM4S8u8oECj21rv4xaAA== X-Received: by 10.99.174.7 with SMTP id q7mr806661pgf.170.1518136856746; Thu, 08 Feb 2018 16:40:56 -0800 (PST) Received: from localhost ([98.237.141.101]) by smtp.googlemail.com with ESMTPSA id d2sm3859522pfl.135.2018.02.08.16.40.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Feb 2018 16:40:55 -0800 (PST) From: Kevin Hilman To: Bartosz Golaszewski Cc: David Lechner , Rob Herring , Mark Rutland , Sekhar Nori , Russell King , devicetree , Linux Kernel Mailing List , Linux ARM , Bartosz Golaszewski Subject: Re: [PATCH 1/7] dt-bindings: soc: new driver for DaVinci genpd Organization: BayLibre References: <20180207134553.13510-1-brgl@bgdev.pl> <20180207134553.13510-2-brgl@bgdev.pl> <36aebdca-2a7d-07a3-8632-95992d74cae6@lechnology.com> Date: Thu, 08 Feb 2018 16:40:54 -0800 In-Reply-To: (Bartosz Golaszewski's message of "Thu, 8 Feb 2018 09:56:00 +0100") Message-ID: <7hshab9eqx.fsf@baylibre.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Bartosz Golaszewski writes: > 2018-02-07 22:47 GMT+01:00 David Lechner : >> On 02/07/2018 07:45 AM, Bartosz Golaszewski wrote: >>> >>> From: Bartosz Golaszewski >>> >>> Add a simple document for the DaVinci genpd driver. We use clock pm >>> exclusively hence no reg property. >>> >>> Signed-off-by: Bartosz Golaszewski >>> --- >>> .../devicetree/bindings/soc/ti,davinci-pm-domains.txt | 13 >>> +++++++++++++ >>> 1 file changed, 13 insertions(+) >>> create mode 100644 >>> Documentation/devicetree/bindings/soc/ti,davinci-pm-domains.txt >>> >>> diff --git >>> a/Documentation/devicetree/bindings/soc/ti,davinci-pm-domains.txt >>> b/Documentation/devicetree/bindings/soc/ti,davinci-pm-domains.txt >>> new file mode 100644 >>> index 000000000000..935d063c7b35 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/soc/ti,davinci-pm-domains.txt >>> @@ -0,0 +1,13 @@ >>> +Device tree bindings for the genpd driver for Texas Instruments DaVinci >>> SoCs >>> + >>> +Required properties: >>> + >>> +- compatible: must be "ti,davinci-pm-domains" >>> +- #power-domain-cells: must be 0 >>> + >>> +Example: >>> + >>> +pwc1: power-controller@227000 { >>> + compatible = "ti,davinci-pm-domains"; >>> + #power-domain-cells = <0>; >>> +}; >>> >> >> >> We already have the PSC @227000. Why not just add >> #power-domain-cells = <0>; to that node instead of creating >> a new "device" when this is really the same device? > > I thought about it too, but then noticed that most architectures do > use a separate genpd driver even if it only calls routines placed in > their respective clock driver. > > Let me prepare a v2 with this approach though. Yes, I agree with David. Just making the PSC be a power-controller is a good approach. Kevin