Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp892983rdg; Fri, 13 Oct 2023 04:39:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHKyHJ21J8xHQYnloCa6wltA0MbxRhj8jxoThxfPejGa5DZCO+RVv7m4jtWbnQ3L/INwEhf X-Received: by 2002:a17:903:120d:b0:1c9:ddd8:9950 with SMTP id l13-20020a170903120d00b001c9ddd89950mr8132706plh.21.1697197145934; Fri, 13 Oct 2023 04:39:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697197145; cv=none; d=google.com; s=arc-20160816; b=oK1dxVFRQza2vc03w8/dZZ7m+oz4fzRLVVrd8EDVXzjRSlID0jxj54ja3TowladGoD CiZrKfzv1oG/n9zA/ZpkwFcXX7QWTCrQHAnb+kROP9rAWgQSUVweUg3422LlObS8PTqx RBiYfJSDtJPuUnYp5EItTg7W5C0byDtTzJkKRL12p//UfA6oIIG6vwiPsSaTMdmiHAGL CId+pRyC3WWsq/FspzuMhnRTwZTbO3zJWMSU9aVv1XBsnUXcQvWSYU7rOLbJYiRp1KzK PN92iFuXcaexFZKzAxEJhNbd940m/5HL44UTL8JOkH1YkWZjTN7eC6BuNNa0yn1M4EcD xA1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=P/sDFt5u6yywO4BpNy8pUfk7EN+/+vD5SZ2loLoo8lA=; fh=ghpUNpHqcNrQIocPjfnwe/5quPeBE+ramd9T7xbSKxs=; b=V6vRZjWr5hQ0q2xPOTr3JIj/hKGwvQzXe3DmymS4St81tRlgvJSqJ+VxAixErdLup4 2Rk62g2lwSrF9AKtqzYUF4nLRGx65AcEZ1//ya18Q8JhlK7lTIpyJXlJ0RJWinbD9MeH BR7IqG0ZWRCWeV4Y/cfCWwfcmJrlo2bCPvWlD+WlL6g1Vs2iro7LnPRezYd/59UN6Rtf l5F3WE4HAlwmGJ3nEhKGpqgeGgwqjl+jqxCd9Amknv+baLnj1X+NalxRGve89T9zs8Ql DF92hAmlNizbA4Dj3vGFCj7TO5P2X+KZ7OP8Erosgs9LBPCa3gRFmqWW/tDM3spiWn/W yCTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b="nHbmM/vK"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id n5-20020a170902e54500b001c610ae885bsi4846013plf.59.2023.10.13.04.39.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 04:39:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b="nHbmM/vK"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9CE7881C36F1; Fri, 13 Oct 2023 04:39:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231553AbjJMLid (ORCPT + 99 others); Fri, 13 Oct 2023 07:38:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231395AbjJMLiQ (ORCPT ); Fri, 13 Oct 2023 07:38:16 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99ADCBD for ; Fri, 13 Oct 2023 04:38:10 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-523100882f2so3437756a12.2 for ; Fri, 13 Oct 2023 04:38:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1697197089; x=1697801889; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=P/sDFt5u6yywO4BpNy8pUfk7EN+/+vD5SZ2loLoo8lA=; b=nHbmM/vKpzvkzfMFgwkMLAHL/LKz3fEOgeIXO3ydrrNBLjCLqdODeJh9OYm7r1zw1Q f6hk3PTcsOsN4ZaCaw2efXsDp7ygA779oJ3wpexbkFrJztdbgy5+nsP3Dy52+UTBjWrZ vdN97vuA+mZY004ibWJPj3yUFRN/1Nd48tqGzGhs7CVj2nRZRWp4F8urLf10ytsOoeOO sFYuGr6xGfLMueEKD3qqUsUvDtSiIyRoeTp3mqZXt92FrrgWOkoiB0MbpCnieFn+ldbk qKezYgKec+QxBabMRAOnib9J/FemUe0BGrrShnm+sHR1cE2LDsSIY5Et8Y7hXy+CgCCY rrMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697197089; x=1697801889; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=P/sDFt5u6yywO4BpNy8pUfk7EN+/+vD5SZ2loLoo8lA=; b=mJS6zG6B/4t0rbGQqBSkRsk+DdiMUT2y6YAzU96cq08w4cJMl1A2Y7F1chTXCVXUIC 5ZF04hZMpP4g+vC0zOan2xg0RdrTHGX8ugettihVnvEHtXaRG2ejDp2ThS+BQWLPw7s4 ZUHQloHX8s2G3Z2AStA3CLEIQ56VtD98z8zbhxb7dywEEE+2vx3Ju7Zwim//XVfsezDv exa4j+t8ZCrcJkDmelTNXANiXnDWn/gVVrrjg8MhXEbEEH7NoK4nqL8laEqODObRj1i6 +QLCVfQriijlc0HdPxZ+vleH9Qiy7baBhAuGA4L2EiXMtHFdfO0y2Aczvfho/G8yYELP PSQg== X-Gm-Message-State: AOJu0Yyej8ySIjUioV9iVCKIhLmu0MwlRw+KHMKZLwpbvTTBhJ44OcpX q+B2tUx+LjrjHTGHfkKPHxPqDQ== X-Received: by 2002:a05:6402:1e89:b0:53e:12dd:b9d0 with SMTP id f9-20020a0564021e8900b0053e12ddb9d0mr5236497edf.36.1697197089101; Fri, 13 Oct 2023 04:38:09 -0700 (PDT) Received: from otso.luca.vpn.lucaweiss.eu (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id v18-20020aa7d652000000b00533dad8a9c5sm11360772edr.38.2023.10.13.04.38.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 04:38:08 -0700 (PDT) From: Luca Weiss Date: Fri, 13 Oct 2023 13:38:05 +0200 Subject: [PATCH 1/3] dt-bindings: usb: fsa4480: Add data-lanes property to endpoint MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231013-fsa4480-swap-v1-1-b877f62046cc@fairphone.com> References: <20231013-fsa4480-swap-v1-0-b877f62046cc@fairphone.com> In-Reply-To: <20231013-fsa4480-swap-v1-0-b877f62046cc@fairphone.com> To: Heikki Krogerus , Greg Kroah-Hartman , Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.3 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 agentk.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 (agentk.vger.email [0.0.0.0]); Fri, 13 Oct 2023 04:39:03 -0700 (PDT) Allow specifying data-lanes to reverse the SBU muxing orientation where necessary by the hardware design. Signed-off-by: Luca Weiss --- .../devicetree/bindings/usb/fcs,fsa4480.yaml | 29 +++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/usb/fcs,fsa4480.yaml b/Documentation/devicetree/bindings/usb/fcs,fsa4480.yaml index f6e7a5c1ff0b..86f6d633c2fb 100644 --- a/Documentation/devicetree/bindings/usb/fcs,fsa4480.yaml +++ b/Documentation/devicetree/bindings/usb/fcs,fsa4480.yaml @@ -32,10 +32,37 @@ properties: type: boolean port: - $ref: /schemas/graph.yaml#/properties/port + $ref: /schemas/graph.yaml#/$defs/port-base description: A port node to link the FSA4480 to a TypeC controller for the purpose of handling altmode muxing and orientation switching. + unevaluatedProperties: false + + properties: + endpoint: + $ref: /schemas/graph.yaml#/$defs/endpoint-base + unevaluatedProperties: false + + properties: + data-lanes: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: + Specifies how the AUX+/- lines are connected to SBU1/2. + oneOf: + - items: + - const: 0 + - const: 1 + description: | + Default AUX/SBU layout + - AUX+ connected to SBU2 + - AUX- connected to SBU1 + - items: + - const: 1 + - const: 0 + description: | + Swapped AUX/SBU layout + - AUX+ connected to SBU1 + - AUX- connected to SBU2 required: - compatible -- 2.42.0