From patchwork Mon Dec 10 16:17:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 75 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f72.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id CE9D72E54A3 for ; Mon, 10 Dec 2018 17:17:50 +0100 (CET) Received: by mail-wm1-f72.google.com with SMTP id o63-v6sf4860360wma.2 for ; Mon, 10 Dec 2018 08:17:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1544458670; cv=pass; d=google.com; s=arc-20160816; b=PhWNe6k5OHDOqM9MzmPq1K6sh5kDWQDyMfv5OTT/sWelsPribml2xMzCBH/2N2GyN5 cSySTF4xNG4lqTdNdLJWT4bDQtdzCrW/FMkcrgZGtfHwP75ic81CbAsDKniSeAQnWx7c a7BITO8aw3feavXIgUxdejoU+AwQXNh2iFh4cJ08L9XP7A5pdZ+rC7Gy6GmgpCGNkc18 6yCHes7xCnH+vjNkBtIjJoyipYw5twnhrkByR9QfSRwnt6Qs3Sdj+kUTihlj4+M4n9gn /08Q/7nVLbjSwA0WuyYPNyVVIep0HU9ERWa2kp0C7SP3THTVYy1c9GdfzWZYVVHycXrz dy0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XHVyHtVc0G3Kpp5cjsZwGbecU0Xlg/ozATiwaeVvdoQ=; b=P6pS8Ln+ZqCMxTXqSyisO0CzKw0Xv1tgrxlZvGjRfwtuMw9r3ksoPR1cTtVTq5v0tq 8OYrphuQnPITlAbSvG51ylzzX2YqwqBtIRWcwrt6EugUP7CgWK6uH6g5d8IaMgddGHjU OiT8LNUX0HQoCgvRRhc9RH0zVnm+FpMq2Nx9ZY96evCLkjLDBf5gd3XHsX5o4MOuSRpV FwrBL/oK4DWo0D90NodD8SYZdIkLOXWJlXqM0WZMYWIsu3iw/wExcc8Kd/iLO8OJ2XKr 2+o2onNaSXx5NLziX7YbrGtGneoP3qhFdGqRslsxGEA7y9zLxsvPGMQEk5WXwkBc/2G1 xr+g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZE9ajIXq; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=XHVyHtVc0G3Kpp5cjsZwGbecU0Xlg/ozATiwaeVvdoQ=; b=phlRkyrXrMCkl1pPkmC2yX3d2lNkyumbkF1R1TfmvVkGbVgCzwQrLm3zcLCXAb9nxH gEnwaMc5iiZTRmxBZQUKUd7ZJ2CudMRbMfQbLC284/NSntJV9Oc6WKWxaX4iNp9aWgLL IS0G1GFGFs6rM6qbt4X3rceP6i55nCJiwr6x4= 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:in-reply-to :references:mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=XHVyHtVc0G3Kpp5cjsZwGbecU0Xlg/ozATiwaeVvdoQ=; b=PMmOzlyyPUkxJqUu5Ap5TPQmVp1koeVGNv2Rahd24D2lnI1Y7oT1b0J6MUubxcjkdf /+dUv0zBgtWgHKFt6dttlMXFmlmExxtwb0rTFex2oqos1yQ4erVQP6NoEgPIhvAXeujB dl2wY8MqgSdIzfpOobLd39nOxdttcN34w9BF7LGqaxHUrHnWp6tuYy60Mz89KUiBLOFv VNZeMhnIW6Pk3LQW+JCiCqoAZooaqKBrNXJNv3Y0bJ0pTqJbH6Ygimah8tFBpd5NOvCp glS447cCa2OU86CgTIXHp2HfK6r97hCzQwMxzvWCU/MtB6iVs41+ogx+fG5Rhd5jHhOX X3XQ== X-Gm-Message-State: AA+aEWZmwnn9UA5EG/V8Q68BBSlB59Ch1+A+1FyVQIQBXyIaRN1gUevV 1FmCtBmq+TIWWfoLc0dYz07CtM5v X-Google-Smtp-Source: AFSGD/VJvL+6eC8PNgXfwP+WoPymP3YMnhbt5LPlRFnGDCrimbt5nWD/BsPcde10aVklsbUeZraViA== X-Received: by 2002:a7b:ce08:: with SMTP id m8mr1447014wmc.22.1544458670551; Mon, 10 Dec 2018 08:17:50 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a1c:da4d:: with SMTP id r74ls1847977wmg.2.gmail; Mon, 10 Dec 2018 08:17:50 -0800 (PST) X-Received: by 2002:a1c:ab87:: with SMTP id u129mr11169976wme.104.1544458670153; Mon, 10 Dec 2018 08:17:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544458670; cv=none; d=google.com; s=arc-20160816; b=PsEY53RlxMRWzbA+hBJ2OoJCEBmILWHqFfOTgBo4aRNqhrmDCDRe7a7BgKmkE2gpuJ F8vDU+bgHMqPbE04Qh5UrG/kIR9osHMJCtOd8EvrjhWbIbLalGPrHyAoIDzfR2y9wJFb jldg2rRI3uwSEYRZSgnhayCdI15JsKtVnl43Rlj4w/EUpzIucSav7nTj/ZepyyXxTOt8 lLdk5hfFYDnmiluUVaEDYutjOswFM3q0j46kMhMvcwJ7QeMqGP92dxa9Cabe02Z3/rmg 6LJuGwBMowy8KVQverMaEEphEtwahZolHGBK0uGnT0vjHR24uLbgY17tBKARFppjlSOB AT1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=XHVyHtVc0G3Kpp5cjsZwGbecU0Xlg/ozATiwaeVvdoQ=; b=yj6ekE/U7ndpM0varmsPNyPBn5cyOfnnFnBW4bB9wQU9lKm6dGhYTgwOGDkGyBgQdo Obk0aqoQw3u9PduP5O3/rwDtzRBNal2MofAo4ebYEaDg9qwEp0tlBKPUEBsgJqPwYaBY l9Y9PKOg9g6Yr5QkeClPjpDd1tpLkOWvo0vGH7GRxYk3G2Jpzu7hMNmHhR/DMEgtHB84 CJdL2vcp7xL80V8/NdvCLZvNFc0p0bt/DBJWr8VhNiXXFUd0WWL0eVO4S60IsKuacf7r RkqqIqfeowsH06Nw3Vkj2lpz6yT1SQOApadH0vvxTnqaJ4OEXyKTAF02W+5nB6uRske4 jdZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZE9ajIXq; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id i1sor8171002wmb.11.2018.12.10.08.17.50 for (Google Transport Security); Mon, 10 Dec 2018 08:17:50 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a1c:a6d7:: with SMTP id p206mr10662383wme.143.1544458669864; Mon, 10 Dec 2018 08:17:49 -0800 (PST) Received: from localhost.localdomain (ip-162-59.sn-213-198.clouditalia.com. [213.198.162.59]) by smtp.gmail.com with ESMTPSA id b13sm8397503wrn.28.2018.12.10.08.17.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Dec 2018 08:17:48 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Michael Turquette , Stephen Boyd Cc: linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Michael Trimarchi , linux-sunxi , linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v5 03/17] drm/sun4i: sun6i_mipi_dsi: Add Allwinner A64 MIPI DSI support Date: Mon, 10 Dec 2018 21:47:15 +0530 Message-Id: <20181210161729.29720-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181210161729.29720-1-jagan@amarulasolutions.com> References: <20181210161729.29720-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZE9ajIXq; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The MIPI DSI controller on Allwinner A64 is similar to Allwinner A31 without support of DSI mod clock(CLK_DSI_SCLK) So, alter has_mod_clk bool via driver data for respective SoC's compatible. Signed-off-by: Jagan Teki --- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c index 561de393ea23..50f535ae57e9 100644 --- a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c +++ b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c @@ -1120,11 +1120,18 @@ static const struct sun6i_dsi_variant sun6i_a31_dsi = { .has_mod_clk = true, }; +static const struct sun6i_dsi_variant sun50i_a64_dsi = { +}; + static const struct of_device_id sun6i_dsi_of_table[] = { { .compatible = "allwinner,sun6i-a31-mipi-dsi", .data = &sun6i_a31_dsi, }, + { + .compatible = "allwinner,sun50i-a64-mipi-dsi", + .data = &sun50i_a64_dsi, + }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, sun6i_dsi_of_table);