Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3063942rwd; Mon, 29 May 2023 05:20:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4xyrdAK50Uahv3hA1Mx3wUwhmL8/+m4n2mKr8dZtdAL6Z7iA3ltrxuhLiGdwxFo1aOn2rJ X-Received: by 2002:a17:902:7790:b0:1af:b049:b32e with SMTP id o16-20020a170902779000b001afb049b32emr9967625pll.56.1685362852783; Mon, 29 May 2023 05:20:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685362852; cv=none; d=google.com; s=arc-20160816; b=AjXhXSO3wAV9N5qrLdTf6I92WcyTkxf2+aent5O4IcOAJtNmV2DLzQn3crK9A60yy8 fdvhW4j5Owfw3glBEVc9//BCdfGsDVNATu/FSw1/qyZTzIyzPtlk7vaqsVpiN21GWFxE iB04ltoE+jwc2Jv3OhewVluyDcLQ1+DIueBFAVhbUKJnU3YGc22TSx/GdTZexM+qkGBS 1PghWdzZQGDV7qgJhms7RuSuM7//Hf+mmNy3EwmDrcvC6W5kB3bDHLTe88C2NQGIYI0V kL4GPT/eKEJUvUKddXM/SxQpMiN7+ntQq+cyZ3YNn34KwMhgX18gIgF6J4QOaHa9u66A J2Zw== 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=uZeEulU5MhBS28t+7i+fRuz3QDV8hqNosuIBJ0/u6JI=; b=iPlxkVoasmE0mX0rgZWTP3WfLd+xwGI0JKPuNjWOSWU8bLi4nPmYK2HOpEuexPE5+a 9vWE5vipdEFEeWkEgUktOWBHkjghkXtwR7N0w520zopW69A6zGhX5llannRkX8KvELKY usfC2UJrWJjJ1MgWnEd0bxSbTBkcyYMsmrJ++ykj69XZs8UMvkkHVUHBryu2uhab0DRJ qKjQ2eDvobAoqqlPTD8lk5WDUhnIjOOmKNt913IokJWZyBY2bqDWahQu8XGpzZ17zmN/ ABXg07tRXsoQQ/wVPylB6reIvLgO3NMWjgLkVC+hUmjZNwQdLh0yBNIMY6Jc0l7gOhhF IBcQ== 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 c24-20020a170902b69800b001a1eac2df75si9448304pls.490.2023.05.29.05.20.39; Mon, 29 May 2023 05:20:52 -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 S231696AbjE2MPU convert rfc822-to-8bit (ORCPT + 99 others); Mon, 29 May 2023 08:15:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230165AbjE2MPQ (ORCPT ); Mon, 29 May 2023 08:15:16 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F919B1; Mon, 29 May 2023 05:15: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 fd01.gateway.ufhost.com (Postfix) with ESMTP id A0FAC7F8A; Mon, 29 May 2023 20:15:06 +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; Mon, 29 May 2023 20:15:06 +0800 Received: from ubuntu.localdomain (113.72.147.198) by EXMBX062.cuchost.com (172.16.6.62) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 29 May 2023 20:15:05 +0800 From: Changhuang Liang To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel CC: Jack Zhu , Changhuang Liang , , , , Subject: [PATCH v5 0/3] Add JH7110 MIPI DPHY RX support Date: Mon, 29 May 2023 05:15:00 -0700 Message-ID: <20230529121503.3544-1-changhuang.liang@starfivetech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [113.72.147.198] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) 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_PASS, 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. This patchset should be applied after the patchset [1] [2]: [1] https://lore.kernel.org/all/20230518101234.143748-1-xingyu.wu@starfivetech.com/ [2] https://lore.kernel.org/all/20230519060202.15296-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 (3): dt-bindings: phy: Add starfive,jh7110-dphy-rx phy: starfive: Add mipi dphy rx support riscv: dts: starfive: Add dphy rx node .../bindings/phy/starfive,jh7110-dphy-rx.yaml | 71 +++++ MAINTAINERS | 7 + arch/riscv/boot/dts/starfive/jh7110.dtsi | 13 + 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 | 300 ++++++++++++++++++ 8 files changed, 408 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 base-commit: f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6 -- 2.25.1