From patchwork Fri Jan 13 08:37:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 642145 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EDFB5C677F1 for ; Fri, 13 Jan 2023 08:37:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235477AbjAMIhb (ORCPT ); Fri, 13 Jan 2023 03:37:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240048AbjAMIh3 (ORCPT ); Fri, 13 Jan 2023 03:37:29 -0500 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C268FDF06 for ; Fri, 13 Jan 2023 00:37:28 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id j17so32135057lfr.3 for ; Fri, 13 Jan 2023 00:37:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=s8TVxtJdg2h5XhTVxxFJGPtkt+HMuIyEWNXdD88o9m4=; b=WfLmaKYQeSGM9P6tgCLJkezq5ShsNyq9wnzM+A2likM44ed+GQUTQYYEBBoIu0t5P6 uY8ochmFRZy29qcuZsochkJkS9vHL+BnKXA6FO35ossjWLEDrM7/dtVmIf94epwLlu0W X52Fj2LdxeMD00uBC+c0TxFMdA/i+eGac9D8GQKLaGWILayk9VzMclTF3Sn7yHeW04F1 NafYhdiwGHm76sW2tdMk+77uDhjwCnIHgu4TcD3gnsJv9Dg0//+VfHpjEZB/c/NbT0QU ZT88012E52zl3ZQ7n/1wfuuwcekcFmeCtXwoNdP62AU/1tmcfOaPY0wxUTtU2DkMWzIV A1uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=s8TVxtJdg2h5XhTVxxFJGPtkt+HMuIyEWNXdD88o9m4=; b=qEyuN8YZHPYlgou+nICOmwZB5SDCdC7+DxZTt3Z6CdNHp0mZ0jj85M271OIVn749tZ dRq3gtqPxS8T+fXDeOeFevBruNy3+4A8rTDyUGzDmiiqpB2kCGqZPNWkxLAktYZrdnC2 KrHYuaRzC6L1TGhjFT/4Dhw1/Aui2Xq9y/phcg09InhWcyiVA/pc7D/4l2IF78hzUf15 anp/iG+LvO6vERz57HkKC4x4sboUUMHcZfQjkERlCXhNV0qohn3VXeY90VU+2uug74KS xdF8ifdhonhVi+K/AVrydVe8d6duE1BO5ZIs26Ix7Lqm+WTRCB4CIR2CdrS5g7B6wAp2 +pZA== X-Gm-Message-State: AFqh2kqUMpbIuUywNpc7YsJswW6G3vKgnPSkMvvHJtwjHtJWilM4F5z3 ooVgD2BDteeOEXSbBrJxLAkEEg== X-Google-Smtp-Source: AMrXdXtB2YEHCAdS50P4fV1zUDlLyBdhXucLwdD3JaKYcIdl+ECMK511wK8DblpGZs+KW/iRZpeBJg== X-Received: by 2002:a19:f514:0:b0:4b5:61e8:8934 with SMTP id j20-20020a19f514000000b004b561e88934mr20438626lfb.64.1673599047061; Fri, 13 Jan 2023 00:37:27 -0800 (PST) Received: from eriador.lumag.spb.ru ([194.204.33.9]) by smtp.gmail.com with ESMTPSA id o6-20020a05651205c600b004994117b0fdsm3748038lfo.281.2023.01.13.00.37.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 00:37:26 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Clark , Sean Paul , Abhinav Kumar , Rob Herring , Krzysztof Kozlowski Cc: Stephen Boyd , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH v6 03/11] dt-bindings: display/msm: add core clock to the mdss bindings Date: Fri, 13 Jan 2023 10:37:12 +0200 Message-Id: <20230113083720.39224-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230113083720.39224-1-dmitry.baryshkov@linaro.org> References: <20230113083720.39224-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add (optional) core clock to the mdss bindings to let the MDSS driver access harware registers before MDP driver probes. Signed-off-by: Dmitry Baryshkov --- .../bindings/display/msm/qcom,mdss.yaml | 34 ++++++++++++++----- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/display/msm/qcom,mdss.yaml b/Documentation/devicetree/bindings/display/msm/qcom,mdss.yaml index dcde34ffc8d0..6948ae3ac7bc 100644 --- a/Documentation/devicetree/bindings/display/msm/qcom,mdss.yaml +++ b/Documentation/devicetree/bindings/display/msm/qcom,mdss.yaml @@ -45,17 +45,11 @@ properties: clocks: minItems: 1 - items: - - description: Display abh clock - - description: Display axi clock - - description: Display vsync clock + maxItems: 4 clock-names: minItems: 1 - items: - - const: iface - - const: bus - - const: vsync + maxItems: 4 "#address-cells": const: 1 @@ -69,6 +63,30 @@ properties: items: - description: MDSS_CORE reset +oneOf: + - properties: + clocks: + minItems: 3 + maxItems: 4 + + clock-names: + minItems: 3 + items: + - const: iface + - const: bus + - const: vsync + - const: core + - properties: + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + minItems: 1 + items: + - const: iface + - const: core + required: - compatible - reg