Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp984280pxb; Fri, 22 Apr 2022 15:59:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0RhBMwO6puD/kUf7lHXv9kqQII3ylNDuTycDsiiV54WIe/LOTexZKifEy12oXnI6FDp4i X-Received: by 2002:a62:b401:0:b0:50a:42cb:827e with SMTP id h1-20020a62b401000000b0050a42cb827emr7320605pfn.82.1650668364112; Fri, 22 Apr 2022 15:59:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650668364; cv=none; d=google.com; s=arc-20160816; b=0RnBPXKzyPmxr7dYUQjTy6j6HORe+fyxMmzkWZbt7W8gkYYXW97puc7KgTL5jUlhOe H7CNFuArPgFIkIwStqvN76c8u2f4uPhWfye6jUfUCGLuyNjApFY48JHKmbwVzojRg9Li h9D3UG6hKOhgNor+FyepJVkGwNrXfeIx5+tmXlAt+JhNcMUBVlZKyZprpkxI5JVRtj+j k82onF2ZoPZteh5HikAhwdz1+6FiCnd/m72sZDMvgwWOsPhZoNH8ItfyBfRQinRnBAkO 33/6HBbPq+bv5MTRnK3vrO4XFb9ICmVjJ85+LKtOicIXIKEc1CZmFZp72Fh8byZ5ZZ+y f0yw== 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:in-reply-to :references:mime-version:dkim-signature; bh=RqJyh8C27vk9uziAAsZ9Sko9+svvUdiSo3Q1oIPdtew=; b=rabTnDVKDd54gwHzqhQcvIKfpWJqTcMTVCUlpUz+tFTuatZRBJxaMaUxjJZFOMw88S yAIsSJMJlHqkbBLoj1nxOKlT2To92WWtRad/QGLqFRlmlV2o7uOypXiGcUAFSVzITVPt VWtwuu5TV/7bEHri+kwjIrUgypUs6dU55wz6IkavjMeYj1sa40Yi6naEJlziiZGG2pOP nIdZL2rBBI3n9F1Cra6qp2hFpGHQ2oyK39J3cV6I0X5ezy6Xjp8ENlV/k+49L3M4tFyZ uIjYSmZRF9g5Z6a5SNxSNxdEmtbqaX85UY5NK9JdPPAWna6M5ViS+qIq4RujJY7WvxY7 mdvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="L6gGTQ/6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id ay12-20020a1709028b8c00b00153e9a38290si8744265plb.264.2022.04.22.15.59.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 15:59:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="L6gGTQ/6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0DD42373993; Fri, 22 Apr 2022 15:01:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231302AbiDVWEE (ORCPT + 99 others); Fri, 22 Apr 2022 18:04:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231178AbiDVWEC (ORCPT ); Fri, 22 Apr 2022 18:04:02 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 091E341A96D; Fri, 22 Apr 2022 13:47:03 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id g20so11811891edw.6; Fri, 22 Apr 2022 13:47:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RqJyh8C27vk9uziAAsZ9Sko9+svvUdiSo3Q1oIPdtew=; b=L6gGTQ/6DfQIlosX6rFW28zXn4rmTt2yEc4fSS7LlDRCx3GrzyWACj2e3H/hSS4EVa Zzf6rxAQVnSZ/0HYb5wpTSch47y4/x1p0qvv4LVbGn3yYb8Uvnj0gS+QmEqeYBFLlSLF Jf6w0khn0nRUft/3CCa6tJ5X4TJO+iqtGz3YwiKu21TfYwZ608QOGpAnXRJp9BrzHgLd 0d3h6JN3unzrTHDSqngln9ajQWduYt5+CpgudMb0/x2SoNx+PabIrYbX2ijhT0YVrHfm 2m1HOtnbbQCkLNCPnDV296p+lPUM1q99Kb4IfHzWP4Sm/hIXPnEWBwMJAZNL6g2IJyJI iVSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RqJyh8C27vk9uziAAsZ9Sko9+svvUdiSo3Q1oIPdtew=; b=hxSG9UZMyCNtAhq3d8gc9aooEbvJc+U7Uqu5WhIw3IyvXal8L66gA+JLzgd0yk+OYF UeVxDPD7uaG61aKyC6+5QKCLCsyx1MrUQJSVuP+45C6BfWPBhqkGmDc/E58Or84PP5LE sQalUo09uxk5CfWBmroXsRihoawNnIvttoRcjHhl69gLxIiGLy1vr1ToqOuTZ4Q785ow UfKrixlEkTxIYakDwEPO/7SgMLmKGtsMxr16M0lSfP6VX2zSuncirh3pzb/fEfD1wO/3 hgvBw9eh+G2ROFNJceGx4FRZza9a/ir6O6YJScioKKFU8v4fxzCLRZwbkH3MpoglxnsK j/QQ== X-Gm-Message-State: AOAM533I3RiOKfYxNJAzCrAW79GjHvT0IYcoSq5P1cxs0gsePcuTriLt H/6bpXP64GDveymIMCNMMEhet3MhG845EJ/HbLFQhvMcCrY= X-Received: by 2002:a05:6402:e:b0:423:d5ff:8fce with SMTP id d14-20020a056402000e00b00423d5ff8fcemr6251542edu.407.1650652652753; Fri, 22 Apr 2022 11:37:32 -0700 (PDT) MIME-Version: 1.0 References: <20220419160058.9998-1-markuss.broks@gmail.com> <20220419160058.9998-2-markuss.broks@gmail.com> <0599e7ac-bd06-8d56-b510-0f27f4cc6790@gmail.com> In-Reply-To: From: Matti Vaittinen Date: Fri, 22 Apr 2022 21:37:20 +0300 Message-ID: Subject: Re: [PATCH v4 1/4] dt-bindings: regulator: Add bindings for Silicon Mitus SM5703 regulators To: Mark Brown Cc: Markuss Broks , Linux Kernel Mailing List , phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Lee Jones , Rob Herring , Krzysztof Kozlowski , Liam Girdwood , devicetree Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE 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 Fri, Apr 22, 2022 at 9:05 PM Mark Brown wrote: > > On Tue, Apr 19, 2022 at 08:45:07PM +0300, Markuss Broks wrote: > > > I took an example from the rohm,bd71847-pmic.yaml MFD binding, they have > > regulators at a separate regulators { } node, with a separate dt-binding for > > it. I'm not sure what should I do, I'd be more than happy to follow a better > > example if you can show me it. > > Basically either just remove the compatible and have the MFD directly > instantiate the device like sky81452 or put a separate node for each > regualtor like wm831x does (but without any DT support). Just a note that the BD71847 does not have own "compatible" for the regulators. There's only "compatible" in the MFD node - and MFD just kicks the regulator driver. Regulators get the handle to the node from the parent device. I think it should serve as a valid example of what Mark described as > Basically either just remove the compatible and have the MFD directly > instantiate the device Best Regards -- Matti Vaittinen