Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1187022rwp; Thu, 13 Jul 2023 07:23:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlFgK7r9f2HBtcG+CBbWOVogSi7KnnX5iNJfv8/sGtTKMQiMPVXgF/8DYCBdDqgXU+PZjYOO X-Received: by 2002:a05:6512:1084:b0:4fb:76a5:2325 with SMTP id j4-20020a056512108400b004fb76a52325mr1656000lfg.24.1689258195813; Thu, 13 Jul 2023 07:23:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689258195; cv=none; d=google.com; s=arc-20160816; b=NaKP2PWZhyA2XDl/vHAhgm7SRbytJCZWehw7Qj8nmGTihAvnKenbp1Pu3GCb7zkREb 8M2nW/HFph8zja5tgrOwjfEWvZ9zFOv4P/CLi9mPjX1CJicXVWH8SAqA9hnHXu8+VUgn 0WDWEm9lNuiPXaUPao0QxxTWBDcSE2wGzAMZEYW+kTgEk8vifgcKdr7cf4bvR0i6v8eM ph8IwGXj8FLQWYIOEVMnXdPITwJmRcAHE3rQWpTns9HmaCD8hU2ExzVek4LdM1pRfsvd g6mW/OzHEP5Fly5KKYJSNbBvH3HP+FqY8/Cwf4vIr3gjdmEVcP12WbyVdFOC3b8LQvnK DoMQ== 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 :dkim-signature; bh=B9RUZ+b+emtSv+giCmXNPmhFjp4/hvFKRq4dSR9PST4=; fh=Zo4Thru3tZ0letwsQK6+k94pGJizT4N48rRjHTYNkBw=; b=odnikRp2S5bDWtqUhMrmjq5liYLtK74J/VQy/Uh+yrO2qT8i0dcjaCCQM90ArlYcZY 4u1stsWsS4ZIjjYr5f2xNPvvsa0j8C1XgenqvJFzUFXs114Gao9eROc6uJVqkdvcAu0M hA5d/3gYmo70gQDSJEp/+dyv/ybphoKEkOQJM6MAWG+6pZIi274Oyot0c8iSMJT79kR4 DLaJGlvaf2E0ttOIFmXHyZqBmJeAj1SJdVBH2NdlmWKFSHMXOwJRTirPZZzVnHZNwgmg wsBS4N1e4bs0637gd6z/1s1SNzvjt/tf6ChNAOM+zJXJENY93isUWJ4gYzjnxlHrqPfk PJlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r86Mnb2s; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g25-20020a1709064e5900b00988939ad0bdsi7586572ejw.321.2023.07.13.07.22.51; Thu, 13 Jul 2023 07:23:15 -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; dkim=pass header.i=@linaro.org header.s=google header.b=r86Mnb2s; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229906AbjGMOTS (ORCPT + 99 others); Thu, 13 Jul 2023 10:19:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229819AbjGMOSY (ORCPT ); Thu, 13 Jul 2023 10:18:24 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE8AE2713 for ; Thu, 13 Jul 2023 07:18:21 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4fb761efa7aso1341052e87.0 for ; Thu, 13 Jul 2023 07:18:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689257900; x=1691849900; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=B9RUZ+b+emtSv+giCmXNPmhFjp4/hvFKRq4dSR9PST4=; b=r86Mnb2sxhN41eDyo1Lz3DzPrPX5ROyFP2J8LlwjDP1AtlgU+TxSvGJvGeLL3wkoWe Cb/9weYQqYWEfbFh/CGQ0qj1uMrbTjRVm48CrwWAgz6Y1MMTsKH4gmUGrNeNyPmgnzoz I/lRNDtExpc8KFid2vfy61dek6hP6EL7lhcqHIg+6fNcbv8IyVCACsNT+TLUf24d1Wcd HxukzMnGtuRHc6Ed/GxXF3lVfclBTHVjen4UXtsoLBJcsF5ECT0Ib/252D7fRnXTQPsj bBZYHJvq76LatXZ4tmyrPlz9q2T5vpHcPMqavsHn6wsyfsqtqguhWOzDdUpPOw7yRDwr qWvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689257900; x=1691849900; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=B9RUZ+b+emtSv+giCmXNPmhFjp4/hvFKRq4dSR9PST4=; b=MIGUFMGaqBDDoYKBwCbYnHE30M6wQGr0iIjZWHE46T01CNygp7MYzKzfGVd9S2eU7q BRoqApnEacoDGNyNhWPbpRQI4SeifxGHoRhXFmMolA2AMGh5G7GIBXDc13HHSVGbtwR7 mkXsUVrjy+IPNAw4/ZQSHCUkZijEsxVI0ym+kvOaBaPVC+NUMEybtnbWS6P72e+pwCq9 umW8TaI2uOjfW3MPk94uPTGv8lat8iJUPWKSIKLRl79iUHN2MtGwecRHngwfXuy6nTUu TsUISETDmbZdvfmtkHvYX7HhpHZ+YGL9Y/F9DdJfeXJvtZOHz2wIsz0HRvxQ8TvxEJ6C 1t2w== X-Gm-Message-State: ABy/qLYub/shnwXEmM0ljiqC+fSpgPkSxOo76FocZpi4Nws0h4pg65yq wtt+262MF36w0NuXiFkFJWlPkQ== X-Received: by 2002:a05:6512:31d3:b0:4f8:6d54:72fa with SMTP id j19-20020a05651231d300b004f86d5472famr1770618lfe.2.1689257900089; Thu, 13 Jul 2023 07:18:20 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id w28-20020ac2599c000000b004fb759964a9sm1132426lfn.168.2023.07.13.07.18.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 07:18:19 -0700 (PDT) From: Ulf Hansson To: Sudeep Holla , Cristian Marussi , Viresh Kumar , Nishanth Menon , Stephen Boyd Cc: Nikunj Kela , Prasad Sodagudi , Alexandre Torgue , Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org Subject: [PATCH v2 08/11] dt-bindings: firmware: arm,scmi: Extend bindings for protocol@13 Date: Thu, 13 Jul 2023 16:17:35 +0200 Message-Id: <20230713141738.23970-9-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230713141738.23970-1-ulf.hansson@linaro.org> References: <20230713141738.23970-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 The protocol@13 node is describing the performance scaling option for the ARM SCMI interface, as a clock provider. This is unnecessary limiting, as performance scaling is in many cases not limited to switching a clock's frequency. Therefore, let's extend the binding so the interface can be modelled as a generic performance domaintoo. The common way to describe this, is to use the "power-domain" DT bindings, so let's use that. Cc: Rob Herring Cc: Krzysztof Kozlowski Cc: Conor Dooley Cc: devicetree@vger.kernel.org Signed-off-by: Ulf Hansson --- Changes in v2: - Updated the DT binding to require "oneOf" #power-domain-cells or #clock-cells. --- .../devicetree/bindings/firmware/arm,scmi.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml index b138f3d23df8..563a87dfb31a 100644 --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml @@ -149,8 +149,15 @@ properties: '#clock-cells': const: 1 - required: - - '#clock-cells' + '#power-domain-cells': + const: 1 + + oneOf: + - required: + - '#clock-cells' + + - required: + - '#power-domain-cells' protocol@14: $ref: '#/$defs/protocol-node' -- 2.34.1