From patchwork Sun Mar 26 15:54:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 667229 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 D7E58C6FD1C for ; Sun, 26 Mar 2023 15:54:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232122AbjCZPyf (ORCPT ); Sun, 26 Mar 2023 11:54:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232432AbjCZPye (ORCPT ); Sun, 26 Mar 2023 11:54:34 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED8A94222 for ; Sun, 26 Mar 2023 08:54:32 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id t10so26098137edd.12 for ; Sun, 26 Mar 2023 08:54:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679846071; 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=35gnd9Aoe6xXafnL7UjQDr8l7FiduXH+e+bO3yaocVQ=; b=cvQf/CMin7njufwpp/za+I8Rz68YWTJ0WXpvpJSwzMc0Ae/C7X3H6xcgseB6KgZISn XtnHRWABl8Y/QVYTbfS8MjyfpXKZbwl1htuDRc8yL+wa74KTDuwjJyrUAD/R+/heMcJf XuVH0nbjkc686q7IgCRJLc25Wt7FzouTHZ/bBRFl53ZcFI/Kb8ydh1EGxdaOJsG2z4I5 MyiTX0evsN+zBKWEGVwn+uspghSWyf3ajUrkD3KlQTiUlyuCKEvP+riuohmENzDSZ27/ CsnMLkBpuGrLv8sbsyYmAwroTRjJAF6ie3OxEYnMgo7bLG0l/jd+RaHEYdFzCCkac4iN yUfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679846071; 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=35gnd9Aoe6xXafnL7UjQDr8l7FiduXH+e+bO3yaocVQ=; b=QSFVgd3+NOE1E2sXFzyDnYlDvy/ArC1yN1Lr57rnoPw1YbSlGmfuz3BeF/fszKNbrM NfHgEJgL50YyXzWq3hwirTCoOMo/2VSApKIPR3YgsGc9OEwGQO19UgA2y9/0tXm0dic1 nnuGKddPyCFe2S3/Vduh12xhc9O894Lryra4BnsCXSXCnA71xRx9g9fDc/Nfw4kO45UO Ze+9pccefs2Lt48rbIf/z/F+yLDlH6PqA+dYi/i3aVOCWDOUhxFq0bGjfXj/8MTUZgB2 s3v2hD+j9XOqfmLYWlk2KuS3RSu3uaskabwrPwg5+Y6vcqZvdt0Ux9Z69Txxp9/O0xhU GnZA== X-Gm-Message-State: AAQBX9d2rFme54q6yU+Eay7rAXsDlo1txY+/ikJLwvszw7PpqgpCmhNF 1325zhYv0f0AY1NrKWKdlMJqnQ== X-Google-Smtp-Source: AKy350YeMSofZ0QLOlunDhezkNrl7kEmCVRPmLyxkHTFWj/WDls9x8pkSZccXelwW71dBv6N1tZ6PQ== X-Received: by 2002:aa7:cc05:0:b0:4fb:8f07:edbd with SMTP id q5-20020aa7cc05000000b004fb8f07edbdmr10358380edt.10.1679846071248; Sun, 26 Mar 2023 08:54:31 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:eca3:3b8f:823b:2669]) by smtp.gmail.com with ESMTPSA id l6-20020a50d6c6000000b004af62273b66sm13506742edj.18.2023.03.26.08.54.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Mar 2023 08:54:30 -0700 (PDT) From: Krzysztof Kozlowski To: Neil Armstrong , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Sumit Semwal , Thierry Reding , Michael Srba , Harigovindan P , Bjorn Andersson , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 3/6] dt-bindings: display: panel-simple-dsi: allow vddio variant Date: Sun, 26 Mar 2023 17:54:22 +0200 Message-Id: <20230326155425.91181-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230326155425.91181-1-krzysztof.kozlowski@linaro.org> References: <20230326155425.91181-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Few panels like Samsung s6e3fc2x01 and sofef00 use vddio-supply instead of power-supply (in DTS and Linux driver), so allow it to fix: sdm845-oneplus-enchilada.dtb: panel@0: 'power-supply' is a required property Signed-off-by: Krzysztof Kozlowski --- .../display/panel/panel-simple-dsi.yaml | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml index 2c00813f5d20..90c04cff8281 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml @@ -19,9 +19,6 @@ description: | If the panel is more advanced a dedicated binding file is required. -allOf: - - $ref: panel-common.yaml# - properties: compatible: @@ -67,12 +64,31 @@ properties: reset-gpios: true port: true power-supply: true + vddio-supply: true + +allOf: + - $ref: panel-common.yaml# + - if: + properties: + compatible: + enum: + - samsung,s6e3fc2x01 + - samsung,sofef00 + then: + properties: + power-supply: false + required: + - vddio-supply + else: + properties: + vddio-supply: false + required: + - power-supply additionalProperties: false required: - compatible - - power-supply - reg examples: