From patchwork Wed Feb 8 18:34:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 651753 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C498C636D6 for ; Wed, 8 Feb 2023 18:34:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231367AbjBHSeh (ORCPT ); Wed, 8 Feb 2023 13:34:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjBHSeg (ORCPT ); Wed, 8 Feb 2023 13:34:36 -0500 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5989E23D83 for ; Wed, 8 Feb 2023 10:34:35 -0800 (PST) Received: by mail-wm1-x329.google.com with SMTP id o36so13986846wms.1 for ; Wed, 08 Feb 2023 10:34:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; 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=JLfDY/quHnwUCouz6Bzp+GXo+tVo6iB/nHd1i/j58GI=; b=bIhsmexHY4yKfObCkcb5kstFWmxUpIVr63TYSAvIjRXcuZkkHdGJWBJacJPjfPdvM2 GX2fUWokn0vCe7y4tCQkD8U88dvs1Fp18M/A64L4MwAhjkDh/bBpxiQZAVpXYPn9zSXj NmbkIShSG5ZvIIkUbEX1B3TMhkyhe/oB1yF4r9+V1jHhO11G1CLxBaSl42hadmGJ0jAD 0rzFV39/3m/uwklzHpHMTX1hVuce6Y7zb6VMf4PEcmSQ4difoQeXk0+lAGueQb+t1QMg N6nj7OPxQYYI7jbTyln4VlhvFPO4OPQw5eM8cjnZxrXGq4wO3ezQlCRnM3Vc2jrpaIU/ CggA== 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=JLfDY/quHnwUCouz6Bzp+GXo+tVo6iB/nHd1i/j58GI=; b=q8Hk6xi1HRkpXWkZJrL1nDioWe/E1AjYzaspMnBFFDyLVlDXjhidUeXY7Gr/TuA0y/ bE3BejQKm6HnEir1h2xovYcNiBS4Ml/m5aATvv7iDjpjst0PEGHQ5gucO3izg6HfJFHa 6td0rkb+Xzdb5JoV3uhIe5hfnjeLPanAX7HI2ZdzFdEUj1SI0kEJ1zMsQoSQf5uCAPoV nw4UAFYu4tlwMVvLq5PbyN9BwlqvFzeZKvOAETKveQXWt7BDLNvV94m3VYWNGqbzdFxd 1HFvCvR8MOevZ1+Kvf7+CD0xF1j/bb+CN8wJ8ZTwfpy++fV0hq/MyEsWH2a9NX1Fm+Wq zIDg== X-Gm-Message-State: AO0yUKW4Zt1RxrzUjMUsGTSPTtnsM4o6GXtlDbMFxCpU4i+2+XqH1R66 JvlScK8S46FjztSMYqKRlJuBMA== X-Google-Smtp-Source: AK7set/xGUde5OfzB9OcfQ3EaMRQi9l5zhARcOoWUXWrZgCo0SpvATGeWPaXwf+8PBILopotmrlw/A== X-Received: by 2002:a05:600c:18a6:b0:3e0:e77:3056 with SMTP id x38-20020a05600c18a600b003e00e773056mr7370990wmp.30.1675881273976; Wed, 08 Feb 2023 10:34:33 -0800 (PST) Received: from hackbox.lan ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id v1-20020adf8b41000000b002be505ab59asm14591304wra.97.2023.02.08.10.34.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 10:34:33 -0800 (PST) From: Abel Vesa To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , "vkoul@kernel.org" , Kishon Vijay Abraham I , Philipp Zabel , Johan Hovold Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Linux Kernel Mailing List , linux-phy@lists.infradead.org Subject: [PATCH v6 0/6] sm8550: Add USB HC and PHYs support Date: Wed, 8 Feb 2023 20:34:15 +0200 Message-Id: <20230208183421.2874423-1-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This patchset adds support for USB for Qualcomm SM8550 platform. This patchset is based on top of the following patchset: [1] https://lore.kernel.org/all/20230208180020.2761766-1-abel.vesa@linaro.org/ Changes since v5: * rebased on top of [1] Changes since v4: * dropped the dts/dtsi patches as there is no change needed to what is already merged * rebased on top of next-20230206 which has Luca's patches for SM6350, like Johan suggested Abel Vesa (6): dt-bindings: phy: Add qcom,snps-eusb2-phy schema file phy: qcom: Add QCOM SNPS eUSB2 driver dt-bindings: phy: qcom,sc8280xp-qmp-usb43dp: Document SM8550 compatible phy: qcom-qmp: pcs-usb: Add v6 register offsets phy: qcom-qmp: Add v6 DP register offsets phy: qcom-qmp-combo: Add support for SM8550 .../phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml | 1 + .../bindings/phy/qcom,snps-eusb2-phy.yaml | 74 +++ drivers/phy/qualcomm/Kconfig | 9 + drivers/phy/qualcomm/Makefile | 1 + drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 409 ++++++++++++++++- .../phy/qualcomm/phy-qcom-qmp-pcs-usb-v6.h | 31 ++ drivers/phy/qualcomm/phy-qcom-qmp.h | 4 + drivers/phy/qualcomm/phy-qcom-snps-eusb2.c | 422 ++++++++++++++++++ 8 files changed, 944 insertions(+), 7 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/qcom,snps-eusb2-phy.yaml create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-pcs-usb-v6.h create mode 100644 drivers/phy/qualcomm/phy-qcom-snps-eusb2.c