From patchwork Thu Nov 17 12:25:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 21626 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp372143wrr; Thu, 17 Nov 2022 04:32:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf737BlzW2HLaGELA28QzTTRATQ3/bUJUuX6NJ0YVdMIWoDJ8rq59oifMTDPbqODvnGyEfFF X-Received: by 2002:aa7:9159:0:b0:572:24c7:34da with SMTP id 25-20020aa79159000000b0057224c734damr2736644pfi.73.1668688348474; Thu, 17 Nov 2022 04:32:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668688348; cv=none; d=google.com; s=arc-20160816; b=ApRkSumbovmRhCC8t/bNBFj6/oTPwr4BCxE5cnUqxQflCflq+FJCw8rk7+2TUFPP2a j2zy7KUXS+DJtV3GKQdkm2CsCY8oUIxZ9m42vHHMdgKEO7dpQ31mvjL1ln10iKPI2Qmj AbzO7peXpkINnsujv1p9QkI9bOb/CFDkOXMonhlyBiB1TWJzvgLAE9ZaDEZMGPccPEhM 0v3+kcQiC1BDM9NXdQLeOKUhfpw4T14k2M+T7pAUTuGVyhz1G9NlD9OjqcvcwChnZAZ8 ZqeVq2wHjq4JxWlHpN9gCcPRvltaTyXY/wivp0i/bKmQ9FuNBGUHMlqq3PhhrMLpCf06 lc7g== 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=mX1sm4NOm+zGCuvHFLoQODnm6H1zkCSxGCqM84da3R8=; b=sru+hAjwSpXQQhJM6+W0jmAelh3hUAv2ZE9vcu1iN93HvRw2KGd57T+zTVe+cjmcsm YFD7TsWLXc6PFFco9KtUgIiPXeqifsWr51NZdI+w+xXPT3Qmly6GPZJp6OShyEgrwpNq OwtDye9kHxdkJMvITk8HbNjGhFcPokQu8XVWWk3HOZKjLHQ6SoHtteUDaXvBccvELBTI gBctWoQuzBC97qyedzBM9v+xqKighWuIqE9qa2XjAZuVC1CNZa8TDlvxSfgOD419xFsk iEiw3C27EikUFB2M6twZ+SSaPPvuCd1KBr+vpCq1WdhondjoLItW5LKQMVfsfx1ebc78 cdHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=wNY4TSTe; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w130-20020a628288000000b00571b10549b0si758496pfd.87.2022.11.17.04.32.15; Thu, 17 Nov 2022 04:32:28 -0800 (PST) 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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=wNY4TSTe; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240157AbiKQM0m (ORCPT + 99 others); Thu, 17 Nov 2022 07:26:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240119AbiKQM0U (ORCPT ); Thu, 17 Nov 2022 07:26:20 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AE1A71F10; Thu, 17 Nov 2022 04:26:19 -0800 (PST) Received: from desky.lan (91-154-32-225.elisa-laajakaista.fi [91.154.32.225]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8A02D1056; Thu, 17 Nov 2022 13:26:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1668687975; bh=J7rA5IBGFcu2N7Sh3o6C5ykD706eiPf84CkDTha4nHQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wNY4TSTe80fO5UHNwpmW5p9FeBFOvLGMBpmDKusupfPJBwNft9UY64m20BgSVrMhp OFpQHTJgqxy3ENwgGgvC/Rw2CvUzTEf5+8wf4/qfQsclzSah94HdsJ2eok+E/AHgzi VPSK4RmEw/d0VqMmQIrPhgfWRYFNewVCjC+WBfGg= From: Tomi Valkeinen To: Laurent Pinchart , Kieran Bingham , Rob Herring , Krzysztof Kozlowski , Geert Uytterhoeven , Magnus Damm , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andrzej Hajda , Neil Armstrong , Robert Foss , Jonas Karlman , Jernej Skrabec , Tomi Valkeinen Subject: [PATCH v1 8/8] HACK: drm: rcar-du: dsi: use-extal-clk hack Date: Thu, 17 Nov 2022 14:25:47 +0200 Message-Id: <20221117122547.809644-9-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221117122547.809644-1-tomi.valkeinen@ideasonboard.com> References: <20221117122547.809644-1-tomi.valkeinen@ideasonboard.com> MIME-Version: 1.0 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_PASS,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749746553391419066?= X-GMAIL-MSGID: =?utf-8?q?1749746553391419066?= From: Tomi Valkeinen Renesas BSP kernel does this for Whitehawk board. It is not clear what it does, as the bits are marked reserved in the SoC documentation. Do not merge. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/rcar-du/rcar_mipi_dsi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/rcar-du/rcar_mipi_dsi.c b/drivers/gpu/drm/rcar-du/rcar_mipi_dsi.c index 723c35726c38..c264cb689664 100644 --- a/drivers/gpu/drm/rcar-du/rcar_mipi_dsi.c +++ b/drivers/gpu/drm/rcar-du/rcar_mipi_dsi.c @@ -598,6 +598,10 @@ static int rcar_mipi_dsi_startup(struct rcar_mipi_dsi *dsi, return -ENODEV; } + /* XXX HACK for Whitehawk board. "use_extal_clk" from BSP Kernel. */ + if (dsi->info->model == RCAR_DSI_R8A779G0) + rcar_mipi_dsi_set(dsi, CLOCKSET1, 0x0100000C); + /* PLL Clock Setting */ rcar_mipi_dsi_clr(dsi, CLOCKSET1, CLOCKSET1_SHADOW_CLEAR); rcar_mipi_dsi_set(dsi, CLOCKSET1, CLOCKSET1_SHADOW_CLEAR);