Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp864115iog; Mon, 13 Jun 2022 14:48:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t88gKT9Quk8Lgg0l0aRoZQnFEW6P4ca+927KVcCLDL5uXKfceeXTQZ4/7tdXAVE/6ZDAEr X-Received: by 2002:a17:902:ecc1:b0:167:74c3:55b1 with SMTP id a1-20020a170902ecc100b0016774c355b1mr967674plh.108.1655156913042; Mon, 13 Jun 2022 14:48:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655156913; cv=none; d=google.com; s=arc-20160816; b=sC0O1okC1Wv+3wnpw1adHbYan7hgP8vbYLsMzBAi09OEsU7ob3t2r94oGXd5um0yr3 OeJqy97YLO1vttmOYKg1NqOuBtgE6q1L9laQQ6NzcA/fbL33cPCe5W107Kp/t+kguNC2 HsUcO9UWRVwFiLvfpuRHLmzDXvXled7FUQgEUFKvLxLDPrMpU6VtiBkOdiCfyblzYxbp tGNG7B++G2/pDBecgnmIQbwwqb8zgEBPfgPVLB6PqdJcrknIZca/CjLo10IvpeIaQxLA HG4LqBQ/y+upuNY3OsRF218dc0ccTC0WlPpwChwDOpCwAEjC9M/vZFDyAPYC+MdnmW4w eC7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WZQfGYQZkKqtV3FJdf/0CDHcxw5MtxlLov+lAxrM9bE=; b=UKsap7+1oHaQVaO1h6YxD0YqObs0cAt2Nvw3ZUOXg5sDbyUyqslX1waobjzzGohAI5 6b5RTaXmRdFHx8kAx1dbbkpTy/wNknH2VCNg90vtgUDclmqMbsuaEiClgr7h/cZNQcCj Pf1bzPRSxw/Hz718QC4qSTVdlIlj5BQS8CzjSAxmvhLVigf9c/wa0NtdN6iBW8GtdR10 uUjWIbPrJKKnHm1eB1XIb/h58UL5BiMmffjOH9Ud5gCyUy1yV9u4RJFQ7ru9Wm2nk0ae 5Q97K81JvWIKbZ273vQXq4Aox+OSHskOIscP2UQU6MSTSVpQh/5P9Mkz39U+6TJe/MhI 246Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=iKZzCOUb; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f20-20020a170902f39400b00153b2d16543si10010215ple.331.2022.06.13.14.48.20; Mon, 13 Jun 2022 14:48:33 -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=@collabora.com header.s=mail header.b=iKZzCOUb; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352207AbiFMVRI (ORCPT + 99 others); Mon, 13 Jun 2022 17:17:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352217AbiFMVQ4 (ORCPT ); Mon, 13 Jun 2022 17:16:56 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79134D10D; Mon, 13 Jun 2022 13:58:49 -0700 (PDT) Received: from notapiano (pool-98-113-53-228.nycmny.fios.verizon.net [98.113.53.228]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id 1E55D6601671; Mon, 13 Jun 2022 21:58:45 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1655153927; bh=TmikzqWBrB46qOMNrEdA0IqJB77LnzkhuMwjJ/1ZJBw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iKZzCOUbY+UJhBB9Z3ZyUUmdIykmqpdNuQBWJpxbwBC0Wp+rz0VBIMnI6o7bt9BFW MgxULPUIwA82jhxgDNAUxqr8shbAVRhSkT2inQeb3BUQVZRJsZWWktIEw/NqBh24gF eMHrYrHdQ7WBJa4kltnWaNYpYTPRRoG3o9MbN8dnMsEXHM9bVoD6gO2sSVzlIKtoGC WmqmMXdSvwN+OiDvRYLb+xn266m0rnLiF/lfsoHXCalt2QsA4hiUOAW6Aa8Yp5P1D7 t2zcgUao/fkmxW8wsrAwbyxmaNoVena1oizM/3KP4Gy2U0SGHkHr+kKpwBQwmu3y0a ThbGcSpSGXbww== Date: Mon, 13 Jun 2022 16:58:40 -0400 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: Prashant Malani Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, bleung@chromium.org, swboyd@chromium.org, heikki.krogerus@linux.intel.com, Andrzej Hajda , AngeloGioacchino Del Regno , 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 , Pin-Yen Lin , Robert Foss , Rob Herring , Sam Ravnborg , Thomas Zimmermann , Tzung-Bi Shih , Xin Ji Subject: Re: [PATCH v2 0/7] usb: typec: Introduce typec-switch binding Message-ID: <20220613205840.x7bgrj567prroede@notapiano> References: <20220609181106.3695103-1-pmalani@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220609181106.3695103-1-pmalani@chromium.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Thu, Jun 09, 2022 at 06:09:39PM +0000, 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. > > v1: https://lore.kernel.org/linux-usb/20220607190131.1647511-1-pmalani@chromium.org/ > > Changes since v1: > - Fixed function signature error in "else case" of typec_mux.h > - typec-switch.yaml: Fixed indentation, compatible, and node names in examples. > - anx7625.yaml: > + Introduced patternProperties for "switch" children (suggested by Krzysztof Kozlowski). > + Added unevaluatedProperties descriptor (suggested by Krzysztof Kozlowski). > + Added "address-cells" and "size-cells" properties to "switches". > > 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 For the whole series, Reviewed-by: N?colas F. R. A. Prado Tested-by: N?colas F. R. A. Prado Tested that external display works on both ports of mt8192-asurada-spherion. Thanks, N?colas > > .../display/bridge/analogix,anx7625.yaml | 63 ++++++++ > .../devicetree/bindings/usb/typec-switch.yaml | 74 +++++++++ > drivers/gpu/drm/bridge/analogix/anx7625.c | 151 ++++++++++++++++++ > drivers/gpu/drm/bridge/analogix/anx7625.h | 20 +++ > drivers/usb/typec/mux.c | 8 +- > include/linux/usb/typec_mux.h | 38 +++++ > 6 files changed, 352 insertions(+), 2 deletions(-) > create mode 100644 Documentation/devicetree/bindings/usb/typec-switch.yaml > > -- > 2.36.1.476.g0c4daa206d-goog >