From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3EFA7C432BE for ; Thu, 5 Aug 2021 13:36:16 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 10EE561004 for ; Thu, 5 Aug 2021 13:36:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 10EE561004 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4F0736EA4F; Thu, 5 Aug 2021 13:36:12 +0000 (UTC) Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8D5666EA4F for ; Thu, 5 Aug 2021 13:36:11 +0000 (UTC) Received: by mail-lf1-x12b.google.com with SMTP id c16so11171775lfc.2 for ; Thu, 05 Aug 2021 06:36:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mNdeGEyYX1Vak0yu5eX0oZPh2UxD5oz0hL7/3gRiNyk=; b=vhZcQU3qfAt4jVnlRw/nE92RmQglKTGg4BCiGYuFgGasGiqf8140REhuR/54jRZ4Pa onddDyNja+1LmxLOEx76bb/31BD+W0IIefFUz+lE9hV+0HmiDe2XKEgdxDtEHXepcgYu ReUwwaGh9URhRMMDooRj8+D7VZCS/HjTK643mVnEr5ptc439ueVWMIysBk/a9wrmZmYV cgyaRQKH4vtL7w8dVLqIKNpio0qQvsVtb+uD9Z2ZpbN5guNwiKk998x9LfL1k+IhwJRh XJ+5XzQbDZkmR97tkMJKATFDKo+J+UdGMyiCReDPtXx2J0nZlYTeYx+wRJFXpVRbGgGZ 7DBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mNdeGEyYX1Vak0yu5eX0oZPh2UxD5oz0hL7/3gRiNyk=; b=iYWsNEiykvqqACHjdan1HB/VLm/wi9yUUIibms6bXCbsoR8xxIhyIJnOtQpe0by9Vj At8KL3KqWd+B7lEPScRB3WkOxWVUYTSYFxQzfYa2/kvKM3k6La+x+R0tJU+OWIrZTKct h4ZQVKdWnCzNwN4jgJGXUyxkjulzKOiXLun7kXqthv4/FNwNSWurlFRRSHjhuvqlStkm augEDBXoJrLAZ5GBEi1wj1wPouxF3vJ5ZeNjCRZcfyRvsvHwoxcX4APx4luyGdk0gNZI lb+2iQTnrXZhnaV0s/V54uUaDLMj4lMKBeE1LVJJ4Bt+os2NHNpgF8kNHAzGlLFCVnz4 HUhQ== X-Gm-Message-State: AOAM530PH/rsE6NXedIZ5duWkfkSRaO1BplL3YOtTbPetq/RuNStK6BG ZqXbCHH3xk+vsce5QFXpvLM= X-Google-Smtp-Source: ABdhPJy89JuYANp5EKu4gO9k819XSWANUU3lrYA/Dz6aWp+F2m9j/kBLxMKQH/RmHp/gwNROtTh5eQ== X-Received: by 2002:a05:6512:3c9a:: with SMTP id h26mr3774206lfv.300.1628170569895; Thu, 05 Aug 2021 06:36:09 -0700 (PDT) Received: from nergzd-desktop.localdomain ([62.122.67.26]) by smtp.gmail.com with ESMTPSA id t3sm516232lfe.241.2021.08.05.06.36.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Aug 2021 06:36:09 -0700 (PDT) From: Markuss Broks To: linux-kernel@vger.kernel.org Cc: linus.walleij@linaro.org, phone-devel@vger.kernel.org, Markuss Broks , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [PATCH 1/2] drm/panel: Add DT bindings for Samsung S6D27A1 display panel Date: Thu, 5 Aug 2021 16:33:41 +0300 Message-Id: <20210805133343.27032-2-markuss.broks@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210805133343.27032-1-markuss.broks@gmail.com> References: <20210805133343.27032-1-markuss.broks@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This adds device-tree bindings for the Samsung S6D27A1 RGB DPI display panel. Signed-off-by: Markuss Broks --- .../display/panel/samsung,s6d27a1.yaml | 97 +++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6d27a1.yaml diff --git a/Documentation/devicetree/bindings/display/panel/samsung,s6d27a1.yaml b/Documentation/devicetree/bindings/display/panel/samsung,s6d27a1.yaml new file mode 100644 index 0000000000..c6c534aa87 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/samsung,s6d27a1.yaml @@ -0,0 +1,97 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/samsung,s6d27a1.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung S6D27A1 display panel + +description: The S6D27A1 is a 480x800 DPI display panel from Samsung Mobile + Displays (SMD). The panel must obey the rules for a SPI slave device + as specified in spi/spi-controller.yaml + +maintainers: + - Markuss Broks + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: samsung,s6d27a1 + + reg: true + + interrupts: + description: provides an optional ESD (electrostatic discharge) + interrupt that signals abnormalities in the display hardware. + This can also be raised for other reasons like erroneous + configuration. + maxItems: 1 + + reset-gpios: true + + vci-supply: + description: regulator that supplies the VCI analog voltage + usually around 3.0 V + + vccio-supply: + description: regulator that supplies the VCCIO voltage usually + around 1.8 V + + backlight: true + + spi-cpha: true + + spi-cpol: true + + spi-max-frequency: + maximum: 1200000 + + port: true + +required: + - compatible + - reg + - spi-cpha + - spi-cpol + - port + +additionalProperties: false + +examples: + - | + #include + #include + + spi { + compatible = "spi-gpio"; + sck-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; + miso-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; + mosi-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>; + cs-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>; + num-chipselects = <1>; + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "samsung,s6d27a1"; + spi-max-frequency = <1200000>; + spi-cpha; + spi-cpol; + reg = <0>; + vci-supply = <&lcd_3v0_reg>; + vccio-supply = <&lcd_1v8_reg>; + reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>; + interrupt-parent = <&gpio>; + interrupts = <5 IRQ_TYPE_EDGE_RISING>; + + port { + panel_in: endpoint { + remote-endpoint = <&display_out>; + }; + }; + }; + }; + +... -- 2.32.0