From nobody Thu Apr 9 09:02:42 2026 Received: from mail-vs1-f44.google.com (mail-vs1-f44.google.com [209.85.217.44]) (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 29EC01D5ABA for ; Wed, 25 Feb 2026 01:48:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.217.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771984082; cv=none; b=E+t9PWGktSeUqhfXKk6sOqaKT4QniL5OQr3+ankDu1yTpPP1BTzeQ2IvDhJg8R36jf64VtObUQzhg1jMCK3g/cjsYoEzPrjymDEUT2KdecW76mtBrzkm0CWUsy41CrHD21KBA98XH9iZcFs7fNf7dmjMCdgKkNC+1pEOWj621Lw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771984082; c=relaxed/simple; bh=MAGEEd13MCvi6LrJomw1tdWe/J4Nih2UdmE3xgcfTm4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CAyMQw4Os69L1wizlCmO36afhmq1hbZN5D6F22dEmLvLaGIQQC10ohbOB2S6+8AHdLeQVvJMUKB7hMx9DjitBHvyvK/naEthSmHCkflq7l78tx1JjbnFS3EcnEOraJgJmDFH+cNAP5w7XfxvKQePLw5dZsMvmtnscj9Qptrj8tY= 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=DtapZzeF; arc=none smtp.client-ip=209.85.217.44 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DtapZzeF" Received: by mail-vs1-f44.google.com with SMTP id ada2fe7eead31-5fe0959ae3dso299855137.1 for ; Tue, 24 Feb 2026 17:48:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771984079; x=1772588879; 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=bhdRsHb+agfbG472LK6KXfddMx+16zI/+slYVcbavrw=; b=DtapZzeFzuw+2Ee4FtNaZyPyvN+sRGDtXiHIc6rUpua4MZJ7xomuX7BiGWFNLD5OTB JeNFDuY2M6u2KBz3NbNKwB4YvudxisI+wudMcKeeWeYG7/gU1IXHUVxGXlWuhGqAJU7U OjAEJPbIJXVvvAm1sxZHBLiSLwYqlxr3N2/plNTL8Aa45enjC5aZWrhH+wSlC7IQkWgv tJ/avQYEnnSgNQIlvBe0Nx7LrJTzGv+nPgtDLU4GGZq1hjoB7aqIq4m9XpjOgZgOI1OM f1zmMET3QOsfRlg/Rekf4dMlU2O0R5Z6uLg7ewIqBYORO7FM+zZCOfPC/mjPaedU1P1l qlxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771984079; x=1772588879; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=bhdRsHb+agfbG472LK6KXfddMx+16zI/+slYVcbavrw=; b=XhpjgLaubZ6bZfeUnO5RGZwUzUTck7elZQOjr6R71LeudKsFZWQvgPu/7Lj/1ihRgf XzzjbqJeWD71MrB4GINfaiwFo5FmLePQDVoFeQjBjQ/Zr2Fnx+RuRATp3KFnqUyGHGrN PRCfY3WGU6C8soQkZxZ0VV5as9Zh3Q9zC1uYQU9OviUjYvR+Lk4bzq3UU1LPmuiGhee4 jFgdIgTjd9JnyaUpi2dd7CI7Z0mL+84+oQMxRkM0a+2JneZlGGOkLUyasDBrAUTZheor zxSUrb2kjOS5j5Bj53PjhqDoFF/Pk6yZpozfKYdhoNXbMs44WBVyhUqhOa6oN02fsuM+ bd7g== X-Forwarded-Encrypted: i=1; AJvYcCX9R+SvPBsSvdOgPh+YytORF15LMPJ0auaDsK5mENrf09wZFI61yB3YOwA33iTfmFNthef2IWyL29I2bdc=@vger.kernel.org X-Gm-Message-State: AOJu0Yyg+D7l/knfw3oh6V8AafdJt8q++5KTQpbDCsSxvtULW0wkN9ju FwE7h1HaYtr8L6ibvt9vPukxRxdaeLr05qllUDYmSTK2Uc8zS10lRYSgUNQsBg== X-Gm-Gg: ATEYQzyD+s9DLF48MA4npQtFvgeVjHT/Y67wZeEEbvtazN4S90CQ6Sz2WbNzR64o/1Y +AqI00s+r6H4nCEt9fcnaTL/dUgHrOovYL9eshaPUV8gLpDtuTfp4qtIkxi0PZW6++czz9qyGyk zX25iRwWeGcu4BR2oNgvsBCgQs4YT6iFTyM/7rUJYVky434HiotweoWi4RMwQaqTZLl5ObEhmYg Px8fU77JddVfRN1/LwTMB7ytF9sTtK0eoQHZqMfVMefppIiP7Ro4GP8PG37rbtqYc9l4wcsdQlz wozcYl2nfGVZPKBMTC9ztkfLGWuEKygAyY5lxAjrjakn7I9KpMRnDDfD45BgCM/DAoAuCmi3N/A CMLD3UO39sVpvP7CbK4ygYxQZBhDsEx/ihhgELMu/JiVwekS93ciOXpw3B9vQRvwkU1zud+cCDW puyBWhwSlmwzH61/xOnxlcfGrxvIz2EkXNNmBI63HKBcG6evipHWYehSvc8wTloqkohPHZlaA6l 7sn X-Received: by 2002:a05:6102:26c3:b0:5ef:a1ea:bd33 with SMTP id ada2fe7eead31-5feffdf4bbbmr1123398137.9.1771984079132; Tue, 24 Feb 2026 17:47:59 -0800 (PST) Received: from localhost.localdomain ([2804:14d:4c64:82a2:db88:7d47:d63:c87b]) by smtp.gmail.com with ESMTPSA id a1e0cc1a2514c-94de1869b3csm1767247241.13.2026.02.24.17.47.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Feb 2026 17:47:58 -0800 (PST) From: Rodrigo Gobbi To: krzysztof.kozlowski@oss.qualcomm.com, gregkh@linuxfoundation.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, davidm@egauge.net Cc: ~lkcamp/patches@lists.sr.ht, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND v2] dt-bindings: usb: maxim,max3421: convert to DT schema Date: Tue, 24 Feb 2026 22:23:20 -0300 Message-ID: <20260225014751.9121-1-rodrigo.gobbi.7@gmail.com> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Convert legacy maxim,max3421.txt to proper format. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Rodrigo Gobbi --- Just resending this from last year [1] since it might not be on Greg's inbox anymore. Same as v2, just with review tag. Tks and regards. [1] https://lore.kernel.org/linux-devicetree/20251107001812.10180-1-rodrigo= .gobbi.7@gmail.com/ Changelog: v2: https://lore.kernel.org/linux-devicetree/20251107001812.10180-1-rodrigo= .gobbi.7@gmail.com/ v1: https://lore.kernel.org/all/20251009182046.185520-1-rodrigo.gobbi.7@gma= il.com/ --- .../devicetree/bindings/usb/maxim,max3421.txt | 23 ------- .../bindings/usb/maxim,max3421.yaml | 67 +++++++++++++++++++ 2 files changed, 67 insertions(+), 23 deletions(-) delete mode 100644 Documentation/devicetree/bindings/usb/maxim,max3421.txt create mode 100644 Documentation/devicetree/bindings/usb/maxim,max3421.yaml diff --git a/Documentation/devicetree/bindings/usb/maxim,max3421.txt b/Docu= mentation/devicetree/bindings/usb/maxim,max3421.txt deleted file mode 100644 index 90495b1aeec2..000000000000 --- a/Documentation/devicetree/bindings/usb/maxim,max3421.txt +++ /dev/null @@ -1,23 +0,0 @@ -Maxim Integrated SPI-based USB 2.0 host controller MAX3421E - -Required properties: - - compatible: Should be "maxim,max3421" - - spi-max-frequency: maximum frequency for this device must not exceed 26= MHz. - - reg: chip select number to which this device is connected. - - maxim,vbus-en-pin: - GPOUTx is the number (1-8) of the GPOUT pin of MAX3421E to drive Vbus. - ACTIVE_LEVEL is 0 or 1. - - interrupts: the interrupt line description for the interrupt controller. - The driver configures MAX3421E for active low level triggered interrupt= s, - configure your interrupt line accordingly. - -Example: - - usb@0 { - compatible =3D "maxim,max3421"; - reg =3D <0>; - maxim,vbus-en-pin =3D <3 1>; - spi-max-frequency =3D <26000000>; - interrupt-parent =3D <&PIC>; - interrupts =3D <42>; - }; diff --git a/Documentation/devicetree/bindings/usb/maxim,max3421.yaml b/Doc= umentation/devicetree/bindings/usb/maxim,max3421.yaml new file mode 100644 index 000000000000..4639be7ab059 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/maxim,max3421.yaml @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/maxim,max3421.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MAXIM MAX3421e USB Peripheral/Host Controller + +maintainers: + - David Mosberger + +description: | + The controller provides USB2.0 compliant with Full Speed or Low Speed wh= en in + the host mode. At peripheral, it operates at Full Speed. At both cases, = it + uses a SPI interface. + Datasheet at: + https://www.analog.com/media/en/technical-documentation/data-sheets/ma= x3421e.pdf + +properties: + compatible: + const: maxim,max3421 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + spi-max-frequency: + maximum: 26000000 + + maxim,vbus-en-pin: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: + One of eight GPOUT pins to control external VBUS power and the polar= ity + of the active level. It's an array of GPIO number and the active lev= el of it. + minItems: 2 + maxItems: 2 + +required: + - compatible + - reg + - interrupts + - maxim,vbus-en-pin + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + #include + spi { + #address-cells =3D <1>; + #size-cells =3D <0>; + + usb@0 { + compatible =3D "maxim,max3421"; + reg =3D <0>; + maxim,vbus-en-pin =3D <3 1>; + spi-max-frequency =3D <26000000>; + interrupt-parent =3D <&gpio>; + interrupts =3D <42>; + }; + }; --=20 2.48.1