Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp839804iog; Mon, 13 Jun 2022 14:12:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywhhOCWvzkEewc8CSgdKjyDD5VnYROrUyxJRqwdoCj77+wHxh11GFbuLZCiLYHiZ/lFxSH X-Received: by 2002:a05:6402:84d:b0:42d:fc11:3f84 with SMTP id b13-20020a056402084d00b0042dfc113f84mr1925382edz.256.1655154737672; Mon, 13 Jun 2022 14:12:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655154737; cv=none; d=google.com; s=arc-20160816; b=PNLyGKU2U/JJV6sWfC3qXTsjf+BoVCQHI/diR/0Z2zDOAnlkvhuR979PyDlIyVX8gF HK+HA9nS9XQeJgPNUmcfytN19eMWIdHWy7isdNXm7UdIHuUMBS33vBXoemN2ylAY61AF +5r+mkCySmgUBLzo9BpvhGRIkzCexe+p3HuG3UIRGwFif9x1Vh3PXRdC++ztiPPHhLyU niutmbkHWOi/0uWhvjxzEFAR5EIoRWVIHlI47IsqCy+IS0wT/XsD2I62QLiQMY7o1eNS nz8OwJ+KxNjKtYqddK9OPitucQBDErcEKQjNHWCnBZGUoghjeyFZTsXVcMyPSH59H60d X6SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=GEjnnN//JiCiI3GuISH4q5FQJvUbVSJXakhhE2GaPqM=; b=tZfXTUSThLDlKdlPXhgBaoqPrIcGrSzibey7v7SPVgZzaQ3ZIimzPHRvffuBU+vCoo +yD7ak4EXsv8hA9ugmFKer7d1fTUzIDVPmf/Jra7WG/mTKhnAbbNgx9iVNO0lIFYM3Zz ibTqNMceAc7+OzqCD2XGhRkziEnSBAClb6iz/e/6m3GqlRnm0+EYRl9L5fUOii4qzsJE 8jTvMSqPfav+DZkqOo1rtN/7LdVzABN1reZTTJRjVXSvZ1vtn2kxxm3OEkUBo9G0UMFo XPz3zI2I32+/huHruPzwAIUYjR6KvLW959DdGP4wThDCuD6fDdzLwsHOjgd+VuHfrjnt H4ug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kx5-20020a170907774500b0070513399532si7105053ejc.165.2022.06.13.14.11.51; Mon, 13 Jun 2022 14:12:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1351470AbiFMUaH (ORCPT + 99 others); Mon, 13 Jun 2022 16:30:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350921AbiFMU22 (ORCPT ); Mon, 13 Jun 2022 16:28:28 -0400 Received: from mail-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 471EB193EF; Mon, 13 Jun 2022 12:15:53 -0700 (PDT) Received: by mail-io1-f48.google.com with SMTP id d123so7114587iof.10; Mon, 13 Jun 2022 12:15:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=GEjnnN//JiCiI3GuISH4q5FQJvUbVSJXakhhE2GaPqM=; b=X4XZQjcFSwzrT2dTWKMZCYoOzlEd1iBWL7ZmKn+AkxDkLG3zyQrLCa54WfShIIOs/5 0xJxk98naeSWwF1UsdMVD6f5k5GxBGNK1MzQHv3bk4E16RyE0TPqT1/I7nU2QMRrbb5q K/j+6ByYESVMZ79+74aiQi6lTn6Os7e2wJ/ZRvCsLW92nMlIggKHSSLgX9ifep52GOoI R7pQSZtBXKvd+6BrpA4FBwPZcJeAfNVhPHx1EDiMFXEertanPV4jnx0qxgdhYXyYB2gb yxPxXN1AydswkoIjlVjXj4YAlvOIfkdD4dlqRLDw0GRHGNp5k3JoB43qNncuNYyzFUcN LWgg== X-Gm-Message-State: AOAM53244m6kI/dgT6RHdJZ9h4kyT/U3XSPhlS3YxcF2srPvu0vHr3SY Zu9NnxhBrV+SOar1efNfMw== X-Received: by 2002:a02:6619:0:b0:32e:25b7:d9ed with SMTP id k25-20020a026619000000b0032e25b7d9edmr771680jac.30.1655147752566; Mon, 13 Jun 2022 12:15:52 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.251]) by smtp.gmail.com with ESMTPSA id d29-20020a023f1d000000b0032e5205f4e7sm678930jaa.4.2022.06.13.12.15.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 12:15:52 -0700 (PDT) Received: (nullmailer pid 4108636 invoked by uid 1000); Mon, 13 Jun 2022 19:15:49 -0000 Date: Mon, 13 Jun 2022 13:15:49 -0600 From: Rob Herring To: Max Krummenacher Cc: max.krummenacher@toradex.com, Ulf Hansson , linux-pm@vger.kernel.org, Francesco Dolcini , Mark Brown , "Rafael J . Wysocki" , Kevin Hilman , Andrejs Cainikovs , Biju Das , Bjorn Andersson , Catalin Marinas , Dmitry Baryshkov , Fabio Estevam , Geert Uytterhoeven , Krzysztof Kozlowski , Marcel Ziswiler , NXP Linux Team , Pengutronix Kernel Team , Sascha Hauer , Shawn Guo , Vinod Koul , Will Deacon , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 0/5] power: domain: Add driver for a PM domain provider which controls Message-ID: <20220613191549.GA4092455-robh@kernel.org> References: <20220609150851.23084-1-max.oss.09@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220609150851.23084-1-max.oss.09@gmail.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 09, 2022 at 05:08:46PM +0200, Max Krummenacher wrote: > From: Max Krummenacher > > its power enable by using a regulator. > > The currently implemented PM domain providers are all specific to > a particular system on chip. Yes, power domains tend to be specific to an SoC... 'power-domains' is supposed to be power islands in a chip. Linux 'PM domains' can be anything... > This series adds a PM domain provider driver which enables/disables > a regulator to control its power state. Additionally, marked with RFC, > it adds two commits which actually make use of the new driver to > instantiate a power domain provider and have a number of power > domain consumers use the power domain. > > The perceived use case is to control a common power domain used by > several devices for which not all device drivers nessesarily have > a means to control a regulator. Why wouldn't they have means? > It also handles the suspend / resume use case for such devices, > the generic power domain framework will disable the domain once the > last device has been suspend and will enable it again before resuming > the first device. > The generic power domain code handles a power domain consumer > generically outside of the driver's code. (assuming the 'power-domains' > property references exactly one power domain). That's Linux implementation details. > This allows to use the "regulator-pm-pd" driver with an arbitrary > device just by adding the 'power-domains' property to the devices > device tree node. However the device's dt-bindings schema likely does > not allow the property 'power-domains'. > One way to solve this would be to allow 'power-domains' globally > similarly how 'status' and other common properties are allowed as > implicit properties. No. For 'power-domains' bindings have to define how many there are and what each one is. Rob