From patchwork Mon Oct 25 15:09:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 12582051 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF893C433FE for ; Mon, 25 Oct 2021 15:07:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CAAF760F9B for ; Mon, 25 Oct 2021 15:07:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233672AbhJYPJa (ORCPT ); Mon, 25 Oct 2021 11:09:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233628AbhJYPJ3 (ORCPT ); Mon, 25 Oct 2021 11:09:29 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3348AC061745 for ; Mon, 25 Oct 2021 08:07:07 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id w15so9787693wra.3 for ; Mon, 25 Oct 2021 08:07:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=r3wknB51IB1YnTAJzsIFZkuKQE3RsPZNmcjzc4IBcDg=; b=ORwqpZirW8FsR0ML6vPd1iyQKwDX8LGmP7hvwMIfz4o0N+ZAL8WcEFOHK/LNOU1Pka yTneVoSnEgli5MS6Fx/xoEMvylRbQqpcx8u2qhvujpQ4wBPP6XJq9i3mrS1CQSktS4mZ sViONSQjOZJFnY5TskRD4CSlFucgsji1y1rksvjNachaIlk+GsW+ym71UFyoloT5Otuu /Enr/KQn5HCoapLrPDF7CLfqwnj/w9WyHaX1T6dfreBLfnrC6V6QfUmC+yVIa8PF1//F qUGcYDiyQud1qU8wsm6Kme7rtZo72hyaybZoxboFlTH7Xk++8TGc8bHP54Tm6XaaQ4v1 Y0cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=r3wknB51IB1YnTAJzsIFZkuKQE3RsPZNmcjzc4IBcDg=; b=Y8247E9lCXQG5uIbhYac7y50hhClHPcf9jDCTrWBOWxGXgr3HxhtZAEBQQuaNmEUEH q5+ClIk/PkXIuwd2xb/+JhIg5Hi5opSWhmefcO8iI/xNuNrpKMY0wHKMrN/U4zWBMIGY pPCQOqviqq9jf1Li6DfYsUoXfI2ZcLpYlGQCb27c3aTFW+9d+P11V8vR8pNcfpzWxon6 3NGBpk1HVUHNqTh8YS7Bb5Q4Tl8r9hhvtNDbxy4wLkVbXT3sXfA8fc8GDGmSD0S/owNm ThIjZ695aWF+U1wofKVfMLm6KL1ymBiU1eMO+I9ivib9qB+8+94quAXXGRDsuq8tZnv2 YEiA== X-Gm-Message-State: AOAM533OvaKTxaB5oZjA/iZVAEq2CA/sciq4z0JyR5fZg6DQT9Fqbxmc lHu8uOsq0lkUuZNX/aduXvv6eA== X-Google-Smtp-Source: ABdhPJy0TLBHbJ825k86gTm3EtWbSekMuzP/+YvTPC6lXpchekFbsp+EVH5b+3G7gYTyRbdBAlJeRQ== X-Received: by 2002:a5d:4a12:: with SMTP id m18mr23677773wrq.203.1635174425787; Mon, 25 Oct 2021 08:07:05 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id f20sm19173554wmq.38.2021.10.25.08.07.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Oct 2021 08:07:05 -0700 (PDT) From: Bryan O'Donoghue To: linux@roeck-us.net, heikki.krogerus@linux.intel.com, gregkh@linuxfoundation.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: wcheng@codeaurora.org, bryan.odonoghue@linaro.org Subject: [PATCH 0/6] Add pm8150b TPCM driver Date: Mon, 25 Oct 2021 16:09:00 +0100 Message-Id: <20211025150906.176686-1-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org This series adds a set of yaml and a driver to bind together the type-c and pdphy silicon in qcom's pm8150b block as a Linux type-c port manager. As part of that we retire the existing qcom-pmic-typec driver and fully replicate its functionality inside of the new block with the additional pdphy stuff along with it. An additional series will follow this one for the SoC and RB5 dtsi and dts respectively. A bootable series can be found here Link: https://git.linaro.org/people/bryan.odonoghue/kernel.git/log/?h=usb-next-25-10-21-pm8150b-tcpm Bryan O'Donoghue (6): dt-bindings: usb: Add qcom,pmic-usb-typec dt-binding header dt-bindings: usb: Add Qualcomm PMIC type C controller YAML schema dt-bindings: usb: Add qcom,pmic-usb-pdphy dt-binding header dt-bindings: usb: Add Qualcomm PMIC PDPHY controller YAML schema dt-bindings: usb: Add Qualcomm PMIC TCPM YAML schema usb: typec: qcom: Add pm8150b TCPM driver .../bindings/usb/qcom,pmic-pdphy.yaml | 115 ++++ .../bindings/usb/qcom,pmic-tcpm.yaml | 110 ++++ .../bindings/usb/qcom,pmic-typec.yaml | 116 ++++ MAINTAINERS | 8 + drivers/usb/typec/Makefile | 1 - drivers/usb/typec/qcom-pmic-typec.c | 262 -------- drivers/usb/typec/tcpm/Kconfig | 11 + drivers/usb/typec/tcpm/Makefile | 1 + .../usb/typec/tcpm/qcom/qcom_pmic_tcpm_core.c | 345 ++++++++++ .../typec/tcpm/qcom/qcom_pmic_tcpm_pdphy.c | 577 +++++++++++++++++ .../typec/tcpm/qcom/qcom_pmic_tcpm_pdphy.h | 85 +++ .../typec/tcpm/qcom/qcom_pmic_tcpm_typec.c | 593 ++++++++++++++++++ .../typec/tcpm/qcom/qcom_pmic_tcpm_typec.h | 163 +++++ .../usb/typec/tcpm/qcom,pmic-usb-pdphy.h | 18 + .../usb/typec/tcpm/qcom,pmic-usb-typec.h | 18 + 15 files changed, 2160 insertions(+), 263 deletions(-) create mode 100644 Documentation/devicetree/bindings/usb/qcom,pmic-pdphy.yaml create mode 100644 Documentation/devicetree/bindings/usb/qcom,pmic-tcpm.yaml create mode 100644 Documentation/devicetree/bindings/usb/qcom,pmic-typec.yaml delete mode 100644 drivers/usb/typec/qcom-pmic-typec.c create mode 100644 drivers/usb/typec/tcpm/qcom/qcom_pmic_tcpm_core.c create mode 100644 drivers/usb/typec/tcpm/qcom/qcom_pmic_tcpm_pdphy.c create mode 100644 drivers/usb/typec/tcpm/qcom/qcom_pmic_tcpm_pdphy.h create mode 100644 drivers/usb/typec/tcpm/qcom/qcom_pmic_tcpm_typec.c create mode 100644 drivers/usb/typec/tcpm/qcom/qcom_pmic_tcpm_typec.h create mode 100644 include/dt-bindings/usb/typec/tcpm/qcom,pmic-usb-pdphy.h create mode 100644 include/dt-bindings/usb/typec/tcpm/qcom,pmic-usb-typec.h