Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2532546ybl; Sun, 11 Aug 2019 03:41:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxtBhxAql+vfXUa1PVwTerhWotH+xha2gYq4UFB3GK409zo9y/kc+A3JHWAJWnyNUqcYsX/ X-Received: by 2002:a17:90a:ca11:: with SMTP id x17mr18553241pjt.107.1565520092922; Sun, 11 Aug 2019 03:41:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565520092; cv=none; d=google.com; s=arc-20160816; b=HPsl22eZ0s/S0aX6OX8icCUJ9TXK7Vo49pEQU1KiLXn+O01Uh881zhEqo3rOQmyT4a mqs/nwXRcfVOUB0H4d5oIMitSTuzPLHRLegNgaAoFGalE5tkwCoT+ZmHjqpqScCfHL8T +sZh3GGVe1sbOLSIAFQK/F+qnmSk2REUCw1MfseRzIGbF4dF4tzYWKnrJV2z1WVtwW5q YSrv25vi500mKF/mfhsOQlcaSvX5eABxJhHSYgA80KYz2RiEjqu6tpJZ0sMlU6RCFILV pCzm4iEwMm2t/HLGGsR9ko54wZ/28wceb1Vd/9maO8p1m1FNp/WQVzR4YWR9vMOBqQyH C6EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=EbHK4qp+8UtOCFNQxnLAHzTnGZAFdXrpxkt8KaByQgE=; b=CCvGUher/I63UScVP/proL+hl2hOJpvdAOgMqf5AEHUkE9iSj8UzMxxoMJ6BQV60cF tq+eM1mgIwvdADqp1vZkSpD3ahAktaxWUumE9vhVeh/oluZt8oBng8hf8dK9n6HliHsO z4vok+7qmDy/Ncs/2U6epbtGxQaLF7RmrtJuQesyb8S7EzlvHXecq9pwGTPSXg5ig8HM Ig5TgaAFqVuX/2RrS+xXpOJ7g/sIbLdhBE5RuqVAheZOOXsPCP5RKQ4Fod4nQNeS1MSJ 9tof+EFxHetm6XjcbEjAZ6QViQuQAIfMEC01rnpmyZmxNg4E/vCPugCe36sPH2B3EtcD KQmw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i71si55432384pge.3.2019.08.11.03.41.17; Sun, 11 Aug 2019 03:41:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726453AbfHKKko (ORCPT + 99 others); Sun, 11 Aug 2019 06:40:44 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:46132 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725810AbfHKKkn (ORCPT ); Sun, 11 Aug 2019 06:40:43 -0400 X-UUID: 9504157131724bf1871e2df9da07d3bb-20190811 X-UUID: 9504157131724bf1871e2df9da07d3bb-20190811 Received: from mtkcas35.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 308937542; Sun, 11 Aug 2019 18:40:28 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS33DR.mediatek.inc (172.27.6.106) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sun, 11 Aug 2019 18:40:22 +0800 Received: from mszsdclx1018.gcn.mediatek.inc (172.27.4.253) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Sun, 11 Aug 2019 18:40:21 +0800 From: Jitao Shi To: Rob Herring , Pawel Moll , "Mark Rutland" , Ian Campbell , , David Airlie , "Matthias Brugger" CC: Jitao Shi , Thierry Reding , Ajay Kumar , Inki Dae , "Rahul Sharma" , Sean Paul , "Vincent Palatin" , Andy Yan , "Philipp Zabel" , Russell King , , , , , , , "Sascha Hauer" , , , , , , Subject: [PATCH v6 0/7] Support dsi for mt8183 Date: Sun, 11 Aug 2019 18:40:01 +0800 Message-ID: <20190811104008.53372-1-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-TM-AS-Product-Ver: SMEX-12.5.0.1684-8.5.1010-24840.000 X-TM-AS-Result: No-5.718800-8.000000-10 X-TMASE-MatchedRID: PCFkxA7eE66hZP7w7B20aBIRh9wkXSlFNV9S7O+u3KadzjX37VUcWqEG Khm9baaNNopdIl2CpsDdUKRFRakaQnimQCA94R1WLbjXqdzdtCX3/H7adAffkmu9/l5WAy7sO9Z u2UZqoB4haUDpkJbehghuCIQJ30DP0Gz/Cfu4aZIaLqFbxdotGfG6GRFYrbYYHWtVZN0asTiBE9 XLgD84RgQiZjW65EMBAdXPD0156qGvvxILmKK/HBRFJJyf5BJe3QfwsVk0UbtuRXh7bFKB7pXkZ x4nnABf5ZwGcBkyiq7xZlyRTC5yty9XGqRRih6PS4W/MRhJ1X4= X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--5.718800-8.000000 X-TMASE-Version: SMEX-12.5.0.1684-8.5.1010-24840.000 X-TM-SNTS-SMTP: F80B6B3FC6BAC26A8837D7BF87385F3155E757CEC496A3054F68F3063D8FE6672000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change since v5: - fine tune dphy timing. Change since v4: - move mipi_dsi_host_unregiter() to .remove() - fine tune add frame size control coding style - change the data type of data_rate as u32, and add DIV_ROUND_UP_ULL - use div_u64 when 8000000000ULL / dsi->data_rate. Changes since v3 - add one more 'tab' for bitwise define. - add Tested-by: Ryan Case and Reviewed-by: CK Hu . - remove compare da_hs_zero to da_hs_prepare. Changes since v2: - change the video timing calc method - fine the dsi and mipitx init sequence - fine tune commit msg Changes since v1: - separate frame size and reg commit control independent patches. - fix some return values in probe - remove DSI_CMDW0 in "CMDQ reg address of mt8173 is different with mt2701" Jitao Shi (7): drm/mediatek: move mipi_dsi_host_register to probe drm/mediatek: fixes CMDQ reg address of mt8173 is different with mt2701 drm/mediatek: add dsi reg commit disable control drm/mediatek: add frame size control drm/mediatek: add mt8183 dsi driver support drm/mediatek: change the dsi phytiming calculate method drm: mediatek: adjust dsi and mipi_tx probe sequence drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 +- drivers/gpu/drm/mediatek/mtk_dsi.c | 224 ++++++++++++++++++------- 2 files changed, 161 insertions(+), 65 deletions(-) -- 2.21.0