From patchwork Fri Jul 28 11:09:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 707588 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D9B10C41513 for ; Fri, 28 Jul 2023 11:09:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236169AbjG1LJt (ORCPT ); Fri, 28 Jul 2023 07:09:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236152AbjG1LJs (ORCPT ); Fri, 28 Jul 2023 07:09:48 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F3453A81 for ; Fri, 28 Jul 2023 04:09:45 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4fe0bb9500aso3427640e87.1 for ; Fri, 28 Jul 2023 04:09:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690542583; x=1691147383; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ErJXckq2r6r6mAwaTX3lXaPyb/fST8ASE4/gudVLaCE=; b=MNDXkEYUX01x3ierPN6u4u3IPxU5b8oHs2ZYqAay7Qqxbsxc1mvsZJLdYOuWxjwWjZ EIDF9pcWDEgGSHi2neD1D7asRng/InxeRQ+//TKJrDZ/TZI22E6GBZTlS/+sieyNHSwG vNy2Xo+488COADZ7/koFjLpHIZgPMJ3CeY6HsJRREXF/WjmG+75Rh0RawnFmjhC9uIer aYJwIwENms/1LAPju78hQJ8C8d2jA4/DHn5OQgJ9SF/1snjISL9JPdnK3L4xIaPGF0cY /NwIPxntxyPgo6JeSbU/WozTPem3q2lJyUtHfSqwfnbSCEHfrtdjveqkvxYzONblubWc GQuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690542583; x=1691147383; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ErJXckq2r6r6mAwaTX3lXaPyb/fST8ASE4/gudVLaCE=; b=H9dEuDBtqa7Xt1vrg0v3ziGiQzGSirTlGpPAF+KeF6j6BwnPTpjFGLQw9Rx+s/E3x0 /U4MnF6WZMyNydDd1DwP2dNDLyITsdMmAzE9qexhmyJQfAih9c7u+EDu++aDR0x7Muhm lnu8JjPDx9WPhwFTonbdcu7ZIy5vmc3ccIEQzXOnH9C32UMFCONJQzbiNyEhgCiTNe5x vtVkvNjcMOsHi5yLN+n3l6224cCJY7DS9Eh89VnfuS9+MDQGggsEeVFwrcrwgdTJvOYx KamQk1a/79XhyA5yPfBcIMqy0LVQ1CURDTcodCqhHV9qCs0wm3kL4xd+WJSartJ8tgKE OKTw== X-Gm-Message-State: ABy/qLZ55IaxiJdwbbZW67/HfmVpF25vlv44mO2P+kXdktyuz1cjn8CB 6Tj6n9eEjhCvp0UIX8faX2YmBw== X-Google-Smtp-Source: APBJJlFs4OMw+wkoxBZjm2P0EflKKYLdF/K2AORx3W+hTkzZqLObAokxYeLDaZ2WegNvkhQakH0uRg== X-Received: by 2002:a05:6512:201b:b0:4fd:fadb:e6e4 with SMTP id a27-20020a056512201b00b004fdfadbe6e4mr1403301lfb.69.1690542583411; Fri, 28 Jul 2023 04:09:43 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id v11-20020a056512096b00b004fdc5557a70sm759854lft.141.2023.07.28.04.09.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jul 2023 04:09:43 -0700 (PDT) From: Dmitry Baryshkov To: Heikki Krogerus , Greg Kroah-Hartman , Bryan O'Donoghue , Guenter Roeck , Andy Gross , Bjorn Andersson , Konrad Dybcio Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v4 0/2] usb: typec: qcom-pmic-typec: enable DP support Date: Fri, 28 Jul 2023 14:09:40 +0300 Message-Id: <20230728110942.485358-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org To enable DisplayPort on the platforms supported by qcom-pmic-typec driver, we need to register a corresponding drm_bridge for this device and also be able to send the OOB hotplug event to the corresponding DRM connector. All this is implemented by [1], but there is no direct dependency on that patchset. [1] https://patchwork.freedesktop.org/series/120393/ Changes since v3: - Fixed changelog for v1 (Guenter) - After discussion on IRC, change connector type to DRM_MODE_CONNECTOR_DisplayPort to follow i915 and amdgpu example. The fact that this is a DP wrapped in the USB connector will be handled separately via the subconnector property (Simon Ser, Janne Grunau) Changes since v2: - Reworded commit message for the first patch to explicitly mention that the "displayport" OF property was rejected (Bjorn) - Removed several #ifdefs from the qcom-pmic-typec patch (Bryan, Konrad, Greg K-H) Changes since v1: - Properly handle CONFIG_DRM dependency. Disallow building qcom-pmic-typec into the kernel if DRM is built as module (Bryan). Dmitry Baryshkov (2): usb: typec: altmodes/displayport: add support for embedded DP cases usb: typec: qcom-pmic-typec: register drm_bridge drivers/usb/typec/altmodes/displayport.c | 5 ++- drivers/usb/typec/tcpm/Kconfig | 1 + drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c | 35 +++++++++++++++++++ 3 files changed, 40 insertions(+), 1 deletion(-)