From patchwork Thu Jun 24 22:37:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 466367 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp879745jao; Thu, 24 Jun 2021 15:40:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXQI1RzV0HlBL/xNdhNUZgh3zgMj1mjJ9EnbhyRh0Hs2UWeS7Qo5JFsDylw4jOUgKDg6uR X-Received: by 2002:a17:902:6bc6:b029:122:68ea:32f3 with SMTP id m6-20020a1709026bc6b029012268ea32f3mr6137382plt.43.1624574402392; Thu, 24 Jun 2021 15:40:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624574402; cv=none; d=google.com; s=arc-20160816; b=alkIBMxvc7HlLvXYTw+Z4Ex8n5BnkFoDbqmjRCGOtV4HZo2LIcP+mCGksBJNykki3k zHlKiHtKOYtS6i2eF58cVRLRjES5xALvbgLRnowqIt0315RhbW67uO8wJl1j+fNOz5WQ kxVbyYSExsazA+3XEV1s6ToXUzD/Pjhq7AC8fduhlBCrUGMoXQFR0qmfURXIlaHw4WRd wVwb7Lw8HDGxJzrQOEJOpqCLfk7upEU67YBP4vGQODE3Mnwd9tH5m2sHZ1h1csFinHrJ vOHcSWuDbwahyzKpleQSHu3u92JLgZX96EKWcPVI7gTS9OwbP/4yuT2+YYJvrA9iKZKR prJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :delivered-to; bh=DxTs9lTae46Xhf8kLhsZfUlYx/YjM18QvR3O42D40aA=; b=thMfq0FdR9WWaE+mK4n/lFeU83UpTVDdjhTq/FKJWQ/eM8myR+B+P/9JWoheaDSJVQ 6ISHyCYHusyD9Tp/Jy1kdHlcTOG7d/cyPoRRmEYlWULaYQSxs/FsPKS50hLAYFFjLbIR leJLtW0IiffuavgfJcjE3NWVOyD9TJH2cewjFMKR4YsIOG+CHwgpuUUEXQd20/2/Naqh PtZvstrnr4IEP1dFvKkET0MJLfv/hr5Z5GXO84F/vKrMwzCqQR03fTjn/idYAYPKsG1N JXxKbQm5Nc0H38o2xkVnjBHbK4hbA8J/7siNCH8+jc6gBMRgYjTZbPR5yb/B/vzRB19E 8HLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=f2MwHX5V; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id a20si4089003pld.24.2021.06.24.15.40.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jun 2021 15:40:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=f2MwHX5V; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B4AF76E9AE; Thu, 24 Jun 2021 22:40:00 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 80BB26E9AE for ; Thu, 24 Jun 2021 22:39:59 +0000 (UTC) Received: by mail-lj1-x22b.google.com with SMTP id u2so4632363ljo.1 for ; Thu, 24 Jun 2021 15:39:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DxTs9lTae46Xhf8kLhsZfUlYx/YjM18QvR3O42D40aA=; b=f2MwHX5VBcVkGwZgCMni3tNxJmYesEn8BhxwrYdGMgyrT7r5Deuj5ZZt/E2mL7NItH BsBXjrjyeF4hHqs12NhMfbbtm2veljzqVXSPAn1qxe7SyyiUhRFNUtZS6OqurxTWviI9 8DokPhK+KFDp0QjgP6NABbwWKWwtml4P6MgKmPZ+0LwofBDNEksbWp0twSF9q84RPXsh UQpdzaSv4W+horsvvmsFruFL//YULoGxA9CE3w/0xbZfff16nzhZBfsR5FouYlK+0Jxu hmSNXBFZgS7AwSv+8MPRhQXtGYWsRyF3nQIFU5r/jtGy9Xk3GL/CGZcd0upC9foaO8fn wMVQ== 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:mime-version :content-transfer-encoding; bh=DxTs9lTae46Xhf8kLhsZfUlYx/YjM18QvR3O42D40aA=; b=lKWddZFkutm6nHoCUODvWlIPQLvlt1NSG+Qkv2k6SXKoY+2QMP8mnReta+/HGIDAgo PAePWJfV7i5nq1XrQQDIZ756wXQAljVtIG1qEevkLFL1ybKSoeNI16QVynOrAeckNDdm CVIQmB4VLQ/CRFLYGMUiprA7vJmQrG7eZZ1BE8MGzRlW8xuOge1Gk9L0M4jdvuL0sBZS 9i9hb+hzYwkL0eq4rI7dUjmYsAuuUvPnG42ACdN57B2DfEDSZVRbEpOy66caQNDEtYdM RCytQpc554/OPoQi4XZjiaIU4GFZ/xTaFVw3Q0JTwXPTWTDuQa8Lkq45yXqONGOA+vis 27ZA== X-Gm-Message-State: AOAM531J9tsrgfkFAjuC7rB5PQb4QAiRBcMwSToSr04WI51WE+PPaskv jMMWiloNnMqeTykkgLs8Q7L7uA== X-Received: by 2002:a2e:9e18:: with SMTP id e24mr5757701ljk.336.1624574397916; Thu, 24 Jun 2021 15:39:57 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id e12sm341403lfc.84.2021.06.24.15.39.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jun 2021 15:39:57 -0700 (PDT) From: Linus Walleij To: Thierry Reding , Sam Ravnborg , dri-devel@lists.freedesktop.org Subject: [PATCH] drm/panel: Add DT bindings for Samsung LMS380KF01 Date: Fri, 25 Jun 2021 00:37:43 +0200 Message-Id: <20210624223743.2486302-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 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: , Cc: devicetree@vger.kernel.org, phone-devel@vger.kernel.org, Douglas Anderson , =?utf-8?q?Noralf_Tr=C3=B8nnes?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This adds device tree bindings for the Samsung Mobile Displays LMS380KF01 RGB DPI display panel. Cc: devicetree@vger.kernel.org Cc: phone-devel@vger.kernel.org Cc: Douglas Anderson Cc: Noralf Trønnes Signed-off-by: Linus Walleij --- .../display/panel/samsung,lms380kf01.yaml | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,lms380kf01.yaml -- 2.31.1 diff --git a/Documentation/devicetree/bindings/display/panel/samsung,lms380kf01.yaml b/Documentation/devicetree/bindings/display/panel/samsung,lms380kf01.yaml new file mode 100644 index 000000000000..138be12fc509 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/samsung,lms380kf01.yaml @@ -0,0 +1,96 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/samsung,lms380kf01.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung LMS380KF01 display panel + +description: The LMS380KF01 is a 480x800 DPI display panel from Samsung Mobile + Displays (SMD) utilizing the WideChips WS2401 display controller. It can be + used with internal or external backlight control. + +maintainers: + - Linus Walleij + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: samsung,lms380kf01 + + 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: + $ref: /schemas/types.yaml#/definitions/flag + description: inherited as a SPI client node. Must be set. + + spi-cpol: + $ref: /schemas/types.yaml#/definitions/flag + description: inherited as a SPI client node. Must be set. + + spi-max-frequency: + $ref: /schemas/types.yaml#/definitions/uint32 + description: inherited as a SPI client node. + maximum: 1200000 + + port: true + +required: + - compatible + - reg + - spi-cpha + - spi-cpol + +additionalProperties: false + +examples: + - | + #include + #include + + spi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "samsung,lms380kf01"; + spi-max-frequency = <1200000>; + spi-cpha; + spi-cpol; + reg = <0>; + vci-supply = <&lcd_3v0_reg>; + vccio-supply = <&lcd_1v8_reg>; + reset-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>; + interrupt-parent = <&gpio2>; + interrupts = <29 IRQ_TYPE_EDGE_RISING>; + + port { + panel_in: endpoint { + remote-endpoint = <&display_out>; + }; + }; + }; + }; + +...