Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3835014pxj; Mon, 7 Jun 2021 23:06:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/WdGvEJZujmGIr+H72He9yLyy4EW2Osi7C8X5GOEIpjly0A0a/0h2oFLUtzgysS5LXSMT X-Received: by 2002:a05:6402:61a:: with SMTP id n26mr23911263edv.220.1623132380304; Mon, 07 Jun 2021 23:06:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623132380; cv=none; d=google.com; s=arc-20160816; b=BEyWDJDOJ26lsr+PKjnV9Vd0qptwaFBuiAksppXVqr3MF+TkSLX9Ws9ck+TFDFHPHe 5/pzy61YOGZ1PrCdNdooz+/g6IhUwy493GI0LM/Ruzps9blN7GWoDXXZ9NIFuRGYY6/h DvIyeoc1LBBth7a50K97E4/t9t4u3IbCkWyqEkNMfIxSaEeHINmYztvVQTwNlfsWMP/j DWQo9qlG/s4Z0Wqj8CZrPjcfHg8HykdOvsbl6E1lkIgya1Yy5Tk4c9YY87Mp4TogrAal AgPllRyrDRv92WrIUskqtfvx+k4mftel3cEVDC0eLxMDlL/w1sZn438l25J6SnU0Xmje MIbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=mInCAkdFNsOSgJMQOvgFddBhxgTbOx+8STgtkOSwHpk=; b=a6fn73nXx+p1xSDAjPqFkP8B4vQpy7Ws4FZ3cE/X6bAzj6qsMkOsc9N+UYEmvCyF/w vd6S6Af7DFkw6v6UzFQf4vIrYAfuAoyiJIHFXygHSzs9rNTlMHcPNHBpCIc2Pc6sC5hn jo6tkKioLd5Rahs+/30bcirlJ9E4eBwW1wka+t/whyJxnfPKrRcKs+ix3xZZpA7mjzaT 8wHQfUttRxvVxIfvMS4iE621qTIZSjH4q6R3vTzApzEaHIc9ptNEHeQbTfyraPiuf0/r tqwbTASyRcpJsLJ2A16F/u9JbkN5boCliDzaKX+Iu4YuNpsJkYDmqEA+oD5QAaaoA0Fh rVnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="MegiSZB/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a15si15907489edr.192.2021.06.07.23.05.55; Mon, 07 Jun 2021 23:06:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="MegiSZB/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230272AbhFHGDj (ORCPT + 99 others); Tue, 8 Jun 2021 02:03:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbhFHGDi (ORCPT ); Tue, 8 Jun 2021 02:03:38 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92F9AC061787 for ; Mon, 7 Jun 2021 23:01:32 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id z26so14887888pfj.5 for ; Mon, 07 Jun 2021 23:01:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=mInCAkdFNsOSgJMQOvgFddBhxgTbOx+8STgtkOSwHpk=; b=MegiSZB/fHn0KVkgcSc/ACKJJ4i2H1+sYXZFerjV9FVLN1r438LmfWmr16AfFtkvCl 0QX38v5wOvEbTZRG0BsFhmu7uowF5siG7gyw8/wjnk2fvJn8NPq6mNCygDcSA1Hbsmpc 6BA2ywt3MoVceOiIXST1tMwT3CGC4SACmhbgU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=mInCAkdFNsOSgJMQOvgFddBhxgTbOx+8STgtkOSwHpk=; b=kepXAYZPBSmtIu5vUIBXrJLu8pk1VmL7tneROhH4LfBQEmBXRAy9IDYDNxDztae3vk I7q7ZE63H3KCoVm2ckBlmgHmZUMmJvD77NdV3CCzgz1R0tdSP2OlAEb/LdhxC77b+85S RO3gUF4XA1ZAuQSKUAUqlr6Wm9B75Bx9j2VOTRDvP8do10yjAzgW9Kxgc/tK1Gza1f8y QlUlmq0puneNkgsYpjf1Ob+bJBHhtq8KU6sljG9higvRbwa8yx9j+l5sq4nEWuBbdkIt gsacc+th+XfrXQM9a6kaOLwr88zX8JBNAySKV15iQdSOqtOtuLtiZNXoT9TyPaRgePlZ YyLw== X-Gm-Message-State: AOAM531zexvyg6HIoui7k/TYi5gsPE0JYjdzomKgVl2ZTr2oUEgt65Zs IIXXUtjZ25syhH/cOPH2odRG93D9lgWcp6/hpyToM4oAdvCRKg== X-Received: by 2002:a63:7f1d:: with SMTP id a29mr16163327pgd.69.1623132091439; Mon, 07 Jun 2021 23:01:31 -0700 (PDT) MIME-Version: 1.0 From: Michael Nazzareno Trimarchi Date: Tue, 8 Jun 2021 08:01:20 +0200 Message-ID: Subject: RFC power domain vs generic supply regulator To: LKML , Mark Brown Cc: Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all I'm trying to understand how to deal with devices that do not provide a supply handle connection using the device tree, or if there is a generic way to connect to a regulator. The pinctrl has a generic binding inside dd.c that allow to mux pinout during probing or it allows to define a power domain, According to the code I read the power domain can be only connected to the SoC power domain but in general a generic power domain can be connected to any source aka a regulator. For example and spi-nor can be powered but a gpio regulator or any kind of supply connection and bunch of devices can just need a supply if they are probed or binded runtime. Can someone give me feedback on this topic? Michael