Received: by 2002:a17:90a:8504:0:0:0:0 with SMTP id l4csp4854486pjn; Tue, 29 Oct 2019 08:40:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqzoZ3GtziTWTB8RvUZKhpqoLfX1iWENZ9Yyx84iNUDokEzQYOiYpnDFNRVIDdnLaeOD2Osg X-Received: by 2002:a17:906:d291:: with SMTP id ay17mr3908442ejb.85.1572363624966; Tue, 29 Oct 2019 08:40:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572363624; cv=none; d=google.com; s=arc-20160816; b=w3GFl2o8g6aeQ0czFzII96mSmZlo1Gj/wCBQJNnNjSEbA5jAcIcqxGm35+3GRE/3HW 6xJhM+eTt1PyBdiEzenyOi8npkC7eGiBwTxhIVzl1A5C8TJ7zWXX3qD2CO5gbH/Su1nj 28MNqz3dp8IGUbzqUsIUuQRjpp9NznVyMLXPPzeB/itrN86hBfBLi3nnYcAkBXjE+uhm EMjVT779vFQ11kjM7RgsDGt+ykDqpg0Jw4G9wJTDBoBml0iELXtoBCJB27k4QjsLb8LY +sBQBpURB9iVsE6vulX+pzW4yhJ18NyUpyap02iUuLiH7vg42wrQxRdh6gYVisNNOM9a zUjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:cc:to:subject:from; bh=iz9TidlpMEwUxKGSpi1q+0AVzKLtA9Pch6pR6I2cB5k=; b=dbeWvvkHlR+kvDYhEdtpa+dbN/D4IhQhFSSrwhoOQyDIh9ME6ZbBC4KoUbuLhOxFI2 zNZyIHsPpsvWUCfgqM03EC4xX1Ytmb6peKk9igijcHD7Pp6m2qXEw+N5iIZhl0FbMbXC AtDPgG8GX3HrCZq6cCzJy3iw8vVl5p7Lfv2VuFr0gH8TcILBjT+k87zTKRorbhx+Y6FA GMMN6pZB36MiAksvqLqNZ2OamX8pmLb8py9YS/+axdnIiFkzcujKudQ+g/8fsghH+GaM Iasr4brsEFAegkSWAyH1c0BZHFLmH7eJwiIabrTyc4QVpuO4Xor5A9hsgQu/XfW4P5Yo FYgQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v10si10485216edc.62.2019.10.29.08.40.00; Tue, 29 Oct 2019 08:40:24 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390033AbfJ2PiU (ORCPT + 99 others); Tue, 29 Oct 2019 11:38:20 -0400 Received: from verein.lst.de ([213.95.11.211]:40629 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389836AbfJ2PiU (ORCPT ); Tue, 29 Oct 2019 11:38:20 -0400 Received: by verein.lst.de (Postfix, from userid 2005) id C631668C4E; Tue, 29 Oct 2019 16:38:15 +0100 (CET) From: Torsten Duwe Subject: [PATCH v4 0/7] Add anx6345 DP/eDP bridge for Olimex Teres-I To: Maxime Ripard , Chen-Yu Tsai , Rob Herring , Mark Rutland , Thierry Reding , David Airlie , Daniel Vetter , Andrzej Hajda , Laurent Pinchart , Icenowy Zheng , Sean Paul , Vasily Khoruzhick , Harald Geyer , Greg Kroah-Hartman , Thomas Gleixner Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Message-Id: <20191029153815.C631668C4E@verein.lst.de> Date: Tue, 29 Oct 2019 16:38:15 +0100 (CET) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ANX6345 LVTTL->eDP video bridge, driver with device tree bindings. Long time, few but important changes. Changes since v3: * converted binding schema file to json-schema ("YAML") It now validates (itself and the dts) like a charm ;-) Input port0 is mandatory, output port1 is optional. * Enric Balletbo i Serra waived analogix-anx6345 module ownership to icenowy Since they both agree, I won't interfere. Changes from v2: * use SPDX-IDs throughout * removed the panel output again, as it was not what Maxime had in mind. At least the Teres-I does very well without. * binding clarifications and cosmetic changes as suggested by Andrzej Changes from v1: * fixed up copyright information. Most code changes are only moves and thus retain copyright and module ownership. Even the new analogix-anx6345.c originates from the old 1495-line analogix-anx78xx.c, with 306 insertions and 987 deletions (ignoring the trivial anx78xx -> anx6345 replacements) 306 new vs. 508 old... * fixed all minor formatting issues brought up * merged previously separate new analogix_dp_i2c module into existing analogix_dp * split additional defines into a preparatory patch * renamed the factored-out common functions anx_aux_* -> anx_dp_aux_*, because anx_...aux_transfer was exported globally. Besides, it is now GPL-only exported. * moved chip ID read into a separate function. * keep the chip powered after a successful probe. (There's a good chance that this is the only display during boot!) * updated the binding document: LVTTL input is now required, only the output side description is optional. Laurent: I have also looked into the drm_panel_bridge infrastructure, but it's not that trivial to convert these drivers to it. Changes from the respective previous versions: * the reset polarity is corrected in DT and the driver; things should be clearer now. * as requested, add a panel (the known innolux,n116bge) and connect the ports. * renamed dvdd?? to *-supply to match the established scheme * trivial update to the #include list, to make it compile in 5.2 Icenowy Zheng (4): drm/bridge: move ANA78xx driver to analogix subdirectory drm/bridge: split some definitions of ANX78xx to dedicated headers drm/bridge: extract some Analogix I2C DP common code drm/bridge: Add Analogix anx6345 support Torsten Duwe (3): drm/bridge: Prepare Analogix anx6345 support dt-bindings: Add ANX6345 DP/eDP transmitter binding arm64: dts: allwinner: a64: enable ANX6345 bridge on Teres-I .../bindings/display/bridge/anx6345.yaml | 92 +++ .../boot/dts/allwinner/sun50i-a64-teres-i.dts | 45 +- drivers/gpu/drm/bridge/Kconfig | 10 - drivers/gpu/drm/bridge/Makefile | 4 +- drivers/gpu/drm/bridge/analogix-anx78xx.h | 710 ------------------ drivers/gpu/drm/bridge/analogix/Kconfig | 22 + drivers/gpu/drm/bridge/analogix/Makefile | 4 +- drivers/gpu/drm/bridge/analogix/analogix-anx6345.c | 793 +++++++++++++++++++++ .../drm/bridge/{ => analogix}/analogix-anx78xx.c | 146 +--- drivers/gpu/drm/bridge/analogix/analogix-anx78xx.h | 255 +++++++ .../gpu/drm/bridge/analogix/analogix-i2c-dptx.c | 165 +++++ .../gpu/drm/bridge/analogix/analogix-i2c-dptx.h | 258 +++++++ .../drm/bridge/analogix/analogix-i2c-txcommon.h | 236 ++++++ 13 files changed, 1868 insertions(+), 872 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/bridge/anx6345.yaml delete mode 100644 drivers/gpu/drm/bridge/analogix-anx78xx.h create mode 100644 drivers/gpu/drm/bridge/analogix/analogix-anx6345.c rename drivers/gpu/drm/bridge/{ => analogix}/analogix-anx78xx.c (90%) create mode 100644 drivers/gpu/drm/bridge/analogix/analogix-anx78xx.h create mode 100644 drivers/gpu/drm/bridge/analogix/analogix-i2c-dptx.c create mode 100644 drivers/gpu/drm/bridge/analogix/analogix-i2c-dptx.h create mode 100644 drivers/gpu/drm/bridge/analogix/analogix-i2c-txcommon.h -- 2.16.4