From patchwork Sat Feb 17 14:02:48 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: 202632 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp335874dyc; Sat, 17 Feb 2024 06:04:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXQfFGLxIybazwO5++reNB0Hy+4I/bC6smVg6kflfCQhUOCPhCdcJGV6gA1y7i6CQYU4soXAJ5ukDmETff+jh06K9Szbg== X-Google-Smtp-Source: AGHT+IH/IKnoQxe4719XV2fIBvqCTzLH1gsRImId2yLylpyTFwLpzMYsO7nPB6ekPKdkSUMxRFeI X-Received: by 2002:a05:6a21:3382:b0:1a0:85ed:4776 with SMTP id yy2-20020a056a21338200b001a085ed4776mr6715674pzb.16.1708178640468; Sat, 17 Feb 2024 06:04:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708178640; cv=pass; d=google.com; s=arc-20160816; b=HzshBJ6teDeUnpHbPNx9fBd9CBiiDROlbdt1k1riHfKHS27u7ECISeggLBpKVuCNOU 3ao5VqkgVVc5CYWNQU48hgnLpEEWVj/QFwSdxni7eVhh6IukKzUrlfzoxYk6wUH+hbMy msnhc7QDVIBEs8RkPb/DURnL589rmEThQmTwd82zQIFZb4oCdmebE2xb8c5Teeb2neRA 9LbI8Z8iiYlex1RCDZnTEZMaXFSGGMOt1s6LxL9nQYq6g56XFzGNz5VAVuKaAJNAjOzc cMo1BC/xGLlPjNuc+oqbfxi+7V11oXOs/eokmbUAbWsdFX5rtC0nHDJjRQ9IyOZAlwOn UNUg== 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=MKh79l83szvCf9dZuGbL7sCbMjH5OpcgSzKkd4CVMEA=; fh=zeAM21czM+vIwT11j3JBFvwo0dMHxyj0T3l3EYWXLvQ=; b=d3rvNBLwVzHgvSzaSgBxBP4kNKYK3SJpIMYz7XpNI18xmrErEm9h7Tga4wafB4OD/S wWY/E9bXB5owrfWLchVgKjYwtcun81oImMY0XkOc+9TQMuubYabc8bTuUOksqfwI4x6t lyUa0men166sZQ/eIiPm1CTF582p+XidF0/pdf89rhftCaWNXEdaPSMKNTjLWFRQ8Ru0 SC36yxslTC3Hh/zEVHi0veEgHvf4KXyM4yWJ9naHV6oH/SOqgEZ5DVarbvLxt4r765O/ 7RGdMYBUl5OnfjBi78dejrrDPht3iAvJEhaTSBwsqommB3I+tV3J+0zcgqD2TpvyOiFE t/vw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UwDnRDzh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-69892-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69892-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 l6-20020a633e06000000b005d79ebbdc0asi1547673pga.334.2024.02.17.06.04.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 06:04:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69892-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=UwDnRDzh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-69892-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69892-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 02E12B21BF1 for ; Sat, 17 Feb 2024 14:03:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F25747C6CB; Sat, 17 Feb 2024 14:02:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UwDnRDzh" 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 4A1507AE52; Sat, 17 Feb 2024 14:02:52 +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=1708178572; cv=none; b=Eb5EPsQo6Ws5LjnJwRQWE1ibwUdoY0g0lkrWzF4ciZA8JqEfenNDw2SQYjaqQgNLS4nkAjKMfmlrfb9DnPlT+dsOZigbeIyfHPr6sB5C3l10SPl3vJjq5WvS7jr+2/enhifP1sgbWPDyJYiWsG+LU7RCsO2Bu2uQ2uJa2mFOWcg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708178572; c=relaxed/simple; bh=jFL/RZ2ZDCgiqAKnWhKvV31YON6zb+pCMW1UeDu3mgQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=U1egdUFcYbjTHUYzE0JQoBpezNYVVAJvOARZrh0xj2aNB6mwmRV286oEe6sOHnUZzgcbT8GNa262vpBlWrEJDagnwM3DGUCO2Dj9ls6qugsxW3Wwd5GExRsHno5xCy5+at7oGO78gba6juRzSG9og22IaMLRo13xj5u6uqq61So= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UwDnRDzh; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 06897C43399; Sat, 17 Feb 2024 14:02:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708178572; bh=jFL/RZ2ZDCgiqAKnWhKvV31YON6zb+pCMW1UeDu3mgQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=UwDnRDzhm31AMlD15S1Nen8w6hcqxyTSSKeUCGMkmgra+lE3U5RuFZC957o0jtLHj yEtp6AFznQxgQ5dZFTVML27gFxfq6u0HCSgFrsfZyyq2wxnUKt8aDkEDUX9lvSybhz tGgFRL3gc+8/fD8/Yn0OQaGjJRfFKAlAzH2WoES/5TQpMYYNZxA4W0hpZUtsJSGZUZ 61xefRx84SIbjoUiQwShr2gtKppAJ+9XKuujllW9M5jcPNfOMtvwYuc7n0hpv5XKPq RZjkaj5AfW9N+yaYWM9Hk7+XvHJX2hNtqWAuJd6lAt3dQumRNc5U1e2mcKS92Rkwvx sKFIwUUdIeb9Q== 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 E2CCBC54764; Sat, 17 Feb 2024 14:02:51 +0000 (UTC) From: Yang Xiwen via B4 Relay Date: Sat, 17 Feb 2024 22:02:48 +0800 Subject: [PATCH RFC v2 4/4] 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: <20240217-inno-phy-v2-4-3bf7e87b0e9e@outlook.com> References: <20240217-inno-phy-v2-0-3bf7e87b0e9e@outlook.com> In-Reply-To: <20240217-inno-phy-v2-0-3bf7e87b0e9e@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=1708178566; l=2016; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=jLZWuS47anxDC0v84kYOmUKJTlxPytV3qZbHvwpp28g=; b=Q/aLZDrqeMAj7mGpkxaMVPftjiJie2s2j/B2+LT4yWcdXm2FhadHAELA55FE9PjR3yynydw5y IDMBjWQCPJoCX6q6Hc93VBJWE1lkbYzChX1fhYBozhNb3cuFi8sj+TC 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: 1791155126122261516 X-GMAIL-MSGID: 1791155126122261516 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 bfbda1568557..105dd9eebd4c 100644 --- a/Documentation/devicetree/bindings/phy/hisilicon,inno-usb2-phy.yaml +++ b/Documentation/devicetree/bindings/phy/hisilicon,inno-usb2-phy.yaml @@ -16,6 +16,7 @@ properties: - enum: - hisilicon,hi3798cv200-usb2-phy - hisilicon,hi3798mv100-usb2-phy + - hisilicon,hi3798mv200-usb2-phy - const: hisilicon,inno-usb2-phy reg: @@ -25,18 +26,27 @@ properties: 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: