Received: by 10.223.176.5 with SMTP id f5csp1651436wra; Thu, 8 Feb 2018 00:56:59 -0800 (PST) X-Google-Smtp-Source: AH8x227zdlAIpMLZK5M71TRy9qbE45c773+5Mhldp7ur5kOoTIgSP1BJ7gW/9g4zHk4Jc/fQhB/F X-Received: by 10.99.145.66 with SMTP id l63mr7082930pge.397.1518080219807; Thu, 08 Feb 2018 00:56:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518080219; cv=none; d=google.com; s=arc-20160816; b=iEhe985cseDZcOkTqGbzC+oYr/yh0nXoKUAvX5H9iSoU5z7VZBGW3Dg+CGFW6Gp3vh Ln+B0B77EbpJcp9i9U/oSqk3IHnZbp+/V0v4L6Jr1aXlIeE44QCUAdAqbtjioG49THTW eC9zQKMfEC+nWo0mrMyCBClnFvegz413SHs/U/jIJY0K2kR2ODjWG3ulyBbSw8PmimvS Ms7eVfTv6C2fBQz6+8lnc6td5aOs1uNi/AQohlCN6cTXy8BKx0TXtZ5/sU439mvxB5E+ hiGQz2J4qluc1R1+JTzmadKD+X+Z3c9sMuUfk4oKjPaZ5m2ZRpmqINU/ajH2wDVLICsf n0Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=FmisbFIcTh90QmVqbRL93TMw7411t3ioLkzkN3nm3V4=; b=ub9hksBS9AHcrSFWzKTxKLwrREf/Si2rrzTvohobX7qGia5dVeH8Pok7TVGoUXPX2S uefBmuGr7gkV530YC0g8nVMXKCu4tUZR7UlSOcaPIVZnyWxb3WWxgfprjU1Xaap3m0TQ uUQczM+7RLlVNdHDZz3Sb80+HrDrItYJ0ObtXnTckVyI48oxLOgxvTPkduGUAUY/I5Dh tcs97AxFDYHy+F5qHuxdqkbfH1OcgHYMQspRVXtDCO/r2oJzFAThmIjpj936goQkEigT HXvIvGUFXgcMzVV/qcrKj+an8OEc0dmsjqXvs2tns+aCzXfz71KsSt8QrDYSsjLo/5/2 Z9ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=dP0NcpLf; 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 d12si849367pgu.218.2018.02.08.00.56.44; Thu, 08 Feb 2018 00:56:59 -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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=dP0NcpLf; 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 S1751544AbeBHI4D (ORCPT + 99 others); Thu, 8 Feb 2018 03:56:03 -0500 Received: from mail-ot0-f194.google.com ([74.125.82.194]:38102 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750948AbeBHI4B (ORCPT ); Thu, 8 Feb 2018 03:56:01 -0500 Received: by mail-ot0-f194.google.com with SMTP id h14so3589453otj.5 for ; Thu, 08 Feb 2018 00:56:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=FmisbFIcTh90QmVqbRL93TMw7411t3ioLkzkN3nm3V4=; b=dP0NcpLfH5aYuHK4vZ7e4mC8juLUEq/8whSoaAp4ken8Tehyu12zcQhGAQv1h+Uu+M LzVawsgZyi5hjTJxsylXLRExmNiFV0CcA8leeNK5gjfgOa/GJc3LlbzVWbN+8tJCgQ9P Z4GxlQgrEGVEcAbmAGhOCmZa7Nv7WWoKl/BfFOotj///2DRNO/PkfzMtscnlIamV/fLF rO3gn1177wSUwQMSjTklExnUDrRsmanHpR7KHIpM+dm+/tW9U8/yMW2Ck1V3sQWabeex KCnO7DMp+0H2Qn26FQ+fz4Z8uO7mkLPpxG5S7IYqGO1HzG9F5VhYs15T5f+JmHIRQbl6 Bpgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=FmisbFIcTh90QmVqbRL93TMw7411t3ioLkzkN3nm3V4=; b=RStteeyos+6Iav/i7mBNnktBSlf849JwReSR0mf4VeSiE50LSA6B+aQRfCTfXvL68R mwMBCFhpH/w6u/mpViSw34M9RdpeSSv+yVXv61uhTjYn6ZloBura+3H8Nqsk+cnsWoif /Pz6ic2xyWFHjz3XSpCVZwzTQuVxQGTX9UpFayJio3TFTZQXhR3kn13AGnKH0B3V7MMl aQLb1PyKS57vJYWjYIqy9+DmG2guCQ59Efs6kF3qdGy16hjZhCIJ4AUN70OaWoEJu3h2 CnqeDFgG127pSbM1L+mBr99nqHi8jzugGXWE27ZBeQqakdgsGFUlAiSuuRzKEdbPz7Qj whYg== X-Gm-Message-State: APf1xPCWZ0vegttugbVfnfbofCPVVTHt2135QNoMbMgoOijEiWAorOlF rPx2iFrfMfDcLZjkaVt3Pli451lfbne4cVH4M2bsTA== X-Received: by 10.157.113.81 with SMTP id y17mr6774360otj.306.1518080161316; Thu, 08 Feb 2018 00:56:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.42.71 with HTTP; Thu, 8 Feb 2018 00:56:00 -0800 (PST) In-Reply-To: <36aebdca-2a7d-07a3-8632-95992d74cae6@lechnology.com> References: <20180207134553.13510-1-brgl@bgdev.pl> <20180207134553.13510-2-brgl@bgdev.pl> <36aebdca-2a7d-07a3-8632-95992d74cae6@lechnology.com> From: Bartosz Golaszewski Date: Thu, 8 Feb 2018 09:56:00 +0100 Message-ID: Subject: Re: [PATCH 1/7] dt-bindings: soc: new driver for DaVinci genpd To: David Lechner Cc: Rob Herring , Mark Rutland , Sekhar Nori , Kevin Hilman , Russell King , devicetree , Linux Kernel Mailing List , Linux ARM , Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, Bartosz