Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1061324rwb; Fri, 13 Jan 2023 07:30:00 -0800 (PST) X-Google-Smtp-Source: AMrXdXtc/pFIgHA+rokepRKy7CvOGzqYGqVZwSyDhIcg4gLqngCNjlsvkoUYHgw44W0aD4qIg5rD X-Received: by 2002:a05:6402:f1e:b0:499:cc2c:bf6f with SMTP id i30-20020a0564020f1e00b00499cc2cbf6fmr14191394eda.35.1673623800604; Fri, 13 Jan 2023 07:30:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673623800; cv=none; d=google.com; s=arc-20160816; b=QOoBwuSezYmLKb4OWBt8A4YsJ2kXO15gdy2J2IogMfw55U7z24blAGJXSKawtrQdGp KMACRw/RlRCM0l2t+0xjvq46En8fBXEK32KFAmuhr6E8MpLEjhtfn4A8LXnqfHZriLDr uiSghj6PSeQBUU7/cGCYrBe734xoCJkmhLa/ZOkoOCbLeFVZv6buQRvtQvxF22WW0xv4 qCApyWUB4QrOCHy/DSI/mZ81FZwH/CFO9mW7AvosOgSeILrylUszSFetX0z1W/zeTbay JY7+QFuNtCDjkpKCatXEaitPK2viI2hLxXakadPI8wa2HsuBJF8MkAXwTkoDnR27Cu4x SIFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ITl3Ff1g4Vokba4zPtv+9Lr8JadVrsPfIWw8DVJ0Tmo=; b=rjUF0BcuWeV3rOSRABV71y2QIJiM5tMK4Ma4d0Zd4TX2YwxOISqy7XdLvoBS5+Qvaw 28DLTG4mROeWronqAf1ePL3AQWpBfkn4r7wW8BO7BKUoOdyHIEPO2DjCSXDlhf3WFHSu aTTk3GS9RxMqdzHJDuh1i4CZovqXpKwpEw30AdfTXRNBCVH1YZGLXMdCusBX8d86uCKt WH9i4YLkvuqWn5fPNtrSnsAphGgwuM8wMlrT0fK3TkCG0/cAs8+g39w5jI2t/7J0adLE BU3pUl4jPIvTiIbATGiUVbzdnLh5ddllMzwr31WpFyVsLaZvsLb11CettOoqtsMthuGs 1uow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mistralsolutions.com header.s=google header.b=O+CkNbuN; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mistralsolutions.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eh23-20020a0564020f9700b0046b1d405d4asi19962030edb.206.2023.01.13.07.29.47; Fri, 13 Jan 2023 07:30:00 -0800 (PST) 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=@mistralsolutions.com header.s=google header.b=O+CkNbuN; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mistralsolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230010AbjAMPQy (ORCPT + 51 others); Fri, 13 Jan 2023 10:16:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229971AbjAMPQH (ORCPT ); Fri, 13 Jan 2023 10:16:07 -0500 Received: from egress-ip4b.ess.de.barracuda.com (egress-ip4b.ess.de.barracuda.com [18.185.115.208]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF40483E0F for ; Fri, 13 Jan 2023 07:07:05 -0800 (PST) Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by mx-outbound40-153.eu-central-1c.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 13 Jan 2023 15:07:03 +0000 Received: by mail-pl1-f198.google.com with SMTP id i5-20020a170902c94500b001946f55ea18so1468420pla.22 for ; Fri, 13 Jan 2023 07:07:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mistralsolutions.com; 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=ITl3Ff1g4Vokba4zPtv+9Lr8JadVrsPfIWw8DVJ0Tmo=; b=O+CkNbuNNMU9MJjz94I5hXaXIOh2mta8hvBgc25UEGwo5IUb29L0q5bnDYwpIpsrW6 0sSBfBBMV+tBFkXO51S3ej40727zkl/S++x4cyz8jxKYN0MUKST/OMGR+N3b1T4RMfZs rGRcZJeaB94JuiSpAM3I3iOKmbMKIXt/YN0d0= 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=ITl3Ff1g4Vokba4zPtv+9Lr8JadVrsPfIWw8DVJ0Tmo=; b=DotlGPkfwvUoX6n5Gan9wu3/Ph6vY10QS15ROGiweqCFbDmpacKhcCV5GBI9VkUFRL bExeTbN+QrEnmoXdite4qYui2MK3Wl1Do+44E10Jx6tpCDZooPSfaYtfzQbBxdhaF94G y+qu8gEKVFHg9wx8uU3h4YLxjR3h6ncQLNCB/IXtHstRHtkc1KmDcwivFDFQbmsANXlW 0enqqDOSdjDyG7V7f8iYbS1JqvYZSBLa/6y6H7nHlChYy6bkA+GqPZB5oPw/36m3yrAR yKgetOdZ8tYM9dNkxUFqH30eOu64OokEJcpHAMyJuavDMeWp9F/JPERlGlg1n9iatueZ ezHA== X-Gm-Message-State: AFqh2krafXnaYNEVnGQVrV886AZ1QHVCXAnwE5969BoWYw9ZA4D0J2fu 2GqsW0t8tIJTOO2P4gx95/FJohEekwS0eaBbdvkqjpnQEGPZDJpbw2GOqp8WlMSLmGtKvNS6TBX z0o9MCqFyOcUa39DaDoPk+/RoDLP5lPfW4QY9wakfDIF6TFJeB+8in0mtFyCV X-Received: by 2002:a17:902:9a93:b0:192:9e13:a4ba with SMTP id w19-20020a1709029a9300b001929e13a4bamr52541828plp.34.1673622422092; Fri, 13 Jan 2023 07:07:02 -0800 (PST) X-Received: by 2002:a17:902:9a93:b0:192:9e13:a4ba with SMTP id w19-20020a1709029a9300b001929e13a4bamr52541789plp.34.1673622421582; Fri, 13 Jan 2023 07:07:01 -0800 (PST) Received: from LAP568U.mistral.in ([106.51.227.150]) by smtp.gmail.com with ESMTPSA id v11-20020a170902f0cb00b00180033438a0sm14325723pla.106.2023.01.13.07.06.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 07:07:00 -0800 (PST) From: Sinthu Raja X-Google-Original-From: Sinthu Raja To: Roger Quadros , Vinod Koul , Ravi Gunasekaran , Siddharth Vadapalli Cc: Vignesh Raghavendra , linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, Sinthu Raja Subject: [PATCH V4 0/2] phy: ti: j721e-wiz: Add support to manage type-C swap on Lane2 and lane3 Date: Fri, 13 Jan 2023 20:36:13 +0530 Message-Id: <20230113150615.19375-1-sinthu.raja@ti.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BESS-ID: 1673622422-310393-5627-19235-1 X-BESS-VER: 2019.1_20221214.2106 X-BESS-Apparent-Source-IP: 209.85.214.198 X-BESS-Outbound-Spam-Score: 0.40 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.245440 [from cloudscan19-2.eu-central-1b.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_SC0_MISMATCH_TO META: Envelope rcpt doesn't match header 0.00 BSF_BESS_OUTBOUND META: BESS Outbound 0.40 BSF_SC0_SA085b META: Custom Rule SA085b X-BESS-Outbound-Spam-Status: SCORE=0.40 using account:ESS91090 scores of KILL_LEVEL=7.0 tests=BSF_SC0_MISMATCH_TO, BSF_BESS_OUTBOUND, BSF_SC0_SA085b X-BESS-BRTS-Status: 1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 From: Sinthu Raja Hi All, This series of patch add support to enable lanes 2 and 3 swap by configuring the LN23 bit of the SerDes WIZ control register. Also, it's possible that the Type-C plug orientation on the DIR line will be implemented through hardware design. In that situation, there won't be an external GPIO line available, but the driver still needs to address this since the DT won't use the typec-dir-gpios property. Update code to handle if typec-dir-gpios property is not specified in DT. Changes in V4: ============= - Fixe checkpatch CHECK errors. * Remove unnecessary paranthesis. * Avoid logical continuations in multiple lines. Changes in V3: ============= Address review comments: - Update comment to mention the LN23 SWAP along with the LN10 Changes in V2: ============= Address review comments: - Update commit description as per review comments. - Restore code to check only debounce delay only if typec-dir-gpios property is specified in DT. - Rename enum variable name from wiz_lane_typec_swap_mode to wiz_typec_master_lane. - Rename lane_phy_reg variable as master_lane_num. - Update inline comments. V1: https://lore.kernel.org/lkml/20221213124854.3779-2-sinthu.raja@ti.com/T/ V2: https://lore.kernel.org/lkml/20230106071714.30562-1-sinthu.raja@ti.com/ V3: https://lore.kernel.org/lkml/20230111111356.17392-1-sinthu.raja@ti.com/ Sinthu Raja (2): phy: ti: j721e-wiz: Manage TypeC lane swap if typec-dir-gpios not specified phy: ti: j721e-wiz: Add support to enable LN23 Type-C swap drivers/phy/ti/phy-j721e-wiz.c | 66 ++++++++++++++++++++++++++++------ 1 file changed, 56 insertions(+), 10 deletions(-) -- 2.36.1