From patchwork Fri Dec 30 11:31:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 638031 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 3EBA5C3DA7C for ; Fri, 30 Dec 2022 11:33:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229571AbiL3LdG (ORCPT ); Fri, 30 Dec 2022 06:33:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbiL3LdE (ORCPT ); Fri, 30 Dec 2022 06:33:04 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5794B1AD94 for ; Fri, 30 Dec 2022 03:32:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1672399941; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=c32qrgWmsjRJO1IBGWxTMshwA3bwdd46Bo/ATwGKrQ0=; b=M3l5jAMkQ69EMarAXpviqCPaiQkZggW38FMGvw4eKUPP6EdxRm2gZnwz9hT/WdWhimCUzx ACFC0DF+4WL6KCSFI+JUFxHSbgd41/RFf0MwJ7iu2zyjsrSQwM9+Wjam+OJgQAo6cIOnxV i+a7iqB/c0CDZMu7TUObc2u4jXgmTYA= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-94-ybLviLlWPw2XLly37I2ROw-1; Fri, 30 Dec 2022 06:32:20 -0500 X-MC-Unique: ybLviLlWPw2XLly37I2ROw-1 Received: by mail-wr1-f72.google.com with SMTP id j27-20020adfa55b000000b0027f710a6ceeso1165518wrb.14 for ; Fri, 30 Dec 2022 03:32:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=c32qrgWmsjRJO1IBGWxTMshwA3bwdd46Bo/ATwGKrQ0=; b=mMck4Elds5FrzoexztDlYfmxKbSNPx0uEkKcfvNNHT/s611kAqG2u+7DKDHnxHC7Mc MZNjumw2nnMsQ6yNs+8jxzbXJl92QIm3gS60jtnR8Z+lvR2GCJk2R5g96Zi5UZp4gtlb 1LcNVGLwkydUeZF2xSUcdf0NWrL3jFETTvgsN209NDd0B+5n8jf1RrCLFAfQURxmgbZk GjpSCmrYb1RVk3wXJhjDGuF/CAUaUer7bFTJGZ4Nn1hhA5c1KXRISw93OoFXItxush0b 1BrQQ8ZQt3Rsh8900hXb5SeIG0Xm6cR2BAebyNt+WlzT4V40b1WRsO2bwJj1YbF8zvn9 58Fg== X-Gm-Message-State: AFqh2kpFZyXlYbQm7xAt2kr+nfwhqVcmb5i/pjrcFE98nwxs9ai8iJhP xcmrS/h064GXG0n+3Yxp+pD07YQc0mMYMsapGLwvyDPtT/LwaFNWMQDBwVBRbvOme6sTa2qEUha RNmgno2tanlhfI+F9847jtQ== X-Received: by 2002:a05:600c:214a:b0:3cf:6910:51d4 with SMTP id v10-20020a05600c214a00b003cf691051d4mr22097921wml.29.1672399938999; Fri, 30 Dec 2022 03:32:18 -0800 (PST) X-Google-Smtp-Source: AMrXdXuyvNz4H4CAUhlF4mxnZIIIX/2FxJMl1v41S8jUhr1TFV0zd/ZnoTK01haVO0OFBOoUnJaEbQ== X-Received: by 2002:a05:600c:214a:b0:3cf:6910:51d4 with SMTP id v10-20020a05600c214a00b003cf691051d4mr22097907wml.29.1672399938744; Fri, 30 Dec 2022 03:32:18 -0800 (PST) Received: from minerva.home (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id y22-20020a1c4b16000000b003d01b84e9b2sm27638432wma.27.2022.12.30.03.32.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Dec 2022 03:32:18 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: =?utf-8?q?Kamil_Trzci=C5=84ski?= , Martijn Braam , Sam Ravnborg , Robert Mader , Tom Fitzhenry , Peter Robinson , Onuralp Sezer , dri-devel@lists.freedesktop.org, Ondrej Jirman , Maya Matuszczyk , Neal Gompa , linux-arm-kernel@lists.infradead.org, Krzysztof Kozlowski , Jagan Teki , Javier Martinez Canillas , Daniel Vetter , David Airlie , Krzysztof Kozlowski , Rob Herring , Thierry Reding , devicetree@vger.kernel.org Subject: [PATCH v4 1/4] dt-bindings: display: Add Himax HX8394 panel controller Date: Fri, 30 Dec 2022 12:31:51 +0100 Message-Id: <20221230113155.3430142-2-javierm@redhat.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221230113155.3430142-1-javierm@redhat.com> References: <20221230113155.3430142-1-javierm@redhat.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add device tree bindings for panels based on the Himax HX8394 controller, such as the HannStar HSD060BHW4 720x1440 TFT LCD panel that is connected through a MIPI-DSI video interface. Signed-off-by: Javier Martinez Canillas Reviewed-by: Krzysztof Kozlowski --- Changes in v4: - Add fallback "himax,hx8394" compatible for the panel controller (Jagan Teki). Changes in v3: - Fix example snippet for `make dt_binding_check` to pass (Krzysztof Kozlowski). Changes in v2: - Drop redundant "bindings" in subject (Krzysztof Kozlowski). - Drop "device tree bindings" in title (Krzysztof Kozlowski). - Put port next to other "true" properties (Krzysztof Kozlowski). - Add Krzysztof Kozlowski's Reviewed-by tag. .../bindings/display/panel/himax,hx8394.yaml | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/himax,hx8394.yaml diff --git a/Documentation/devicetree/bindings/display/panel/himax,hx8394.yaml b/Documentation/devicetree/bindings/display/panel/himax,hx8394.yaml new file mode 100644 index 000000000000..058b4eae68a1 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/himax,hx8394.yaml @@ -0,0 +1,75 @@ +# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/himax,hx8394.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Himax HX8394 MIPI-DSI LCD panel controller + +maintainers: + - Javier Martinez Canillas + +description: + Device tree bindings for panels based on the Himax HX8394 controller, + such as the HannStar HSD060BHW4 720x1440 TFT LCD panel connected with + a MIPI-DSI video interface. + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + items: + - enum: + - hannstar,hsd060bhw4 + - const: himax,hx8394 + + reg: true + + reset-gpios: true + + backlight: true + + port: true + + vcc-supply: + description: Panel power supply + + iovcc-supply: + description: I/O voltage supply + +required: + - compatible + - reg + - reset-gpios + - backlight + - port + - vcc-supply + - iovcc-supply + +additionalProperties: false + +examples: + - | + #include + + dsi { + #address-cells = <1>; + #size-cells = <0>; + panel@0 { + compatible = "hannstar,hsd060bhw4", "himax,hx8394"; + reg = <0>; + vcc-supply = <®_2v8_p>; + iovcc-supply = <®_1v8_p>; + reset-gpios = <&gpio3 13 GPIO_ACTIVE_LOW>; + backlight = <&backlight>; + + port { + mipi_in_panel: endpoint { + remote-endpoint = <&mipi_out_panel>; + }; + }; + }; + }; + +...