From patchwork Thu Feb 23 01:59:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Changhuang Liang X-Patchwork-Id: 5764 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp62718wrd; Wed, 22 Feb 2023 18:06:25 -0800 (PST) X-Google-Smtp-Source: AK7set/jWGMyfXMrIsag4YBScAbMYKnYIBEpTb6sz/8hL22/DmrVdQjxwmmynVqgqDi1AazSevYm X-Received: by 2002:a05:6a20:54a2:b0:b9:92c2:7ecd with SMTP id i34-20020a056a2054a200b000b992c27ecdmr13202221pzk.3.1677117985392; Wed, 22 Feb 2023 18:06:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677117985; cv=none; d=google.com; s=arc-20160816; b=eSDF7+ZALsw8Ue/KdBE2EVpApHIwf9ZrGSxcJEvZh8Vm27r5LYwJDKYTLhYOc1bGaj Az8JJ0WOtVQnooQTCnhs4nEnEPlMprXY/cGFq4gImxDwj30Prl6eTRTsd3Yg49f6MnfC Xi1UZlA636+4lVvbxp8d2p7/0/YMKnc6/lnfHnvyeaJa/HstCz97MsTVKijodHF2erpf AvdCo24LKt0U6tBWfj1+9SNg5ZgSN0PwEbykai3tuW9zIgT9zti3u8hirjIul1ZI1yH8 h8iirFoXj14/BQwAovImduM45Uf+bumVk1pXYksOVsnZ+cJQavSqeEeUZg4ad+szDlQU J20g== 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=Fl8jIZszoTGmqcTkwO3ocjz0lUMzSSTWiiY2XH21Sys=; b=jmfN0+tWXXrrSoyewglncIOnJ4AXynOV5ZcPzxjALMJVm4fXWGgRyDZiW09R/hyhlt ux0E6aSN6R7A/YJrckk24nJ0rNCwXsd1Mwf0ENfdO8AvMSW1q85EcImIBFEIHCQ09ssi crYmTazEHK8aQOkh2teudrp2ebuSPPxJFkMJCjFXLDGM4RzTGFullZqy+BGVUQ8pBJSn ZRHBJ9OhVDykXtZFnhciwOc5e0qvp3JiN8pyBpruTSENTxnCudNj9kzzyuShwttv+ACe jCKmP8NGSCPI2MzTfevMGnpbrJ/GMnaq67ickGN89MAVqapVivROeDxcqV6S3Pl17Cp2 EEFg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v17-20020a631511000000b004f3880f668csi5329652pgl.781.2023.02.22.18.06.09; Wed, 22 Feb 2023 18:06:25 -0800 (PST) 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 S233133AbjBWCAJ convert rfc822-to-8bit (ORCPT + 99 others); Wed, 22 Feb 2023 21:00:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232785AbjBWCAI (ORCPT ); Wed, 22 Feb 2023 21:00:08 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B495E1EBC6; Wed, 22 Feb 2023 18:00:01 -0800 (PST) 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 9418B24DE73; Thu, 23 Feb 2023 09:59:54 +0800 (CST) Received: from EXMBX162.cuchost.com (172.16.6.72) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 23 Feb 2023 09:59:54 +0800 Received: from ubuntu.localdomain (113.72.147.165) by EXMBX162.cuchost.com (172.16.6.72) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 23 Feb 2023 09:59:53 +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 v2 0/3] Add JH7110 MIPI DPHY RX support Date: Wed, 22 Feb 2023 17:59:49 -0800 Message-ID: <20230223015952.201841-1-changhuang.liang@starfivetech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [113.72.147.165] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX162.cuchost.com (172.16.6.72) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,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?1758585668929871809?= X-GMAIL-MSGID: =?utf-8?q?1758585668929871809?= 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] and patch [2]: [1] https://lore.kernel.org/all/20230221083323.302471-1-xingyu.wu@starfivetech.com/ [2] https://lore.kernel.org/all/20230215113249.47727-4-william.qiu@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 | 74 ++++ 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 | 362 ++++++++++++++++++ 8 files changed, 473 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: c9c3395d5e3dcc6daee66c6908354d47bf98cb0c prerequisite-patch-id: 4dc515731ce237184553c1606ffb3afaeb51c3d8 prerequisite-patch-id: ac150a8c622e858e088df8121093d448df49c245 prerequisite-patch-id: a4255724d4698f1238663443024de56de38d717b prerequisite-patch-id: a798370d170dc2bcc79ed86f741c21c1e6d87c78 prerequisite-patch-id: 203d2500cadc112bd20fefc56eabf1470d3d2d2d prerequisite-patch-id: 315303931e4b6499de7127a88113763f86e97e16 prerequisite-patch-id: 40cb8212ddb024c20593f73d8b87d9894877e172 prerequisite-patch-id: a1673a9e9f19d6fab5a51abb721e54e36636f067 prerequisite-patch-id: 94860423c7acc9025249d4bb36652a585bd0a797 prerequisite-patch-id: b5084253283929d9a6d0e66c350400c7c85d034d prerequisite-patch-id: a428ed7a2aa45abab86923dc467e1e6b08427e85 prerequisite-patch-id: d4f80829fca7ce370a6fad766593cdcb502fa245 prerequisite-patch-id: e3490e19e089fe284334db300ee189b619a61628 prerequisite-patch-id: 34298e3882261bc2d72955b1570cc9612ab7d662 prerequisite-patch-id: 377c5c282a0776feee9acd10b565adbd5275a67e prerequisite-patch-id: 3ccee718de0750adbf8d0b77d553a2778a344f64 prerequisite-patch-id: 4710f2ac22dca0bdd9ff5d744d2c37cab3c74515 prerequisite-patch-id: 65f2aed865d88e6fa468d2923527b523d4313857 prerequisite-patch-id: 258ea5f9b8bf41b6981345dcc81795f25865d38f prerequisite-patch-id: 8b6f2c9660c0ac0ee4e73e4c21aca8e6b75e81b9 prerequisite-patch-id: e3b986b9c60b2b93b7812ec174c9e1b4cfb14c97 prerequisite-patch-id: a2b3a9cff8a683422eb0ccf3a0850091401812d4 prerequisite-patch-id: dbb0c0151b8bdf093e6ce79fd2fe3f60791a6e0b prerequisite-patch-id: ea9a6d0313dd3936c8de0239dc2072c3360a2f6b prerequisite-patch-id: d57e95d31686772abc4c4d5aa1cadc344dc293cd prerequisite-patch-id: 29aab7148bf56a20acddcb8a11f290705fcc97f6 prerequisite-patch-id: eeecb5367bea99627210b661986ca5b49e2a9d63 prerequisite-patch-id: c02658f677990683d4c4957e06c19ed3a3a0cfab prerequisite-patch-id: 2ddada18ab6ea5cd1da14212aaf59632f5203d40 prerequisite-patch-id: 55b80c069faccc7dede15748d888bb13c7120a30 prerequisite-patch-id: 7acbc9c924e802712d3574dd74a6b3576089f78c prerequisite-patch-id: 35b9e27cc439a35eebc18cbe375ea65da94653be prerequisite-patch-id: d426704849c21687b4ef32c7d399081706e34c51 prerequisite-patch-id: 9f71c539a241baf1e73c7e7dfde5b0b04c66a502 prerequisite-patch-id: 5acc7f9a7547a301014071f446685e21779cb5f7 prerequisite-patch-id: 9fddcb61301b615ad6f0102f2235265a01ccc2a2 prerequisite-patch-id: 0c04762f1d20f09cd2a1356334a86e520907d111 prerequisite-patch-id: 04d1167facdccfd6c737bf64d83cfd6ed1d74099 prerequisite-patch-id: ff5bca2dbaafaa14248f5f9a6ddc5d26d827cf50 prerequisite-patch-id: 2bc43b375b470f7e8bbe937b78678ba3856e3b8f --- 2.25.1