From patchwork Sat Feb 27 16:12:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrien Grassein X-Patchwork-Id: 12107729 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B66FC433E9 for ; Sat, 27 Feb 2021 16:12:37 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 0C37264EC6 for ; Sat, 27 Feb 2021 16:12:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0C37264EC6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 59CB56E0A1; Sat, 27 Feb 2021 16:12:36 +0000 (UTC) Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by gabe.freedesktop.org (Postfix) with ESMTPS id 839456E0A1 for ; Sat, 27 Feb 2021 16:12:34 +0000 (UTC) Received: by mail-wr1-x436.google.com with SMTP id n4so11564368wrx.1 for ; Sat, 27 Feb 2021 08:12:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8L0fMvr8Juw0+FWxKzR0WBqNrhDEw2SqgZ9h6QXSd3Q=; b=AZ+ESH47UAIy15YfmnXCJv76yqNmSE8RlW1IRN8RuQdo4NZ+TnDKm2x6lpOUvMNGV1 vVkqgjRFLEkF9LEx9DCEI91PfFI1NwanByQuTe9n2nbN8SgcONx/lYAFMzW+FJ+YfsSE Kmzho365fT8/KPSL6BtCE+q+wZl0zeAu5+k1N9npbVdulFj2i94HQIElrJTmC1ZpGLTp WcIU8mNRN124t1836WAGRG69dh63hq5GTH6Xqf6UCAJ2B3aYFxlw4vgNkpbSpuBxbMQ0 4wBE994x+yevPKAWPA0ZGnN+7brEyImFQUhSlUzjh8bVEP8ExjjASErTOau8FCErSasr LaSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8L0fMvr8Juw0+FWxKzR0WBqNrhDEw2SqgZ9h6QXSd3Q=; b=Q7yJTEK1azYUMWbxwYh/G6SnppiQ3bZLVlB52Fm26S0YYddctnAnWyoHjGmQ3bOD1X dztpBimVP+veYDHfL2tk4vVORkKtogMr2gI7nmldFZ1r5EVUUJS3Jt6LcbLtpjdis42q Wm0ur98Kk1iDODn5851GxLy85vk9q8ezGnHS01bZ7D45LLNmrZtq0XNRzxt8GnksfM+d y3enzSzME45igY55U+zidJApt7gXna+u4sn1lycnoKTTjp3C9WG2HaYA/xO87mqoqIKj T0gTrSJAxePidh6B5MFGXqRrkr5kehyFUstVYWXnUqoMYaHXUehpr8DB9eblmdxr+NvD Eq3A== X-Gm-Message-State: AOAM533fyMEYVcuF+q7RhbEwxUoT0gM6PzNwn3krbbao4AaVl2nUGTLL 2GPhOd+s/bnqLnHlKYgZ70I= X-Google-Smtp-Source: ABdhPJyNjitvPkhLUbSk9Ff/vTlgnbbp6Ci60uCSjhqVnFNPtK11zA5i95/I8RDW1Ny9ZNglG+58xA== X-Received: by 2002:a5d:6809:: with SMTP id w9mr8155024wru.376.1614442353238; Sat, 27 Feb 2021 08:12:33 -0800 (PST) Received: from adgra-XPS-15-9570.home (2a01cb0008bd2700289c166d32b9da85.ipv6.abo.wanadoo.fr. [2a01:cb00:8bd:2700:289c:166d:32b9:da85]) by smtp.gmail.com with ESMTPSA id b15sm18390027wmd.41.2021.02.27.08.12.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Feb 2021 08:12:32 -0800 (PST) From: Adrien Grassein To: Subject: [PATCH v5 0/2] Add support of Lontium lt8912 MIPI to HDMI bridge Date: Sat, 27 Feb 2021 17:12:26 +0100 Message-Id: <20210227161228.1632521-1-adrien.grassein@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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, jernej.skrabec@siol.net, narmstrong@baylibre.com, airlied@linux.ie, dri-devel@lists.freedesktop.org, jonas@kwiboo.se, linux-kernel@vger.kernel.org, robert.foss@linaro.org, a.hajda@samsung.com, robh+dt@kernel.org, Laurent.pinchart@ideasonboard.com, Adrien Grassein Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi, this patch set adds the support of the Lontium lt8912 MIPI to HDMI bridge in the kernel. It's only support the video part, not the audio part yet since I don't have the datasheet of this component. I get the current i2c configuration from Digi and Boundary drivers. Developed using the DB_DSIHD board from BoundaryDevices. Update in v2 - Use standard data-lanes instead of a custom prop; - Use hdmi-connector node. Update in v3 - Fix indentation; - Implement missing bridge functions; - Add some comments. Update in v4 - Fix bridge ops; - Fix i2c error detection. Update in v5 - Fix lt8912 name (lt8912b instead of lt8912); - Implement HPD via a workaround. In fact I don't have the datasheet of this component yet so I can't say if the configuration of the registers is correct or if I have an HW issue on my board. So, I choose to implement a fake version of HPD using a workqueue and polling the status regularly. Thanks, Adrien Grassein (2): dt-bindings: display: bridge: Add documentation for LT8912B drm/bridge: Introduce LT8912B DSI to HDMI bridge .../display/bridge/lontium,lt8912b.yaml | 102 +++ MAINTAINERS | 6 + drivers/gpu/drm/bridge/Kconfig | 14 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/lontium-lt8912b.c | 817 ++++++++++++++++++ 5 files changed, 940 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/lontium,lt8912b.yaml create mode 100644 drivers/gpu/drm/bridge/lontium-lt8912b.c