Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2797595lqt; Tue, 23 Apr 2024 01:40:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWMu9NCRQzZrycRYTnZUb75PNONa7171PEt9odWRZvmoQCeiTBMi5kDWFTiIdbOuzCTgAt6BDsKzCuKDjIXD/8AVMLO9S7O5nyzVzJOPg== X-Google-Smtp-Source: AGHT+IE/K+juEzKmdthCpNb/OpHmdGaIO1a0A0YWt4oOWmgmaXxIF3QTNQmaKhMC9pYZ/kOdUilu X-Received: by 2002:a50:d7d6:0:b0:56e:34e0:4699 with SMTP id m22-20020a50d7d6000000b0056e34e04699mr8392434edj.30.1713861611220; Tue, 23 Apr 2024 01:40:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713861611; cv=pass; d=google.com; s=arc-20160816; b=uV8wPXW21dxD6U349AQCoW6u1+CxV2hK51i2Pi8dzmgTEwkAqebnpgQbb0MWC6toV/ N/gh4d75tq5bSzahcyuXfSvJLJGsSza29ea67dBGFv/3dGtDx1ksqlAEc8VD7aKgGHBQ YOv76HQ6nhGCLTsStIjSn35d3R/zrb5TBG8VpW1vcmcwChyg+na+uzjmugINUgWe/Ifd JR5br4c/F02UUw7E+vDXpRyjvso/RpT5APxpTqnt0eJKTgzKCQYDUGCZyXSs+bUcyu7/ zWqO+g23mv7BJIxBShbd7BTGR7HrqPHs2skAwIgWlCPAxMM9WO8xOVqmGI7MRLGd4+qM jz6A== 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=6Iag5py4sJoS0y++t+w31w6r6FIZLOPh8y483Qy+0JY=; fh=w3V4jQ6hPUs7mlwe+0ZUp9CFWc1hGWY+DBMk0hgu2J4=; b=PsKRFSADHXvohFnuflkfeXys1hlArS/m85/F51mLnhQgVyrIQ7Qx+FjBkjabi7dNXc XoF0LFRVlcp2+leisyCSPw/qnl2oOLO/v7er694Hi5x4w/3JVmBPve2WgTc7WRMMhiMT vPmjHeJrFHnagpbqKeeLh921g2AglIN8X3TUK+IBuGZILW2QLLvCRS0++4x2VPjN8l8r QZJ81RXaryY9Gif0rAVHwEsvOVNmyoxc4oIHZKBw4lNuVTfyEcZjfHf8XpgK8sHHEeG+ EhYyu1T2Kra/+HPmKXyIvx73PJS2d8Jmpy5KCb7VPMgh6szRtjmOJyGeNKdNaq/KE3dV C4Jw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="GriJOJz/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-154700-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154700-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 o20-20020aa7c514000000b0056e5c7059f7si7270330edq.590.2024.04.23.01.40.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 01:40:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154700-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="GriJOJz/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-154700-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154700-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 C48961F23C43 for ; Tue, 23 Apr 2024 08:40:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2154455C3C; Tue, 23 Apr 2024 08:40:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GriJOJz/" 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 1429B44C8F; Tue, 23 Apr 2024 08:39:58 +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=1713861599; cv=none; b=EfhnxzoU4H19h9z1tZof/SnlR/IxtSEpshVrWlsv6oQNcrdKhdk5O4wCbNrBJ3VEmljmTuBrbRWxyR/IrPQSnCB+78s0xNNs30eiUO71l+pVpdgCHyS3g3QtEVKXh8Rg4zOLWy3X4wnSie4mNxiIfyCKrHs+7uqM8ckizfVTl8Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713861599; c=relaxed/simple; bh=1GAXvBfUdmcorOPFPYobTDf3jSQxvxmNWebVvkhe9iM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=mx7h0oubmila7zOlpkBrsVR8XUCmZ5473flitrAPJ/lPVH+76Zaww+lpfLxRcHrdGmm25gA7RaBTH/Dvej5/bbHDQsl4tYTQdtxNhaZBOFNubPmyidD7aF29yOoeKWoTmj4ZeFy6ygj/lhlOr8N48BBMsasakOQLsAcscULJFOk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GriJOJz/; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8EF03C116B1; Tue, 23 Apr 2024 08:39:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713861598; bh=1GAXvBfUdmcorOPFPYobTDf3jSQxvxmNWebVvkhe9iM=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=GriJOJz/zPb3DTyi67OOKC/rA3oFPFcV+Av1rmuzCsW56ZbpIInQkpInTRfJLDTQ9 eeBz0KHPPLVFshq8JbBMxCew6IiBqoQ3dGy/e9GEeWW+zTYJtwcNpbP8cNbKNeHhwT V9exw0Adjf6YzLcJk+aApMbhbxfhLf7EqRGuQ5aJlFV2SRTNHl6i4kTda3QzMfgYW8 /IYt0kErrIbgjUzxww3iJjDegKLgbZW3OZeUzJV5mQ/v3zpwXf1X6+nCJYa0iSaf5y LFmHQISZg2oZH/hL+J5MpWtPFl3ooRJxiLQ6ncowju+TKo4qYU/UKEUd7CmcMauKgd mg1DOh31vxNiQ== Message-ID: <5d8f8c79-5343-46b3-b706-e3eb541c6851@kernel.org> Date: Tue, 23 Apr 2024 10:39:54 +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 v3] dt-bindings: usb: uhci: convert to dt schema To: Mohammad Shehar Yaar Tausif , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240422122125.455781-1-sheharyaar48@gmail.com> <7a43b05c-ca2e-4fa6-b1f9-cb1a12778da7@kernel.org> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ307 QWKbBn8P+QFxwl7pDsAKR1InemMAmuykCHl+XgC0LDqrsWhAH5TYeTVXGSyDsuZjHvj+FRP+ gZaEIYSw2Yf0e91U9HXo3RYhEwSmxUQ4Fj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1WJ/GgaIRIBE+NUqckM+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: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 23/04/2024 09:54, Mohammad Shehar Yaar Tausif wrote: > On 4/23/24 12:24 PM, Krzysztof Kozlowski wrote: >> On 22/04/2024 14:21, Mohammad Shehar Yaar Tausif wrote: >>> Convert USB UHCI bindings to DT schema. Documenting aspeed compatibles >>> and missing properties. Adding aspeed/generic-uhci example and fix previous >>> incorrect example. >>> >>> Signed-off-by: Mohammad Shehar Yaar Tausif >> >>> +required: >>> + - compatible >>> + - reg >>> + - interrupts >>> + >>> +allOf: >>> + - if: >>> + properties: >>> + compatible: >>> + contains: >>> + const: generic-uhci >>> + then: >>> + $ref: usb-hcd.yaml >> >> Nothing improved here. > > Sorry, I could not understand this, please guide me about the correction > required here. > I added $ref inside the if-then block because it was raising errors when > tested against > dts files that used "platform-uhci" as the compatible. Putting it above > the if block did > not work. Where is it explained? The answer to such problem is not make bindings incorrect... I mean, the easiest to understand if you are doing something unusual is to check if you see such pattern. How many bindings reference other schema in if:then:? Is this common? > > When I ref the usb-hcd.yaml, it also includes usb.yaml which requires > the nodename to start with usb*, Yeah, because DTS should be fixed, not bindings made incorrect. > but the dtsi that use the deprecated compatible > (arch/arm/boot/dts/vt8500/wm8505.dtsi) have their nodename with > uhci*, which causes the tests to fail. So fix the DTS. > >>> + required: >>> + - clocks >> >> And this was not tested. >>> + >>> +unevaluatedProperties: false >>> + >>> +examples: >>> + - | >>> + uhci@d8007b00 { >>> + compatible = "platform-uhci"; >> >> What happened here? This is deprecated! > > The original example has the nodename as uhci* which causes the schema > to fail as mentioned earlier. So the solution is to correct the name, not use deprecated compatible and incorrect name. > Should I just remove the example or should I rename the node here and > add clock field to the original example ? I assume you understand the concept of bindings and went briefly through DT specification or some tutorials. So yes, you must fix the node name. Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification: https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation Best regards, Krzysztof