From patchwork Mon Jan 2 23:07:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 13087035 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 AE8C1C46467 for ; Mon, 2 Jan 2023 23:09:35 +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=GcEkCoZIHRt5vASV4vMYhNG+7YHdJE7b2dUEHcziEZ8=; b=44iwXhxcs79WoA 5SQRVmqtxEWxEDIM5MhJyF0Ka/OwbHyNCHJ7H7JNt5N8Yamq1jdEQ33ZlP2Pifsfp89IIPk9WJ2Wd 9lB3VsKKaLj5xN6BLID/m2rYit03zrjha14djfYLrh7acNj7MpY2tq3hdH7VG68ay+CJCi0chPxop 1A9+fGIt2NQQaKxZgYgy1ngXpTSooX2bGr22x2QHDydXFLzMLE/kZXkpW5dK3H0Bswii2dCVWli6y CyshT1mvWFz9WbRbEw3Xa0EPzdwxW5CadtkhpwXItHkRWfTdOIS+zbtAXvhnWJEh2Sjtb6fHJPXwE e+jSRBXcC2875cDalxYQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pCTut-00Ekmu-54; Mon, 02 Jan 2023 23:08:27 +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 1pCTuR-00EkZF-Dz for linux-arm-kernel@lists.infradead.org; Mon, 02 Jan 2023 23:08:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1672700862; 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=obzoow7q7hWkNtg/GehYspcHRTm+nOjVwnTgRK9uS/E=; b=AgQA4YwR62rG2qcr/Snh4WeK26y/syweO71nR6op+TyDSKkYj5NMvBzwWyceZwgqB6sSkE Rb3idQ7Oxx7dRtNC3s+1e0mWV8oFYlb5yCek1hrvt2aGHxlJaoUfATGNBvYIii8k00d5Kk IG2uhR5EUKb9+UQrcRppT4i10qDzY+g= 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-3-UTNXO0pEONqZ83z-dHTycg-1; Mon, 02 Jan 2023 18:07:40 -0500 X-MC-Unique: UTNXO0pEONqZ83z-dHTycg-1 Received: by mail-wr1-f72.google.com with SMTP id o14-20020adfa10e000000b002631c56fe26so3256077wro.1 for ; Mon, 02 Jan 2023 15:07:40 -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=obzoow7q7hWkNtg/GehYspcHRTm+nOjVwnTgRK9uS/E=; b=EKb18UxoeQftcBX4yLXG+DFzikbXKqTXi4dRVD/1fsqBK+mUqZ5T3M+KulgO+qPmw5 7p6nXPH+Kah2IUsiYfN+wXpUZE6QgyIoKHIPF7ocEbr9HdO3TL3fvBSsFLXwx1A7u4TX PVlSNU1opCn0+WlWPRlKmpiG3OXJ37LUqsLUI+68dK7BIhUn5NNR9SqZXo4fHZ+lSrO7 e15voVOfL5t8rtTroiBscuXSz7hR+15Nalvcv+IdFdbOzMubqeKHi63kRMvNfJEu8yb6 rpZgqIT7xY1klwSJ27TCEJYgAXvP3jptgPoliRpvy2jKNl+a8+Rqbqw0ZunO8bKEV/aC qB7A== X-Gm-Message-State: AFqh2kocIKTZJjk8Hmqrn5Lv8ogiLZqKiiBDxdo8cZWsCwNEPxBMa/Ic uh1lEAUoBWN04XYiIJVTFeBEU/fdQtzqBfrxh2tlFUbCrS4oSGlkKdk48gDpU3K6sNxL86COlIb WL7Nd3ap0eyCVFGoQZ8Iqu6yboxZgiEc68IA= X-Received: by 2002:a5d:4d50:0:b0:242:7fdb:923b with SMTP id a16-20020a5d4d50000000b002427fdb923bmr23621918wru.59.1672700859781; Mon, 02 Jan 2023 15:07:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXvtjNaoQfhNkTsnfslbEr2dpmDZ3226Di9u0vHV4w4FHb+3Vt39i56vGxyttsbxwAAIkBW3Lw== X-Received: by 2002:a5d:4d50:0:b0:242:7fdb:923b with SMTP id a16-20020a5d4d50000000b002427fdb923bmr23621899wru.59.1672700859588; Mon, 02 Jan 2023 15:07:39 -0800 (PST) Received: from minerva.home (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id h10-20020a5d4fca000000b00281eab50380sm22746906wrw.117.2023.01.02.15.07.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Jan 2023 15:07:39 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Robert Mader , Onuralp Sezer , Martijn Braam , Jagan Teki , Sam Ravnborg , linux-arm-kernel@lists.infradead.org, =?utf-8?q?Kamil_Trzci=C5=84ski?= , dri-devel@lists.freedesktop.org, Tom Fitzhenry , Ondrej Jirman , Neal Gompa , Peter Robinson , Maya Matuszczyk , Krzysztof Kozlowski , Javier Martinez Canillas , Daniel Vetter , David Airlie , Krzysztof Kozlowski , Rob Herring , Thierry Reding , devicetree@vger.kernel.org Subject: [PATCH v5 1/3] dt-bindings: display: Add Himax HX8394 panel controller Date: Tue, 3 Jan 2023 00:07:31 +0100 Message-Id: <20230102230733.3506624-2-javierm@redhat.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230102230733.3506624-1-javierm@redhat.com> References: <20230102230733.3506624-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-20230102_150759_833719_E3EB2018 X-CRM114-Status: GOOD ( 16.10 ) 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 v5: - List Ondrej Jirman as a maintainer in the DT binding schema document. 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 | 76 +++++++++++++++++++ 1 file changed, 76 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..1b2a1baa26f9 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/himax,hx8394.yaml @@ -0,0 +1,76 @@ +# 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: + - Ondrej Jirman + - 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 Mon Jan 2 23:07:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 13087037 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 C9B56C46467 for ; Mon, 2 Jan 2023 23:10:46 +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=ToYe9jDXEBEdzG6IdLLq5GRH7DS6q+2/72GGQq6su6k=; b=G89TCOPnhyK+3q 48P1KjNhzdkHi9NaMRMmr90XTgSPhLXuR97HgnRW6OtnKbNE8OaykDtHkGGqsWR/y5xiNzcAxcX9L hWfTjYiEtiv7NBFmSi4aXa6ZqZunvp81AsHU4/yDFZzZePIIQGqVQdlTagsATVkWVc93fgzY8hvGh d5VaYq5FJXgmUHspMlD2Fju6jTd6fmBTKS1kpAVG+HFXT9kDCPG/N7RNRRxLcvyD2dtk2hzgWQAUw FhRTAboccX06UYgdmVlXuKB0sSxWxq735pu5teo7Ep+gaOEjOd62LRe214V4EY+FSBv00Zl2WXzbV Q1gdvwT+vI1mRTehN2uQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pCTvn-00El8l-7u; Mon, 02 Jan 2023 23:09:24 +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 1pCTuR-00EkZU-DO for linux-arm-kernel@lists.infradead.org; Mon, 02 Jan 2023 23:08:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1672700864; 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=gSI0lg7ZHk/jHQ6XYeNCo8JAYkYpCPe3IEzZ0QU2a74=; b=C4gsBEUL0dXI4mpaJy7g+DYLrXD7ztCTNynIRfmKcmKbup8xvT//7uI8Bj4kSByaIAMkzn 0FKSqqdArGwHGPzK3HXj4jnlEY2I3deQ6tOJJbxbPjn4A4nwlApxypuI3YuIH5mwQ4psgm gMN3v+f15gm9cLJGTl+aR1dvIE9rmKM= 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-500-5v-HTil6Mnm0aEcOaW3sGg-1; Mon, 02 Jan 2023 18:07:42 -0500 X-MC-Unique: 5v-HTil6Mnm0aEcOaW3sGg-1 Received: by mail-wm1-f70.google.com with SMTP id k20-20020a05600c1c9400b003d9717c8b11so13659574wms.7 for ; Mon, 02 Jan 2023 15:07: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=gSI0lg7ZHk/jHQ6XYeNCo8JAYkYpCPe3IEzZ0QU2a74=; b=gnneogNZrz9TRypPX7ATKjEAVFUReE8TMRssUSsV7f/xK1rAVJRDJTERKm/d7/Idud al57jXf2bNZ8qigiHI77ohRSey0GQoB+ZvtJZ21qe89f2zxqXLS0ugE6MVf2ifLNKi8M kIThMsAXVlxOWVsMx7P/RPGfV4Z7avR8wn9nMz04jwtA2vwQLklqsHAQXSeGcD4njpAT awxSraKzoGt0U9vgoFRWs1G1nv/hM1VTR82hUr8JhhZJh5DKBo7L+zvofA+ZEj2ShB3y c37K2floioNUaji9NT5SsRmp227St/UKPD91ln4pCWHyxN6Xm4WOdJE3c69czssHIEdg ux5A== X-Gm-Message-State: AFqh2kp4KNTHxIPxRP2wQvTKAcxUsfmWoVOmQECUnrFKDUpOYBntiGhZ iwQ18A0Frz9b2F8XL4eN64UDE3he3OENA9wvfnhSZeTl/fEc2cfbp3m3QqD0d5Kj4KwVqCXkRgE Xr4nB0fD6rQhf15VO6HUa4bdTk5LBuW3gzFI= X-Received: by 2002:a05:6000:1048:b0:279:2c67:ef6 with SMTP id c8-20020a056000104800b002792c670ef6mr18791801wrx.1.1672700861496; Mon, 02 Jan 2023 15:07:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXvK9IlnvgGSBCgmONlmyde53fu+P5OI6mq6m5q6LgQWZgxK+6ff/AoqYJSF0FeYBv4b6cI6tw== X-Received: by 2002:a05:6000:1048:b0:279:2c67:ef6 with SMTP id c8-20020a056000104800b002792c670ef6mr18791779wrx.1.1672700861143; Mon, 02 Jan 2023 15:07: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 h10-20020a5d4fca000000b00281eab50380sm22746906wrw.117.2023.01.02.15.07.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Jan 2023 15:07:40 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Robert Mader , Onuralp Sezer , Martijn Braam , Jagan Teki , Sam Ravnborg , linux-arm-kernel@lists.infradead.org, =?utf-8?q?Kamil_Trzci=C5=84ski?= , dri-devel@lists.freedesktop.org, Tom Fitzhenry , Ondrej Jirman , Neal Gompa , Peter Robinson , Maya Matuszczyk , Krzysztof Kozlowski , Javier Martinez Canillas , Daniel Vetter , David Airlie , Thierry Reding Subject: [PATCH v5 2/3] drm: panel: Add Himax HX8394 panel controller driver Date: Tue, 3 Jan 2023 00:07:32 +0100 Message-Id: <20230102230733.3506624-3-javierm@redhat.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230102230733.3506624-1-javierm@redhat.com> References: <20230102230733.3506624-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-20230102_150759_851839_6E117292 X-CRM114-Status: GOOD ( 26.17 ) 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 Tested-by: Tom Fitzhenry Tested-by: Peter Robinson --- Changes in v5: - Add Peter Robinson's Tested-by tag. 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