Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1351838pxb; Thu, 7 Oct 2021 06:11:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqXnWkbU/fiT9QD1GcrDoM8KC59gnSC0CZ71QgEH9TPJEMcta4Qi+5CkuhuJAlAUPs2JrS X-Received: by 2002:a17:906:712:: with SMTP id y18mr5491916ejb.408.1633612297678; Thu, 07 Oct 2021 06:11:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633612297; cv=none; d=google.com; s=arc-20160816; b=trzKoXxN1DLo2btLr8gWMK0GTjwM/ZsZdO1CrGv1wu5qLTn0oUE3OCqiJLf7Uvn7bd 2PGjI7PmcH65W6w4HPhcbzLL3YYW9qaXn/Gm6ZZEAbD5QqZ7mI/6ApXr2LXqR1aB+3R3 finfEJBnjPagTEiDoHdLC6u9p9+Er5ZSrDM+wDfSRLY6B5cFe8mYr5hHH+Sg6UB342V8 FL2C+Ur45jT7UiYl8sRMQ5OU4Zh5UsQTDcOzAbvKYaU9U+8sbxIdZGUHKMDOXDVTyv/c SfJa7Du6TdLQLWtzccwpG3DZtQWTcOsSfhxOa4e+LnamiJonEX5QYM+F+cxMgQL2MHMi hi5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Qb/xIHBwAyK+L9qAyjy71lRSCZIvF0BqzxLRNIy86As=; b=xq2h1thL/o2Uov4MPdmSkcFR2jHpjED1+Mh6R93bCmF/kwz/B21T2yhvS1HCgrQ3fx RJ/QZuyPzUM99NjECTA9AZBMHFN2TkyhpLPmmZVfJi814Ur/JC3qEGMNFXVbDgAGpQae xlMkPIvfxdq0vdn/EPb50tZkHA56Hke4aVmfL6gMWPKzMFPEO3/rqFMouogW0siJL796 gH55nYaLV8PlAtbSJw+jj5uBJZMlRZCJZ3ddiehBUgpVJ0f2YkqITAAqn3LXtuZClNDj VO+SKI11i2bygmAXkV5C7grCBNxyZs1RiHcXQMsaZHorT2IqumYWHT0dnC7EyPNUvAoh Tg4Q== 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 mp29si29711544ejc.290.2021.10.07.06.11.09; Thu, 07 Oct 2021 06:11:37 -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 S241479AbhJGMvF (ORCPT + 99 others); Thu, 7 Oct 2021 08:51:05 -0400 Received: from muru.com ([72.249.23.125]:41860 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233158AbhJGMvE (ORCPT ); Thu, 7 Oct 2021 08:51:04 -0400 Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 77FB58131; Thu, 7 Oct 2021 12:49:39 +0000 (UTC) From: Tony Lindgren To: linux-kernel@vger.kernel.org Cc: Rob Herring , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-omap@vger.kernel.org, Geert Uytterhoeven , Rob Herring , Simon Horman , Suman Anna Subject: [PATCH 1/3] dt-bindings: bus: simple-pm-bus: Make clocks and power-domains optional Date: Thu, 7 Oct 2021 15:48:56 +0300 Message-Id: <20211007124858.44011-2-tony@atomide.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211007124858.44011-1-tony@atomide.com> References: <20211007124858.44011-1-tony@atomide.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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. 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 --- .../devicetree/bindings/bus/simple-pm-bus.yaml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/Documentation/devicetree/bindings/bus/simple-pm-bus.yaml b/Documentation/devicetree/bindings/bus/simple-pm-bus.yaml --- 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: -- 2.33.0