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>; + }; + }; + }; + }; + +...