From patchwork Sun Jun 23 12:59:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13708609 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B56B7604F for ; Sun, 23 Jun 2024 12:59:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719147578; cv=none; b=EQy5nfVCPRTXB94EV84A+GgC9zXzBRa7WzGTC1M8uzYJaXEiCIIrIjRJVj9+JBCCSNe5bcK+0IpZCD0hhSmifdR/9M4KoeS+M4IHGw4cU9uJ7fi3Tgj1YdNeQ5HyInI061nCeHV9hO/rpZvJ7KKthJA4wLfS4+gru8oJDTd3rmo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719147578; c=relaxed/simple; bh=JnK4tC/6AdATC2rdcUlEX6+c1sqoOuE/fsYaD+m1DGA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ojjYjTiHTxwe6EQ4bGPjPwOXLFzfgSU5RYshQT56eRA27j/dydo3OPsZtx4IgvpKiBn4yjl/S3fmEFBp7ZnpiUqAnAjjUsTLVJo7jBlHEapOECaKswdY4YpfZ+icI5fki8kiHEcrQRLJueFyX5+VRC7zAfMAryeUxdwgXaF3NgA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=G4I9pIWr; arc=none smtp.client-ip=209.85.221.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="G4I9pIWr" Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-3658197cdbbso1723500f8f.3 for ; Sun, 23 Jun 2024 05:59:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719147575; x=1719752375; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ws1yhAOxT/v0xOVLwszOW0D6d4xFjidlrdHX+n3YJlI=; b=G4I9pIWr2Nj1rvMFPxudOkPg1wPGfyfC17QnfbW+Q3Z3dTpYF0cZENVhqo9cGJHgFo vFtXQGGsxJOg71CHWmV+CWE92+4IqAjPDEk73nzGcsR3bh/lrrH3ZFcnhoytCwTEx5g0 vTuOHwpc0zXeHXbYV0etYqVW1PbgbTk0yAJydfdeaUTsMT+BHEX60x6WkjSfyTB4WSY4 VsyrQaTbv8qsTnHyr9MY/B+uhNSd5yEqgVj2nQbrW8Eo+1lllV3RZrNI5rGTyCgKyVfk vIPzqow/vdh7YDm/s8i/MeYx9tAjIOnDzid3XFxlLxZrfEwzlIHt7MO8Dpc2o9UYoEiz S2Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719147575; x=1719752375; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ws1yhAOxT/v0xOVLwszOW0D6d4xFjidlrdHX+n3YJlI=; b=MwNIPh/TVX+ESN3EteJdQyep20NITzX/k7BDjmtFNjkD28XMmPkJQCpo/KogdDl3tC pOfli1SJzzCfiyZubRcSUHS6EUqzfhzI3k3PPva9ssXxOtZMhRjQZ7So9B+ayW6T9cYu f5+lojJc+hCLnG3OhZvzAuxrfyKsa8GtLWw6RcZFqkwrnYOOu0LnZP7g6yVeSDHyo4h6 idwRaHaCYgj3HAyw88sxxRjfRe9D5N+2wFcGbxxeb5clwVq97/YDK1gW1bw9gdvZEX+o DT9OnoJDQdLNIr9We16cLqEg9C9DrYHUQP8PFYo8sHp/PY6WvnXN+YwU9xr5dvUG2K5O XHyA== X-Forwarded-Encrypted: i=1; AJvYcCWnakY08KR9TDODIeH7enmIgW9Y2uSn7ETvSlPmxhhmCbG5UZUKHG+qKovzbwYirRQRWgH1KR7VBbZ/DPBGlakRb+zplo6QFuT1o3AEcw== X-Gm-Message-State: AOJu0YxPH+rb4SGOVl2v6Xj5J9htUAxy+81SPiuX/YoOggNCpvECpfLi pItrtgsmdj6vmwox6qVSO/2SknjLf8fnOCg8qEEVQ3NAw+/EvXVkI35dtd9z7mo= X-Google-Smtp-Source: AGHT+IH/FPiPO1kX2dxDboF7jruNga6O3TVW36OIWCsw7kwZBc8YPjnPRr443tH7ldk0wY395QD3/w== X-Received: by 2002:a5d:6d02:0:b0:366:ec30:adcf with SMTP id ffacd0b85a97d-366ec30aeb4mr1166492f8f.5.1719147575020; Sun, 23 Jun 2024 05:59:35 -0700 (PDT) Received: from krzk-bin.. ([178.197.219.137]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36638d9bfe4sm7245088f8f.53.2024.06.23.05.59.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jun 2024 05:59:34 -0700 (PDT) From: Krzysztof Kozlowski To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Akhil P Oommen Subject: [PATCH] dt-bindings: display/msm/gmu: fix the schema being not applied Date: Sun, 23 Jun 2024 14:59:30 +0200 Message-ID: <20240623125930.110741-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 dtschema v2024.4, v2024.5 and maybe earlier do not select device nodes for given binding validation if the schema contains compatible list with pattern and a const fallback. This leads to binding being a no-op - not being applied at all. Issue should be fixed in the dtschema but for now add a work-around do the binding can be used against DTS validation. Signed-off-by: Krzysztof Kozlowski --- Cc: Akhil P Oommen --- .../devicetree/bindings/display/msm/gmu.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/display/msm/gmu.yaml b/Documentation/devicetree/bindings/display/msm/gmu.yaml index b3837368a260..8d1b515f59ec 100644 --- a/Documentation/devicetree/bindings/display/msm/gmu.yaml +++ b/Documentation/devicetree/bindings/display/msm/gmu.yaml @@ -17,6 +17,18 @@ description: | management and support to improve power efficiency and reduce the load on the CPU. +# dtschema does not select nodes based on pattern+const, so add custom select +# as a work-around: +select: + properties: + compatible: + contains: + enum: + - qcom,adreno-gmu + - qcom,adreno-gmu-wrapper + required: + - compatible + properties: compatible: oneOf: