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: 13084390 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 03821C4167B for ; Fri, 30 Dec 2022 13:50:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=k/N5/ntrkTqSG8AFJW1fotq6yRut8FWekLNTxNQyQTA=; b=y4zbAlF/Ul63Es HwHhgi/yNd/fHeGKg2VmGh43gf/rdG4j5ll5kkbpwaMt5E9zvE0vcejm7q2uXDOG261c+Caj/NzVm Lsiu7VOUU0mc0TpHmlTxJWjpCvh60dsSkD4J0KUt0qA0cR/orYZZtf11Vo3858Yjq+RTmYevLreq9 fvfDCf685ocLHbz82DhaLPLnl+EdFYK/+CyV3rcG59kf2vTNbhs8w64TK7rRtxzutus9vMgNNC50S 9LbqWHhK3whL9qZ4Lh7JfqwY3E5q8+LHMDOBnviyDiU9fckZmKjYmB2HQyM/8nPDGm9ZOK2q3upmo ywgkiMdZDiKh0QhBd7IA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pBFkt-009fMG-4U; Fri, 30 Dec 2022 13:49:05 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pBDcc-008Yvr-B5 for linux-arm-kernel@lists.infradead.org; Fri, 30 Dec 2022 11:32:26 +0000 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-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-599-pdrjMpFmOdaf0Kp12XGuYg-1; Fri, 30 Dec 2022 06:32:20 -0500 X-MC-Unique: pdrjMpFmOdaf0Kp12XGuYg-1 Received: by mail-wr1-f70.google.com with SMTP id o5-20020adfba05000000b0029064ccbe46so76556wrg.9 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=Fh2UAZAaHQuw41tLId8GdEMfH66tamh6HWiu9G/P76NPbt7GOcEMbCHY0YOag9Dnqk B4Xh6owS2IA50Y7GbAwOVc98d7/cj9Ba0MpnyEuwWLPfb4rodEyKBLCasRfnCLL5xrM3 w2FFi+r2KIlu2iAjhC7UpPIbbuYN85COkCT62kerICOkzc+u/7qjK7v9u7/3+M1C5THc sTm5CmGcON3ZNoI5vB5+rOU8l6ybC/F8fOCIjp4bXjOTmtGUfS4p3WiJsK5IVUo9fjjA NGSO4YQ/yuCfxS2RcfH2kaifIwDGznqzJMAlcZv+p3C59ze7RfUS1b2YmMwUNQnhBFb8 ndSw== X-Gm-Message-State: AFqh2kqX2v174XuRe6bCekPhHjJj+dIzhsSm82P3dq0xJBd2kwfJOQHI fPKan18Ns61jvZZpte4TfZScdIdu7wFeo7fo9VNEeTHxpwG2JymVkGBqdPOUuG3rmiMrycmhAU6 tBWj2IGGV3aS97iwQth94w37HIs0FPXvjzs0= X-Received: by 2002:a05:600c:214a:b0:3cf:6910:51d4 with SMTP id v10-20020a05600c214a00b003cf691051d4mr22097927wml.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 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 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221230_033222_732545_BB1F4D83 X-CRM114-Status: GOOD ( 15.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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>; + }; + }; + }; + }; + +... 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: 13084399 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 24E0BC4167B for ; Fri, 30 Dec 2022 13:57:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zErVXfga93Guqt8WuDq7F78mmN7IGk0T/9Yc7Rk6ddc=; b=ytEXDJ5FB++Cx/ hSFsgao3Is9G+eCpWQoWhztxOFngu6iOYzMNQoKAVH+RGWJQLXkrA815VO9+/mHb9cfsWfzB1OCrv kcw92w6E+5/ahVSQ8F0mxLgjlJfwqJG0m4qiwwBirMRTpznRII5qvkhgxPA/DTG8EbnpTFdI2Xyyu sazQGQ1tkNMsFluharPKloZEV2vQaeqUzKHImnMYq1xVgm1RicbSci81Y0kiVaN/QUcoYWXQKfr9A be/EiGrf5AIxT/9R2Th1xsHImxm7CsoJGFewCb+OSc1Qs+P1mWN5jVDwdwo4dFp570gUoT2jX+Obb DClaAg9czZmCQLf1tw6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pBFr4-009hwn-Do; Fri, 30 Dec 2022 13:55:30 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pBDch-008YzX-C3 for linux-arm-kernel@lists.infradead.org; Fri, 30 Dec 2022 11:32:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1672399946; 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=cvv7EdabDYpknmAf97znOUEjA4j52mGPF9BjrwF5OBgvDaZS/1fe7OVrSKiMGIDY8+LRSM vK+0UCj91zC8kZ3R6HSMoJ1UmqZUwLegqo4tkNGxXJdw+fY2YG/Dp4ozErG5fbwdTMbhpr S8Bgyjur2/SnTaFzcrG0voEEsgRPT2M= 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-608-A7nVTQoHOY2-D3PlNSLzgQ-1; Fri, 30 Dec 2022 06:32:22 -0500 X-MC-Unique: A7nVTQoHOY2-D3PlNSLzgQ-1 Received: by mail-wm1-f70.google.com with SMTP id bd6-20020a05600c1f0600b003d96f7f2396so11070027wmb.3 for ; Fri, 30 Dec 2022 03:32:22 -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=il4dNjE91or1NCV2ARza/szbSqqeBEFt4d7g0/IJ5ibI5sxw3zrDAip1+CWISsrzQk y/74FTAj/LaCapNQQ3N+B+IiP4UH1xflf2Gfld4hqaaV9sNMHP0Ie/n1LbH6pVqrOevy EraLjshNdTi1NPiWSH9NTTNdWqFfYW2UhehdXIGuM7O7pAqIV0FRMknDF7U6UQ458UPM 2GpdnWtlUAd/NWtzfctR6vauO2vBz4Ovf6XUimrNUrsyaKiPZNmU485Iw22Ycl1lAJVb 6W7Qxw5DJYJZkckJvmxEZIK1QfTAadHt2/RXELZrujcTTIh8cpfrC+kjF3rTUXajsYic p75A== X-Gm-Message-State: AFqh2kpW/qQbMwoD4Vuho8x87NLpjigfFzGrOciZ6jPEWeNExRgjDnSH NDyjaiVV+yVnyOD6/SjU0AVKE5KLfX/7D46nzD0+dU8H2//O5Td5j8EGZ7aGh6KKiq2bfJuYwLn X3IeGeBc6qruopZpkyWCWA4SJxE7d9R8c3KQ= X-Received: by 2002:a05:600c:3d12:b0:3d3:5027:89a4 with SMTP id bh18-20020a05600c3d1200b003d3502789a4mr25799448wmb.7.1672399940718; 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 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 , Thierry Reding 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221230_033227_796273_A0EEFBF0 X-CRM114-Status: GOOD ( 24.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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