Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1671675pxb; Thu, 7 Oct 2021 12:32:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYs6ftQ+zgoo8EjIj9z2qh1cFw8Yd5Jj8QMdufVJbWddAueWo64CAZxX7nrLl/9fgcaZLa X-Received: by 2002:a17:907:77c8:: with SMTP id kz8mr7865880ejc.406.1633635159081; Thu, 07 Oct 2021 12:32:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633635159; cv=none; d=google.com; s=arc-20160816; b=B54Jqsm78wzYYud2+ocK5Cswvoqx34Rxyc+XWn9B+jclIbMethIrYOurESKeZK0LDe MiVtPwwuJpCLpa1KQiD/xo0U9wLUSfhDDTQwSMBQ+AvZhNkpGCkBUF3BmVUAee9YU7kO Bt2Wlmm44eYX0EVAN8SXDfWg1HXhOtMbHhk3UYcHrEDFhSS/ytmfiFJcL5l2nF5O0k03 76UTbsM8RRKF3NyE4PVIx/gcV+yrNWR1gBQFGS0wbUg4gH/8TPAfq33U/vs0XALvCg9K iMm4VKkmo67+RR2rNRx5bWHERFmQDrug4TkseMX3/nSPkEros0c1580+MZxfoAppDiNt qo7g== 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; bh=bkj8dwkFQ63OO4447PidWmaVxAbiH/cdrskhBNReVTk=; b=LYlqshhbKZ2GPq6zQ8g0Kx1JLiUkoIHHgE5T48rzXo4/reUKIJeV6UeJvQpJ3ZZFUI srd5XgJlcHgiBxDZlZgy86GQdpNrrP45wFKyJi/c4oC4hEX4KgL36F61SROeIDU7RyYA o6tDv+vkENKVy+W8tJw4NiUbWMH8/4zdPQKOFuA9zgHn940IpKGHakgrg0H6gjBrq0dv Jh9gvo6IHrUmvKtQhtyw6z2tgAjfbtzsNJGyfHlmTZpIan5CpXCNrGX6J0wu8MGDvUYk j7aOAnjdcLUuxVPiKo7GS/Rrl710fe6JT6kWzPfnH9Wf6XFkDrI0HuB3AvtKjGMZjWrP 22PQ== ARC-Authentication-Results: i=1; mx.google.com; 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 m23si280445edb.8.2021.10.07.12.32.15; Thu, 07 Oct 2021 12:32:39 -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; 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 S241354AbhJGN2u (ORCPT + 99 others); Thu, 7 Oct 2021 09:28:50 -0400 Received: from mail-vs1-f47.google.com ([209.85.217.47]:42946 "EHLO mail-vs1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232869AbhJGN2u (ORCPT ); Thu, 7 Oct 2021 09:28:50 -0400 Received: by mail-vs1-f47.google.com with SMTP id l22so4301569vsq.9; Thu, 07 Oct 2021 06:26:56 -0700 (PDT) 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=bkj8dwkFQ63OO4447PidWmaVxAbiH/cdrskhBNReVTk=; b=afjR2c8z8bAgL6pldq1cN9sJ3V2m7YbhfmK04OE+pwh1MOq6WRAmFmPL1wYPDcMeqF 5Pee4JFqPUUmvA1xtGPATc2IFw0DbCXN0Xq2kPD7/Aq7xpNL9iUev6bR8nuU6MgIwdGB vgNtgu57VKPJmq12m56FPqLn7+ydTlALW3J8YobngODChZdXXMO8UA+e/Af3qkVFl5tV 4XGZ4Wk2uy99Hj+O8pKi/u88otCWIgrDUr0ipPEbJhaYH+vRXlsgthzaHyK5+/w3GUIC VQtaBzzwO6xxcHmF5Up4PkFv/BVv7WFnpNEqba3XYvKPzH1jPADCwhiXjG68CYyg0vvH evXg== X-Gm-Message-State: AOAM531kJP2o86wC1kDwZgyaGWLcnGb5CEeoNr2uID7cUaV7XXA2ExL1 E6Z9MGfw2bSStQJGb1gD0KeoIIOuJziBySIh2sE= X-Received: by 2002:a67:cb0a:: with SMTP id b10mr3865390vsl.9.1633613215795; Thu, 07 Oct 2021 06:26:55 -0700 (PDT) MIME-Version: 1.0 References: <20211007124858.44011-1-tony@atomide.com> <20211007124858.44011-2-tony@atomide.com> In-Reply-To: <20211007124858.44011-2-tony@atomide.com> From: Geert Uytterhoeven Date: Thu, 7 Oct 2021 15:26:44 +0200 Message-ID: Subject: Re: [PATCH 1/3] dt-bindings: bus: simple-pm-bus: Make clocks and power-domains optional To: Tony Lindgren Cc: Linux Kernel Mailing List , Rob Herring , Linux ARM , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "open list:TI ETHERNET SWITCH DRIVER (CPSW)" , Geert Uytterhoeven , Rob Herring , Simon Horman , Suman Anna Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tony, Thanks for your patch! On Thu, Oct 7, 2021 at 2:49 PM Tony Lindgren wrote: > Clocks and power domains are not required by the simple-pm-bus driver. > There are buses with read-only registers for clocks and power domains > that are always on. The presence of clocks or power-domains properties is the only distinguishing factor between simple-pm-bus and simple-bus, from a DT point of view. So if there has to be a distinguishment, the properties should be required If you don't have clocks and power-domains, you should use simple-bus. > Even without clocks and power domains configured, simple-pm-bus is still > different from simple-bus as simple-pm-bus enables runtime PM for the bus > driver. Which you need to have working Runtime PM for child devices, right? ;-) This is not specific to DT, but to Linux. One more reason to let Linux treat simple-pm-bus and simple-bus exactly the same. Linux handles the clocks and power-domains (if present) transparently anyway, through PM Domains > Let's update the binding accordingly as this remove the related warnings > for dt_binding_check for omaps. > > Cc: Geert Uytterhoeven > Cc: Rob Herring > Cc: Simon Horman > Cc: Suman Anna > Signed-off-by: Tony Lindgren > --- a/Documentation/devicetree/bindings/bus/simple-pm-bus.yaml > +++ b/Documentation/devicetree/bindings/bus/simple-pm-bus.yaml > @@ -13,10 +13,9 @@ description: | > A Simple Power-Managed Bus is a transparent bus that doesn't need a real > driver, as it's typically initialized by the boot loader. > > - However, its bus controller is part of a PM domain, or under the control > - of a functional clock. Hence, the bus controller's PM domain and/or > - clock must be enabled for child devices connected to the bus (either > - on-SoC or externally) to function. > + However, its bus controller is typically part of a PM domain, or under > + the control of a functional clock. Without PM domain or functional clock, > + it still enables runtime PM for the bus driver unlike "simple-bus". > > While "simple-pm-bus" follows the "simple-bus" set of properties, as > specified in the Devicetree Specification, it is not an extension of > @@ -43,10 +42,10 @@ properties: > > clocks: true > # Functional clocks > - # Required if power-domains is absent, optional otherwise > + # Typically used if power-domains is absent > > power-domains: > - # Required if clocks is absent, optional otherwise > + # Typically used if clocks is absent > minItems: 1 > > required: > @@ -55,12 +54,6 @@ required: > - '#size-cells' > - ranges > > -anyOf: > - - required: > - - clocks > - - required: > - - power-domains > - > additionalProperties: true > > examples: Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds