Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2140913lqt; Mon, 22 Apr 2024 02:37:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW7csSk0gm26blUtmwQQhrSvyL5SS356mU/PLc0rabtHBN01nEHkieImphSGRlZX2vGegxCBi/g9v37JZ/lF75Hpokn//qkIF9vawvEOQ== X-Google-Smtp-Source: AGHT+IHHLHXapWif+6ZLYkUIYWhqPOFJgheyWAqKeZkUQDgyDS+CS4eR343KpPsNVIf1JOHBWpdM X-Received: by 2002:a50:c054:0:b0:56e:22b6:d91f with SMTP id u20-20020a50c054000000b0056e22b6d91fmr7500461edd.5.1713778665028; Mon, 22 Apr 2024 02:37:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713778665; cv=pass; d=google.com; s=arc-20160816; b=c48xZm9Zd+Y2fJONMObEERmY3HPvbyXLdJ17Qp+1elMx0ZUBZx+s5xEUW1HOPRiLDg nZeO2q7/QDxvbZnvcbjMMP3+zD1VZGbPXOnxCU5YWCEmRhWNvFqxnLDW/HKmYcyd90GM jkwvDnSnEMwVIZZMdMuu+onTStGtXmG2K3bF3Ldudeka/bYzuEkDFuVyBGak0iMNd245 Bwvpeg8tUg5Dgz+TO9Bo/8gGQDrB7IAUyYYjvZFtSfLfRYRt6k+kOZ/Ft0DC6FLThoiE S0gvLQRsXi7RzaZjLSrmJGRBo3eKo664qhyYZPZEEnfMSizrsdtDqvLFafsKF4Aw//J4 IJlA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=zDnU4LVHrNGJ4IpdX+j3QH8fQ0vCkqgYOxnuWATwBXc=; fh=LgLoQRnzaqSKNPSOgYHpdXvtuK30EWlbQLX/50gcjDI=; b=0eyLB35Qmd0FDyJ07EyuGhyZ9ne/rdn0q+ZcidUjtUnYGAhUyuXXMDezYQVV+Kwp+s g1bZCiIBFBm3qhKPEvOMS/uzG5wYDxWeB8eC7uCUhGKcEo64l95DU9793tWQSu9kuCzQ cib0Ilo0ESgI8sjRIA2pXAXvAUvGMxm9+FxDs9l5DMYXzrbT9ARUPd3T+qrzYxuToK75 L8syi1xrFWA0OjTH7a9E+jV8y6gCAvXPPxHGs9M49IC1CmltpOSAczT9mf/I3cuttgpP YFRU0hXeI5BC5OkE7ceohTSs+ckECJJks3hHnTB813qT2DKFy1T3HE6qbK7QZ0QRYdke 3UHg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KPlPCwiY; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-153095-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153095-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n8-20020a05640206c800b0056fe55d5c96si5562156edy.441.2024.04.22.02.37.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 02:37:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153095-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=@gmail.com header.s=20230601 header.b=KPlPCwiY; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-153095-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153095-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 98EFB1F219C9 for ; Mon, 22 Apr 2024 09:37:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 11E1784A2F; Mon, 22 Apr 2024 09:37:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KPlPCwiY" Received: from mail-il1-f180.google.com (mail-il1-f180.google.com [209.85.166.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C59DC502B3; Mon, 22 Apr 2024 09:37:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713778656; cv=none; b=ZKfqUWcroYuytEWymsDh09lfn+de1wOLhZCwfanWXNTdQqeq9di1K9UR4ZVBcWiPZPAXpFgqjrEzttAfoA6k2ntfAAzdXqq+Xicti3E4p/CB6GMMjNVAfU07tZ480UxhS6YPzQZW4paz2Ll6NMhPY5H58wV/nupgZ9qxEMc+nfI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713778656; c=relaxed/simple; bh=6FFicjleLaK4NSrzR0hZBxcOH2qkSWXm1PjvEXM5AAg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=V/S91YKtr53S/6jNBDdCp4/D5GnyITygQOEwRYYQITI64h8LBtfeaI3m4RkUfwcsirWTfa7hH7aT0SfUJDCOZTFF35/6e6wchXkVJLNxyEdVwUzvT5wN7zocR1Z06PJWXA7bRVHkAZf3Wve43VSJOuXb6p/h0BI+3ZixB2N7xnc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=KPlPCwiY; arc=none smtp.client-ip=209.85.166.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-il1-f180.google.com with SMTP id e9e14a558f8ab-36a38c13550so16784445ab.0; Mon, 22 Apr 2024 02:37:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713778654; x=1714383454; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=zDnU4LVHrNGJ4IpdX+j3QH8fQ0vCkqgYOxnuWATwBXc=; b=KPlPCwiYZHSoF+Qo6AIRyV8WJqIy76vb1VyWlFdp36cTLzidzeWheobSsZk/QCfNsb 3JHxS9wcgtzDujYTJVnJ5fRnuHr/eJNG+7buuFU1qJuvqXWdiSaNtj2/GpTQeKkb0jlV FF65yaNvhqXnzCIU3c9llDBq7YLWY60Lf56h/XCEdptCFkPHmZAccJEM8Ktp6i2wXpbu He9YuwUwsInjdiLIN2j9yBPYCF3ZYILAY2VvFCyq/cELM1LDV0JmtGg16XmluVif8Z4o i3XD52D9ASk91NvbB7ubxmKw1nE+FvbZfZWJwqEpdVGkommr7EO9yfzfwV7KK8z8sG0S vjhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713778654; x=1714383454; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zDnU4LVHrNGJ4IpdX+j3QH8fQ0vCkqgYOxnuWATwBXc=; b=nbDAyeXiqfz9P0iwN31PeSNhnDW9xO8OhflbRcTQZCmvFQndyWSUz3iAblOr6IaS55 lAmUWKxILucMeru1HnzlVuuMVxnT/JSawbMrWLf96rfuhoBf3rU93vYpkVrmnnXMYtBS t3dBvMcSD99j4OkUphcHjbnhq+OSBPGwQKUbKJJIyd+SC67wEMX63GwUldw5j4pRm1hN dAA6xb54ZTmfemj4PCcJ2ndbPecWhJW1+UIvnlwSAPnOg4MbjKvByzboh0+nLCWqugcV W2K0DC/2ElIav4Vcy3sKwtd5weZp46AzFWWcA7zBzfTD22NwilqcFRecyM+w2jmUzTpD kXNQ== X-Forwarded-Encrypted: i=1; AJvYcCWxiQRf4t3jt+xywlRSYXhwx1minQLRJANcaQcrOB4seM/QEoy9yKG46eTW6/fhwHQ1lPEHAifvPGcOvLv+xrhNtpg8cEu0UmaSf87TzD17+P/B/7FP5+y1eghsCLkNa+z7wQpX8BkryIK8JMO6oUsVrAoI5ZgCxM5NzakX513JfGq63Q== X-Gm-Message-State: AOJu0Yyf42wq2hFJJuWz+khJySO6f9muPaVw6rSyTqbz0mnGhoKXeXH4 z1l3JCf5JgVbGHIkhY8iQsQMwZ2oS8UWu0GLbwN2ogkHaz563xXq X-Received: by 2002:a92:c56b:0:b0:36a:2245:205d with SMTP id b11-20020a92c56b000000b0036a2245205dmr16591052ilj.15.1713778653720; Mon, 22 Apr 2024 02:37:33 -0700 (PDT) Received: from localhost (ec2-3-111-32-5.ap-south-1.compute.amazonaws.com. [3.111.32.5]) by smtp.gmail.com with UTF8SMTPSA id a7-20020a654187000000b0060013d7c463sm1115911pgq.72.2024.04.22.02.37.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Apr 2024 02:37:33 -0700 (PDT) From: Mohammad Shehar Yaar Tausif To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Mohammad Shehar Yaar Tausif , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] dt-bindings: usb: uhci: convert to dt schema Date: Mon, 22 Apr 2024 15:07:04 +0530 Message-ID: <20240422093706.324115-1-sheharyaar48@gmail.com> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Convert USB UHCI bindings to DT schema. Signed-off-by: Mohammad Shehar Yaar Tausif --- Changes v1->v2: - add aspeed compatible and deprecated platform-uhci compatible v1 patch : https://lore.kernel.org/all/20240420142108.76984-1-sheharyaar48@gmail.com/ --- .../devicetree/bindings/usb/usb-uhci.txt | 18 ----- .../devicetree/bindings/usb/usb-uhci.yaml | 70 +++++++++++++++++++ 2 files changed, 70 insertions(+), 18 deletions(-) delete mode 100644 Documentation/devicetree/bindings/usb/usb-uhci.txt create mode 100644 Documentation/devicetree/bindings/usb/usb-uhci.yaml diff --git a/Documentation/devicetree/bindings/usb/usb-uhci.txt b/Documentation/devicetree/bindings/usb/usb-uhci.txt deleted file mode 100644 index d1702eb2c8bd..000000000000 --- a/Documentation/devicetree/bindings/usb/usb-uhci.txt +++ /dev/null @@ -1,18 +0,0 @@ -Generic Platform UHCI Controller ------------------------------------------------------ - -Required properties: -- compatible : "generic-uhci" (deprecated: "platform-uhci") -- reg : Should contain 1 register ranges(address and length) -- interrupts : UHCI controller interrupt - -additionally the properties from usb-hcd.yaml (in the current directory) are -supported. - -Example: - - uhci@d8007b00 { - compatible = "generic-uhci"; - reg = <0xd8007b00 0x200>; - interrupts = <43>; - }; diff --git a/Documentation/devicetree/bindings/usb/usb-uhci.yaml b/Documentation/devicetree/bindings/usb/usb-uhci.yaml new file mode 100644 index 000000000000..c5cbcc0a820a --- /dev/null +++ b/Documentation/devicetree/bindings/usb/usb-uhci.yaml @@ -0,0 +1,70 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/usb-uhci.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Generic Platform UHCI Controller + +maintainers: + - Greg Kroah-Hartman + +properties: + compatible: + oneOf: + - const: generic-uhci + - const: platform-uhci + deprecated: true + - items: + - enum: + - aspeed,ast2400-uhci + - aspeed,ast2500-uhci + - aspeed,ast2600-uhci + - const: generic-uhci + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +if: + properties: + compatible: + contains: + const: generic-uhci +then: + allOf: + - $ref: usb-hcd.yaml + if: + properties: + compatible: + contains: + enum: + - aspeed,ast2400-uhci + - aspeed,ast2500-uhci + - aspeed,ast2600-uhci + then: + properties: + '#ports': + $ref: /schemas/types.yaml#/definitions/uint32 + clocks: + maxItems: 1 + required: + - clocks + +unevaluatedProperties: false + +examples: + - | + usb@d8007b00 { + compatible = "generic-uhci"; + reg = <0xd8007b00 0x200>; + interrupts = <43>; + }; +... -- 2.44.0