From patchwork Thu Aug 24 21:19:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 716654 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 D5CBAC27C40 for ; Thu, 24 Aug 2023 21:20:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243673AbjHXVUX (ORCPT ); Thu, 24 Aug 2023 17:20:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235649AbjHXVT6 (ORCPT ); Thu, 24 Aug 2023 17:19:58 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13085CF1 for ; Thu, 24 Aug 2023 14:19:56 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4ff9b389677so358077e87.3 for ; Thu, 24 Aug 2023 14:19:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692911994; x=1693516794; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=aTzbpQhifk1BKKUlbC708++llGqrCxcRyQyiVjC0krk=; b=uucc4Bg5IErKfIdTfyGLsCoMRNTQNRw/na+HgrouDIySI0Hd1nuMYGgVT80Wug9G5B qgCD910RwbxM88mjD6gtmtpLgS5SiTG8scBiUmcpyam5Drvz1m/vQy6gHRLCrATjqoFg C6BA/Wa+e+U3qSvgGxvZhXZ9iHH3XiDSxvuF0Hs7EFHC01PxnI2U48JRO+/H/tyupuPW dgi3oNLcuozqS8SX75R9s05JSp8qtjbHcFDQPYjzmvkRyHcSUzawM1bc2bzrjJwmagKH NmduGrXGpCBiGxRkb/15YFfC4V2ay+y4Bg9fMnq/vMaUL6V8coGyjMzTppCpeIaPaHZ3 cCxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692911994; x=1693516794; 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=aTzbpQhifk1BKKUlbC708++llGqrCxcRyQyiVjC0krk=; b=FdaDnKipubSCjKHZ4by1HkGX7aypzXCYOCuKk/QKegUHW4uC2ELM0xj5+FtT/xMWFo X7cC9ypCHD34zolzCJoAsG0ujvxNeGoyal0w1NCsf4DXOXiTa0Rc9BGukp4/GeIcPhhw 9mFMN4HxDtov9XfZdxfae73BFhQF24vR111nr6MrpEzCXN8XyOxnapmJuJYIZCcAGDly Oq94NG5DCJoEiNeIlFxyw7v4xUKLVa5RjYGhNMdA1SO+Bk7/Q77Xzk9Jcfs0Jmar9b9z JojzAR1AbBRydGnuk4ouknxDtjopjCEQ/xpd67JuVtK/o1mt7RSvpN7gfzu6rZUReRZ3 lYlQ== X-Gm-Message-State: AOJu0YzIbKmQPqUbWLi9rvUlzHHKTXSfOSuyUh/Q0A/ko2chXNoSq8iA J40LJe/l7V1FeelxdXPlxIo/2g== X-Google-Smtp-Source: AGHT+IHn0Ik6Nnr229/0R2nkLFvuJscxkIzG6VVS7EQljGN8KogWCOdH4ntHGcm/mZ4IWy+bdkftHw== X-Received: by 2002:a05:6512:1310:b0:500:96dd:f95b with SMTP id x16-20020a056512131000b0050096ddf95bmr4582608lfu.59.1692911994250; Thu, 24 Aug 2023 14:19:54 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id j29-20020a056512029d00b004fe4ab686b4sm17690lfp.167.2023.08.24.14.19.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 14:19:53 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Philipp Zabel , Johan Hovold , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v3 00/16] phy: qcom-qmp-usb: convert to newer style of bindings Date: Fri, 25 Aug 2023 00:19:36 +0300 Message-Id: <20230824211952.1397699-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Reviewing several patchsets for newer platforms made it clear that having two styles of QMP PHY bindings causes confusion. Despite binding documents having notes telling that old bindings should be used for older platforms, it is too easy to attempt adding new platform with older QMP PHY binding. Thus let's have just a single documented style of bindings. Proposed merge strategy: immutable branch with binding and PHY patches, which can also be merged into Bjorn's dts-for-6.7 Changes since v2: - Added maxItems to qcom,ipq9574-qmp-usb3-phy / clocks so that the clocks array size is always properly constrained (Krzysztof) - Dropped rogue PCIe PHY chunk from msm8998 patch. Changes since v1: - Split large patchset into smaller parts - Rebased on phy/next - Reworked bindings to follow the common standard rather than blindly moving the PHY contents. Dmitry Baryshkov (16): dt-bindings: phy: migrate QMP USB PHY bindings to qcom,sc8280xp-qmp-usb3-uni-phy.yaml phy: qcom-qmp-usb: simplify clock handling phy: qcom-qmp-usb: rework reset handling phy: qcom-qmp-usb: make QPHY_PCS_MISC_CLAMP_ENABLE access conditional phy: qcom-qmp: move PCS MISC V4 registers to separate header phy: qcom-qmp-usb: populate offsets configuration arm64: dts: qcom: ipq6018: switch USB QMP PHY to new style of bindings arm64: dts: qcom: ipq8074: switch USB QMP PHY to new style of bindings arm64: dts: qcom: msm8996: switch USB QMP PHY to new style of bindings arm64: dts: qcom: msm8998: switch USB QMP PHY to new style of bindings arm64: dts: qcom: sdm845: switch USB QMP PHY to new style of bindings arm64: dts: qcom: sm8150: switch USB QMP PHY to new style of bindings arm64: dts: qcom: sm8250: switch USB QMP PHY to new style of bindings arm64: dts: qcom: sm8350: switch USB QMP PHY to new style of bindings ARM: dts: qcom-sdx55: switch USB QMP PHY to new style of bindings ARM: dts: qcom-sdx65: switch USB QMP PHY to new style of bindings .../phy/qcom,msm8996-qmp-usb3-phy.yaml | 287 ------------------ .../phy/qcom,sc8280xp-qmp-usb3-uni-phy.yaml | 55 +++- arch/arm/boot/dts/qcom/qcom-sdx55.dtsi | 41 ++- arch/arm/boot/dts/qcom/qcom-sdx65.dtsi | 35 +-- arch/arm64/boot/dts/qcom/ipq6018.dtsi | 35 +-- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 76 ++--- arch/arm64/boot/dts/qcom/msm8996.dtsi | 40 ++- arch/arm64/boot/dts/qcom/msm8998.dtsi | 35 +-- arch/arm64/boot/dts/qcom/sdm845.dtsi | 39 ++- arch/arm64/boot/dts/qcom/sm8150.dtsi | 39 +-- arch/arm64/boot/dts/qcom/sm8250.dtsi | 38 +-- arch/arm64/boot/dts/qcom/sm8350.dtsi | 39 +-- .../phy/qualcomm/phy-qcom-qmp-pcs-misc-v4.h | 17 ++ drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 225 +++++++------- drivers/phy/qualcomm/phy-qcom-qmp.h | 8 - 15 files changed, 352 insertions(+), 657 deletions(-) delete mode 100644 Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-usb3-phy.yaml create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-pcs-misc-v4.h