From patchwork Fri Oct 25 17:56:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 880 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 46DB43F0E1 for ; Fri, 25 Oct 2019 19:56:47 +0200 (CEST) Received: by mail-pf1-f200.google.com with SMTP id h2sf2467452pfr.20 for ; Fri, 25 Oct 2019 10:56:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1572026205; cv=pass; d=google.com; s=arc-20160816; b=lSHD5MAD+RRd0GfdBs1qBR3kwbt97jA2diD+QDluafJlZjY+MO4IwS5SERqzAOpC51 N8W4jDez13l8/YhDWmUQqTurmgBpdK5L7DqSxZHK8sgQeMLjgfq+ns+3CGBQ6T7KdBds xDjGl5Eo84Bl7WkIW7ApFf7+oRc5ngBaZOC6Wm8hrv3rvgli/DAENt2PW43u13kwi+fb +vWKBaDyDzzB693IPXlONopLVv3T0mYh/5QJZmNcRH7KYsuc77VxEwBTt5LR2VzxKaJn QPjQHAoMhM+Lc6j+kBT9lR3iEk+NgGLmrp/zGwZCJAIZBCvDJtvL/Jr20NL7XOV06Jfl 6DZg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=RKib9kgKp89bNcvr11/iW6/F3avdv4Zs+yDeTLLoZIg=; b=YYXB9KpQnoNXbB4PeAbGv50sdSQXHUFSgCpyi2NGz7V+3SiLeWgdStoR+SegmhEx/t RbEeFdwUqNFXWmbtKyD60172IOjZKLF91wVrYpIbbLWPdaAevene6b+KLtTBmU2sYn8c DlenMJXhjadtIuNAx+zgzJ0d4KLlk4T5bOou5BB6AwiGuz4WPK8fCVULTJNAiszqdShp m/ahoqtaCwH9bq+m0qkXI3Np1+9OTqc0HbxZnaw9iiVsI6ikz+cRqC69aNhJFxjaPcr2 CeBmdeAv4e6k5uAdG41AlQU8WAd4lkdQvdrzQkqqZpi1cSAYERwx5FYQeeISPAOgGhBa OL0g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YhjRITCe; 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: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=RKib9kgKp89bNcvr11/iW6/F3avdv4Zs+yDeTLLoZIg=; b=lNV29Ayh69n3oCpzEMbbRRfFQycfmXpjPbIV+UZv0Rsx+32REhpjOHvzKpzBo6TLo2 FLwKON95BqOX55xSovVFLoaI4qTrH8ux/5D32obzr30BkW5VkbH8HajxYpcFVGHvDo+M pvlVqkGoZJjpY3S4YxZDf8G5357yZFDiXTUuA= 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: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=RKib9kgKp89bNcvr11/iW6/F3avdv4Zs+yDeTLLoZIg=; b=rY6KOeD8TdkIG3e6w3arezdSopOhStXbKPCPF3kMc5GEKsGIrvuvgzfFkLHPvxCRPW 2in1txp8FC+KBHzmfeS/LRsxbzS8IB3lwc8dDFyyi006kFTZOMplbR5uhRPFE6gEuKno pFiVLfC3TGz9kINpbCp3zQs0hGx5Tgx5FhxwvC/PRKUlmSRzCo+L5MDo6+laYJXmCXwn /M20qP75hVyf8FfQI5hkdu/8llgQWFNNspxxGYWcdny3Hs9n65L5MqNGwQLfjY8zaeub Fz/8/nsrmAVdSsTCke3aIjmxFElqWO1Y9goJo3Haf+UEienuRtU2i1B4Q1hfPx7uYC0H JsLw== X-Gm-Message-State: APjAAAWs7NFBeXv9qh6kmNYO0dAYQExrUN0z13RBHY16+WLtJIS/EaF0 0jiQehIAij6Bc3RDIxuW59tBTfFq X-Google-Smtp-Source: APXvYqwHS3rMDrvDs6dF5bFmRS0/0fHQbzzZyNnVxeb8ZEpCR9cmCZktFdNSai+H/FyDV6V0EfsPTA== X-Received: by 2002:a17:902:9a92:: with SMTP id w18mr5153330plp.223.1572026204882; Fri, 25 Oct 2019 10:56:44 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:2a06:: with SMTP id q6ls3054262pfq.14.gmail; Fri, 25 Oct 2019 10:56:44 -0700 (PDT) X-Received: by 2002:a65:6641:: with SMTP id z1mr6055793pgv.23.1572026204185; Fri, 25 Oct 2019 10:56:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572026204; cv=none; d=google.com; s=arc-20160816; b=mWP9TPdNoJy8N9rLaQYyDNknzYQ617DAxNY7t8w3P0iOnKE2yKOKDJqEQl2JiaDn+/ DSDmT8DuP6RzFnfEJ0nKuQgc9fCKugS3h4uKeaNmo7WHDN/+6jjJYWnmRbEw6FWSdw7u J9oVWv/+YrmLJGowUcUhmeF5jS8wAFiUChPg9cH1a2UIHax5ZQQdo7ovJLqLV3I43gUM XFTGuEV5Lf5htmi6clJ1gUoCkrue8Ip4P2uZ9re1VM3tnaqLlVswFiahtkv10Kuh/OPl pCB5NlxcqonRQuOX3pXTFUxx8Qn9cOpy95eh+vgpzPa4nuMu36iTuzoww1cV/8V0+ZjD akDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=CZu1y7RFPTmm+e4tCk9sCPOaUomZD2b+NU7YQ9E83qM=; b=Dwe4EBCJWJeB9ykB3WWIXLBhbe5XxnKrmT/OWf2StXEAi6PBCUB7jrxywKbeHE2y5A SlK7HeQdVEeQgfDQEphZDwSmxEHFAnQ8IYJEA0u/+6AJmwSpALGoG59bXLlPoG7lrQpf +RKPOlGdRe88wSkrZ4JWTawQ6FcNAm/qThiP6eUlVLAS6t81EPp95LGaPHxplkRSXpdi yd51VsHX9x4P0lUnxc1ySv4KRSZHZnTSnIboLDVkC+EQPbmJPLLTGADm8BMPRZ37raRR kPxnKNN3CXBOFVCGfHvLII/PjoGE+eaVobZy6eiCAUGRXpdbJOcIG2Pqiak8gFpivREo GvwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YhjRITCe; 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 b99sor3402817pjc.27.2019.10.25.10.56.43 for (Google Transport Security); Fri, 25 Oct 2019 10:56:43 -0700 (PDT) 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:90a:ad95:: with SMTP id s21mr5737486pjq.11.1572026202818; Fri, 25 Oct 2019 10:56:42 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id n15sm2926580pfq.146.2019.10.25.10.56.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 10:56:42 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland Cc: michael@amarulasolutions.com, Icenowy Zheng , linux-sunxi , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v11 0/7] drm/sun4i: Allwinner A64 MIPI-DSI support Date: Fri, 25 Oct 2019 23:26:18 +0530 Message-Id: <20191025175625.8011-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YhjRITCe; 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: , This is v11 version for Allwinner A64 MIPI-DSI support and here is the previous version set[1] Changes for v11: - fix dt-bindings for dphy - fix dt-bindings for dsi controller - add bus clock handling code - tested on A64, A33 boards. Changes for v10: - updated dt-bindings as per .yaml format - rebased on drm-misc/for-linux-next Changes for v9: - moved dsi fixes in separate series on top of A33 - rebase on linux-next Changes for v8: - rebased on drm-misc change along with linux-next - reworked video start delay patch - tested on 4 different dsi panels - reworked commit messages Changes for v7: - moved vcc-dsi binding to required filed. - drop quotes on fallback dphy bindings. - drop min_rate clock pll-mipi patches. - introduce dclk divider computation as like A64 BSP. - add A64 DSI quark patches. - fixed A64 DSI pipeline. - add proper commit messages. - collect Merlijn Wajer Tested-by credits. Changes for v6: - dropped unneeded changes, patches - fixed all burst mode patches as per previous version comments - rebase on master - update proper commit message - dropped unneeded comments - order the patches that make review easy Changes for v5: - collect Rob, Acked-by - droped "Fix VBP size calculation" patch - updated vblk timing calculation. - droped techstar, bananapi dsi panel drivers which may require bridge or other setup. it's under discussion. Changes for v4: - droppoed untested CCU_FEATURE_FIXED_POSTDIV check code in nkm min, max rate patches - create two patches for "Add Allwinner A64 MIPI DSI support" one for has_mod_clk quirk and other one for A64 support - use existing driver code construct for hblk computation - dropped "Increase hfp packet overhead" patch [2], though BSP added this but we have no issues as of now. (no issues on panel side w/o this change) - create separate function for vblk computation - enable vcc-dsi regulator in dsi_runtime_resume - collect Rob, Acked-by - update MAINTAINERS file for panel drivers - cleanup commit messages - fixed checkpatch warnings/errors [1] https://patchwork.freedesktop.org/series/67632/ Any inputs? Jagan. Jagan Teki (7): dt-bindings: sun6i-dsi: Document A64 MIPI-DSI controller dt-bindings: sun6i-dsi: Add A64 DPHY compatible (w/ A31 fallback) drm/sun4i: dsi: Add has_mod_clk quirk drm/sun4i: dsi: Handle bus clock explicitly  drm/sun4i: dsi: Add Allwinner A64 MIPI DSI support arm64: dts: allwinner: a64: Add MIPI DSI pipeline [DO NOT MERGE] arm64: dts: allwinner: bananapi-m64: Enable Bananapi S070WV20-CT16 DSI panel .../display/allwinner,sun6i-a31-mipi-dsi.yaml | 20 ++++++- .../phy/allwinner,sun6i-a31-mipi-dphy.yaml | 6 +- .../dts/allwinner/sun50i-a64-bananapi-m64.dts | 31 +++++++++++ arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 37 +++++++++++++ drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 55 +++++++++++++++---- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h | 5 ++ 6 files changed, 139 insertions(+), 15 deletions(-)