Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1676597pxb; Wed, 9 Feb 2022 01:56:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrIwoVTtMMdWlMzFTWhqDN+IXoyT7v65H1eZlCiHjg0EAEEIEEhZX1CChEZd4teOoFlcfs X-Received: by 2002:a17:902:e803:: with SMTP id u3mr1381219plg.41.1644400573629; Wed, 09 Feb 2022 01:56:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644400573; cv=none; d=google.com; s=arc-20160816; b=Q38oZlpuA99ZpZ52Fz+XGIrPu1o2kM9QP9j559AIMftqvDwIvgUyIHUulqCINr/34D CCjRIEQMfogO3fb1L95QN66uws8VjHTuwjGEtidKUy7RlCaJycMruhKzO1Vnl8ohqVDp mEVChO60raiXEyu/+jVxVUUXvPtb7tyyYZUB75VhABDASwswwqqhMyL9KnpGnZZORKmy fynmnVfSDqsCfG2vZKpVziy7oMDiFbWAj9+pdBjkRYEkpEpD0GyY9B4GpHCWB/wdYR7B LMKM1wpn4chE0yz0uQaSaaPSqHS/CEdaUIt12mr4Tbj+ij3wFl/2kH99lopT4jBV2svZ FKCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=wG+rTZFXF/+leQq+0KrDxipTEHrwjjGuBOVuaoku42Y=; b=qPeLpBPUno2pQnLvobEZyWpdGuJ7Q/hJDrIiYMD95t6BABYkxeVHbF26zurpWwJVm5 G2Ydz2gitO8w1pVNE89IqyU4MM1fOjFAfGsuXOC0F/5Ho781D6Chw7P2BS9ZEXRSzNG7 tR9rApzz6Z4VPjPZtOT6zHvlKmCiFsRzBNCIttAXpP1xPuk73CloljLrEs5vZa993Qmo wihOnvRx3j8/wOYgdAgA80Z8swlZS9RI7ZIbXzhyvCBiPCKcE3zqjiG64WFdLibseDVa l31HsTKAvOAKGWp0vDZGTtPSSCOjBwoYTrfUJyw634fnYQ7z51BzUWtmmZGwR3R4Kbhu 9PUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=rock-chips.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w24si14185772plq.267.2022.02.09.01.56.00; Wed, 09 Feb 2022 01:56:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=rock-chips.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354405AbiBHJYv (ORCPT + 99 others); Tue, 8 Feb 2022 04:24:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233472AbiBHJYu (ORCPT ); Tue, 8 Feb 2022 04:24:50 -0500 Received: from mail-m17635.qiye.163.com (mail-m17635.qiye.163.com [59.111.176.35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35B37C03FEC5; Tue, 8 Feb 2022 01:24:48 -0800 (PST) Received: from localhost.localdomain (unknown [58.22.7.114]) by mail-m17635.qiye.163.com (Hmail) with ESMTPA id 6C7A2400393; Tue, 8 Feb 2022 17:13:33 +0800 (CST) From: Yifeng Zhao To: heiko@sntech.de Cc: robh+dt@kernel.org, jbx6244@gmail.com, devicetree@vger.kernel.org, vkoul@kernel.org, michael.riesch@wolfvision.net, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, kishon@ti.com, p.zabel@pengutronix.de, cl@rock-chips.com, kever.yang@rock-chips.com, lee.jones@linaro.org, wulf@rock-chips.com, david.wu@rock-chips.com, Yifeng Zhao Subject: [PATCH v8 0/4] Add Naneng combo PHY support for RK3568 Date: Tue, 8 Feb 2022 17:13:22 +0800 Message-Id: <20220208091326.12495-1-yifeng.zhao@rock-chips.com> X-Mailer: git-send-email 2.17.1 X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgPGg8OCBgUHx5ZQUlOS1dZCBgUCR5ZQVlLVUtZV1 kWDxoPAgseWUFZKDYvK1lXWShZQUhPN1dZLVlBSVdZDwkaFQgSH1lBWUNLQkhWH0lKTUIfGB9JQ0 pPVRMBExYaEhckFA4PWVdZFhoPEhUdFFlBWVVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6My46Ihw*Fz4MLCEQMjlKLwwp FAMKFBVVSlVKTU9PSEpKTUpPTk5MVTMWGhIXVQISHR4VHFUBExoUOwkUGBBWGBMSCwhVGBQWRVlX WRILWUFZTkNVSUlVTFVKSk9ZV1kIAVlBSE1NTjcG X-HM-Tid: 0a7ed89c11e5d991kuws6c7a2400393 X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 phy can be used as pcie-phy, usb3-phy, sata-phy or sgmii-phy. Changes in v8: - rename 'mode' to 'type' - using devm_reset_control_array_get_exclusive - move rockchip_combphy_set_mode into rockchip_combphy_init Changes in v7: - remove u3otg0_port_en, u3otg1_port_en and pipe_sgmii_mac_sel - rename regs Changes in v5: - modify description for ssc and ext-refclk - remove apb reset - add rockchip_combphy_updatel() - restyle Changes in v4: - restyle - remove some minItems - add more properties - remove reset-names - move #phy-cells - add rockchip,rk3568-pipe-grf - add rockchip,rk3568-pipe-phy-grf - add devm_reset_control_array_get() - remove clk structure - change refclk DT parse - change dev_err message - add dot to phrase - add ext_refclk variable - add enable_ssc variable - rename rockchip_combphy_param_write - remove param_read - replace rockchip-naneng-combphy driver name - rename node name Changes in v3: - Using api devm_reset_control_get_optional_exclusive and dev_err_probe. - Remove apb_rst. - Redefine registers address. - Move pipe_phy_grf0 to rk3568.dtsi Changes in v2: - Fix dtschema/dtc warnings/errors - Using api devm_platform_get_and_ioremap_resource. - Modify rockchip_combphy_set_Mode. - Add some PHY registers definition. - Move phy0 to rk3568.dtsi Johan Jonker (1): dt-bindings: soc: grf: add naneng combo phy register compatible Yifeng Zhao (3): dt-bindings: phy: rockchip: Add Naneng combo PHY bindings phy: rockchip: add naneng combo phy for RK3568 arm64: dts: rockchip: add naneng combo phy nodes for rk3568 .../phy/phy-rockchip-naneng-combphy.yaml | 109 ++++ .../devicetree/bindings/soc/rockchip/grf.yaml | 2 + arch/arm64/boot/dts/rockchip/rk3568.dtsi | 21 + arch/arm64/boot/dts/rockchip/rk356x.dtsi | 47 ++ drivers/phy/rockchip/Kconfig | 8 + drivers/phy/rockchip/Makefile | 1 + .../rockchip/phy-rockchip-naneng-combphy.c | 581 ++++++++++++++++++ 7 files changed, 769 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/phy-rockchip-naneng-combphy.yaml create mode 100644 drivers/phy/rockchip/phy-rockchip-naneng-combphy.c -- 2.17.1