Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp22017208rwd; Fri, 30 Jun 2023 02:47:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlGah+iJavOqdr5o9Om9rwygbO1JKPCvLT+zSjJ63d0lQ6cdU8oZXYY11MG/BjEMqOLpJVJi X-Received: by 2002:a05:6a00:1593:b0:681:c372:5aa4 with SMTP id u19-20020a056a00159300b00681c3725aa4mr3035644pfk.27.1688118450549; Fri, 30 Jun 2023 02:47:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688118450; cv=none; d=google.com; s=arc-20160816; b=v58KxbR1cw/M0WJ44EY48DSA23QYEkBRhDs1+MbB5s9ucpYEWOjbIJ0YVHvTxFHYVX cKEZ9SKKdQq1hEIbLOhllkbBLbvfXUismjDb+cxsoebTxqMSwaAo3PN3Z26C4CrvPOmt 995VGhQjKOEZjI6YEhIo7dEyd4WuKVfxvGMSqv2TLhCOzcAZmgjm6y/XoqPk1MwwnXc1 /CgC9sDNPv5ZC3LbT+gxsAB/oWRiqCShXymw7DqwxI6TmbtNj5E5xulSTTTsvorbGwPl 8307qTQzowbXci8XVM7M7iDLhMJ+9ImQW0y4TV0hljj34+XazElVVtd75uvfdo5tmAij mppA== 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; bh=rbybQn5QIVnAbj75G0O+3xm8O1lApOrssQzFE9rSP9Y=; fh=GZuzb+dD0Qq72001KcUUSYK6XN5aLAjs0wp33EsHnl4=; b=ipFsgaSvPWs89QdV5lwu4xU2V58T153cP5BblihcbS8l9AnpOIODZ1e+U3dE85LKlp TDWhw5yqjfQdphrG8JZShjeqrXaKoWxVA6nQOCFPobiWmEMWw1YwuxpAV5cmhivk4jAG 3EjixGK9ot/c55nkZVR1a12zlWzrip8pCjKZ9C7b8I1ZSL7PpWw/gLSa2iSzvAfPNngx a+ricEWpBegVWpuE7Z/OTmuwWAy6ov28dkkGo3/I5y6xIYRIYzQAnOiTY+tvM1GTt16+ hzZpIaS0HmS7v1ffh1cQ3Rsg5B5dEHh9VEr6WRHHgsc6mpNUQ1DrJAbftojkJHjbYJ84 apdQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bs7-20020a632807000000b0055b618c77f1si1060252pgb.194.2023.06.30.02.47.18; Fri, 30 Jun 2023 02:47:30 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232890AbjF3Jbf convert rfc822-to-8bit (ORCPT + 99 others); Fri, 30 Jun 2023 05:31:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230364AbjF3JbY (ORCPT ); Fri, 30 Jun 2023 05:31:24 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 233FC3C03; Fri, 30 Jun 2023 02:31:11 -0700 (PDT) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 68D6B24E257; Fri, 30 Jun 2023 17:30:58 +0800 (CST) Received: from EXMBX062.cuchost.com (172.16.6.62) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 30 Jun 2023 17:30:58 +0800 Received: from ubuntu.localdomain (183.27.97.206) by EXMBX062.cuchost.com (172.16.6.62) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 30 Jun 2023 17:30:57 +0800 From: Changhuang Liang To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel CC: Jack Zhu , Changhuang Liang , , , Subject: [PATCH v6 0/2] Add JH7110 MIPI DPHY RX support Date: Fri, 30 Jun 2023 02:30:54 -0700 Message-ID: <20230630093056.46904-1-changhuang.liang@starfivetech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [183.27.97.206] X-ClientProxiedBy: EXCAS061.cuchost.com (172.16.6.21) To EXMBX062.cuchost.com (172.16.6.62) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 This patchset adds mipi dphy rx driver for the StarFive JH7110 SoC. It is used to transfer CSI camera data. The series has been tested on the VisionFive 2 board. changes since v5: - Rebased on tag v6.4. - Dropped patch 3. Because it depends on the submission of others, it will be upstream separately later. patch 1: - Changed "pwrc_dphy" to "aon_syscon". - Updated title and description. patch 2: - Dropped unnecessary register operations. - Replaced "pm_runtime_get_sync" with "pm_runtime_resume_and_get". - Dropped the pm reference on "regulator_enable" error handle. v5: https://lore.kernel.org/all/20230529121503.3544-1-changhuang.liang@starfivetech.com/ changes since v4: - Rebased on tag v6.4-rc2. patch 1: - Dropped "lane_maps" property. patch 2: - Added lane maps in compatible. patch 3: - Dropped "lane_maps" property. - Changed "pwrc_dphy" to "aon_syscon". v4: https://lore.kernel.org/all/20230412084540.295411-1-changhuang.liang@starfivetech.com/ changes since v3: - Rebased on tag v6.3-rc4. patch 1 & patch 3: - Changed "starfive,aon-syscon" to "power-domains". - Added "lane_maps" property. patch 2: - Changed "STF_DPHY_APBCFGSAIF__SYSCFG(x)" to "STF_DPHY_APBCFGSAIF_SYSCFG(x)". - Merged phy_init into phy_power_on. - Merged phy_exit into phy_power_off. - Replaced syscon with power domain framework. - Parsed "lane_maps" property form device tree. - Dropped compatible private data. v3: https://lore.kernel.org/all/20230315100421.133428-1-changhuang.liang@starfivetech.com/ changes since v2: - Rebased on tag v6.3-rc1. patch 1: - Changed the 'Starfive' to 'StarFive'. - Changed the "items" to "- items". - Add description to clocks. patch 2: - Changed the 'Starfive' to 'StarFive'. - Updated the driver order in MAINTAINERS. patch 3: - Changed the 'Starfive' to 'StarFive'. - Update clocks&resets macros follow patchset [1]. v2: https://lore.kernel.org/all/20230223015952.201841-1-changhuang.liang@starfivetech.com/ changes since v1: - Rebased on tag v6.2. - Dropped patch 1, it will be added by the patch [2]. patch 1: - Changed the node name 'dphy' to 'phy'. - Changed the "starfive,aon-syscon" description. - Changed the MIPI DPHY RX IP description. - Add description to resets. - Update devicetree binding examples. patch 2: - Changed the commit message. patch 3: - Changed the commit message. - Changed the node name 'dphy' to 'phy'. - Sorted the node by address. v1: https://lore.kernel.org/all/20230210061713.6449-1-changhuang.liang@starfivetech.com/ Changhuang Liang (2): dt-bindings: phy: Add starfive,jh7110-dphy-rx phy: starfive: Add mipi dphy rx support .../bindings/phy/starfive,jh7110-dphy-rx.yaml | 71 ++++++ MAINTAINERS | 7 + drivers/phy/Kconfig | 1 + drivers/phy/Makefile | 1 + drivers/phy/starfive/Kconfig | 13 + drivers/phy/starfive/Makefile | 2 + drivers/phy/starfive/phy-starfive-dphy-rx.c | 230 ++++++++++++++++++ 7 files changed, 325 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-rx.yaml create mode 100644 drivers/phy/starfive/Kconfig create mode 100644 drivers/phy/starfive/Makefile create mode 100644 drivers/phy/starfive/phy-starfive-dphy-rx.c -- 2.25.1