From patchwork Mon Jan 23 13:29:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 646286 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 78A2EC54EB4 for ; Mon, 23 Jan 2023 13:30:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231659AbjAWNa1 (ORCPT ); Mon, 23 Jan 2023 08:30:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231948AbjAWNaZ (ORCPT ); Mon, 23 Jan 2023 08:30:25 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36D4722A0F for ; Mon, 23 Jan 2023 05:30:24 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id u19so30434526ejm.8 for ; Mon, 23 Jan 2023 05:30:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=GNbLj/XmOS18lcQ6X8VOqWOavPYN+fm3m3tQOx//CQY=; b=y1I2hXpHlXyGKsjZYDgisHlHbdrEFWMrdHw+LbJUg2u9PZkEeKin8vq7vzHQ5KTcRw AwLhJQZ2Ld5yppC0c3LhRYB1CaJibzMyuDPe93tQfyVIJnK4HQ5ZeYlsHQqPFxA4+8pZ IYgvWu3JrRyj4qZwRXWyZeV19HzqrLgp8m3t06I1/szGtrp4wxVcdU5ljdVuvUP6n0mm pnZr+lzBGgT0nEcV9UekpHf6E4BRgHKjiyMXfZ4RLEvpuIw4/Xkjw1fhs33y0jSyAzTm qcBRVahxjqq+IRiVe/abu+UHvm/ar293kZjtI2z8KrJnL6WnV0fzUHCPPyDN5T1S/9Wh hXmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GNbLj/XmOS18lcQ6X8VOqWOavPYN+fm3m3tQOx//CQY=; b=sN4KZ81kjAVhRvKRLddwJbrrWKnoys2IXhI243BWzbkCHGJG+47ILsADSA+ocrzQLq EbCeypkMBUieG0pH+PJrZhGb11aYlmb7BCGJxt4X+AXrqDf5F2VSdlQojnLhkm/tkPkZ 8qRVGtCfUITEHOFMx4yNqBINHt/NxfcesAwKC9a3BvOn0HiVexfJAT6m2ZoA/dRc/sRE AeJKcmgW7/Ee8+ScPm0b5+9vSgbua+/2ahDwqNvmwlUqyfmp+GjOZXEnIQQuxE+JwUXg bh9zPpP5voRj0DZLnRF8I+S0q+ry38uiIfKYaeyHQr5hbL2bIg3QOeZ1lJhKWIsChcG2 w1tg== X-Gm-Message-State: AFqh2kp6h0/FMvTwSrk80r+FPfp/7Lv4nNMX5bUeWSaigFlYz4Shg6Ae MABPGd7KDA83obBrqJd2U3VZCA== X-Google-Smtp-Source: AMrXdXsO2W7vTKmldyNi2VluWAXyWgl/FTLpjx5ljjPpjsV580GO1FHx9OHRarQY2voFWBfv9iIenA== X-Received: by 2002:a17:906:5417:b0:877:5dbc:da84 with SMTP id q23-20020a170906541700b008775dbcda84mr19849609ejo.72.1674480622737; Mon, 23 Jan 2023 05:30:22 -0800 (PST) Received: from [172.16.220.87] (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id s5-20020a170906c30500b008552bc8399dsm18410066ejz.172.2023.01.23.05.30.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Jan 2023 05:30:22 -0800 (PST) From: Luca Weiss Subject: [PATCH v4 0/3] Add USB/DP combo PHY config for SM6350 Date: Mon, 23 Jan 2023 14:29:48 +0100 Message-Id: <20230120-sm6350-usbphy-v4-0-4d700a90ba16@fairphone.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAMyLzmMC/zWNywrDIBBFf6W47oRR85Cu+h+lC2PHKiQanKYPQ v69UujyXDjnboKpRGJxOmyi0DNyzKlCezwIF2y6E8RbZaFQaZQKgededwgrj0v4gBlcR9qjkoZ EdUbLBGOxyYVqpXWa6rgU8vH9O7lcK/uSZ3iEQvafVlJqRCNbjU0/GC1BwrQ627woMp+9jWUJO VHj8iz2/QtItfVgtgAAAA== To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss , Johan Hovold , Krzysztof Kozlowski X-Mailer: b4 0.12.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org While this patchset started out as just adding a dedicated init sequence for SM6350 since USB PHY init didn't work in some cases, now it's also migrating the phy config and dts over to a new format. Also note, that the DP portions are pratically untested since TCPM (type-C port manager) and possibly other components aren't brought up yet. Signed-off-by: Luca Weiss --- Changes in v4: - Fix dp_serdes offsets in driver, add dp_txa & dp_txb fields (as in v2) - Fix order of resets in dtsi - Link to v3: https://lore.kernel.org/r/20221130081430.67831-1-luca.weiss@fairphone.com --- Luca Weiss (3): dt-bindings: phy: qcom,qmp-usb3-dp: Add sm6350 compatible phy: qcom-qmp-combo: Add config for SM6350 arm64: dts: qcom: sm6350: Use specific qmpphy compatible .../phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml | 1 + arch/arm64/boot/dts/qcom/sm6350.dtsi | 54 +++----- drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 139 ++++++++++++++++++++- 3 files changed, 154 insertions(+), 40 deletions(-) --- base-commit: d514392f17fd4d386cfadde7f849d97db4ca1fb0 change-id: 20230120-sm6350-usbphy-87c5e3f0218e Best regards,