From patchwork Thu Aug 17 15:08:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 715165 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 0C935C3063A for ; Thu, 17 Aug 2023 15:09:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352846AbjHQPJU (ORCPT ); Thu, 17 Aug 2023 11:09:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352913AbjHQPJP (ORCPT ); Thu, 17 Aug 2023 11:09:15 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C737F271B for ; Thu, 17 Aug 2023 08:08:39 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2b9a828c920so119045121fa.1 for ; Thu, 17 Aug 2023 08:08:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692284906; x=1692889706; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ZQOKLFSRw5whge5pt965xQ0um1rH9VrSs87wuRePlok=; b=xGXUTZ5Q9FjqCp8/YaNNnsp21FodXU1//vTz0vURJ3RfEpWlaLoB282d1n5XO+qI+M yhm798wwKu4FLRmFw+k5e7xhQWReXOKietVaGdLqovu0iKlqwkYYl/zn4edgIY/G70OR 0F8DWIbVGR7XJW004YSIyPShD7MvoE0eFQs1L7tz8+kxnluQ0lKrmZfx/1fG+0QmKhBH zw+pYW69FuCMmQcJXLRt2e4QfjxzLOUEaaN/YUggnO4eiXuzpgo8kVbBGgQ/LCYe0CEs kDSO7Xbd8aEl1UMNjp9A7Idb+7horaUT1NSdjYrvFtUcogSIRP4IgQ26NRzVhhE9gC3h Klaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692284906; x=1692889706; 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=ZQOKLFSRw5whge5pt965xQ0um1rH9VrSs87wuRePlok=; b=SUhExW2kZcgOY/Rl2NanwlnYIrntrMR1zsULZ8YwcOdPZQHt5BllhvT9aH5m0cREBq QKmaiH8WizZ+RUOpkg86lhR6zRgbqRU6s4Fsa0hkknziBZDFZwNfjhBJhe8dPeo4KB+A aNIouxAO9L/7wflZq8fa6bhxFgSmhFikK4PpieME6vj4glrjQ6y4YB8/JhcF4+cCPLT2 lBHhAK+nf4aFOW7L1i66B+dFBUnoOAX0OTGMucOKPHa5z/JcLCtbFbiu1PzIgucwbS2Z E5ZqoKXuGlQRTjzEu+kITS+NsAOfoohfaIRvN3wAV39fyBCY7OIJ8ICgvszelTQBHpiN oAag== X-Gm-Message-State: AOJu0YyHfhBH9nUiEDhOODddaT4rbg5QJ7v2JueIRRD9xBXZTlN7SpJX /Tc3Av2MJ4vUjL4RwHMvFRTTYA== X-Google-Smtp-Source: AGHT+IGNqy/GmFcXkzErjwbjqgy+8GRT4/DtzlNV8TFPf8yaPghQ87/shTD6zsYd7YczRUdkwQ2rSg== X-Received: by 2002:a05:651c:d6:b0:2b6:e958:5700 with SMTP id 22-20020a05651c00d600b002b6e9585700mr3949207ljr.4.1692284906396; Thu, 17 Aug 2023 08:08:26 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id u8-20020a2e9b08000000b002b6ef2fca66sm4111413lji.41.2023.08.17.08.08.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Aug 2023 08:08:25 -0700 (PDT) From: Dmitry Baryshkov To: "Bryan O'Donoghue" , Guenter Roeck , Heikki Krogerus , Andy Gross , Bjorn Andersson , Konrad Dybcio , Greg Kroah-Hartman Cc: linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 0/2] usb: typec: qcom-pmic-typec: enable DP support Date: Thu, 17 Aug 2023 18:08:22 +0300 Message-Id: <20230817150824.14371-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-usb@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 v4: - Put of_node field access under CONFIG_OF (LKP) - Changed ifdef CONFIG_DRM to IS_ENABLED(CONFIG_DRM) (Guenter) 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 | 37 +++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletion(-)