From patchwork Wed Jun 30 18:28:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 468709 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp604836jao; Wed, 30 Jun 2021 11:30:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJh274KYpUdtlLEfPFmeNLQqxtW9CqlcrZkKvrZkagD/7evdso1hWiBmnUTDYGYyjMREl3 X-Received: by 2002:a05:6e02:1528:: with SMTP id i8mr6889243ilu.277.1625077819685; Wed, 30 Jun 2021 11:30:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625077819; cv=none; d=google.com; s=arc-20160816; b=xqpez8UxbuQuaTRwfyy7dDrDAl9S1UtyzgTCw9pXWrEyoXmHZlm6sq6pZ7eK0MIOok KXUxNjWAR6l96Z9v8xCrTvlqAAT9KOujja9fqP0MUQPfGkBFNCrSbYo8w7+A55D0cSM8 P1xGiWqo31gP7o2RbYEHA/fvkKXVKxKkw8wvnhc3fYPpQeXDwZtbUbXCXkrfo0ox/w+Y 2UB6brH/ov2S974sm5IVeRnU9Gp0kIyTtm2xAQrgegqsttCOZpPxowrtlSr9OA7r/dQu /ao54Xqfq2yAD9TTs11gaGkgzC9YvJNPdisghdGSzYabAOsQ2OSh6jnu8c5VZ7zaaYPi QjQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=R0zkcKp841s0XqP9/v6DKydNJDudXDrtFk9F38hA3kg=; b=QFCBhj9HypPE3/a4URsAke33OpyryJI6zrKQaNR5HOIcSRr3bDIGkRywmCn7iHH9SF 7wggF4WcCGz9TCTP1GCQB7j8of84p9X2s4oTJyFPi+HsBoyER5AMiKRpdVKmVx76efv8 2Qm+LkuqZbYO/k67rE5lf1HeMhHi+qRScDdN9rz/mV8Dlr3nNEyZZsDkdJlDkKQSB5i7 Vfr4B1LDlx3DG6ICMKbcv/DcvQRllcJF3g74Oj3okvRBRsmPNGYw7S00jw0MSef8dK8k dIlrUp3V4LUIy2GPIAJuE5ssJA0KXjf2rHwt571bVNlYbsFbDeu+CumnJU5tX4ugxpVr F71Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iAvhLjlb; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t6si20403966jam.67.2021.06.30.11.30.19; Wed, 30 Jun 2021 11:30:19 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iAvhLjlb; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232358AbhF3Scr (ORCPT + 7 others); Wed, 30 Jun 2021 14:32:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233030AbhF3Scr (ORCPT ); Wed, 30 Jun 2021 14:32:47 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 498CFC061756 for ; Wed, 30 Jun 2021 11:30:17 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id q18so6855011lfc.7 for ; Wed, 30 Jun 2021 11:30:17 -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=R0zkcKp841s0XqP9/v6DKydNJDudXDrtFk9F38hA3kg=; b=iAvhLjlbRgIbfVOrvgRi4yXYup9sGDtgenU4nw6ewl8lfQKpxPbFvmboEJAhl41Qj3 ICfE97Y7bocbBzwVpez4SbsWKkr+6R3AitZ4IeF3a6D+C6Ldot65Psq+drJ+uN67SFJR Hxni+3zVPreqATXYrOh00A8e4xQ5yNEo72u2Kggr/ThPtmoScsM4bXr5l9xeKh0mvWAe VACANg7IOjrQzIXP05Zv2El2QN4KCpVPaDfzIWxoBvt7sUYQ7V4e4yUnATbnukxhmfzl QXCQuSlyyQUbZ0Su/hBO2zR1lrmcGrphMtr2jTqsSlBHECE1VULFLfxbg1V6k9C2riUw DoAA== 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=R0zkcKp841s0XqP9/v6DKydNJDudXDrtFk9F38hA3kg=; b=SqVNydcAnnxrnH7Us7UyOA4rG1BaivZYLBrUWzCWjYDQCojR9gQtS+BmOrJRbi6Qbx iNdBq0MHdvsAimo/JrZ2m1hGPufXA3pWw9qBcodtehbd2F2+LWV5udlUfuZNump9b3hO 2RcfZ4P9xiEgCnDJPebWMAdqqh6SaShi3s0SqapRKNoB/vT03mfaKAWVcmS4gzruXlka kavluN55oI3WJAw4OiVV8s0mxdXNrNYZOI6af746wakoo82iShA8Doa65xVq/5d5P49A zXmpbR5W13T+78n/W4HScBgLSZ8M4DbCssuszPey/a/j6CLuj5IPsc7q/e23vduW4E5t klEA== X-Gm-Message-State: AOAM533hRNyjw8alfq5zzljPvy1VUIiK2fTvfA7QSysptJF8AtE8Dkek ClnmltKL6Etzn6YFSclKGl/m9Ppu/2hGzQ== X-Received: by 2002:a05:6512:1c7:: with SMTP id f7mr28590543lfp.181.1625077815537; Wed, 30 Jun 2021 11:30:15 -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 o142sm1986251lfa.299.2021.06.30.11.30.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Jun 2021 11:30:15 -0700 (PDT) From: Linus Walleij To: Thierry Reding , Sam Ravnborg , dri-devel@lists.freedesktop.org Cc: Linus Walleij , devicetree@vger.kernel.org, phone-devel@vger.kernel.org, Douglas Anderson , =?utf-8?q?Noralf_Tr=C3=B8nne?= =?utf-8?q?s?= Subject: [PATCH 1/2 v2] drm/panel: Add DT bindings for Samsung LMS380KF01 Date: Wed, 30 Jun 2021 20:28:03 +0200 Message-Id: <20210630182804.3628410-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 --- ChangeLog v1->v2: - Expect SPI bindings to be pulled in for the client and state spi-cpha: true etc. - Make port a required node. - Update the example to use a proper SPI controller (spi-gpio) so we get full validation of the example. --- .../display/panel/samsung,lms380kf01.yaml | 97 +++++++++++++++++++ 1 file changed, 97 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..ebc33c36c124 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/samsung,lms380kf01.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,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: 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,lms380kf01"; + 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>; + }; + }; + }; + }; + +...