From patchwork Wed Mar 15 10:04:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Changhuang Liang X-Patchwork-Id: 70105 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2249194wrd; Wed, 15 Mar 2023 03:35:20 -0700 (PDT) X-Google-Smtp-Source: AK7set94wuHeOoTTQIXv9Hsa/IVM7F2z0RLTZT5aONYTK+TDrvZoRuDBl+ks+RCdutX8kCXYsFwc X-Received: by 2002:a17:903:32cb:b0:1a0:ddfb:5d3a with SMTP id i11-20020a17090332cb00b001a0ddfb5d3amr2093945plr.11.1678876520335; Wed, 15 Mar 2023 03:35:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678876520; cv=none; d=google.com; s=arc-20160816; b=d3M+VGt1s+l6c+/+fssch3e2hyk40wDCSpcFYjbY3NSImFdPlAOFkiX0aUHF1spoZ8 O9bw494QyNQ9ZkWtKYGn0GSe7DK73LlVGLtK6uljduhCD1mEKtg5WkDeit1YuVIfBjUn oR0SslafEm46IiEolJSugnQgnxNOlECteK5xJO6sXBbA06nfi30tF3hwpFY2wvZ2kWRM 5hUTMpuHF1/Uy45UuU2UfFBcuW1ODr5oD9zmhO70I+ud24lxbeLT5etr8xUZih3F+rXA CGLUCBYBMdD8kMIXsHAf9lr0Nt3aqOp4pPFFsv7hp6o8W4bAdu1VM86x04/b9PF49D94 CmNQ== 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=+A7C7LjmTs7E4sOZ2S1YKcXvrcUqn8XbO9zFa4Z45D8=; b=vBULgTdOMa/T2W9nHEQDehKUl5LImR9an0yH1LFElbjFKmSDKb+fYnwOBM52Kxcjaj e00mNszqUr7PxXdWfe924dNTg8nhmWDjQ9b1RLhwbCci3Ua86f6V8P6GLnrwrdI3tGcF UoCl8Xkq87J8pQ5W277CfjZnWgol1p0E64Tm0oOEk/8XshpjWwqFjFrRWuok+XTECuXB bliPVcASmw4NpkVpcAVyGTBRIFZqIRgPQjnMRLRE5sArAwtjl8NpJY/JJX3/eKSb0h13 941MW2otrZWMJNb8bbHi3CYEs1zr9UeL4pxP1rLqlh2KwKWzbx+ZtudNDzdDCZITo0bD p5/A== 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 w4-20020a170902d70400b0019c354055d0si4758610ply.304.2023.03.15.03.35.08; Wed, 15 Mar 2023 03:35:20 -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 S232190AbjCOKFx convert rfc822-to-8bit (ORCPT + 99 others); Wed, 15 Mar 2023 06:05:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230009AbjCOKFY (ORCPT ); Wed, 15 Mar 2023 06:05:24 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 909284A1E6; Wed, 15 Mar 2023 03:04:40 -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 014B024E361; Wed, 15 Mar 2023 18:04:28 +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; Wed, 15 Mar 2023 18:04:27 +0800 Received: from ubuntu.localdomain (113.72.145.194) by EXMBX162.cuchost.com (172.16.6.72) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 15 Mar 2023 18:04:26 +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 v3 3/3] riscv: dts: starfive: Add dphy rx node Date: Wed, 15 Mar 2023 03:04:21 -0700 Message-ID: <20230315100421.133428-4-changhuang.liang@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230315100421.133428-1-changhuang.liang@starfivetech.com> References: <20230315100421.133428-1-changhuang.liang@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [113.72.145.194] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) 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?1760429625893924515?= X-GMAIL-MSGID: =?utf-8?q?1760429625893924515?= 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 196dc14c14d4..e8bc092dabcd 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -577,6 +577,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>; + starfive,aon-syscon = <&aon_syscon 0x00>; + #phy-cells = <0>; + }; + voutcrg: clock-controller@295c0000 { compatible = "starfive,jh7110-voutcrg"; reg = <0x0 0x295c0000 0x0 0x10000>;