From patchwork Fri Oct 28 13:43:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 821 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp842717wru; Fri, 28 Oct 2022 06:52:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5JDmDqWRYts74gjN7t5/qK+oFupiulB7ubSwADkNDsnJhxIShQF80IPZYnkLC4ZYoTHjVQ X-Received: by 2002:a17:907:3f04:b0:741:4bf4:fe42 with SMTP id hq4-20020a1709073f0400b007414bf4fe42mr48239757ejc.664.1666965144260; Fri, 28 Oct 2022 06:52:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666965144; cv=none; d=google.com; s=arc-20160816; b=taPlMZBx+XQfEFlmjZXp9l0zYV26YUFfbnpdnMwx9ECHewDJhOrpSohWAbiJXcdY9t l03JTDglB91rVKwftbdgzTbfbLzblEptzR0T9z8E2VIx3M1XtObSbT9UHHyS/9VHNMKD yDxvYzFGFRQxHNyqGo3fpA4SxiwwUx/0gl4F5i/OB5fTlJJbOp24X0dxaPM+Yh5W+t0m vdM65eRbCK0b/YkXVA5eS23yQifdSBy0mUJ+lt0PbC8Hx1Gy2AW0NhINyhpe4L9Ymfs1 Mb60O9cF3qkRhw4fcEUN7NBnCGUb1WPbuJBhGDwCuRZwweURufaRWX6kpETqkDSTiaH7 AlGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=o+Y5CXNSq+54Qi18Q5rFLXMGGNDN9TYj2YxzU4j+U9o=; b=X4VSoSdirNbbewWit4j5WYdq40deidhGNX9/rryvsDjQzDMlP3IDd8pOhsPY62vq4G 6U1zonXjFv2r3m6MZxzNdHgYpJp+dW9R+snGLE/lWx4dZUEgfT4z6LcSMTU2+YHpLXL9 8uayiDvAHHWacE3Km7NdptTC8TqBhcjg0WwVlmOSDIFQ+vh/4vELviZOJmJjPcTL+uhW lLCldB51jNBsgrnfHO/p+sAZVe1mEDQ0Yr8VbnPwOUoKO6YAVSJjVVRI0mPWTsDaYR0a cRO2vF9zOQYdG1AxSeJ0DvDYuqy8pWJkZ8yKzMSeIzcUyDnC9/6H6jP2BWVlcqhvV7jL 3OaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b6I83973; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b17-20020a056402279100b00462a20f860bsi5409126ede.539.2022.10.28.06.51.59; Fri, 28 Oct 2022 06:52:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b6I83973; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231298AbiJ1NpC (ORCPT + 99 others); Fri, 28 Oct 2022 09:45:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231156AbiJ1Nov (ORCPT ); Fri, 28 Oct 2022 09:44:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBE9B15804; Fri, 28 Oct 2022 06:44:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 67F7B62843; Fri, 28 Oct 2022 13:44:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7A44C433D7; Fri, 28 Oct 2022 13:44:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666964680; bh=MmnLFLEGV38Oa0D4suwaaBqgVsASkgXcREUF9ghKQhk=; h=From:To:Cc:Subject:Date:From; b=b6I83973NpTJu0pEVU8pqNx1VhMLIQm58a5y037R1gi6ZQML2VNeFgmNun+czg6IR 0b1FrM63M3lywgUVCQCI+YGlxW7Tweqi9Z2yDuKOgJZK52C9sc+Pd0pxGSbR+rJAQQ GJaJjGQSADAzClmtyzst+lbRWEnpMqVibSabKGmRnRwvjNLHWnX8K9wUNYDme2awth UUcSrDdop3JKdkP5owtVmB/OFCfbfU5uUfxUTNNsMi110/p7fndi+ikuOJgks8AesJ 8j51tHtlHbmjqeYOLu6t0LiFnJODy94qR7YUtNSvSGZftczut9D17SuK01/r7jIRVS Fory2ai5fG7Gw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1ooPes-000520-0y; Fri, 28 Oct 2022 15:44:26 +0200 From: Johan Hovold To: Vinod Koul Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH v2 00/13] phy: qcom-qmp-usb: fix sc8280xp binding Date: Fri, 28 Oct 2022 15:43:54 +0200 Message-Id: <20221028134407.19300-1-johan+linaro@kernel.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747939643429418979?= X-GMAIL-MSGID: =?utf-8?q?1747939643429418979?= This series fixes the USB PHY devicetree binding for SC8280XP and adds support for the new updated binding to the driver. The first half of the series clean up the driver in preparation for supporting SC8280XP and its new binding that drops the legacy child node and the (incomplete) description of register subregions. The other QMP bindings suffer from similar problems and the PCIe and UFS drivers are being fixed here: https://lore.kernel.org/lkml/20221021110947.28103-1-johan+linaro@kernel.org/ https://lore.kernel.org/lkml/20221024090041.19574-1-johan+linaro@kernel.org/ and a follow-on series will do corresponding changes to the combo QMP bindings and driver. Note that these patches depend on the linux-phy next branch of today. Johan Changes in v2 - add missing "3" to current bindings file name "qcom,msm8996-qmp-usb3-phy.yaml" to match compatible - add missing "-uni" infix to new bindings file name "qcom,sc8280xp-qmp-usb3-uni-phy.yaml" to match compatible (Krzysztof) Johan Hovold (13): phy: qcom-qmp-usb: fix sc8280xp PCS_USB offset phy: qcom-qmp-usb: sort device-id table phy: qcom-qmp-usb: move device-id table phy: qcom-qmp-usb: move pm ops phy: qcom-qmp-usb: merge driver data phy: qcom-qmp-usb: clean up device-tree parsing phy: qcom-qmp-usb: clean up probe initialisation phy: qcom-qmp-usb: rename PHY ops structure phy: qcom-qmp-usb: clean up PHY init dt-bindings: phy: qcom,qmp-usb: rename current bindings dt-bindings: phy: qcom,qmp-usb: fix sc8280xp binding phy: qcom-qmp-usb: restructure PHY creation phy: qcom-qmp-usb: add support for updated sc8280xp binding ...hy.yaml => qcom,msm8996-qmp-usb3-phy.yaml} | 20 +- .../phy/qcom,sc8280xp-qmp-usb3-uni-phy.yaml | 105 ++++ drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 532 +++++++++--------- 3 files changed, 368 insertions(+), 289 deletions(-) rename Documentation/devicetree/bindings/phy/{qcom,qmp-usb-phy.yaml => qcom,msm8996-qmp-usb3-phy.yaml} (95%) create mode 100644 Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb3-uni-phy.yaml