From patchwork Tue Oct 20 09:36:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Badhri Jagan Sridharan X-Patchwork-Id: 297256 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.4 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD730C433DF for ; Tue, 20 Oct 2020 09:37:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 628FD206DC for ; Tue, 20 Oct 2020 09:37:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="BGBLxfUa" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391870AbgJTJge (ORCPT ); Tue, 20 Oct 2020 05:36:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391846AbgJTJgd (ORCPT ); Tue, 20 Oct 2020 05:36:33 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A39A5C0613D1 for ; Tue, 20 Oct 2020 02:36:33 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id z68so1439408ybh.22 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=pA8NAJZPfm94i+nPb4DGQJQzv0oWzK8e0iY0IBrbo0N6gd5sFDzRbh1CfSbswCPhjt I0M9u6gKig3YaQMg6MBzBmwwlDXOAvHXDVnQICkNNCf6bU0fQWCWCOzUSK7hdqcbIis9 TrhhLORPi2w274EIJinu7NJ6NtnMciS0qbYGaB/Qau4r9c6t6EIECVy0VYDRobjn4W2Z /KgFmRxhb4h5bpGwCBlqj+wFC+xAZUO4QpnEBYiPFZ/mo0u4DNZ4Fpn2dlKa2cO1+Yes rA+1NheM843rktfRiFCYJaHt56LyZWRX0OoHZCuOgRTQxGOBpdOVBfubcd6DAkumfJqV 0TJw== X-Gm-Message-State: AOAM530nuY6jAUQMoR9uQ33adwWj8YF5Hp1T49pZAvJgFZ5Fr70ScKxg bMaVfhFR3PkN0puFkFt7TyhLXuEBYyU= X-Google-Smtp-Source: ABdhPJx5O45MNjK8kPomJpEZBTPeGhK+/Y7uUwZN2nYkT+G2j1powMl/QYaa5dZoBYn4Vx7tOlKOb6ngx5o= 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 Precedence: bulk List-ID: X-Mailing-List: linux-usb@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