Received: by 10.213.65.68 with SMTP id h4csp583994imn; Fri, 6 Apr 2018 05:43:47 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+EBEQelLXozcJCuspwHCi4DgnhVHVVgpRKGYXQ3mcL48JfekvczwJXRYhIMkGjbtogYBif X-Received: by 10.101.71.136 with SMTP id e8mr6003368pgs.12.1523018627818; Fri, 06 Apr 2018 05:43:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523018627; cv=none; d=google.com; s=arc-20160816; b=W/K/lpOfASIRMcKIJtrssJyqGXTShPAY0pmklos2p2VNnDW+nJR6ZSxQzmlp9X6sIU HxzzdocHSixELd0IzX264Ecu1+xiTJLR94Xf7nTW1+oD2XUq8zRPW7zM1AZGWPNuzPxH 4xaFMQDBMSF0M9tW4qX2EWAUJh2CCwthvgCPotlEGQv2c2BodhqVy8TzDzTOO5hIJ8lp BoQhcDc1db+ejCeHXSPJbg6VRbiyyxNVYO/tPXVKtUlyEi7w4w8xvrlilRlaMbYNkWNf QFij9AsA7JPX0MSRVSpSq+szb0i5HgSQP3L9Yt5BuNBD3FaCdkzAziHmIM93hjz5tlwJ UIZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=mvV5xB20W0O/77RXdEAQGumqWwtCmrFHJMFcfxaD3A0=; b=ZT0+3LfKGt2wKtDemSL/vhclkMJh8/NAgwbDnO/c1p+pmrUrwB/9Wsud6LJ0xAHH2U xr0uV59Fy/rYteyd6d6vDhlywMMgk26kxKWOldmyqiBAWWnbD3+Mw0Dl+7/vH002sRZs LLQPuWLF1+4ynl8eCjW/wlqVkOSK1GFTQp+VlEMfzGuZsk12zj45oefwauhx9l6iLUek t9LST9hzdxuWbqHPwIQQq/Gf7W90aPpML1vsWliR+LNflBQ4nhj3ojEHCn94Bpqo4Zby SRRnQlzNjyUAciuZkqXmyGNoHRnQ+8vryeHDkk7cGo8iMDan9KWub1WpMtAG7EZYPN/Z oFxQ== 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 59-v6si10485565plp.720.2018.04.06.05.43.34; Fri, 06 Apr 2018 05:43:47 -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 S1752627AbeDFMm2 (ORCPT + 99 others); Fri, 6 Apr 2018 08:42:28 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:37789 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752128AbeDFMm0 (ORCPT ); Fri, 6 Apr 2018 08:42:26 -0400 X-Originating-IP: 2.224.242.101 Received: from w540.lan (unknown [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 9C52340010; Fri, 6 Apr 2018 14:42:15 +0200 (CEST) From: Jacopo Mondi To: architt@codeaurora.org, a.hajda@samsung.com, Laurent.pinchart@ideasonboard.com, airlied@linux.ie, vladimir_zapolskiy@mentor.com, horms@verge.net.au, magnus.damm@gmail.com, geert@linux-m68k.org, niklas.soderlund@ragnatech.se, sergei.shtylyov@cogentembedded.com, robh+dt@kernel.org, mark.rutland@arm.com Cc: Jacopo Mondi , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 0/2] drm: Add Thine THC63LVD1024 LVDS decoder bridge Date: Fri, 6 Apr 2018 14:41:55 +0200 Message-Id: <1523018517-24121-1-git-send-email-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, this new version moves the driver and its bindings to use semi-standard names for powerdown and output enable GPIOs, as result of the discussion with Laurent, Vladimir and Rob. I kept the actual pin names in the bindings description for reference, even if there are no huge ambiguities on which chip pin is actually an enable and which one a power down. I have reworked the regulator management, making the 'vcc' supply the only requested one, and all other optional supplies have been removed as suggested by Laurent. It is unlikely a dedicated regulator is to be installed for each power supply, and in case some HW design requires this, it's an easy add to be implemented in future. Contrary to what discussed on v6, the 'vcc' supply is still described as optional in dt bindings, and the driver is now using 'regulator_get(NORMAL_GET)' in place of the _optional() version that was used before. With the 'NORMAL_GET' version the regulator core provides a dummy regulator in case an actual one is not available. This simplifies integration in designs where the chip power supplies are directly connected to some power rail. At the same time it makes easier to forget to add a regulator if there's actually one there, and someone could find herself wondering why the chip does not work even if probe completes properly. I removed the Eagle display enablement patch from the series, I'll send it separately squashed on top of Niklas' series that addresses the issue. Thanks j v6 -> v7: - Use semi-standard names for powerdown and output enable GPIOs as suggested by Rob and Vladimir - Use 'regulator_get()' not the optional version, and list only 'vcc' as requested supply - Addressed Laurent's review comments and removed Eagle display enablement patch to be sent separately v5 -> v6: - Drop check for CONFIG_OF as it is a Kconfig dependency - Add Niklas Reviewed-by tags - List [3/3] depenencies below commit message to ease integration v4 -> v5: - Fix punctuation in bindings documentation - Add small statement to bindings document to clarify the chip has no control bus - Print regulator name in enable/disable routines error path - Add Andrzej Reviewed-by tag v3 -> v4: - Rename permutations of "pdwn" to just "pdwn" everywhere in the series - Improve power enable/disable routines as suggested by Andrzej and Sergei - Change "pdwn" gpio initialization to use the logical output level - Change Kconfig description v2 -> v3: - Drop support for "lvds-decoder" and make the driver THC63LVD1024 specific -- Rework bindings to describe multiple input/output ports -- Rename driver and remove "lvds-decoder" references -- Rework Eagle DTS to use new bindings v1 -> v2: - Drop support for THC63LVD1024 Jacopo Mondi (2): dt-bindings: display: bridge: Document THC63LVD1024 LVDS decoder drm: bridge: Add thc63lvd1024 LVDS decoder driver .../bindings/display/bridge/thine,thc63lvd1024.txt | 60 ++++++ drivers/gpu/drm/bridge/Kconfig | 6 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/thc63lvd1024.c | 212 +++++++++++++++++++++ 4 files changed, 279 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/thine,thc63lvd1024.txt create mode 100644 drivers/gpu/drm/bridge/thc63lvd1024.c -- 2.7.4