From patchwork Fri Feb 10 06:17:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Changhuang Liang X-Patchwork-Id: 55234 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp784366wrn; Thu, 9 Feb 2023 22:20:34 -0800 (PST) X-Google-Smtp-Source: AK7set+I5IFkL/ehXmN5a0aCSuFNoWShK4wlnarn8afB+ThsK/rZGjDmPCLZ0d3rCMRGjbHtzCqD X-Received: by 2002:a17:906:7c13:b0:8aa:c261:f2a5 with SMTP id t19-20020a1709067c1300b008aac261f2a5mr9360277ejo.12.1676010034491; Thu, 09 Feb 2023 22:20:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676010034; cv=none; d=google.com; s=arc-20160816; b=bzpJqCDJ+q3XiCKe9E54lK+7ZBYqaQIIDWj9+fdkMnJGO/q4EDi34JjWyhvldet1vF Ox/+wbAnCnfU4mDnsps30lsjSdXs/oWr+N+Ter3nqE8F7q7qDtcciRFQf4iFD0ndfrwy Xep9qlU4nZyvZUbnlrEVy5TUx7bhhwIT/xHUqSEyQS6WOauUrdbwGY2LVi+VtUU4Ik++ h68CiZ/3uXY46RjdNOUniXlF2grrtW6DlYV7XYnDBM+DvrKnEgTHFev2V4tPVKaIXrvA bekiMyi9rXjnTrmFxR+s6bL7/DgRinkk6tzpbfDVh8FQDLFKnlBB4qoLhI+S2lc00iHM VQ8g== 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=S7npyQYOKoqiInJ7QDMlBqPpAgbOWNAbWk7/FIlYpH0=; b=wnLl5XpG3+c0fsIkVJ8GzFyXn5nE8UL5fO+npXDn0ci3MOGwMl34EZ74n124qGfnDr epnS9I55rr2j44ZxRNj2J+Bsj8a6Uu6PMx/vL7vLKopaFiPFeEk4FF1JACqZT9ntxsNv /dOFE/CLclq2xgpDLLhkUFhLJMNAia94q/H4N+ENxX/uBkclnz+6v2f2d3Q9D8mIC91e qQiILGN6aLf6o0ZE9UCGOaMjGTGaXHP8A83cREhPSg/9KYE3SLoGX1us6zQ9ZFvXbfCt lU4HTTM7ZlKRVPGuVnzFGuzKvjZbalfbD8VBaoBFu1GsUKOottTFe3341S+lx5c7gAH6 XFcg== 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 h8-20020a17090791c800b0088a35d495a2si4498656ejz.293.2023.02.09.22.20.11; Thu, 09 Feb 2023 22:20:34 -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 S231319AbjBJGR1 convert rfc822-to-8bit (ORCPT + 99 others); Fri, 10 Feb 2023 01:17:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231286AbjBJGRY (ORCPT ); Fri, 10 Feb 2023 01:17:24 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AD405BA7E; Thu, 9 Feb 2023 22:17:23 -0800 (PST) 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 fd01.gateway.ufhost.com (Postfix) with ESMTP id C712424E2C5; Fri, 10 Feb 2023 14:17:19 +0800 (CST) Received: from EXMBX162.cuchost.com (172.16.6.72) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 10 Feb 2023 14:17:19 +0800 Received: from ubuntu.localdomain (183.27.96.33) by EXMBX162.cuchost.com (172.16.6.72) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 10 Feb 2023 14:17:18 +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 v1 4/4] riscv: dts: starfive: Add dphy rx node Date: Thu, 9 Feb 2023 22:17:13 -0800 Message-ID: <20230210061713.6449-5-changhuang.liang@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230210061713.6449-1-changhuang.liang@starfivetech.com> References: <20230210061713.6449-1-changhuang.liang@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [183.27.96.33] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) 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?1757423897700939248?= X-GMAIL-MSGID: =?utf-8?q?1757423897700939248?= Add dphy rx node for the Starfive JH7110 SoC. It use to transfer the CSI cameras 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 bce3e407ab60..bdd7b672fd94 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -488,5 +488,18 @@ voutcrg: clock-controller@295C0000 { #reset-cells = <1>; power-domains = <&pwrc JH7110_PD_VOUT>; }; + + csi_phy: dphy@19820000 { + compatible = "starfive,jh7110-dphy-rx"; + reg = <0x0 0x19820000 0x0 0x10000>; + clocks = <&ispcrg JH7110_ISPCLK_M31DPHY_CFGCLK_IN>, + <&ispcrg JH7110_ISPCLK_M31DPHY_REFCLK_IN>, + <&ispcrg JH7110_ISPCLK_M31DPHY_TXCLKESC_LAN0>; + clock-names = "cfg", "ref", "tx"; + resets = <&ispcrg JH7110_ISPRST_M31DPHY_HW>, + <&ispcrg JH7110_ISPRST_M31DPHY_B09_ALWAYS_ON>; + starfive,aon-syscon = <&aon_syscon 0x00>; + #phy-cells = <0>; + }; }; };