From patchwork Tue Dec 27 11:03:32 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: 13082214 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 993FDC4332F for ; Tue, 27 Dec 2022 11:03:50 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 56D3410E2FA; Tue, 27 Dec 2022 11:03:47 +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 2209310E182 for ; Tue, 27 Dec 2022 11:03:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1672139023; 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=woUir0Lts/Iv/2E8U+LoYyfYL4VWI99Q3r6CZZFNa7I=; b=ZXOwIyfwo5YEgfGg5l9K+zaNU5D5E0pADtgRKtAd61wsB3OctT65VbMJHdrOtG0IXxPdba ZuFCL9wh/BJcFHICif4JA+k9lBUI+KR/bv/nITpegQm/1ASFQ82wvYN//Z9L5qTrm1A4yT +jjCZysTcydt/n8rEyGyRpQyFPkqfXQ= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-224-DoKuzG_nOLOTsV8b4CkGgw-1; Tue, 27 Dec 2022 06:03:42 -0500 X-MC-Unique: DoKuzG_nOLOTsV8b4CkGgw-1 Received: by mail-wr1-f69.google.com with SMTP id c21-20020adfa315000000b002425bf67a87so1726297wrb.19 for ; Tue, 27 Dec 2022 03:03:42 -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=woUir0Lts/Iv/2E8U+LoYyfYL4VWI99Q3r6CZZFNa7I=; b=VRcL8Ii++c9G8r/cGMD16vK8A55k2vdRrY8Jv2tWmrViaowW3vISOhdCsAFuJRB2+E XIF8NUdR/afwHdZz41xLKUizockXoG6gp99gKFIufNPcYgjmRK4xMGGKizKS6qXbWlgW mNzPv4Eurpa+DNbvIqQ78oVp1DcxIME0LmLs0ypIWZeQi2b59ltRm5TMaW13qzUehTBP 4IhY0av7t8K1tpbRHFFerXEwD14UYCcaYxhCoJtawutD1slTO107PLGdynvODOU/A2aa 2ujTwky5DWERgNnZPVPRWVVQbPVgefkOZKpXsDpcnvHTilwcjiHyv+rO5hcp6tRB6ERV OJJg== X-Gm-Message-State: AFqh2kqp6Ut0U2HRuzneRiJEAtM149RFEYS4QciNkuzSKl+gAfX9MW73 j/y6r1qI9AJ8YUP7fQXUMwp8z+YOX6/SV661ZZQPs5giHAKFWad85uy6PzrnmBLQtCDYP78A6x0 HknDs2qdERgY5RV6952g387nMsZq4 X-Received: by 2002:adf:e283:0:b0:242:324e:b3d with SMTP id v3-20020adfe283000000b00242324e0b3dmr12664697wri.1.1672139021662; Tue, 27 Dec 2022 03:03:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXu7zMUDKll3qV0ZETnVhuW7RvKZ8fTiq1amBtPxkYibGhjX8ph/GklBGnF4PA+Z7Kdki684zg== X-Received: by 2002:adf:e283:0:b0:242:324e:b3d with SMTP id v3-20020adfe283000000b00242324e0b3dmr12664672wri.1.1672139021448; Tue, 27 Dec 2022 03:03:41 -0800 (PST) Received: from minerva.home (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id p18-20020a056000019200b00279d23574c4sm7374557wrx.13.2022.12.27.03.03.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Dec 2022 03:03:41 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Subject: [PATCH v3 1/4] dt-bindings: display: Add Himax HX8394 panel controller Date: Tue, 27 Dec 2022 12:03:32 +0100 Message-Id: <20221227110335.2923359-2-javierm@redhat.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221227110335.2923359-1-javierm@redhat.com> References: <20221227110335.2923359-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: devicetree@vger.kernel.org, Krzysztof Kozlowski , Robert Mader , 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 , 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 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 | 74 +++++++++++++++++++ 1 file changed, 74 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..fb1981cacfc8 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/himax,hx8394.yaml @@ -0,0 +1,74 @@ +# 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: + enum: + # HannStar HSD060BHW4 5.99" 720x1440 TFT LCD panel + - hannstar,hsd060bhw4 + + 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"; + 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 Tue Dec 27 11:03:33 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: 13082218 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 7FCCDC4332F for ; Tue, 27 Dec 2022 11:04:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D121510E302; Tue, 27 Dec 2022 11:04:04 +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 1538A10E182 for ; Tue, 27 Dec 2022 11:03:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1672139026; 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=kh4639073VD47gu1SSNNYIKiGdCszglR349XcFt1404=; b=WaneVVI6l4c1xkGDwUetNFnX19z5+WdJzmb8OJZKZYTH98R/IbcOpsxpzwakos+QwPEaaO a+cQU+wSp9yX3MPGxv6X3nZzwSA0Y4qs/6cYbNiH75VCle6QayvD+GxzNsPppnRibXIg7o QR0yy++AkhQUMLy5Sa9CaLeARRj5B5Y= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-187-0PAe3-NEMF-JzthHQm1XUg-1; Tue, 27 Dec 2022 06:03:44 -0500 X-MC-Unique: 0PAe3-NEMF-JzthHQm1XUg-1 Received: by mail-wm1-f70.google.com with SMTP id m8-20020a05600c3b0800b003d96bdce12fso5061706wms.9 for ; Tue, 27 Dec 2022 03:03:44 -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=kh4639073VD47gu1SSNNYIKiGdCszglR349XcFt1404=; b=ummCbfIS7LC8UOtV/eqcvpf4pxcShE3VMY2wkDtByOOQLSzgbQMlLcIiCtKrdAB7Af L0WbOsyIDl2aE/ExffAz3Ndp6crN41Emt3xFqRVXhC6sMdjyQ9MTfKDszDa2w4k9q254 CgWWQ4E/aq40UfA4nC3RxVsof6WIXs1cQeioSWqOmkWmWbT3rcVXbfb9Iidv48eOoz1r 5DkVekoFLdV8XR7uqu7PjjAlJ9z022W2CbXQPwqqT7addY3avlNaDHpY1XNYARln9ZFM KsTbc6LGPg/D/M4lVu+AC+h+NPic/i+Jfdcm2tbCS8/V/thzPLGhFzCjS/+1spv0aPxY 5Ilw== X-Gm-Message-State: AFqh2kofLDTPx5HZiAcZi81KyHAewpmF6LpE5eAAtuQi3TaxrsyQCUmO AQs3l15AeIfBWRTcJAhKOaV1g8qjJVfygq3fi50ad0l6jgVINVH6xNE/4LLE4d+81fsgMbKpBGS bwpaymLIioBJ/FcxGEA3L2OqTVwgN X-Received: by 2002:a5d:504d:0:b0:242:68fb:da2a with SMTP id h13-20020a5d504d000000b0024268fbda2amr14153375wrt.39.1672139023563; Tue, 27 Dec 2022 03:03:43 -0800 (PST) X-Google-Smtp-Source: AMrXdXsrVWo9fPSZwc1166+qVhHS9jKhgB2vYDqTQwTkzvpBAe6zRg40bBrDjq4k7WhUBuBBFmvGKA== X-Received: by 2002:a5d:504d:0:b0:242:68fb:da2a with SMTP id h13-20020a5d504d000000b0024268fbda2amr14153350wrt.39.1672139023261; Tue, 27 Dec 2022 03:03:43 -0800 (PST) Received: from minerva.home (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id p18-20020a056000019200b00279d23574c4sm7374557wrx.13.2022.12.27.03.03.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Dec 2022 03:03:42 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Subject: [PATCH v3 2/4] drm: panel: Add Himax HX8394 panel controller driver Date: Tue, 27 Dec 2022 12:03:33 +0100 Message-Id: <20221227110335.2923359-3-javierm@redhat.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221227110335.2923359-1-javierm@redhat.com> References: <20221227110335.2923359-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: 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 , 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 Tested-by: Tom Fitzhenry --- 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