From nobody Thu Mar 13 00:03:01 2025 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 AD2F426388A for ; Fri, 14 Feb 2025 11:42:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739533362; cv=none; b=eHhnjhbIFgo59Z3dC3I8z3TjeSubEukC7Mvc0ajGKnY6ZQw3VBaWYzgNjyNnnCIUCjru9nuE4bpVpqihLoXdZOxlLUBAWeE+WGy8qxVEMOrMwLyJPDLLaeWGbHxsYFXfF1pSUFXI3yxS6rPRnjIEnslJvrhjSWs0rcOrrjPFLvk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739533362; c=relaxed/simple; bh=F/zv8ld6hxQ5meu1qeOYsIEsIIqaCJ+HJ4Gs6tRkKhQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YqiJpEBMKz8ThX8vRATcs7JOh/hd70r5uyPHm79BVay6mv5fsk79HAI5qv+5DiXxP4X9cWYoPZAEFRtyT34DKp+BMHYsmSi2XHSwkcOBK+7APkF5HdlXHi2RoJpRuK52aPG4BqxEU6byQi9N4KiW3RGPh8SlqJzJ3oxqgi3I7Os= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=qKqaE3Bk; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="qKqaE3Bk" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4395f645200so1902145e9.2 for ; Fri, 14 Feb 2025 03:42:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1739533359; x=1740138159; 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=je3Y6JE9/0vgfYFp2HTKthP0SuJ3Chwygb5NcOwDms4=; b=qKqaE3BkM7marsQxQBxUFZ70JdlGGi7tbaQAEmJl7O548QQIT3N4gPIR0hxlJ40YxB s5RJ2pp8s7bnj/C/jQ4mZNqb0paxXAEowkpj0I1gWcnQhroMjQeZ+n4D5e4petutcHeh 5B1Wbfgu99MCJDxkEbgkKF/sRtqzybdurlr+/PqX51SRA917HPSlSG/VJSzPSqkgf4oO MCOpyM0sfV9hBJjgppV+/uWg5n5moIuY6w51AC5klNsUWpK1a03AzgJEKnXvzG2fD8nj 3LZT1+QO3D9IMt87yD9kXJOh1zWpu2Et893hkxMfT8qd5rFmzbyONgyPbzOlekmEqzgY 8MDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739533359; x=1740138159; 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=je3Y6JE9/0vgfYFp2HTKthP0SuJ3Chwygb5NcOwDms4=; b=ik9ormnje6hMlosArH+VMZwe2wPaOxxrs6QBTbm98N8HzFC/yumSD8R58g/0ShSqu4 pkBVHf0cR5MqLGW1Q0ooac+pWxPir1m8OGCq+F4VG9v3eTZDa6FW4Il/uRjzSiy0jsbc wXYAGExX0QmcX6nyPDG+KAZQOy5RnYT4iBNhmIMZkzJ+WO+byWLj7F2llAOuWNh5MY8b sInODYyojyd6AUrDUzfDkQwL8aVZ0143IW/6zFR43/LeB2Tl+NV3ONIBZ6laieWiI+yy 7I0f5SZWR9tjrjoWk4+2NjjIi+RaQPTcqMH39pNVZ6eCUm5bXoUff8Ffxeler+fH0VGg vdtg== X-Forwarded-Encrypted: i=1; AJvYcCXLeUB3fn+SQVwUSrUQu7aeDcS0k6G7bcrSH3sDocY1isYAyzNnIBT4XaYmj4Xx56ccP7RiPdiTXpIK5PU=@vger.kernel.org X-Gm-Message-State: AOJu0YxynCdw/7MNdy4kGe47vv4WcxaPxTPSIi5DFzXud21wEt5VPBIb tQ+HIerQqrg4abPKuxikbPOgKCnmg6Q+o93ylRzXyUrVvCVjlsZPyZ7/8Do3bys= X-Gm-Gg: ASbGnctfYOjkXzxerjJvt+HfIHItWWY+0JvDyza8YB9kpgXBw1kfV+xVypSvFy4Vjs5 sx+6C2UC5V4EkYCW3ALjMC2BPtgWN3L7hPbPwMdzL7jhiRjaIVe8q9+L1VLqFh0FSG8CN3L92YX QM9+7S7DNngLRq5nvLYxCtCAkDZO48mSf0zI5WdpDqZ2TNtEadO5gU+kvzuB7ioRLeC1Xn6/xBd /4auAAuTyGSeDc9AUva0e3N0CqJrT8n8S3uq4ZhkoDd9Y0nbURXy1se2hciUbZSnUGykf+1IoDU 24ixMrHqYGNqRtpczIaInxom7PQPmg== X-Google-Smtp-Source: AGHT+IHD2zuPWbS12hO8QjYVrO+0ZsWls0jxCUOQqd45DbLIATzXSslULpB7tkVtgTvMILaRHe52cQ== X-Received: by 2002:a05:600c:1986:b0:439:614a:8bee with SMTP id 5b1f17b1804b1-43967111951mr14380305e9.5.1739533358965; Fri, 14 Feb 2025 03:42:38 -0800 (PST) Received: from krzk-bin.. ([178.197.218.144]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38f259d8dd6sm4455148f8f.62.2025.02.14.03.42.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Feb 2025 03:42:38 -0800 (PST) From: Krzysztof Kozlowski To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] dt-bindings: usb: usb-device: Replace free-form 'reg' with constraints Date: Fri, 14 Feb 2025 12:42:35 +0100 Message-ID: <20250214114235.49476-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 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" Replace free-form text of 'reg' property with proper constraints so incorrect values can be actually reported. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/usb/usb-device.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/usb-device.yaml b/Docume= ntation/devicetree/bindings/usb/usb-device.yaml index da890ee60ce6..c67695681033 100644 --- a/Documentation/devicetree/bindings/usb/usb-device.yaml +++ b/Documentation/devicetree/bindings/usb/usb-device.yaml @@ -39,8 +39,10 @@ properties: =20 reg: description: the number of the USB hub port or the USB host-controller - port to which this device is attached. The range is 1-255. - maxItems: 1 + port to which this device is attached. + items: + - minimum: 1 + maximum: 255 =20 "#address-cells": description: should be 1 for hub nodes with device nodes, --=20 2.43.0