Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2498110rwb; Mon, 3 Oct 2022 01:21:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5KAYxErfee+k/ssxQ2mfA2yum3crEISJrVPcHgIbH2OPvfuwd3+HeB/eeJfyXLEUfPpIkH X-Received: by 2002:a17:90b:3ec9:b0:203:27a3:166f with SMTP id rm9-20020a17090b3ec900b0020327a3166fmr10878883pjb.109.1664785290082; Mon, 03 Oct 2022 01:21:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664785290; cv=none; d=google.com; s=arc-20160816; b=IpHCbi80Zwc1HcQ8n4LdUW/qiSY2XLMvlsL0+gOv5bc3cj9u9rW5FsXp4sHztZ94ry 4QQlh9FZpp0RMFiuKsKXJdxqjbfJVzo/mpNrBFKqqQ13UNqyD/68aUvCOf2usbMDygYQ uvVvv+VUrMYejb5CxycGVPcg8srsWW6LnHiPMmTRyheVemgq6G9CoNOmoKAxfgsgOnRG 9hUm4AWSil8RFvNcyL/hR0cm2gtADoB1UQccYYkq8QLqUTGys9totfR5nIFwfrk0uwoM Oc6AtL50WuGb3qi8l/I1LYS/CnJjHK0CJxb2F+KDGp0GcLTJhwZ1hdKWidW74kHSh5oM Z2Kg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Srrsk3GaG2l/1x3OqUhXxjfIG1TT/0lffWIpLgqEvQ4=; b=jP8d1ozmhkZT0mey2hCdInVpxcQQrhgmv+26nMrXRs9udw8469gMgJe0738ZFNKp1d hb7oQCrIDOPp8pw6GcqLO6bm7UuFFl+LGQgo6AdNGBJhW48cOV3v+BYHpiHps7SvEmIq 7ldENqlY2yORQQE6OfwmVCv/oc6y/vOwjtW3PSAftSHWYvko6+zqDB6p5mBECnzBjquT gC0qc8jC70n7NzQ414zL4c7enWSDKc9OLzHsiCbZ9fktk7lZglIaG4dzf2qvPBvi3IcH xTHKvw/moAMGqovAmU3o8uje2PmGP7/FebDtYiJlpFgtib81h6BkX1NqJAow2r8UlDMt VXTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=g0+82joA; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k11-20020a62840b000000b00560ad1951e7si4332604pfd.356.2022.10.03.01.21.18; Mon, 03 Oct 2022 01:21:30 -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=@linuxfoundation.org header.s=korg header.b=g0+82joA; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232113AbiJCHpN (ORCPT + 99 others); Mon, 3 Oct 2022 03:45:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232228AbiJCHnw (ORCPT ); Mon, 3 Oct 2022 03:43:52 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E4585727C; Mon, 3 Oct 2022 00:25:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 400ECB80E6D; Mon, 3 Oct 2022 07:18:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D7A0C433C1; Mon, 3 Oct 2022 07:18:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664781525; bh=wa4Do4daHGoSjRqKXUWxffT+Kt2EzKtJY/TVXVUcLNQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g0+82joAcQPAFrpZovwusz0N6CRM2IIXzmRAE9vPb+lugkXDXoFrMPIUTrGJ+GB5p tEGMdpzIh2wT0PV0zHo0wneWIxVC2O5a7Rq77uMnEMEwDsgT/XyzmCQHx7GFOXDHy6 uHOUa/vUXw4OTmahFz3puvZAlqQqyevdd8QE++/g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Philippe Schenker , Adrien Grassein , Neil Armstrong , Sasha Levin Subject: [PATCH 5.15 51/83] drm/bridge: lt8912b: set hdmi or dvi mode Date: Mon, 3 Oct 2022 09:11:16 +0200 Message-Id: <20221003070723.280873664@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221003070721.971297651@linuxfoundation.org> References: <20221003070721.971297651@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 [ Upstream commit 6dd1de12e1243f2013e4fabf31e99e63b1a860d0 ] 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 Acked-by: Adrien Grassein Signed-off-by: Neil Armstrong Link: https://patchwork.freedesktop.org/patch/msgid/20220922124306.34729-3-dev@pschenker.ch Signed-off-by: Sasha Levin --- 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 0fae72d45040..6e04d51b4636 100644 --- a/drivers/gpu/drm/bridge/lontium-lt8912b.c +++ b/drivers/gpu/drm/bridge/lontium-lt8912b.c @@ -321,6 +321,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.35.1