Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1266853rwb; Thu, 22 Sep 2022 12:27:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7lxfIl9wGRHCPKxmzzA+VSKsUYow6jmOzgqwIZpnIosINV3asjP2Jo1dEN8YqkA3e61aD6 X-Received: by 2002:a17:907:2c54:b0:77d:971f:be12 with SMTP id hf20-20020a1709072c5400b0077d971fbe12mr3954392ejc.560.1663874856656; Thu, 22 Sep 2022 12:27:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663874856; cv=none; d=google.com; s=arc-20160816; b=vKkRdedLFtWn9ndTisgQj7dkF9DfkdLXz9nlehpgIOgaWF2yUKqPbzZNSVLtM19QQo fEaWa97QuR7omVYC71dQ3U0erdjyoE5H+hKfKzl/fDRSsHyeEI9NtwKfrSHSraSCO1Yy OrzAAy8Hllw1ajaISuStZk82GwgGG9lR8w8+IWv+f0pj22qWSC4A5Ain0o1bM7LQCGrG 3CdbMvU+9PydTg9KWMF+jD6xMMoevatM8+Kvn79HXVA8eMcXJfbFUle3vA06Cfx83BVe +FpME3Cf7CPyuIFbRwLvDY9MTbEOF+gQzkpgDbntFvPdlKpwDMspj12JeI7KDPgEcnTd Sh+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=P2G+h7SMpgZAj0ir+cJJ3OrD93Kkyvw6av5m2/MqFrU=; b=j2nUV9q6DR6p7OGh2zdeVce9e1m+9qoIRrQpXdzynUzkAB2lHFuliQ+9j+IyaVGYBS LOjBbub1Lbwehif1JXooBQXpG4koGkN7itBTP33OtI48Cwq4ALZSTdFplD7EkYaKw9rq NWw9AaByg+IAifQGSg+Vqomq7+lQRMZ/mMO/FlSmWd5FbNEWJQWxXnxvQoSwLPr+ELcI v0b3ZzBBD34zNh8YU5Fm3dcmy4IMzoJz0542gxB8x/zZDrx7aq58QuL+fVsCyyBVMkr+ a8BcrM6xGViJiT9krZMRdOpC3okIDlZpzPz12snZAZaT6v1LyOm9RWAg4uQ7ry+HMIpK oyyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EPPhzxlx; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hc17-20020a170907169100b007822665aa3csi5185560ejc.911.2022.09.22.12.27.11; Thu, 22 Sep 2022 12:27:36 -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=@gmail.com header.s=20210112 header.b=EPPhzxlx; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232661AbiIVSae (ORCPT + 99 others); Thu, 22 Sep 2022 14:30:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233163AbiIVS3u (ORCPT ); Thu, 22 Sep 2022 14:29:50 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3A6510D0CD for ; Thu, 22 Sep 2022 11:27:30 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id iw17so9631291plb.0 for ; Thu, 22 Sep 2022 11:27:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date; bh=P2G+h7SMpgZAj0ir+cJJ3OrD93Kkyvw6av5m2/MqFrU=; b=EPPhzxlxohXjUEfjcoxBXBc2UpUI4B+r6Z/jngunTL0ICZiBTmGkOrX14rPtWysqEm hS2JQF9VSOQDmp1k32CpZI96IrRwOz7OtAaxDQnZMVDOQssBj/cEdTIzXFPP7WVQ+9sY 9kwPJ8ZWPySmPsQ0rHoNML0SmSq+1q9CMp1gdems2EGTmYmxSlF5UYyZiX2Ckq+/gc8E OWZOUEdOWI/4UjRA7zo+Kbeen9ns9/AJsRS56rWLrae9D0IF3yHpa8vNkdeY6QIyQr6q rBCx4Skwvgy/b6Tx7Gk7XQLKEMV9S9mCh5EvC5ut/FVRcESOAKGAwHxt1k+4hviHkKZh Qk1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date; bh=P2G+h7SMpgZAj0ir+cJJ3OrD93Kkyvw6av5m2/MqFrU=; b=gB2xnPLJrkx1p5Im9/7TynaGAqda/7bE3uuUEJhL4H2kmaIMK4wCkbiXTapEdWSRVR K1ecJw0RAvVjreoHtxPS6ti/142PIQI3DylQBfmFObBRCoHpBg9gtvuNcjojzALX9vl7 kpv0DPqmf52x1OQkKV5NDM3AZ2QFzYx2Jh449LJkLirGwNd9WE6CcfktklzExfBDHDa6 /3FgU7NcryWjssCAK/9r1CrSKrWbLAMQYtmaNCAzCYQjqUiXccGnbryIcIFxqn+Vg79+ ITI6HC0TdTgRzLjKwiuJ/5ooZV2IxfTV1eiHlsVQy7wWex6aw8MjE/08bdczx+/V+FAo 4DbA== X-Gm-Message-State: ACrzQf1W+auCSx7q8uL3sWsrr5TN/LvcOOD5Z70bFSfTxHQ62qrjUEG3 fYgSuhls7k843LHFAoTr0VA1lUFYija37woAwjs= X-Received: by 2002:a17:902:7e83:b0:177:e667:7841 with SMTP id z3-20020a1709027e8300b00177e6677841mr4505384pla.18.1663871225158; Thu, 22 Sep 2022 11:27:05 -0700 (PDT) MIME-Version: 1.0 References: <20220922124306.34729-1-dev@pschenker.ch> <20220922124306.34729-5-dev@pschenker.ch> In-Reply-To: <20220922124306.34729-5-dev@pschenker.ch> From: Adrien Grassein Date: Thu, 22 Sep 2022 20:26:54 +0200 Message-ID: Subject: Re: [PATCH 4/4] drm/bridge: lt8912b: clarify lvds output status To: Philippe Schenker Cc: dri-devel , Jernej Skrabec , Jonas Karlman , Robert Foss , linux-kernel , Daniel Vetter , Neil Armstrong , Laurent Pinchart , Andrzej Hajda , David Airlie , Francesco Dolcini , Philippe Schenker Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Le jeu. 22 sept. 2022 =C3=A0 14:43, Philippe Schenker a = =C3=A9crit : > > From: Francesco Dolcini > > Add comments on the lt8912_write_lvds_config() config to document the > current settings and to make it clear that this is a hardcoded > configuration not relevant for the HDMI output (could be removed without > affecting the HDMI port). > > No changes on the actual register writes. > > Signed-off-by: Francesco Dolcini > Signed-off-by: Philippe Schenker Acked-by: Adrien Grassein > --- > > drivers/gpu/drm/bridge/lontium-lt8912b.c | 26 ++++++++++++++++-------- > 1 file changed, 17 insertions(+), 9 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/lontium-lt8912b.c b/drivers/gpu/drm/b= ridge/lontium-lt8912b.c > index 5968f4af190b..3e870d45f881 100644 > --- a/drivers/gpu/drm/bridge/lontium-lt8912b.c > +++ b/drivers/gpu/drm/bridge/lontium-lt8912b.c > @@ -165,24 +165,32 @@ static int lt8912_write_rxlogicres_config(struct lt= 8912 *lt) > return ret; > }; > > +/* enable LVDS output with some hardcoded configuration, not required fo= r the HDMI output */ > static int lt8912_write_lvds_config(struct lt8912 *lt) > { > const struct reg_sequence seq[] =3D { > + // lvds power up > {0x44, 0x30}, > {0x51, 0x05}, > - {0x50, 0x24}, > - {0x51, 0x2d}, > - {0x52, 0x04}, > - {0x69, 0x0e}, > + > + // core pll bypass > + {0x50, 0x24}, // cp=3D50uA > + {0x51, 0x2d}, // Pix_clk as reference, second order passi= ve LPF PLL > + {0x52, 0x04}, // loopdiv=3D0, use second-order PLL > + {0x69, 0x0e}, // CP_PRESET_DIV_RATIO > {0x69, 0x8e}, > {0x6a, 0x00}, > - {0x6c, 0xb8}, > + {0x6c, 0xb8}, // RGD_CP_SOFT_K_EN,RGD_CP_SOFT_K[13:8] > {0x6b, 0x51}, > - {0x04, 0xfb}, > + > + {0x04, 0xfb}, // core pll reset > {0x04, 0xff}, > - {0x7f, 0x00}, > - {0xa8, 0x13}, > - {0x02, 0xf7}, > + > + // scaler bypass > + {0x7f, 0x00}, // disable scaler > + {0xa8, 0x13}, // 0x13: JEIDA, 0x33: VESA > + > + {0x02, 0xf7}, // lvds pll reset > {0x02, 0xff}, > {0x03, 0xcf}, > {0x03, 0xff}, > -- > 2.37.3 >