From patchwork Mon May 29 12:15:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Changhuang Liang X-Patchwork-Id: 100233 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1471086vqr; Mon, 29 May 2023 05:24:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4JwEEPzF0FgCIcJKnaHlnNQ2ok9cm3afraVrS5erYdny7/Gl5anPjW5nYQvNLEtG7k8z7U X-Received: by 2002:a05:6a20:4293:b0:10c:c407:92e5 with SMTP id o19-20020a056a20429300b0010cc40792e5mr8809915pzj.22.1685363063068; Mon, 29 May 2023 05:24:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685363063; cv=none; d=google.com; s=arc-20160816; b=E3sIX2R9kIU0UDzryfCzqpCbdzNzV3wAWqmBjneCHh6I37LbKZXivI36tij+xnxvwT eDl22ICvOrEaXCqdG6ODpQOoKAO22Iuvny3OQKqL2qa/OOCAMdM1NIr4ILQSC/IP+BkV zGINUyhm2812JTVrC0TY0Fky8GoQmEF4Hr7yAUSPsa+ZPxA64JeQH0tWJHA1ISU5OuA+ 7JK0VZejGHIWJx53cfz2w1Nb4oGt5A7aFbQ5W/lJkc6mB4JCHPusn9RVzkKQEYRul5wf vgRcR6LZ/6XyzY2jJuuc2yOa7bybrNwoeKYFrygCRNq2+EhPBEmU0e+rdmlo4A9sweKe MWkg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=IGb3/l0urM9TP24AwOkzKaWwDVFzeuTo1ia/TzPU1nc=; b=qs7u98xdm7UwsKl0R5eApSEDX61RM/DgQtoOvxcHCCHhcm+5pT9u3w81xrTsrbm6GF x9QUOVCVVDlVfGA9JjoUkrlBTogjBvX+t5JgBCWyppqYdmsdkJIG3zcoQTvwAk31GE8Y HrtsNwcIYITU4h8Zk6AL03mWeRw51ON+fr+1o3+jHzLZ0Q1WeoTCkdlQylvw1LhY1uM7 J/InpaW56iJ3dA2PvfTseqiH9S2Qg4LMTSdhICg18GiIj2KNyRhwqbnTA5Gfw2PTy2iT beWru5pKzDIaeyZV8u75fk+2dSKGWwynHRzoCb+mHZmE1RK4HvdaCy+uSqUm50WO+Fow xaBQ== 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 j24-20020a63cf18000000b0051909d663d8si9105848pgg.656.2023.05.29.05.24.05; Mon, 29 May 2023 05:24:23 -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 S230518AbjE2MPX convert rfc822-to-8bit (ORCPT + 99 others); Mon, 29 May 2023 08:15:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229606AbjE2MPQ (ORCPT ); Mon, 29 May 2023 08:15:16 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 941F1B2; Mon, 29 May 2023 05:15:11 -0700 (PDT) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id B40EE24E207; Mon, 29 May 2023 20:15:08 +0800 (CST) Received: from EXMBX062.cuchost.com (172.16.6.62) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 29 May 2023 20:15:08 +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:07 +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 3/3] riscv: dts: starfive: Add dphy rx node Date: Mon, 29 May 2023 05:15:03 -0700 Message-ID: <20230529121503.3544-4-changhuang.liang@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230529121503.3544-1-changhuang.liang@starfivetech.com> References: <20230529121503.3544-1-changhuang.liang@starfivetech.com> MIME-Version: 1.0 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767231259054597058?= X-GMAIL-MSGID: =?utf-8?q?1767231259054597058?= Add dphy rx node for the StarFive JH7110 SoC. It is used to transfer CSI camera data. Signed-off-by: Changhuang Liang --- arch/riscv/boot/dts/starfive/jh7110.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi index 2207be7e1b01..e4241e32dd09 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -579,6 +579,19 @@ ispcrg: clock-controller@19810000 { power-domains = <&pwrc JH7110_PD_ISP>; }; + csi_phy: phy@19820000 { + compatible = "starfive,jh7110-dphy-rx"; + reg = <0x0 0x19820000 0x0 0x10000>; + clocks = <&ispcrg JH7110_ISPCLK_M31DPHY_CFG_IN>, + <&ispcrg JH7110_ISPCLK_M31DPHY_REF_IN>, + <&ispcrg JH7110_ISPCLK_M31DPHY_TX_ESC_LAN0>; + clock-names = "cfg", "ref", "tx"; + resets = <&ispcrg JH7110_ISPRST_M31DPHY_HW>, + <&ispcrg JH7110_ISPRST_M31DPHY_B09_AON>; + power-domains = <&aon_syscon JH7110_PD_DPHY_RX>; + #phy-cells = <0>; + }; + voutcrg: clock-controller@295c0000 { compatible = "starfive,jh7110-voutcrg"; reg = <0x0 0x295c0000 0x0 0x10000>;