From patchwork Tue Nov 13 11:16:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 13 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f200.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id 739B22E5422 for ; Tue, 13 Nov 2018 12:17:23 +0100 (CET) Received: by mail-pl1-f200.google.com with SMTP id e97-v6sf9263133plb.10 for ; Tue, 13 Nov 2018 03:17:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1542107842; cv=pass; d=google.com; s=arc-20160816; b=koXDD47meyuiqJsBepH/lcGo8webkGpuNRSNNJybZj7UKZtMRevR8xQrWQulgHecCM 08zSlq4jxfSGL3JtQV4UHAqYAATNlq5jlYUH5mX5Fnm51Ck+ocQOOqDRSYXk/yqywjgo Lz3MIpmVNY4wSm4VmJB1+sttugvf4wr0FiQiXNIrbuP6FECQ9+lo+DS0Ahd/N4GUlBR4 lfjjmjq14NrBKRJ88UB9Asj9ZsrIj9exH4tt694mmFDQZuXa9W+qqI4eXLr8mMuwIwt7 PudIA+xcIYuEU6a321i1fhmwtwlLwE5OuV8sJyT1ELXha+Y3MdnfCDidzaPjgzTrmCn3 EP1Q== 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=ApZWPImHu2e5kIQ/lZRTI9q9deZXPU/lg4XTfo09uPOvA2VmRrEtPvFD1xuxsRkWjV 65+/i1jdWsUV390F9nBzyX7tqTj1yix6Boo1Ag/zZZ6c4QKVTqB0DfsqhUgCedNeykdt PFmnGaQP2R2orDnopQcFaoFiwNTk2UbALA8/A3dPotcE5Ryk8AKsSAOthQHH1/h8GWJE cckenAchvjb53b8rxdQY6EkG5rdN2dxdgLQwPrKnJNvqKg5LuO/m3O8RUJyDc2j41wPE zSNbLdpsrWdCGV8xeeGgzk0fwE/XZn+a/6zn79BWnNSxanGvbld94R6CCnAC9SMd5cmX UxdQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VFv7Hyja; 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=CFb9NbqG6FxYxZCv0YH59mtEHpdzkT0tKAvHDN2gYeTJfC49i8G1aJP/tEDfHYdu/Q eUQYKt+/VjydDxFWut8T8dVLcrcYqlIxvVQxxCUGZNINJI8Mo2zYQxNzNsB9TmeIEDBn pphpMnqyVti3Ae8jYKpl1EvVwSJtIL5wA3vWs= 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=r/uvsIVGu+zvIdTFUbbzyrcaRxy57eoYqOg+AJXnRvfRSheuE7ut+oZ5ANwuiQi6Av Gh40YgI8K/Epp5Tbu8Zz/tn0k/aHtYqkFmOpkQWFwLLVnOC6yRn7KyXMjO+RNOF/o4kQ zhYq82HlvoEUaiBJxKeAVxJpD55Ay6vb2m51fmRoQU9lpAkZKA8phpT9Dj77bMT69cB+ qyKK5uEgo+VBC/udC6LtWKxZ/hi1NsWnt4vQeIPr1gTcJyWZ1iwQqYxcAp81CwiR91fV jn4pctk/mZUAcLQ/MNIjOXqFTxX/jU/+7vg24LXCrJ11uF+NopTdNmzseRfiuf49Cgs8 Anvw== X-Gm-Message-State: AGRZ1gLTHiBCRRaOFGW58Up1Z3wqeN/NtcZEP9WV2aKexpJoRjgvYUoX kA5Ax6KkCd/y/jcPIy5I+Z1Bp9N7 X-Google-Smtp-Source: AJdET5ecprHGNBXGhOb09AsDDmM7+6VOTpyPUYUzX8DKVX6+S0f5kHEko7wgftGHlTBoq1E6urECQQ== X-Received: by 2002:aa7:8310:: with SMTP id t16-v6mr1088845pfm.34.1542107842179; Tue, 13 Nov 2018 03:17:22 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:938b:: with SMTP id r11-v6ls4173130pfk.12.gmail; Tue, 13 Nov 2018 03:17:21 -0800 (PST) X-Received: by 2002:a63:5664:: with SMTP id g36mr4317008pgm.313.1542107841873; Tue, 13 Nov 2018 03:17:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542107841; cv=none; d=google.com; s=arc-20160816; b=RRXGdxb4h5ev/bOJwxF0de+1q5+ZL4ESmkis70eYfcWZCgGygmW5MA/IwbSUkeRSJn pDaIuvvJ5Siv0UdiqC8x54NFwfMSvTsiO4VOFcpcM7Lq2Xi9VsKxDlbp3zqctfv9bX7j eD9KgLbf9QqVLnhcaUrWdnIGZ5g5D9hzGSkp7Mzwy1cvpwpi5IMb4Lkvqp17dwD49aG/ mtDMqjGPL/j6ozg5otAZhoPfNhT8Q0MJo7ZYZt0j1teD942PtApuh8bGc1IjM2qezrrl p/KnMr29rlZUHBmo8t9XaFJoMnn1irotzRZFKXf53u2w8A+2Hu+DotVONUKK8rIqsSTv dd2w== 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=DhcDXXJZzUUxJQcnkeGxWd76PTUDOALrj6AuG/D/mmYusUSGFl+a1WH80WxN0OhXiq iysn0JJYTIYILVIMrmyCPs9/Ru6OJD4sIn5vpNCQPoIXPRANd5X3mMh3D5j6t2h5mvSY SXIx3qqGFGITBNzvlYvnBCXo5IhSusvlGsDYqNh2OVUqRmgGH26YSxz+qK/7ksP6HZGY oBEUBEcCzqrbRKqtYiTR7PTLMlMJLQpUqyHxOzmr0FUn0Z1Za4JC6zkY2T/oNlg8a/IQ Ncu/f57m6ntUqBt539xxJ3XZ2zyhRnyq5KEWqwwPzFmSsxmYPyYhmotEO/O1Huyks5PX Ut4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VFv7Hyja; 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 w10-v6sor22655982plp.31.2018.11.13.03.17.21 for (Google Transport Security); Tue, 13 Nov 2018 03:17:21 -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:a17:902:bf03:: with SMTP id bi3-v6mr4742841plb.288.1542107841544; Tue, 13 Nov 2018 03:17:21 -0800 (PST) Received: from localhost.localdomain ([2401:4900:3670:3f11:bc71:2ef7:4a39:e260]) by smtp.gmail.com with ESMTPSA id 27-v6sm28531377pfm.36.2018.11.13.03.17.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 03:17:20 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , Jernej Skrabec , Vasily Khoruzhick , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , David Airlie , dri-devel@lists.freedesktop.org, Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, Michael Trimarchi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com Cc: Jagan Teki Subject: [PATCH v4 05/26] drm/sun4i: sun6i_mipi_dsi: Add Allwinner A64 MIPI DSI support Date: Tue, 13 Nov 2018 16:46:12 +0530 Message-Id: <20181113111633.20189-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181113111633.20189-1-jagan@amarulasolutions.com> References: <20181113111633.20189-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=VFv7Hyja; 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);