Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3928696pxu; Tue, 20 Oct 2020 04:23:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVz84MXaFqKHzsP3kOJIoHv3suUe2y7br9tiyQOlE81Us4EDz/VYrLmPfl0sonJqCz7wL0 X-Received: by 2002:aa7:dcd6:: with SMTP id w22mr2253095edu.378.1603193030710; Tue, 20 Oct 2020 04:23:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603193030; cv=none; d=google.com; s=arc-20160816; b=llDiozYJhcXIiAuuPNL2crUEeRNFK8JKZqDGVXMbKF1enVIzeSoW82eNTKYKWwkl38 mUQQ+nhSWzW0RLAMMDHzOIUhdFFiLzRXQ4w/PbAtYEhyAn4D0ZLi7kLn1AISgBVkWNxN sKGcD8t3c3BlLP7s3X38cnkUMo8hH8YZ5uT95/WlJ5B+I1BxdcprHcGV9/PCNZoHMhQj wmkEHhre9gVSRJ59oD/qvOozoaBI/x9OrqQ1+9h2LruRa5DpgDfC/exlD0ma4lMWr3k8 FC+Jj/AfrpHrDF+DQd89a1ycFSRDAOR8N8EtGnp6cjfcZuEt9ytYvr0ktS9EVCwb12Uf VRpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :sender:dkim-signature; bh=PtAKH6DNREdiEN9Qe266UtcfxzWmhFfBqOATLMy+hRI=; b=sHCQu90ED0iYB26sFmbV7CmaaEcwH3IF1xMllEhEvIpq0BOALYosR4fdSJ/2fyMZpH JkOrEgvGHTP6cd6HcEfkWcu9syrkj4su/cg99tb7jMNIo4i0NF/VVdK5oY0y7nV/h84h WUu7Vcj4D1hXK1kjGAf55MTVwPWPcVubK6z7KI2K+N9cog9+EzwEDotWskYgJ9SyaiMD FZ47U4S3u/rsPjsjnEEwnHf9N6Y1Ynl1uzckxRQU4ZpVBFUZfWu74o6O2GvM0qTVsb6Q v6aGU0xzF8F/TrTHb6yuo3AO4vXCnXEHQGpJkxQS0TBmTYGSxnVFV2QxQI9b5LQYuhwT 2hcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=BGBLxfUa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b26si902067edw.538.2020.10.20.04.23.28; Tue, 20 Oct 2020 04:23:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=BGBLxfUa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391846AbgJTJge (ORCPT + 99 others); Tue, 20 Oct 2020 05:36:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391793AbgJTJgd (ORCPT ); Tue, 20 Oct 2020 05:36:33 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88E82C0613CE for ; Tue, 20 Oct 2020 02:36:33 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id x125so1450031yba.17 for ; Tue, 20 Oct 2020 02:36:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:message-id:mime-version:subject:from:to:cc; bh=PtAKH6DNREdiEN9Qe266UtcfxzWmhFfBqOATLMy+hRI=; b=BGBLxfUai4HKny40hSGBeizN8/5UzZyJWwenaL5wQzUmUBQ6BPBY8fbeuhQ8XvS5ZN 6yMwJ/VxRAaMMFD2DPT0VZTeeI/2XWwSQNbSyEGcvPuHkfHaZE/R1+wt9mayeCp+DeE6 V7CvietRp6bVwpX/EYZUiAWSv/s6XyTDiPIDQgCIcJnhA/HwlPsRBemssWioNWC6LROD Y9IjBhmKBwqMLHY1rYJbAH//eXRfLVskG1NOnHDkbd808Wyr9SWLXnVc8i/un4050csn bF3hSajpk9pRbLv2C/CPgRwdL2Mx/UH6f8VoEMAt0UoPMOyTi1+49ZNnS+iJrQylntPr IfhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:message-id:mime-version:subject:from :to:cc; bh=PtAKH6DNREdiEN9Qe266UtcfxzWmhFfBqOATLMy+hRI=; b=U7ocXm9qXsErYuv8V+69b7BrePOjc8gcgQgqM/t78frc/E26XM1Uy62To1H0MyobFR 2RgneShXx4TgXgYv27iewDZoT3tR/O5IAmPeF8YJWkVFVPezzWqaTPkFIo2UL4HcxLkG N49EFUS7YdTSBmKl6HVjGbBEIlpya6klPavHyQNFkGZ9h75BEFWDWrKskqrn8swoztrD 8gbDekAmABlZGeRiT4UZv/J6gFVLa8B8ig/HmRl6LqGjT7M0on2DPTXpbUbq69UMCaOy cxl8RAoxSeGXbCsjRUZiwUBsWalv4qm0uENlbqSnxgnIP6T8KnuDCxnon6L5bLTk3STX 6mUQ== X-Gm-Message-State: AOAM531mKXq6JAAGDva7H9FRVsic7jiNx5tjjkjMHosua8PHqadCAptC OLD6riE5/fiVkyflJUFnmPMuU0cIHa4= Sender: "badhri via sendgmr" X-Received: from badhri.mtv.corp.google.com ([2620:15c:211:1:f292:1cff:fee0:66cf]) (user=badhri job=sendgmr) by 2002:a25:610a:: with SMTP id v10mr2991061ybb.352.1603186592762; Tue, 20 Oct 2020 02:36:32 -0700 (PDT) Date: Tue, 20 Oct 2020 02:36:17 -0700 Message-Id: <20201020093627.256885-1-badhri@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.29.0.rc1.297.gfa9743e501-goog Subject: [PATCH v11 00/10] *** TCPM support for FRS and AutoDischarge Disconnect *** From: Badhri Jagan Sridharan To: Guenter Roeck , Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , Lee Jones , Mark Brown , Maxime Ripard , Alexandre Belloni , Thierry Reding , Prashant Malani , Badhri Jagan Sridharan Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, Addressed comments from Rob Herring for dt-bindings patches: - Added part number for the maxim chip to dt-binding and renamed the file. Fixed it on the driver side as well with usb: typec: tcpci_maxim: Fix the compatible string - new-source-frs-typec-current now uses u32. Added Reviewed by tags from Heikki. Thanks, Badhri Badhri Jagan Sridharan (10): dt-bindings: connector: Add property to set initial current cap for FRS dt-bindings: usb: Maxim type-c controller device tree binding document usb: typec: tcpci_maxim: Fix the compatible string usb: typec: tcpm: Refactor logic for new-source-frs-typec-current usb: typec: tcpm: frs sourcing vbus callback usb: typec: tcpci: frs sourcing vbus callback usb: typec: tcpci_maxim: Fix vbus stuck on upon diconnecting sink usb: typec: tcpm: Implement enabling Auto Discharge disconnect support usb: typec: tcpci: Implement Auto discharge disconnect callbacks usb: typec: tcpci_maxim: Enable auto discharge disconnect .../bindings/connector/usb-connector.yaml | 19 ++++ .../devicetree/bindings/usb/maxim,33359.yaml | 75 ++++++++++++++++ drivers/usb/typec/tcpm/tcpci.c | 72 ++++++++++++++- drivers/usb/typec/tcpm/tcpci.h | 18 +++- drivers/usb/typec/tcpm/tcpci_maxim.c | 31 +++---- drivers/usb/typec/tcpm/tcpm.c | 87 ++++++++++++++++--- include/dt-bindings/usb/pd.h | 8 ++ include/linux/usb/tcpm.h | 19 ++++ 8 files changed, 299 insertions(+), 30 deletions(-) create mode 100644 Documentation/devicetree/bindings/usb/maxim,33359.yaml base-commit: 270315b8235e3d10c2e360cff56c2f9e0915a252 -- 2.29.0.rc1.297.gfa9743e501-goog