From patchwork Thu Nov 24 10:20:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pin-yen Lin X-Patchwork-Id: 628348 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 A3390C43219 for ; Thu, 24 Nov 2022 10:21:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229714AbiKXKVL (ORCPT ); Thu, 24 Nov 2022 05:21:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229711AbiKXKVI (ORCPT ); Thu, 24 Nov 2022 05:21:08 -0500 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 390C014A2D4 for ; Thu, 24 Nov 2022 02:21:07 -0800 (PST) Received: by mail-pj1-x1029.google.com with SMTP id k2-20020a17090a4c8200b002187cce2f92so4746973pjh.2 for ; Thu, 24 Nov 2022 02:21:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=aKDzMB5fuyIKOWGUg1teGVMCu3uNeoCRybEoMSGH3XM=; b=AZ3ZiaNlTyWkDUA3AI6svtb7rNC4BSHFotUOkJax3CQ3W7X+Ri6AW6gPdCYMn6OXDj bIUJV4AnSunad2r4qQRf0bx5RJTEsVr8xljQHzTGajNbFsLC7LmAezam+ue5ZfUvmCQc dWJADcKv3hAuRK6JnoUcCq1fXOh1lRnhdofME= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=aKDzMB5fuyIKOWGUg1teGVMCu3uNeoCRybEoMSGH3XM=; b=Sfz8G1Z8O+k459A+cuLhgbwX7xam6JOeIAp7Ga3z9LBohxrLCo+JbRhcfsKW383veg jvvnre3qQZMpZrVEtpvLVf/koLAfzw/vz0AQ09aNb3xGmlB8odTZUAhwq0oN9/hvmASP j1Iph4E/d58jI6Jkt5HUW5DHZOQ6+7DOJWQYhQk3f1AuvhZzBzmAoGvAFEYmf7aFo0TL bK2bCYD9DGk9UmqCnyvPTc7fl1KSz1e24+49LjR2jbAIeixXGUnDAReOkrOxXZZ+wmPx BYZDLVqxTXGT31iRcOE/JT9si5tWqUjQ+Mqo8Z7pyrK3+/zhLNHGuLFrVxV/MUCQfIXY qr9A== X-Gm-Message-State: ANoB5pnucIhtKrFxnFhTt3G95wwi0wcyPv6Z4dPQNdO23yhuuStMogtH 5pYjsS1X9ENRt66DIAg3GwuuHQ== X-Google-Smtp-Source: AA0mqf7uce32MDEk2weA/QnGkYpN+4bihhCWnMXDkXgQE9HqR2K528a00R4+x8rxcAwAjBLzeizP7g== X-Received: by 2002:a17:90b:2341:b0:218:a506:4fdb with SMTP id ms1-20020a17090b234100b00218a5064fdbmr21682953pjb.207.1669285266760; Thu, 24 Nov 2022 02:21:06 -0800 (PST) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:d446:708:8556:dfee]) by smtp.gmail.com with ESMTPSA id t123-20020a625f81000000b005747b59fc54sm854584pfb.172.2022.11.24.02.21.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 02:21:06 -0800 (PST) From: Pin-yen Lin To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Greg Kroah-Hartman , "Rafael J . Wysocki" , Prashant Malani , Benson Leung , Guenter Roeck Cc: Javier Martinez Canillas , Stephen Boyd , dri-devel@lists.freedesktop.org, Hsin-Yi Wang , Thomas Zimmermann , devicetree@vger.kernel.org, Pin-yen Lin , chrome-platform@lists.linux.dev, linux-acpi@vger.kernel.org, Marek Vasut , Xin Ji , Lyude Paul , =?utf-8?q?N=C3=ADcolas_F_=2E_R_=2E_A_=2E_Pra?= =?utf-8?q?do?= , AngeloGioacchino Del Regno , linux-kernel@vger.kernel.org, Allen Chen Subject: [PATCH v6 0/7] Register Type-C mode-switch in DP bridge endpoints Date: Thu, 24 Nov 2022 18:20:49 +0800 Message-Id: <20221124102056.393220-1-treapking@chromium.org> X-Mailer: git-send-email 2.38.1.584.g0f3c55d4c2-goog MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org This series introduces bindings for anx7625/it6505 to register Type-C mode-switch in their output endpoints, and use data-lanes property to describe the pin connections. The first two patch modifies fwnode_graph_devcon_matches and cros_typec_init_ports to enable the registration of the switches. Patch 3~5 introduce the bindings for anx7625 and the corresponding driver modifications. Patch 6~7 add similar bindings and driver changes for it6505. v5: https://lore.kernel.org/linux-usb/20220622173605.1168416-1-pmalani@chromium.org/ Changes in v6: - Dropped typec-switch binding and use endpoints and data-lanes properties to describe the pin connections - Changed the driver implementation to accommodate with the new bindings - Changed it6505_typec_mux_set callback function to accommodate with the latest drm-misc patches - Added new patches (patch 1,2,4) to fix probing issues - Merged it6505/anx7625 driver changes into a single patch Pin-yen Lin (5): dt-bindings: drm/bridge: anx7625: Add mode-switch support drm/bridge: anx7625: Check for Type-C during panel registration drm/bridge: anx7625: Register Type C mode switches dt/bindings: drm/bridge: it6505: Add mode-switch support drm/bridge: it6505: Register Type C mode switches Prashant Malani (2): device property: Add remote endpoint to devcon matcher platform/chrome: cros_ec_typec: Purge blocking switch devlinks .../display/bridge/analogix,anx7625.yaml | 73 ++++++- .../bindings/display/bridge/ite,it6505.yaml | 94 +++++++- drivers/base/property.c | 15 ++ drivers/gpu/drm/bridge/Kconfig | 1 + drivers/gpu/drm/bridge/analogix/Kconfig | 1 + drivers/gpu/drm/bridge/analogix/anx7625.c | 182 +++++++++++++++- drivers/gpu/drm/bridge/analogix/anx7625.h | 20 ++ drivers/gpu/drm/bridge/ite-it6505.c | 205 +++++++++++++++++- drivers/platform/chrome/cros_ec_typec.c | 9 + 9 files changed, 589 insertions(+), 11 deletions(-)