From patchwork Thu Jun 8 16:22:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 105038 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp397002vqr; Thu, 8 Jun 2023 09:28:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5SoQMW78KXwUpJ8L7ezCewvoLL5vXCXMv854VtDBD/UThpfBHL/9nJbuyiMCgZqvAk+k1A X-Received: by 2002:a17:903:2784:b0:1b3:7de7:f83f with SMTP id jw4-20020a170903278400b001b37de7f83fmr209258plb.26.1686241698424; Thu, 08 Jun 2023 09:28:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686241698; cv=none; d=google.com; s=arc-20160816; b=ZYRisuz496DhQLiIFzBvwzkuBgKNEFDKDFEWN0/HR/OqiT6c8kNBku5kk2RZE+O8f3 2ld2CN+izfnizhjbbqc2rIeoVLoJnQzD9K3iLB6eM2xEDodGGxh5F7+De3d44/8/bG4L uW13JA04faObuabNbLmLLqEsCMWjtsJD6V5oEMb1DWxRMnZq9F2KMuwkC3P5Fpvv11w0 z76UDhKvSBYFA7n6v4WS4C+de1aVtQXlOiF7YAWXfJPjinugRlc14ElbAIp2K2V8KgUU 1nxXKu93vtxmHwu4eRFmlO7Y49AC73O7KThCnuzrKAVg4YZ6FX6cZREI066XYmGTk+CV 3Xgw== 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 :dkim-signature; bh=mLLjBqT2fcvpln0WHPARsd41Umqg8GN627QQnAJ1TO8=; b=emYpaLTpjSlT4u93YEgDlgJ3dduWmpxfELm3P/vm75dxKUu9CTRxZlnFh4uhHR1QY9 v/rEZnOZW4hR8VcS+VOH+2hAQ90c1qQ2EnTgCBwhxhsVR2lCe1wHP5klR49joYbAZsn0 x69C2lXSSXN4Iqmdr2wHmAWqzTTbUSLPFwceZpjbDrEitjeGXDQEmCe7DNBqhjlfHjKL UXbCWfL60inZOaPwwieIOp8sBoQ2huNoPZjA5QySxG1ScZ9wEEJ6BuDjZbB92noLAcm8 5WM6IzBYeaNBh/mjEgFyQSv+QDCl8fTRVFFKn1UA+urv6B65+R/yU5PAMf/8DR+mc75s jP4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=V399m8Bx; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ku11-20020a170903288b00b001b02bd00c73si1273904plb.253.2023.06.08.09.28.05; Thu, 08 Jun 2023 09:28:18 -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; dkim=pass header.i=@collabora.com header.s=mail header.b=V399m8Bx; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234090AbjFHQWy (ORCPT + 99 others); Thu, 8 Jun 2023 12:22:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232116AbjFHQWp (ORCPT ); Thu, 8 Jun 2023 12:22:45 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAC552712; Thu, 8 Jun 2023 09:22:43 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-248-189-092.ewe-ip-backbone.de [91.248.189.92]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id EB8676606F24; Thu, 8 Jun 2023 17:22:41 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1686241362; bh=d5W9cB5m/2xTUJ3EBNif6t03N/4rl9ZbDzQL72k7Itw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V399m8BxIm0sskCAfXqxPOGJP/hCAWJRkGRMzdjWsXTs/b3sj1aS8itGiSFIvfkLC 01nY3deP4LQAK7XUvlnDjHIALP7YYcPQSlvVYaLSk4KaB5OaPJwwWnpgP7jXTS9ubD Qd6arz46D65sIhXjO5HQVzsJw1HO2xplt4NT7lhdVfSV/gpBs+JNY8stu5KBei0x1n qhXbfZyXiOzF2D8ko/RdXK0qxr0SaVc9IUHOAYuN93d1NGBtgubIcDpE2I6osRv/7/ Da8241ZE14m0dEbh0/2BDyzq9ymTTkGxFkJ4Ei1dcjuHQF8SQv55m0Z5b7M1JAhnoD ArC/q0LDeT2AA== Received: by jupiter.universe (Postfix, from userid 1000) id CDCFD4807E2; Thu, 8 Jun 2023 18:22:39 +0200 (CEST) From: Sebastian Reichel To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Damien Le Moal , Serge Semin , Vinod Koul , Kishon Vijay Abraham I , linux-ide@vger.kernel.org, linux-phy@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH v3 3/5] dt-bindings: phy: rockchip: rk3588 has two reset lines Date: Thu, 8 Jun 2023 18:22:36 +0200 Message-Id: <20230608162238.50078-4-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230608162238.50078-1-sebastian.reichel@collabora.com> References: <20230608162238.50078-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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?1768152575157036180?= X-GMAIL-MSGID: =?utf-8?q?1768152575157036180?= The RK3588 has two reset lines for the combphy. One for the APB interface and one for the actual PHY. Signed-off-by: Sebastian Reichel Reviewed-by: Krzysztof Kozlowski --- .../phy/phy-rockchip-naneng-combphy.yaml | 34 ++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/phy/phy-rockchip-naneng-combphy.yaml b/Documentation/devicetree/bindings/phy/phy-rockchip-naneng-combphy.yaml index 9ae514fa7533..d3cd7997879f 100644 --- a/Documentation/devicetree/bindings/phy/phy-rockchip-naneng-combphy.yaml +++ b/Documentation/devicetree/bindings/phy/phy-rockchip-naneng-combphy.yaml @@ -31,8 +31,14 @@ properties: - const: pipe resets: + minItems: 1 + maxItems: 2 + + reset-names: + minItems: 1 items: - - description: exclusive PHY reset line + - const: phy + - const: apb rockchip,enable-ssc: type: boolean @@ -78,6 +84,32 @@ required: - rockchip,pipe-phy-grf - "#phy-cells" +allOf: + - if: + properties: + compatible: + contains: + const: rockchip,rk3568-naneng-combphy + then: + properties: + resets: + maxItems: 1 + reset-names: + maxItems: 1 + - if: + properties: + compatible: + contains: + const: rockchip,rk3588-naneng-combphy + then: + properties: + resets: + minItems: 2 + reset-names: + minItems: 2 + required: + - reset-names + additionalProperties: false examples: