From patchwork Sat Dec 28 12:21:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Yan X-Patchwork-Id: 13922323 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DCCEFE77191 for ; Sat, 28 Dec 2024 12:28:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=n8a/qUR+wEt5o6LUj3kh12r4IYkssM+alcRwSJFRk6c=; b=kAEnfT6jg7UQgv y934lBKfYYoLmm0T4dR1UqnVOMZLJRFccfc/6WxLeMt6S6Uws2Vn8M0SROE//l1uM2NnBf6eGlqUr ZqytGSvZxSl7E/WWvlckIKv7kc4x7m30ZFHlizyOZLZru5MUcvRyIE96jRKfh42q304/CQxpObHU8 t7GfqxK9caZ0fkRuS6cFqOmRhY7+XO+b6XsgfTMO8D6ttY4dHBWppiINxIHPLXSOGUoj9p+jqPMt3 LRi+ikK1RWS5nqG0ttl5hmz8nKUL3oRORROP3XS+DyHcEVOfHnMm4kN/3Cvexl4RKkUDMOI7PFB1J ppBud3mUvyqgSIXnq5oQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tRVvm-00000001rfX-3hOE; Sat, 28 Dec 2024 12:28:34 +0000 Received: from m16.mail.163.com ([117.135.210.2]) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tRVpu-00000001qWT-1WqG; Sat, 28 Dec 2024 12:22:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=UZ56D 317gEmcn9NpcsH9EbXwzgNo8eOGXcdkL4nJ2YA=; b=ojB/XMx0+bKzV/c64b3+T CyfZGunaKKS6U8Tr//Nx0ZdSWISmPE76P1OFQNW9q5/YhyHmPPwYI8lf5+Cv51Zk lRHcbMDVSzPZZXF8n4Q7z/8wHzvIQw/mgZyXoR4/mG8ioL/D3X/TIY2YwH2STzYm hlZy1zmQ6lZ8xf0mY2Ui7Q= Received: from ProDesk.. (unknown []) by gzga-smtp-mtada-g1-0 (Coremail) with SMTP id _____wD3t0tl7W9nUxdCCQ--.1009S4; Sat, 28 Dec 2024 20:22:04 +0800 (CST) From: Andy Yan To: heiko@sntech.de, krzk+dt@kernel.org, joro@8bytes.org Subject: [PATCH v2 2/8] dt-bindings: phy: Add rk3576 hdptx phy Date: Sat, 28 Dec 2024 20:21:45 +0800 Message-ID: <20241228122155.646957-3-andyshrk@163.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241228122155.646957-1-andyshrk@163.com> References: <20241228122155.646957-1-andyshrk@163.com> MIME-Version: 1.0 X-CM-TRANSID: _____wD3t0tl7W9nUxdCCQ--.1009S4 X-Coremail-Antispam: 1Uf129KBjvJXoW7tF48Cw1xXF45tFW3ZryrWFg_yoW5Jr17pa nxCFykJF1xJw13ZayDtwn5CF93trsayr4ayrnagr13Kws3trW3trWa9F15Z34Yvr40qay5 Krsrury3ZF4avrDanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07j39N3UUUUU= X-Originating-IP: [58.22.7.114] X-CM-SenderInfo: 5dqg52xkunqiywtou0bp/1tbiqRPDXmdv5wS0uAABsB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241228_042230_833955_CAAC3AF7 X-CRM114-Status: UNSURE ( 8.36 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: robh@kernel.org, iommu@lists.linux.dev, detlev.casanova@collabora.com, devicetree@vger.kernel.org, hjc@rock-chips.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, vkoul@kernel.org, linux-arm-kernel@lists.infradead.org, Andy Yan , linux-rockchip@lists.infradead.org, cl@rock-chips.com Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org From: Andy Yan Add compatible for the HDPTX PHY on rk3576, which is compatible with rk3588, but without rst_phy/rst_ropll/rst_lcpll. In fact, these three reset lines are also optional on the rk3588, they just used for debug, then they were removed on the rk3576 IC design. Signed-off-by: Andy Yan --- Changes in v2: - Wrap commit message according to Linux coding style - Make "rockchip,rk3588-hdptx-phy" const for "rockchip,rk3576-hdptx-phy" - Make declare phy/ropll/lcpll reset line are not exit on rk3576 .../phy/rockchip,rk3588-hdptx-phy.yaml | 62 +++++++++++++------ 1 file changed, 44 insertions(+), 18 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/rockchip,rk3588-hdptx-phy.yaml b/Documentation/devicetree/bindings/phy/rockchip,rk3588-hdptx-phy.yaml index 84fe59dbcf48..7a307f45cdec 100644 --- a/Documentation/devicetree/bindings/phy/rockchip,rk3588-hdptx-phy.yaml +++ b/Documentation/devicetree/bindings/phy/rockchip,rk3588-hdptx-phy.yaml @@ -11,8 +11,13 @@ maintainers: properties: compatible: - enum: - - rockchip,rk3588-hdptx-phy + oneOf: + - enum: + - rockchip,rk3588-hdptx-phy + - items: + - enum: + - rockchip,rk3576-hdptx-phy + - const: rockchip,rk3588-hdptx-phy reg: maxItems: 1 @@ -34,24 +39,12 @@ properties: const: 0 resets: - items: - - description: PHY reset line - - description: APB reset line - - description: INIT reset line - - description: CMN reset line - - description: LANE reset line - - description: ROPLL reset line - - description: LCPLL reset line + minItems: 4 + maxItems: 7 reset-names: - items: - - const: phy - - const: apb - - const: init - - const: cmn - - const: lane - - const: ropll - - const: lcpll + minItems: 4 + maxItems: 7 rockchip,grf: $ref: /schemas/types.yaml#/definitions/phandle @@ -67,6 +60,39 @@ required: - reset-names - rockchip,grf +allOf: + - if: + properties: + compatible: + contains: + enum: + - rockchip,rk3576-hdptx-phy + then: + properties: + resets: + minItems: 4 + maxItems: 4 + reset-names: + items: + - const: apb + - const: init + - const: cmn + - const: lane + else: + properties: + resets: + minItems: 7 + maxItems: 7 + reset-names: + items: + - const: phy + - const: apb + - const: init + - const: cmn + - const: lane + - const: ropll + - const: lcpll + additionalProperties: false examples: