Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp767678rwb; Thu, 22 Sep 2022 06:15:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4ExqxI0CxgVGs7XNBTKzcq93+TXQ11DHIBwScdts6DeeKn3ixUsLYpCVHQJuksBUFys5/j X-Received: by 2002:a05:6402:428a:b0:42e:8f7e:1638 with SMTP id g10-20020a056402428a00b0042e8f7e1638mr3311602edc.228.1663852514737; Thu, 22 Sep 2022 06:15:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663852514; cv=none; d=google.com; s=arc-20160816; b=NkJ1J3N+UjJEJaqwXhCy4nK2e+/q8izdxo6tL2Tv4qBFfT+XU9TLSLpYYr+burMWIT YnPm+i4Dpuj0V/+OqQOgplNxmZDllZ0agaF3uSKRHAzoj8er/WJc3Zj9o4wF1oeR9klN xvh6ljDelIGuVor5k4HkWSWP8AECwk/+umNvcmPGW/bWWBHoKZbDTWZXJREZemReyFmN HK11O4VJWaNhtlXbBWVXuCv0w+9Coqe9RYf97Z8tNwvRtpCVmrUjShlfRv8yDCXNLPd6 SWeRmV9V3MfBOAQlwEXM8LjlDcWG7DIeVizXtFx3n5xwPatbJ00WX7xDRRtsyNNQaVRa KdAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=r18B7+s6p5nnrDatc46p+JDsg4ZDIvPR0xhvYNtWVjU=; b=gBbuw1vaCBdVO5+OBCjNAza/1Ys3qL4lulP+iWnYzjFqlymgzsUFQekFXzpfz+T3QL wfZ+UG2sUY3z7GwstTQdoTt8dXawO2FTMzJCioJvDZs4oZRtQn5vTA39cAznavqN4nYQ ZdHOAb5Pb5zhGdq6OuS7KYDa7DrUU5TksNVC3XqPooFAONCa0dQbxdd1M9X4/yazVdbg 4zO4LyZbU6sQoSOZ46bx6JguhYPbp57IhD5H9LnBSxLvbHuXdFzmmDZxI9yayWHDz45n aFw3wwwGN2APUeU624hQmUYpnpph31imk9PLYnnScMYGaCoJC8cvLu3zEQqo/7Q+MP39 OULw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pschenker.ch header.s=20220412 header.b=di9Svk+N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=pschenker.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh38-20020a1709076ea600b0076fa1e1274bsi5258994ejc.202.2022.09.22.06.14.40; Thu, 22 Sep 2022 06:15:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@pschenker.ch header.s=20220412 header.b=di9Svk+N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=pschenker.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231629AbiIVMwx (ORCPT + 99 others); Thu, 22 Sep 2022 08:52:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231424AbiIVMwt (ORCPT ); Thu, 22 Sep 2022 08:52:49 -0400 X-Greylist: delayed 567 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 22 Sep 2022 05:52:46 PDT Received: from smtp-190a.mail.infomaniak.ch (smtp-190a.mail.infomaniak.ch [IPv6:2001:1600:4:17::190a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B0CCE11F7 for ; Thu, 22 Sep 2022 05:52:45 -0700 (PDT) Received: from smtp-3-0000.mail.infomaniak.ch (unknown [10.4.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4MYFLs0F6WzMpvFw; Thu, 22 Sep 2022 14:43:17 +0200 (CEST) Received: from philippe-pc.toradex.int (unknown [31.10.206.125]) by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4MYFLr4bfzzx4; Thu, 22 Sep 2022 14:43:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pschenker.ch; s=20220412; t=1663850596; bh=rPRq0sZw9ssZ1DOgDKQ+DheMaamSeVNAcj9Urfa5r+Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=di9Svk+N3G3GlNs89fp8R6/eavGQmIAwGU378ycae64rVgx19NkobiulRhs0LEygH saQe07et07Zon9c9xQjot48c90LT/vUeeyUt3YmEWJUrT9mM1Md7cVDf+1DZ9bjwkw vJ/MqjiihulFIcSCR/sVY1f6wGNvMA1faz7NJ4lA= From: Philippe Schenker To: dri-devel@lists.freedesktop.org, Adrien Grassein Cc: Jernej Skrabec , Jonas Karlman , Robert Foss , linux-kernel@vger.kernel.org, Daniel Vetter , Neil Armstrong , Laurent Pinchart , Andrzej Hajda , David Airlie , Philippe Schenker Subject: [PATCH 2/4] drm/bridge: lt8912b: set hdmi or dvi mode Date: Thu, 22 Sep 2022 14:43:04 +0200 Message-Id: <20220922124306.34729-3-dev@pschenker.ch> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220922124306.34729-1-dev@pschenker.ch> References: <20220922124306.34729-1-dev@pschenker.ch> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Philippe Schenker The Lontium LT8912 does have a setting for DVI or HDMI. This patch reads from EDID what the display needs and sets it accordingly. Fixes: 30e2ae943c26 ("drm/bridge: Introduce LT8912B DSI to HDMI bridge") Signed-off-by: Philippe Schenker --- drivers/gpu/drm/bridge/lontium-lt8912b.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/bridge/lontium-lt8912b.c b/drivers/gpu/drm/bridge/lontium-lt8912b.c index 0fd3472e767c..6a4bb7422176 100644 --- a/drivers/gpu/drm/bridge/lontium-lt8912b.c +++ b/drivers/gpu/drm/bridge/lontium-lt8912b.c @@ -323,6 +323,8 @@ static int lt8912_video_setup(struct lt8912 *lt) vsync_activehigh ? BIT(0) : 0); ret |= regmap_update_bits(lt->regmap[I2C_MAIN], 0xab, BIT(1), hsync_activehigh ? BIT(1) : 0); + ret |= regmap_update_bits(lt->regmap[I2C_MAIN], 0xb2, BIT(0), + lt->connector.display_info.is_hdmi ? BIT(0) : 0); return ret; } -- 2.37.3