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: 13084278 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 440CCC4167B for ; Fri, 30 Dec 2022 11:32:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A8CA710E1DE; Fri, 30 Dec 2022 11:32:23 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id 37D4710E06B for ; Fri, 30 Dec 2022 11:32:22 +0000 (UTC) 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-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=c32qrgWmsjRJO1IBGWxTMshwA3bwdd46Bo/ATwGKrQ0=; b=g83sIyOr5aEE80sIS6MjXIv1l5lQWMKBPtvnyBOEIBYGw1Hlktbnhy2eQ0EPG6byFHqZPs EAlUWwH4bcEarbKeSMJfiQ3wd3LjhxYY13EEIlE/WmHy5jatjmcLQELVPpyLXxl8B2vXUA KA1cxjwPxyrYJu8RnM58jcUnIcywAvQ= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-383-DEhsvGcUOhGb1E0sPYvQVQ-1; Fri, 30 Dec 2022 06:32:20 -0500 X-MC-Unique: DEhsvGcUOhGb1E0sPYvQVQ-1 Received: by mail-wm1-f69.google.com with SMTP id bi18-20020a05600c3d9200b003d991844dbcso4634591wmb.4 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=Im1tkKOlirCOn0EG9J85zkrVCAfKiJeDa0JaNW5TvYMutkLZ7WsJ+j/7dbc6h4rMEd 20djMnuCr2vQMgngbApp8XP6NzmRSNFBe91L95fbggJJeMZM+Rf7Flx+WHI+KRTjj2ef JpuW8d5D4dliq5kEPOo0Wj8YsYMwb4lbqShloeis1MZWd5c3Ai/lAYHTBjAx2g9qfCo7 teGqoE4ThyrK06LD7R5xGsVT6ijmb3q0OZb/tolXWiNDEP99E5nYMdagDUXYzPRekTX7 l/MVfS5lwz4GwxygYFXu9EC9QYrA0o6kky8rs8Xhk6ZuLivw+lGRhJq2lsSYYmUrvUSp eAWg== X-Gm-Message-State: AFqh2kpnslH3Xa3tHXrDOa0CHxeof4LSy+98Luoko2x8Oalz7ndmfQp/ OjoI/Woh6gILa8YdZ7x1NakDHfoHcffCUML6f/oOmnyjmc2omxKitZhNiHEvms/B29u7hw4NkXE 1SSaz4dql/9N6xwMw778A2PrHMrV0 X-Received: by 2002:a05:600c:214a:b0:3cf:6910:51d4 with SMTP id v10-20020a05600c214a00b003cf691051d4mr22097928wml.29.1672399939000; Fri, 30 Dec 2022 03:32:19 -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 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 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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: Jagan Teki , Krzysztof Kozlowski , Robert Mader , devicetree@vger.kernel.org, Onuralp Sezer , Neal Gompa , Javier Martinez Canillas , dri-devel@lists.freedesktop.org, Tom Fitzhenry , Martijn Braam , Krzysztof Kozlowski , Rob Herring , Ondrej Jirman , Peter Robinson , =?utf-8?q?Kamil_Trzci=C5=84ski?= , Thierry Reding , Sam Ravnborg , linux-arm-kernel@lists.infradead.org, Maya Matuszczyk Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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>; + }; + }; + }; + }; + +... From patchwork Fri Dec 30 11:31:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 13084280 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 260ABC4167B for ; Fri, 30 Dec 2022 11:32:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 95D6A10E1FB; Fri, 30 Dec 2022 11:32:33 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9B4F510E1E0 for ; Fri, 30 Dec 2022 11:32:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1672399945; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6dCzUPtmAk1gBlo8IpxXy5b7SLySSKCpXJ1OVNp0Uxs=; b=dKs/yF/KBE55Dgzcih0VpS9FgBeq68wniwieJjOJP9PU6yxH7afpeq5xfZEUZgvbkDoauV kjR5atnP//UfnGd4uyCB4ydkFeayvZ1kpmO+GkSzXhKVX7jH7E5M90wvPnPJFKK70Ble9l V31rvmeQi26MytOj4SXzn667GG1G2RE= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-150-Zk-R2wpbMyWyDz1y_VQF7w-1; Fri, 30 Dec 2022 06:32:22 -0500 X-MC-Unique: Zk-R2wpbMyWyDz1y_VQF7w-1 Received: by mail-wm1-f69.google.com with SMTP id c66-20020a1c3545000000b003d355c13229so14138800wma.0 for ; Fri, 30 Dec 2022 03:32:21 -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=6dCzUPtmAk1gBlo8IpxXy5b7SLySSKCpXJ1OVNp0Uxs=; b=gM7HX6yjflm/TUx3rU8HZZJT91jZ0WOyyitbGrKg1LIP6ugcJ9XVq1apyc8twxC1jS vldlZbWlh2qEkwRRRb5O30AgwULFWm9mgscwiWp0NifTcGkRhaQchukM2bZabdKjAsoJ fVPBKJohVBDx/DvKmax2N7UJSllS1XhZxsEmDxM5de4ofmrEjzlZWaEF2bnxXFSkB08+ D8SQLT/9rGTaPcvhd/HpBvcU1JXGaN7oMPHJJ53kp1xF71WCO7dCpETZD7R7A+ZfzP7D XgwIfSW2oXFGpADi+zuHcSG1EuftBhoqSEXIuzRfV2yr657aWVofyRlczWQzahVxPgeE M8bg== X-Gm-Message-State: AFqh2koclR56A0J60qRgrJNjP5ErdPu06En9M9r7fs4AluwSZlqS+Jh6 BKdx2QuYaZggkOk30FZneB1mDOBCOhyM8FHX0kAwxWoo7aXz4Y0YKM6Ya7QcD+jNWxB2Ckyh0Or 3zU+kJ3IEmlpAr6CPhmMGYyooAQ8A X-Received: by 2002:a05:600c:3d12:b0:3d3:5027:89a4 with SMTP id bh18-20020a05600c3d1200b003d3502789a4mr25799443wmb.7.1672399940714; Fri, 30 Dec 2022 03:32:20 -0800 (PST) X-Google-Smtp-Source: AMrXdXt3Gtt8pWK+u7hmfZZ1U28VO05gneLhLUZP+rI80tTWKZFJiyZMKc459LhgXLrHssxsIENz2Q== X-Received: by 2002:a05:600c:3d12:b0:3d3:5027:89a4 with SMTP id bh18-20020a05600c3d1200b003d3502789a4mr25799428wmb.7.1672399940396; Fri, 30 Dec 2022 03:32:20 -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.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Dec 2022 03:32:19 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Subject: [PATCH v4 2/4] drm: panel: Add Himax HX8394 panel controller driver Date: Fri, 30 Dec 2022 12:31:52 +0100 Message-Id: <20221230113155.3430142-3-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 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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: Jagan Teki , Robert Mader , Onuralp Sezer , Neal Gompa , Javier Martinez Canillas , dri-devel@lists.freedesktop.org, Tom Fitzhenry , Martijn Braam , Krzysztof Kozlowski , Thierry Reding , Ondrej Jirman , Peter Robinson , =?utf-8?q?Kamil_Trzci=C5=84ski?= , Sam Ravnborg , linux-arm-kernel@lists.infradead.org, Maya Matuszczyk Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Kamil Trzciński The driver is for panels based on the Himax HX8394 controller, such as the HannStar HSD060BHW4 720x1440 TFT LCD panel that uses a MIPI-DSI interface. Signed-off-by: Kamil Trzciński Co-developed-by: Ondrej Jirman Signed-off-by: Ondrej Jirman Co-developed-by: Javier Martinez Canillas Signed-off-by: Javier Martinez Canillas Reviewed-by: Sam Ravnborg --- Changes in v4: - Add Tom Fitzhenry's Tested-by tag. Changes in v3: - Add Sam Ravnborg's reviwed-by tag. - Move driver patch after one introducing the DT binding (Sam Ravnborg). Changes in v2: - Add year to driver's copyright notice (Sam Ravnborg) - Remove unused