Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp869526lqt; Fri, 7 Jun 2024 00:34:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVoNbG2BOybD37ZYIahcVWB6Vgmv3EVjZqhxcPsUF4CFgEMR05ye8QA77Nsl1X+XCRpFsRHcMH4+BYgHG9yghs7Wiww7qA1vWeUc4DAwA== X-Google-Smtp-Source: AGHT+IEZvvBSEnyIZmHL9p/eB0m13HZsFYUds6FlMzXzURMAT2WeeelnuN0M5u+8Mxk354daFo8n X-Received: by 2002:a17:906:3753:b0:a68:f6b7:1fe3 with SMTP id a640c23a62f3a-a6cd7a89d27mr122917166b.43.1717745664997; Fri, 07 Jun 2024 00:34:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717745664; cv=pass; d=google.com; s=arc-20160816; b=BGkTuKo9rFeShtMYJq9JGlWOG6QieMEB9e+2mi0SpwEk1zZRHiOcMD/YG0ZPJI3Xii OIkzJPwVo/iqlY9Q48GwXOqdxOm8YQApD8obFTVm42FC7q87HNma1ANKhER7io4qGnHl 2brQaYTPFPgvCVCqmX9DqNuoxPxoLmUkbV9WD12BYViJDs/XLbO1HxDlnm3YMZZpl/Ij FirjFeAhtGr/RlOH6LG0Ms68OgvLG4beZrcTWwYB19V0Bxv5S8JMaxFiZ54G7mt+poO0 rhKApY1rwltiKNqSJxYtLci7IMW02b7sfXA3TlFfNTOgg6xJrMnjPk7q81f6av+IEkbM OsOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=FANyDny7IMlCaZsqzVh+AkCqDb7FBjn9Xp0MG88ezjs=; fh=NWeo47DVadzNGlhykSEl2aqt9njEP5/t++exPvkYgfI=; b=MDgvahqY/rKrpg+X2/joA4bnAAhTmsuwMcnH3fg4mIsIytipMbJ9SS0GVl2CDOxeZ8 K790gaV/uJzvq4joo5A1LpVxA56UDSTMlmZxX/ms1ypO8ndQjZVjVf0MbJkDcTVcprnF Fdl7L9Eif0YPMQadEWKzdgjYugTW9NixGtmC/ss1U+8sGWU9b/vrv0xHZzgxjF74Ip0T ugU7WPPY6JPEYg0M7EkmPlKzAv9kG4mLVlWz781YoXJzW/hExA90s0s1ZZMsjGu3wvdc CC8TedSTlZrPMJulKGY4OTeuOFI0r41K+i1xyPKCckV6KXq9nYXE24hXGEbwh7jlYLMF ih6A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EEnoQekJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-205538-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205538-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c8070812dsi155904166b.631.2024.06.07.00.34.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 00:34:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205538-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EEnoQekJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-205538-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205538-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id D7FAF1F22B07 for ; Fri, 7 Jun 2024 07:33:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B8A35153578; Fri, 7 Jun 2024 07:30:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="EEnoQekJ" 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 A946115530F; Fri, 7 Jun 2024 07:30:48 +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=1717745448; cv=none; b=skcS13tdWtsUz8DehQ8fsPz1z8H6xX7fZ6W8dGHWr4mct3+AKHFdnBR9+PLMVuiw1cq8sk38mLIamp2xLvk7ZHi2Bf1GAVAvfMXkgO9mSfwFJ/rSgmIfTH48yWoflZh1y4YtWOoAtifXJaF2wDEnReVzH40zeggG/UaEwJ8ensU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717745448; c=relaxed/simple; bh=Z3FFAvOtY81jdbTzkmiEyBDE39rxcsFJ3zmC1SfF600=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hynK5eHjclgir6I9TGpIJkMju8Niib9Ki+JnxttMYfwJQEG9F6XDN/IoZS4kt/ozEA9nUrmF0rOROZZ05Gm/igGeql/iIRdp9xTGV9w7kT/FoPH1/+TWYV2dNCB5yf9vm0VWkAEdQvqIYxxl3Qoq6i0Gwsgg6CRVRRND7SBBynY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EEnoQekJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02F6CC4AF0C; Fri, 7 Jun 2024 07:30:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717745448; bh=Z3FFAvOtY81jdbTzkmiEyBDE39rxcsFJ3zmC1SfF600=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=EEnoQekJzv20W+ISchcm3xeqM/6W18gDiCqVjix0yEokK0PbYuYHq5p9Cnl6HhB23 1ZDpekv8iXooWSuCZ1y/MAR3WuxkQKZ5qAAbGtDuYTcGPDayMDyq5C3OlzP0a0sda+ YBK/w4xohv9p4jt+STGWLVkBEph0Aa9B7mglkycA5DdhvG9PmUAnVn6QlNya6p1y/Q RejBcdDEZkK4Ox0XZndfL3kDJDS2luboQ+MFTcG9/XZfLYfaLwzJBJGQDjvDZxEyNN LikDzCWc0EW5Mj1QOt0fbRjw2+SvSG4kwxy+CE99Q1DlaTxGlFbhgd0b3G82rnZOBv wHbFoNNiVYTWQ== Message-ID: Date: Fri, 7 Jun 2024 09:30:43 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/1] dt-bindings: usb: cdns,usb3: use common usb-drd yaml To: Frank Li , Peter Chen , Pawel Laszczak , Roger Quadros , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "open list:CADENCE USB3 DRD IP DRIVER" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list Cc: imx@lists.linux.dev References: <20240606161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3zJHGmVPqJP/h2Iwv6nw8U+7Yyl6gU BLHFTg2hYnLFJI4Xjg+AX1hHFVKmvl3VBHIsBv0oDcsQWXqY+NaFahT0lRPjYtrTa1v3tem/ JoFzZ4B0p27K+qQCF2R96hVvuEyjzBmdq2esyE6zIqftdo4MOJho8uctOiWbwNNq2U9pPWmu 4vXVFBYIGmpyNPYzRm0QPwARAQABwsF8BBgBCgAmAhsMFiEEm9B+DgxR+NWWd7dUG5NDfTtB YpsFAmA872oFCRRflLYACgkQG5NDfTtBYpvScw/9GrqBrVLuJoJ52qBBKUBDo4E+5fU1bjt0 Gv0nh/hNJuecuRY6aemU6HOPNc2t8QHMSvwbSF+Vp9ZkOvrM36yUOufctoqON+wXrliEY0J4 ksR89ZILRRAold9Mh0YDqEJc1HmuxYLJ7lnbLYH1oui8bLbMBM8S2Uo9RKqV2GROLi44enVt vdrDvo+CxKj2K+d4cleCNiz5qbTxPUW/cgkwG0lJc4I4sso7l4XMDKn95c7JtNsuzqKvhEVS oic5by3fbUnuI0cemeizF4QdtX2uQxrP7RwHFBd+YUia7zCcz0//rv6FZmAxWZGy5arNl6Vm lQqNo7/Poh8WWfRS+xegBxc6hBXahpyUKphAKYkah+m+I0QToCfnGKnPqyYIMDEHCS/RfqA5 t8F+O56+oyLBAeWX7XcmyM6TGeVfb+OZVMJnZzK0s2VYAuI0Rl87FBFYgULdgqKV7R7WHzwD uZwJCLykjad45hsWcOGk3OcaAGQS6NDlfhM6O9aYNwGL6tGt/6BkRikNOs7VDEa4/HlbaSJo 7FgndGw1kWmkeL6oQh7wBvYll2buKod4qYntmNKEicoHGU+x91Gcan8mCoqhJkbqrL7+nXG2 5Q/GS5M9RFWS+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <20240606161509.3201080-1-Frank.Li@nxp.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 06/06/2024 18:15, Frank Li wrote: > Use common usb-drd yaml for usb OTG related propteries. Allow propertry > "usb-role-switch" to fix below DTB_CHECK warning. > > arch/arm64/boot/dts/freescale/imx8qxp-mek.dtb: usb@5b110000: usb@5b120000: 'port', 'usb-role-switch' do not match any of the regexes: 'pinctrl-[0-9]+' > > Add "port" proptery to use connect type C connector and fix below warning. > arch/arm64/boot/dts/freescale/imx8qxp-mek.dtb: usb@5b110000: usb@5b120000: Unevaluated properties are not allowed ('port' was unexpected) > > Signed-off-by: Frank Li > --- > > Notes: > pass dt_binding_check > > make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j8 dt_binding_check DT_SCHEMA_FILES=cdns,usb3.yaml > SCHEMA Documentation/devicetree/bindings/processed-schema.json > CHKDT Documentation/devicetree/bindings > LINT Documentation/devicetree/bindings > DTEX Documentation/devicetree/bindings/usb/cdns,usb3.example.dts > DTC_CHK Documentation/devicetree/bindings/usb/cdns,usb3.example.dtb > > .../devicetree/bindings/usb/cdns,usb3.yaml | 16 +++++++++++++--- > 1 file changed, 13 insertions(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/usb/cdns,usb3.yaml b/Documentation/devicetree/bindings/usb/cdns,usb3.yaml > index 69a93a0722f07..38df19bad7c41 100644 > --- a/Documentation/devicetree/bindings/usb/cdns,usb3.yaml > +++ b/Documentation/devicetree/bindings/usb/cdns,usb3.yaml > @@ -42,8 +42,15 @@ properties: > - const: otg > - const: wakeup > > - dr_mode: > - enum: [host, otg, peripheral] > + dr_mode: true > + > + usb-role-switch: true These two should not be needed now (usage of unevaluatedProps allows them), just drop them. > + > + port: > + $ref: /schemas/graph.yaml#/properties/port > + description: > + This port is used with the 'usb-role-switch' property to connect the > + cdns3 to type C connector. > > maximum-speed: > enum: [super-speed, high-speed, full-speed] > @@ -77,7 +84,10 @@ required: > - interrupts > - interrupt-names Missing dependency on "port", see other bindings like dwc2. Best regards, Krzysztof