Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp979552pxu; Wed, 7 Oct 2020 23:20:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxke8gDXhFvlQ77MOfiew/0HnYXFydgZAabZBPTTDqqASq4jyxQxsg3k+5fTUbdxymZkxYY X-Received: by 2002:a50:f389:: with SMTP id g9mr7518724edm.367.1602138010688; Wed, 07 Oct 2020 23:20:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602138010; cv=none; d=google.com; s=arc-20160816; b=XxVvUdog4pvbH/BV73cbiTqlsM0SLwMsc607lLvkDdlLx6TfGAp7qrTbC02Ivk/9XX 0USwKixCtFCuNdoTc3bq3RcRC4+N3fnIVufwWFgW3SnFPkNvvxcgrpQoNfA0QdIb0Lhs Beqf56oSn1jj+zSJvll31G5MRXfuTPNQnm7fApHHNyNlS32JRHQjXEChgRkN/ns/qNoh FTfvJ2JwGUwcPLPmfkGvsRlep+Zvj1QXwal0Fq7hE//qDcfXeED4mrUhxRxTt+kD15qs jhi22H1cIX0O++TJMve8L4q5b56+ayZPoGJuSPl5WTHdtOtcH71/alcfUbn7eRUJTFHg JiiQ== 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=T4vVxHg0jWuJU3/weOf8EWjxPeVJ3q0t7eVU5tuJhQ4=; b=IbM366ZtyD5hfsJF0pJLAciFkSOyMCWv4wzGhiWmHuXZzdGVWNukvD4WFFR0rSwB7j cQwJxgHSxr+ruQ86VFJoEMa4wFBRpzDIBdT5/FIomIlBzRCV6O18caZ0J1N8zJEyF12y STLTnWrioRaD9jnE4zEz9mNZiMGXQwMi3g4uUQCwD2+tyt16lTLznEPodpF2EvFcHJ8J 8aw9hOrSVgAHetp/wx2BeYts3WXUMfy/VO3EAeiAjxFZ1sh4joD0YHTDuzEfG3ofTEPS GtX5z4pTmpn0uCq/agMoGywL/nbPNYABBCQl3bTcm8pqJlWnrh9QIb8CIm13tyMHPv7f JEmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="uL/m5Nc/"; 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 g3si2927550edv.12.2020.10.07.23.19.48; Wed, 07 Oct 2020 23:20:10 -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="uL/m5Nc/"; 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 S1728418AbgJHGQE (ORCPT + 99 others); Thu, 8 Oct 2020 02:16:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726245AbgJHGQD (ORCPT ); Thu, 8 Oct 2020 02:16:03 -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 93A78C061755 for ; Wed, 7 Oct 2020 23:16:03 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id r2so4394945yba.7 for ; Wed, 07 Oct 2020 23:16:03 -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=T4vVxHg0jWuJU3/weOf8EWjxPeVJ3q0t7eVU5tuJhQ4=; b=uL/m5Nc/wk1SghKAS+1XPTxV14l7uCGLV443ij9UK67AhghirlYQFzHoo9qLwdaGc+ JRJQYi1KgNN4Ej8AGzv02IZiNeGCaPqjirTJrNnIMAcqN6qeMM69umrdd/n2lcTLoJBL dZ6wuOZN+RxRtjLlLbviMghqVXzZmRi63TjXJzjXY2f6nfsB1W+VGEAr4yd/39aMSm5V q5FZK5WSIuihuudt9nl1B1jWtZRrleCbNESmpiJ9kY4zQaw8c6XBRsLFKrtTUqyK8uFg Bjv2WflwvwuGaAk7mrthxjEmAbWJpYbMWGpdA6OS4rUuEVSFR5oTjZL1TQe/7HWllt63 kIkA== 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=T4vVxHg0jWuJU3/weOf8EWjxPeVJ3q0t7eVU5tuJhQ4=; b=YeN7BSBFJ55mClnzrKTBqi0pgsVBJlOPZC6a6guLeVQc10abY7ih9wNzPo7SUGcrht T/MrdzntMf1U4WyJvqr5j1uLMCjonMEBag/r5QtAvQ8HrfPv+c+fWMqLBU/VyDLY6y0x Am/SD5t1LmfBxJdHvXTeg4Y+mXk/Tw3HhPfmQcit83l8UjSkf0otayMhXeCesWnM3L28 VkQPUd9WkJzywlXV97vM48y1Vc6irnH+IyVrXUDtXOnk5q5ZxJUEboCzF2nk6myXlqjB uKar+cQ293w+vTeEO5vLR5HDBgIDCHzCcnzpAE1CPaSMxKI8sB2gPzE9b8OZ37EW/wnb s+rw== X-Gm-Message-State: AOAM530tMmFpmEtTtiZEUWwh5Jtbu5J4vvyvmLCFu1RWXmC8Ze287TZl GsJpYjuQHN2eVq2YycTlKjx2uuqvlPs= 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:a5b:1cc:: with SMTP id f12mr3821857ybp.150.1602137762501; Wed, 07 Oct 2020 23:16:02 -0700 (PDT) Date: Wed, 7 Oct 2020 23:15:41 -0700 Message-Id: <20201008061556.1402293-1-badhri@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.28.0.806.g8561365e88-goog Subject: [PATCH v10 00/15] 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, Amelie Delaunay Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Made two changes: 1. Added "additionalProperties: false" as suggested by Rob Herring in https://lore.kernel.org/linux-usb/20201005144618.GA154206@bogus/ 2. Removed FRS dts binding constants to address Rob Herring's comment in https://lore.kernel.org/linux-usb/20201006182940.GA2574941@bogus/ Thanks, Badhri Badhri Jagan Sridharan (15): usb: typec: tcpci: Add a getter method to retrieve tcpm_port reference usb: typec: tcpci: Add set_vbus tcpci callback dt-bindings: usb: Maxim type-c controller device tree binding document usb: typec: tcpci_maxim: Chip level TCPC driver dt-bindings: connector: Add property to set initial current cap for FRS usb: typec: tcpm: Add support for Sink Fast Role SWAP(FRS) usb: typec: tcpci: Implement callbacks for FRS usb: typec: tcpci_maxim: Add support for Sink FRS usb: typec: tcpm: frs sourcing vbus callback usb: typec: tcpci: frs sourcing vbus callback usb: typec: tcpci_max77759: Fix vbus stuck on upon diconnecting sink usb: typec: tcpm: Parse frs type-c current from device tree 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 | 26 + .../devicetree/bindings/usb/maxim,tcpci.yaml | 70 +++ drivers/usb/typec/tcpm/Kconfig | 6 + drivers/usb/typec/tcpm/Makefile | 15 +- drivers/usb/typec/tcpm/tcpci.c | 102 +++- drivers/usb/typec/tcpm/tcpci.h | 30 +- drivers/usb/typec/tcpm/tcpci_maxim.c | 504 ++++++++++++++++++ drivers/usb/typec/tcpm/tcpm.c | 299 ++++++++++- include/linux/usb/pd.h | 19 +- include/linux/usb/tcpm.h | 27 +- include/linux/usb/typec.h | 12 + 11 files changed, 1085 insertions(+), 25 deletions(-) create mode 100644 Documentation/devicetree/bindings/usb/maxim,tcpci.yaml create mode 100644 drivers/usb/typec/tcpm/tcpci_maxim.c -- 2.28.0.806.g8561365e88-goog