Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2108749rda; Tue, 24 Oct 2023 12:33:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFI94B8zFpANsf8wtbiZwKCsgbH80teOXEztMnD3aiLUYAbJrQ+zu+EQ/+mfLO6PA6cTjtO X-Received: by 2002:a05:6a21:7983:b0:171:a2df:4e68 with SMTP id bh3-20020a056a21798300b00171a2df4e68mr2854385pzc.36.1698176032888; Tue, 24 Oct 2023 12:33:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698176032; cv=none; d=google.com; s=arc-20160816; b=aD9wnlXylHUQquPJAHg5CwRax/F/Jtn1ch03EB74bLrWDK6bzrKWXaHYMRPeADkxc+ fiOrTojbyvGMkNRJbAdp940HJbu/xKfQwzAGtrfCgm89249hkriCEpkNwxynO5cS5EmA tNxjrPB7do7Fkg/gmmXN/tDNywfzireHv+gVUQKcsWp6kzWXnr9eeloSoeNNlIVwFmTm 5JFOlvwo1qSqU4MH5ubHIhiWlHvwF6IwKqa32djwAhTZA3GkhCkusdLT0eYrFyZtUV8D W/Eyi8BMrfTlDiWsINuFSjkfPJO/lSjgFpH4JxQ6kutS2N4k8LuNU4xVyOEwL4/GqHCr +mog== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=i6EGD2hnIl5nJ7jHbhHkDFGMf4JT3GmrlWO/gNgXFm4=; fh=uyIF5wlW0O/Q6wwvmiGs4UTXdA+aCRthGe0Eu0+hwPw=; b=bmwPFG3hIF+cAjkOlpOfUOSnP2X58qkYq49gVJNPCqKkhU3oN56/wQ7wgo0zueCoBg HOJ/gG8yPM/UrmubWEwoZYs6iPXbMc3gMBpQXxp0lPhn4NYaGvkdyVtCmxRUbXp2MYUN P5ke+UlZhCo3lClW+W5OE6x/XIkO9P8ZeyiSFqbq/EhYW82D+fLQwIwYN1e9dZas/gb+ 5nlUoTGpuwjjRAsy/iGxTSegarWbZAo+5GrQMWjh2CLH0v9TgVkqSiyH0yITXDK4c12C laIrQ3Qsd12kRboaOMEAC6cP499J6UBpwIbMETzQUUcU6i/wYBvXvmGnb1ll1EOsa/01 XWqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id d20-20020a056a00199400b0068ff659af62si9090090pfl.106.2023.10.24.12.33.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 12:33:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 573B480213B4; Tue, 24 Oct 2023 12:33:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344088AbjJXTdp (ORCPT + 99 others); Tue, 24 Oct 2023 15:33:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234736AbjJXTdo (ORCPT ); Tue, 24 Oct 2023 15:33:44 -0400 Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31FF310CF; Tue, 24 Oct 2023 12:33:43 -0700 (PDT) Received: by mail-ot1-f50.google.com with SMTP id 46e09a7af769-6c4cbab83aaso3204801a34.1; Tue, 24 Oct 2023 12:33:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698176022; x=1698780822; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=i6EGD2hnIl5nJ7jHbhHkDFGMf4JT3GmrlWO/gNgXFm4=; b=dpBhEVsErF/oPa2MM9Fx0Dii+lvnhlcnboZacDnCMRpP5mBMzLqeGjfx9loOiuE2dB yfnOJS6wwl5Yx2UP5wFu3HUl3h3KPKaS55VKZEcJbIABqzYvrCCR7bvPHFT5F2Wm6Dgc 7AAxIBpy2Upit+qhq1RBFDXZjzRWzeiHb23hwpTq8N3VORjvHc+Vk29Q0uxN4cfBjvBn ADRx33HX+9202q0bSn/kT80DvcxErVW7AhCgJ4Sso0/K1GuYJLnD+82IKY/mflYBvNEs lwubtLUhRogCJDT0ro8dYrHGObESI5ZOkpH0VXVK6OGh8ellcoSBrVoiOoNfoXVcTZ5z NfVA== X-Gm-Message-State: AOJu0Ywben8M9TUNfqCspz9yGoI+Zmh0+vfun97cpTVHZwsC3ZgvciQe eqrZGmTyeGx6oYMBo5UmDw== X-Received: by 2002:a9d:7e84:0:b0:6cc:cc02:6ea4 with SMTP id m4-20020a9d7e84000000b006cccc026ea4mr13324831otp.38.1698176022379; Tue, 24 Oct 2023 12:33:42 -0700 (PDT) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id s5-20020a056830148500b006b9443ce478sm1946874otq.27.2023.10.24.12.33.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 12:33:41 -0700 (PDT) Received: (nullmailer pid 430587 invoked by uid 1000); Tue, 24 Oct 2023 19:33:39 -0000 Date: Tue, 24 Oct 2023 14:33:39 -0500 From: Rob Herring To: Luca Weiss Cc: Heikki Krogerus , Neil Armstrong , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, devicetree@vger.kernel.org, Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , linux-kernel@vger.kernel.org, Conor Dooley , linux-usb@vger.kernel.org, Bjorn Andersson , linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v2 1/3] dt-bindings: usb: fsa4480: Add data-lanes property to endpoint Message-ID: <169817601855.430514.5700076619485106727.robh@kernel.org> References: <20231020-fsa4480-swap-v2-0-9a7f9bb59873@fairphone.com> <20231020-fsa4480-swap-v2-1-9a7f9bb59873@fairphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231020-fsa4480-swap-v2-1-9a7f9bb59873@fairphone.com> X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 24 Oct 2023 12:33:50 -0700 (PDT) On Fri, 20 Oct 2023 11:33:18 +0200, Luca Weiss wrote: > Allow specifying data-lanes to reverse the muxing orientation between > AUX+/- and SBU1/2 where necessary by the hardware design. > > In the mux there's a switch that needs to be controlled from the OS, and > it either connects AUX+ -> SBU1 and AUX- -> SBU2, or the reverse: AUX+ > -> SBU2 and AUX- -> SBU1, depending on the orientation of how the USB-C > connector is plugged in. > > With this data-lanes property we can now specify that AUX+ and AUX- > connections are swapped between the SoC and the mux, therefore the OS > needs to consider this and reverse the direction of this switch in the > mux. > > _______ _______ > | | | > |-- HP --| | > |-- MIC --| |or > SoC | | MUX |-- SBU1 ---> To the USB-C > Codec |-- AUX+ --| |-- SBU2 ---> connected > |-- AUX- --| | > ______| |_____| > > (thanks to Neil Armstrong for this ASCII art) > > Signed-off-by: Luca Weiss > --- > .../devicetree/bindings/usb/fcs,fsa4480.yaml | 29 +++++++++++++++++++++- > 1 file changed, 28 insertions(+), 1 deletion(-) > Reviewed-by: Rob Herring