Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3571837imm; Wed, 5 Sep 2018 02:19:44 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb5rqZ3MLdX5dbI2MI5qqVLC2sCYoVSJVuvbEu3J2C3lw3rIiLpNpsU5RRINqW3Mbs6zh9m X-Received: by 2002:a62:1a4b:: with SMTP id a72-v6mr5470400pfa.262.1536139184746; Wed, 05 Sep 2018 02:19:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536139184; cv=none; d=google.com; s=arc-20160816; b=o41JqOOR3ONmbv8lTkY5zLrMujRTMrDuDEoeRZbUTorDRqRcCa4s2qBshO2lLK5Sct rzbH3TP9JBKOcbkBfaQngGawah0LRRUm5KexjGzOktvjUXa2aPMBant6W5siNc7QWb1r kdtjr7z4UVFe4BaaTyVIfZCpPppPeVMqvfPKft9Pa+acYvIsG4uun0RbPIH9jtB7KCQy AwQT0g3ES7lfzDAvmZCqn/rZO7efLkhJYdAIghkA38CjwJMlFBvn13BREUjvAT4cmpcZ /Bcnuy3gdLEskQ0hVv8retQ1lUx+NQQv2NwptegMRLt1saL5BFlI0jfn73axPV+mDkoM pCcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from; bh=T9a4h5Yw18hg68pmdCPagxNIqnuvpH5DNsNqsNTaNXI=; b=O2Ao0xRdz1SKC/Tr/DhEOOheMu/GUddf2Wd4Nq+vMMUs+J5pntwaDMClFT8CPCohuW juOvsBjnLX8Xug6DBwUwPSs+9R5FuIG0WpqGnHq+T5o1qtvPQzUTEWeg/tCzcPrpfij8 sXmuj2ZOR4GBQTSaG5T9CHVFIVnmhPONzC21wDJChq4e+5zrWbvdtgqvg97ghDnFFhid qt0gQlNiYT8LYYoQLtI5DFHwOEyN2HeraNlgt3MbRbDYursiFctYlI69Hj/TT8QozNdp fdaF/RgifS6M34+MKpQRsfqTBg6cQ5G1+RS2FVa1aaOxuXjFINUMrMfnegu4FmnJ8Cwe 8/EQ== 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 d7-v6si1369240pll.162.2018.09.05.02.19.29; Wed, 05 Sep 2018 02:19:44 -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 S1728296AbeIENrH (ORCPT + 99 others); Wed, 5 Sep 2018 09:47:07 -0400 Received: from mail.bootlin.com ([62.4.15.54]:39629 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727953AbeIENqM (ORCPT ); Wed, 5 Sep 2018 09:46:12 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id B143F20737; Wed, 5 Sep 2018 11:16:54 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (AAubervilliers-681-1-92-107.w90-88.abo.wanadoo.fr [90.88.33.107]) by mail.bootlin.com (Postfix) with ESMTPSA id 7B63F20756; Wed, 5 Sep 2018 11:16:44 +0200 (CEST) From: Maxime Ripard To: Kishon Vijay Abraham I , Boris Brezillon Cc: Thomas Petazzoni , Laurent Pinchart , linux-media@vger.kernel.org, Archit Taneja , Andrzej Hajda , Chen-Yu Tsai , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, Krzysztof Witos , Rafal Ciepiela , Maxime Ripard Subject: [PATCH 03/10] phy: Add MIPI D-PHY configuration options Date: Wed, 5 Sep 2018 11:16:34 +0200 Message-Id: <5b784b096d5507e45c641880af31b07763b4fce2.1536138624.git-series.maxime.ripard@bootlin.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that we have some infrastructure for it, allow the MIPI D-PHY phy's to be configured through the generic functions through a custom structure added to the generic union. The parameters added here are the one defined in the MIPI D-PHY spec, plus some parameters that were used by a number of PHY drivers currently found in the linux kernel. The current set of parameters should cover all the potential users. Signed-off-by: Maxime Ripard --- include/linux/phy/phy-mipi-dphy.h | 241 +++++++++++++++++++++++++++++++- include/linux/phy/phy.h | 6 +- 2 files changed, 247 insertions(+) create mode 100644 include/linux/phy/phy-mipi-dphy.h diff --git a/include/linux/phy/phy-mipi-dphy.h b/include/linux/phy/phy-mipi-dphy.h new file mode 100644 index 000000000000..792724145290 --- /dev/null +++ b/include/linux/phy/phy-mipi-dphy.h @@ -0,0 +1,241 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (C) 2018 Cadence Design Systems Inc. + */ + +#ifndef __PHY_MIPI_DPHY_H_ +#define __PHY_MIPI_DPHY_H_ + +#include