From patchwork Mon Feb 19 21:28:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Xiwen via B4 Relay X-Patchwork-Id: 203287 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp50214dyc; Mon, 19 Feb 2024 13:32:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVSqAmc1ZUWQCdSS3bX0QmS9fMiFr67cWfFryZKoY5ShQY96UJzQIhIP8Pjg5JPyTNRzbSLNnntA9KWxtkM9lBNikNMZA== X-Google-Smtp-Source: AGHT+IH6uaXoZlCF3uIGZVSaBzXriAsbkoseeIK038t1OUopqSHoCIB7iVyMu1OU2huAlIzgq828 X-Received: by 2002:a05:6a00:9294:b0:6e4:7a93:b626 with SMTP id jw20-20020a056a00929400b006e47a93b626mr52992pfb.20.1708378341513; Mon, 19 Feb 2024 13:32:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708378341; cv=pass; d=google.com; s=arc-20160816; b=oqLrjCF5jDVC0SsIWMkbWc0vLAf+A1NV+XbrJoASfENcvAAYjDAzJmP7tqx+J4XU2u wx0CtldTx4VIYdq3BJXBaakEvxa8vZ1ALyF6bLnt2zyyvs1WExEahUyFfNAlU6GMWbuy feW0LEXVx2jWRZO8VgkEMy/wbazcBb/oQ/AEV7M53Py8l1kXUxw/HM8ZiN3gV+NTOfcr NzwtXdO3uUOc89ZQ1+9WV5CxTO5nb4TehhTTpZoGBqM42V3GD3R2KEIfa8vwCqrRXP3a mNPxoVKE7q3ZfpL/9RrkvrOk6g2usNpAKjerl1X1+nsubf53BxtM7yNzjv1mnmIgoKXh un0g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=2mfmgLwXNB6TqopFsgqI4iSzMkcqIeaTt109Dn6yeIA=; fh=zeAM21czM+vIwT11j3JBFvwo0dMHxyj0T3l3EYWXLvQ=; b=kuH1WkuZ+v7ldWJ8Vm0ekMEjhEQAbHjxUk4gi7HnCoIuTRQrl1enNBxOJc3nq2zEHa 0fCedfoarY19sr9BGIvLXbB7gqnuh28DPtKDU8HDrQPwe8rIVJfaj1qgXE7cWxdqU3Qv b4D0tRr9XfyDq6HSnuIDZGYIYpIGQhdAdoxQACNSqvVlb023AhMTe7zX0pHHzChBbb2K 5pKk7kSjHBi52CUZ1bOcfpiIc9sOJRbilT4tzlus7aVGJaykgqy/6/YmpsPo/E827Is/ Ij6lJNIsvd9ejehMikJOeB+wv3fGnH0cqMVTs5g+FFuS/G407SV97648eZc9FjMdi8lZ s9Qw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OcvjZdSX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-72003-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72003-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id x40-20020a056a0018a800b006e054945bafsi5124261pfh.215.2024.02.19.13.32.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 13:32:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72003-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OcvjZdSX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-72003-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72003-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 775FCB21D2D for ; Mon, 19 Feb 2024 21:29:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6290F56B9F; Mon, 19 Feb 2024 21:28:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OcvjZdSX" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D65554770; Mon, 19 Feb 2024 21:27:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708378080; cv=none; b=qLTfAhwHyKoJCTk+e/akv99TqpZANmXSVLZW+Wg0+FuwarlUGZYn1NjqAWdBFgwWtLUHqlZi7YuSZ1eczngjFtW2TFWLGjDSv9jeiOvLW10kRd77l2TTNVclAu0mVZLFGQghfjog/UcJGqliBsFk968FEJvmYZ0nKOvpcbkKuIU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708378080; c=relaxed/simple; bh=bubzY9/Q81Ml7PldAcrUeOkRxvvoWWMJMf+jhZFDA1s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VRMaJ3HIHCkX3nSxyxrUQvClYeZqikuERYc/lCyTZKiV2ifZtHRxKoEfOHgbmu1fhrenErz6HjnM6Az6LQAxdLW2ToGDsQAZGlAsgZPjDHSCdectuwL3O6kfRNFkZaVOYJ+CTlL6i5wzrkKLKPfwX31fWMgYIF/Q4zhuKDznVMM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OcvjZdSX; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 6C9C6C4166B; Mon, 19 Feb 2024 21:27:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708378079; bh=bubzY9/Q81Ml7PldAcrUeOkRxvvoWWMJMf+jhZFDA1s=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=OcvjZdSXTUQpicinGKWLlKRUdttBhzQoryWSwgH+x/FBTFVIak/f/s8jJacvGs93z 8l+KQT0s9XmzcR7bNeGOci0jOcUP2Yn+qCFoVx77mWH320r23D3cliX+M07XeOFcA6 zqorjNs5D/sivfkdUTb1FCL8Qs1U/7fDPrJEuoFnNgtmXg5099Q1f28We6QtepsLcX YQDUvuW/ql4+akdghsOBhG6dKK/9gpH5/w7MDb5PyIpJTgr8M/slfG/Z+PwGYGFjfw zEiaJ1X6N4rnOhOocp9VgrZ2qyPQ4R81l9NHbDsDQCkKphdg2s4iMgq1KAvW8K0V0f hrPjO8fcOJ3EA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 565A5C48BC3; Mon, 19 Feb 2024 21:27:59 +0000 (UTC) From: Yang Xiwen via B4 Relay Date: Tue, 20 Feb 2024 05:28:02 +0800 Subject: [PATCH RFC v3 5/5] dt-bindings: phy: hisi-inno-usb2: add compatible of hisilicon,hi3798mv200-usb2-phy Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240220-inno-phy-v3-5-893cdf8633b4@outlook.com> References: <20240220-inno-phy-v3-0-893cdf8633b4@outlook.com> In-Reply-To: <20240220-inno-phy-v3-0-893cdf8633b4@outlook.com> To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jiancheng Xue , Shawn Guo , Philipp Zabel Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kishon Vijay Abraham I , David Yang , Yang Xiwen X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708378078; l=2027; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=avj4AQctpHODHrI4Gj2Nnv22VVypJnyWPLnjEGJEEdE=; b=xZ9uDnvgbLGc44UOmznpNLi5rmjnlS/9CKX9jmNtOvRqOBPi6PeuTIZpq5jyKB4Ty1XXjQjBh x660NzaUFhPD8H222qtB1e2SROUGiE+AjJFtRO97Ci2oNfsllIBvmhi X-Developer-Key: i=forbidden405@outlook.com; a=ed25519; pk=qOD5jhp891/Xzc+H/PZ8LWVSWE3O/XCQnAg+5vdU2IU= X-Endpoint-Received: by B4 Relay for forbidden405@outlook.com/20230724 with auth_id=67 X-Original-From: Yang Xiwen Reply-To: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791364528052924827 X-GMAIL-MSGID: 1791364528052924827 From: Yang Xiwen It is accessed by direct MMIO, making "ranges" property mandatory for it. Also there is an extra clock for the phy. Signed-off-by: Yang Xiwen --- .../bindings/phy/hisilicon,inno-usb2-phy.yaml | 32 ++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/hisilicon,inno-usb2-phy.yaml b/Documentation/devicetree/bindings/phy/hisilicon,inno-usb2-phy.yaml index 1b57e0396209..969fd3fb7537 100644 --- a/Documentation/devicetree/bindings/phy/hisilicon,inno-usb2-phy.yaml +++ b/Documentation/devicetree/bindings/phy/hisilicon,inno-usb2-phy.yaml @@ -15,6 +15,7 @@ properties: - enum: - hisilicon,hi3798cv200-usb2-phy - hisilicon,hi3798mv100-usb2-phy + - hisilicon,hi3798mv200-usb2-phy - const: hisilicon,inno-usb2-phy reg: @@ -23,18 +24,27 @@ properties: peripheral controller, e.g. PERI_USB0 for USB 2.0 PHY01 on Hi3798CV200 SoC, or direct MMIO address space. + ranges: + maxItems: 1 + '#address-cells': const: 1 '#size-cells': - const: 0 + enum: [0, 1] clocks: maxItems: 1 description: reference clock resets: - maxItems: 1 + minItems: 1 + maxItems: 2 + + reset-names: + items: + - const: port + - const: test patternProperties: 'phy@[0-9a-f]+': @@ -54,6 +64,9 @@ patternProperties: resets: maxItems: 1 + phy_type: + const: utmi + required: - reg - '#phy-cells' @@ -67,6 +80,21 @@ required: - '#size-cells' - resets +allOf: + - if: + properties: + compatible: + contains: + const: hisilicon,hi3798mv200-usb2-phy + then: + required: + - ranges + - reset-names + else: + properties: + ranges: false + reset-names: false + additionalProperties: false examples: