Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4298695pxb; Mon, 25 Oct 2021 01:15:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFJIP0A0jCunlTXJTUy3Q/EX15piX4q/MkaGJGsEAsO+ggbx9Ou+Tn9zNkfOuRqifUY5OR X-Received: by 2002:a17:90a:9418:: with SMTP id r24mr18768183pjo.238.1635149759347; Mon, 25 Oct 2021 01:15:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635149759; cv=none; d=google.com; s=arc-20160816; b=m15HhyPqJGbqIpxAwpd1M65hJalg0HFe8zyFezeM/pg48k9rJB1lowMF1LpY06C30k nkk2n/qFmKdUSJYA8mS3v1AeEE2qkX4jJGICDCEREg5G1q2WX/PlSf3nfHvgbiR3aIZB /WqINxarYOzSnaq3GcZ3TjRWa08C99iFSmQ4DQkfEx+9fRE+WYp/RJ50JZSc42xIaPq5 SjaeyzES5aN9vSiEo8P2MUSkZuE1SmEyeMdNNb0fXdctvejNpz4DcvzjRnRkTbx3/DLC QNCEpo3tZPxh9shVRkPNI0rykZXYdpaRhJjno6y0TUtLMM4Eg6lYjXLJcnDHL0bUlTOF 1Rpw== 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=8Og/xOP+MkWYuhJdmRorueUoaFvZHTrwsRQ7U+fLbtQ=; b=ih2P2LH7j51A/SEYuaKY6BXjViKlyMtrc1WNQJmqTGOSZ8dGlDwfj04r2Tl3a/NJVY DrLp3lHw43wt1EC7CBJ9tuHScQWIKSIe71AwNS6LnVDR+QOhX4e+Dau/++7VoGXOyus+ 8h+XH279XWI1yiWZKhTGyp2/++TA4MimSNXcRvp/YKxkGOgRFM5krUz/X8XNQyV+JR5T MFrx8y1kb3Hm1Ffm3vVFE+OucioNt1SvG5QfsWR596iFa5qeSPhzIbkYUDzX8onOu+w2 tLn4+K2bUMSJiSxo7IFTSOOF57GIXcCVd5CVTaeenDDFcoO9JP9wftjgiurkWXuCtFUs gwMQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r23si22105918pls.210.2021.10.25.01.15.45; Mon, 25 Oct 2021 01:15:59 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231264AbhJYIQZ (ORCPT + 99 others); Mon, 25 Oct 2021 04:16:25 -0400 Received: from lucky1.263xmail.com ([211.157.147.134]:45046 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230169AbhJYIQZ (ORCPT ); Mon, 25 Oct 2021 04:16:25 -0400 X-Greylist: delayed 440 seconds by postgrey-1.27 at vger.kernel.org; Mon, 25 Oct 2021 04:16:24 EDT Received: from localhost (unknown [192.168.167.70]) by lucky1.263xmail.com (Postfix) with ESMTP id 2E8C6D07C1; Mon, 25 Oct 2021 16:06:37 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-SKE-CHECKED: 1 X-ANTISPAM-LEVEL: 2 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.263.net (postfix) whith ESMTP id P17687T140584201217792S1635149192925589_; Mon, 25 Oct 2021 16:06:36 +0800 (CST) X-IP-DOMAINF: 1 X-RL-SENDER: yifeng.zhao@rock-chips.com X-SENDER: zyf@rock-chips.com X-LOGIN-NAME: yifeng.zhao@rock-chips.com X-FST-TO: heiko@sntech.de X-RCPT-COUNT: 13 X-LOCAL-RCPT-COUNT: 2 X-SENDER-IP: 58.22.7.114 X-ATTACHMENT-NUM: 0 X-UNIQUE-TAG: <42cb8536a71827e14b54ff0d518dd166> X-System-Flag: 0 From: Yifeng Zhao To: heiko@sntech.de, robh+dt@kernel.org Cc: 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, Yifeng Zhao Subject: [PATCH v3 0/3] Add Naneng combo PHY support for RK3568 Date: Mon, 25 Oct 2021 16:06:29 +0800 Message-Id: <20211025080632.32063-1-yifeng.zhao@rock-chips.com> X-Mailer: git-send-email 2.17.1 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 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 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 | 98 +++ 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 | 638 ++++++++++++++++++ 6 files changed, 813 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