Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp815095iog; Wed, 15 Jun 2022 13:00:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v5SR/On5fo8QeH31Ej5PiI8ElcBWLvjiA/VsxljMXFbDIKjMvR5yWim0Cav2ndb1SDL9Rr X-Received: by 2002:a17:902:b592:b0:168:b8ee:8166 with SMTP id a18-20020a170902b59200b00168b8ee8166mr974265pls.156.1655323253772; Wed, 15 Jun 2022 13:00:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655323253; cv=none; d=google.com; s=arc-20160816; b=JiO0CwJ+TWEC7ELaLU+vpTFdOr+wCl44SRtW5RbW4aEbd/oVAZWTgvQDK0SJaOQpdO raN/L3LtGALA64xOJtHUlrBOSKf0gzh+3f/gM4JudcikjeQaTzVGou3Zx9QH2JsfHViC bfkG9/DtvVnYBCwdKoXKaUDNb81BVcmtuZluNxaeOlwXN7T+mgaWdQNjWdDcuLfA6ihB AsDsA4oQPr1SjRJN/TuWoam5U+WGsnZI+vRYGECbd0mPW+A4T7aWhpKdD83yUCgqj3a7 DAjDd4ZhSgc/ICS0SY85jT9SjGS0ZpaoufSyXdLQAX/uyVJ7yRGMQPOuljAboGCRvOmR VGYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=88rWp51m5t+bsaVtWMHrNKjzep9CN6agHaxeYLzqOSg=; b=znAg4h0unPp5Qyqn2De5qflBjYjXca2qUW9bzYbg7O4vKjYMlvGld07RSB9clM8GLo gDqp7Pj9FRvSS9RwLAadQWGtx+ZzWYjw5C3zDz6clz7eH8jGxLG4fJPlLXV8X3TUStjP tQEytyz5xH1x+fCwSggzyMe/ezT7mWiqrrK7lZ86BO1USyZv7Dlp5cFPRcyD6pPy2JtA tCDm6CPW9ngWE9o3WUVFwWNngH5sZL0zlFvjN3LRO7MjNv+b6DXuVgLkprIdzCFYfeLv HpI+LRkm1famosq0thHcoqBast3egh2eBND0iDJ2xh1Z3JSFuxmGMWoF3fbsj9TcF+7Z XzpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=H8MUMyZk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q13-20020a170902dacd00b001622a77631esi20597997plx.594.2022.06.15.13.00.38; Wed, 15 Jun 2022 13:00:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=H8MUMyZk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357936AbiFOSNv (ORCPT + 99 others); Wed, 15 Jun 2022 14:13:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358229AbiFOSNq (ORCPT ); Wed, 15 Jun 2022 14:13:46 -0400 Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DD1D32EFC for ; Wed, 15 Jun 2022 11:13:45 -0700 (PDT) Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-30fa61b1a83so70252297b3.0 for ; Wed, 15 Jun 2022 11:13:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=88rWp51m5t+bsaVtWMHrNKjzep9CN6agHaxeYLzqOSg=; b=H8MUMyZkbpsfkUYxJJTUpsb3WM9USwP6+APqKsyACfl9Rvj1vNCBuWn4HVYMWjjkwd V7BpgMIUSiYmd/8sLRw/Vc1cJJL8XwBPAZdLidcg/opIXQrJVk1/XvUTzTAZIDhyoa8X 4xUDtSa72THRkFvfsgrVcZvllNcbogoaLUgVg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=88rWp51m5t+bsaVtWMHrNKjzep9CN6agHaxeYLzqOSg=; b=MEWw01Y97CoUp9Nl3ayGLQrOTBSXAfBLg+Xc6byiXcI4e3LHpBsli8CoqYxiGOslwv wBit0tBTWJF2N4br+pG8PpPqR32earknKBvJR311LjyVVUtYkWnz3KZxThR09uOv0qKc mS3nz336sk8WQt0dTZAPbR2wU021StjEH3MDUtwC0SF3QSykvERTL2jh2q2Iyzyr+NvM qm2L+bDp4bJsoprXhVwUZiAOAvJbXhfTaJswENiVZgkq9Hcf+aPhXAIz7C9FsDcRj6Ql KS7+/ftx3prmunsm8HH3CS3TbBeFtOVZaawW4bXWWkm45/2G/PoZcrrU5xXzMYXniIo2 sErg== X-Gm-Message-State: AJIora+JYs6pHUlAIcf7NqY0iWY2iOpXHVqUblOprZ7P+TKwj1i4njoJ Qw/tWN/fo2w4q69h59q3HUN3+6h+SzkgNa3gVy5KlLsFFChiaw== X-Received: by 2002:a81:fd1:0:b0:30f:f98b:4957 with SMTP id 200-20020a810fd1000000b0030ff98b4957mr1085245ywp.350.1655316824181; Wed, 15 Jun 2022 11:13:44 -0700 (PDT) MIME-Version: 1.0 References: <20220615172129.1314056-1-pmalani@chromium.org> In-Reply-To: <20220615172129.1314056-1-pmalani@chromium.org> From: Prashant Malani Date: Wed, 15 Jun 2022 11:13:33 -0700 Message-ID: Subject: Re: [PATCH v4 0/7] usb: typec: Introduce typec-switch binding To: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Cc: bleung@chromium.org, swboyd@chromium.org, heikki.krogerus@linux.intel.com, Andrzej Hajda , Daniel Vetter , David Airlie , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "open list:DRM DRIVERS" , Greg Kroah-Hartman , Hsin-Yi Wang , Jernej Skrabec , Jonas Karlman , =?UTF-8?B?Sm9zw6kgRXhww7NzaXRv?= , Krzysztof Kozlowski , Laurent Pinchart , Maxime Ripard , Neil Armstrong , =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Pin-Yen Lin , Robert Foss , Rob Herring , Sam Ravnborg , Thomas Zimmermann , Xin Ji Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I should add: Series submission suggestions (of course, open to better suggestions too): - Patches 1-3 can go through the USB repo. - Patches 4-7 can: + also go through the USB repo after the maintainer acks have been received + go through the DRM repo (after creating a branch from USB repo's usb-next branch after Patches 1-3 have been applied). (I"ll add the above to the cover letter if there is a v5). Thanks! On Wed, Jun 15, 2022 at 10:21 AM Prashant Malani wrote: > > This series introduces a binding for Type-C data lane switches. These > control the routing and operating modes of USB Type-C data lanes based > on the PD messaging from the Type-C port driver regarding connected > peripherals. > > The first patch introduces a change to the Type-C mux class mode-switch > matching code, while the second adds a config guard to a Type-C header. > The next couple of patches introduce the new "typec-switch" binding as > well as one user of it (the ANX7625 drm bridge). > > The remaining patches add functionality to the anx7625 driver to > register the mode-switches, as well as program its crosspoint > switch depending on which Type-C port has a DisplayPort (DP) peripheral > connected to it. > > v3: https://lore.kernel.org/linux-usb/20220614193558.1163205-1-pmalani@chromium.org/ > > Changes since v3: > - Some more modifications to the anx7625 binding patch (4/7). > - Picked up 1 more Reviewed-by tag. > > Pin-Yen Lin (1): > drm/bridge: anx7625: Add typec_mux_set callback function > > Prashant Malani (6): > usb: typec: mux: Allow muxes to specify mode-switch > usb: typec: mux: Add CONFIG guards for functions > dt-bindings: usb: Add Type-C switch binding > dt-bindings: drm/bridge: anx7625: Add mode-switch support > drm/bridge: anx7625: Register number of Type C switches > drm/bridge: anx7625: Register Type-C mode switches > > .../display/bridge/analogix,anx7625.yaml | 64 ++++++++ > .../devicetree/bindings/usb/typec-switch.yaml | 74 +++++++++ > drivers/gpu/drm/bridge/analogix/anx7625.c | 148 ++++++++++++++++++ > drivers/gpu/drm/bridge/analogix/anx7625.h | 20 +++ > drivers/usb/typec/mux.c | 8 +- > include/linux/usb/typec_mux.h | 44 +++++- > 6 files changed, 350 insertions(+), 8 deletions(-) > create mode 100644 Documentation/devicetree/bindings/usb/typec-switch.yaml > > -- > 2.36.1.476.g0c4daa206d-goog >