Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3342940rdb; Wed, 27 Dec 2023 04:40:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IEf+Vp9rFOHGJq/Nm/MNpFIfpwSbtQzkHSvqUGBJ0AncAQAoWNKTW2XEIPV/Xh4Hk9tM5zf X-Received: by 2002:a17:902:7787:b0:1d3:45b7:bc11 with SMTP id o7-20020a170902778700b001d345b7bc11mr3680719pll.48.1703680828990; Wed, 27 Dec 2023 04:40:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703680828; cv=none; d=google.com; s=arc-20160816; b=pwLxwssrMTxnQqL3EklkTxTlMACLXO5gQPD9NE6LTAaoaHcgaZK90P89c42+dvPt1Q ROF3LUdtBqe5YPdaB5km1aUvdayy3UMkyZVrF4jY1LoR7KC60XgU2cfqcAhVcfDP3b8g 1yvKOa69eQg4eL8Gb5A2TYvAhBkYjDm9VGa7gpNW0HvlJYEf+Ot/Izk6jAJC0tb9gnUX 4CuuAQGCH3byYXd2eejhp81HeXPjf4o7c6YoXaHz8Z3yv4wJ6tOHcrD3/dSnWBQcNysU ZrbR3yh+vopPbqP77kh+6U7jvXKzxYqCU2OIAKu6J/NritkHwiW9HM0p7XxaDD4kg/Pp JFTg== ARC-Message-Signature: i=1; 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=xz7I09UcBiUorMlgy5OYgfufNFkm6c1adZbo4oeQZZI=; fh=YLqONTT3zXOTgNWu2CDtNI+r5pIY9DcACBUu9uzqnaQ=; b=SUoIjhgA2BPe061F5Da74WvE5+se6lf6j/oUyG/72dRa+jonhoi3BQlprTj/3SGe7V l02T6y7rEL/gu0AwagxEYP3mAKv10HyiJfIKvRfYvdTN0fjLx+mxoFRpmsPzV0wHHGVP hriVQqe1bdQavro6tmJzCMkgOm54wG6woXQxW/50VKx0HM8F3R8CH6NyxwJefUe1x8Zz BVJRtGdJFbTfW1A0idvND5XaoU0DtV8lP7BFaSeMawYKgvLSXJS5CYlQuA57TcOcrXvB qUViRUMZTKBxljGLpOIDzNkKEkghhvfXSmU4lXWCFXD8aOMq0WKpRct1+DodLtJp1zKg MNgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=RUco1QkL; spf=pass (google.com: domain of linux-kernel+bounces-12022-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12022-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h23-20020a170902ac9700b001d35645b662si10832084plr.435.2023.12.27.04.40.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 04:40:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12022-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=RUco1QkL; spf=pass (google.com: domain of linux-kernel+bounces-12022-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12022-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 0A171B211D3 for ; Wed, 27 Dec 2023 12:40:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4737545BFE; Wed, 27 Dec 2023 12:39:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="RUco1QkL" X-Original-To: linux-kernel@vger.kernel.org Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 F235845BE8; Wed, 27 Dec 2023 12:39:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1703680744; bh=w80K9K625ryDqDV9yrKgZIzYlHFhUgvQGqQRjI4U7tU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RUco1QkLKUFQk9nWedO8uRG/VSc8S0RlucRtAPO22EtGLDElTR5BEwP7fQgyFo3cv PSFxefaoo2nczudYiPR+tMvrhK5DnsR29w0C9Q80AAALdvatiooz9Xq2Rr6j3sFkP2 1hGenunQmt/GjOJkUGDieV02TvXqOGWZvIF3hbSAhLFU3lmqrUxGTyVAz4jZZptCUK rVN+jUfSlIHNk1VT8u5o51V9mn2CaYuPZRZIJkQxIPn+x1FV5NgeAzuUwMDLcNj5zT +KGh7eMzQh1jU96lbwFL7kc+s56amnXql2umiPEKHiLxvNcyJd5UXOZYBqFMZekeKu lIddXsocHMiLg== Received: from localhost.localdomain (zone.collabora.co.uk [167.235.23.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madrid.collaboradmins.com (Postfix) with ESMTPSA id EC6DA3781F8F; Wed, 27 Dec 2023 12:38:58 +0000 (UTC) From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Shuah Khan , Greg Kroah-Hartman , Bjorn Helgaas Cc: kernelci@lists.linux.dev, kernel@collabora.com, Tim Bird , linux-pci@vger.kernel.org, David Gow , linux-kselftest@vger.kernel.org, Rob Herring , Doug Anderson , linux-usb@vger.kernel.org, Saravana Kannan , Dan Carpenter , Guenter Roeck , devicetree@vger.kernel.org, =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , linux-kernel@vger.kernel.org Subject: [RFC PATCH v3 2/3] kselftest: devices: Add sample board file for google,spherion Date: Wed, 27 Dec 2023 09:35:01 -0300 Message-ID: <20231227123643.52348-3-nfraprado@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231227123643.52348-1-nfraprado@collabora.com> References: <20231227123643.52348-1-nfraprado@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a sample board file describing the file's format and with the list of devices expected to be probed on the google,spherion machine as an example. Test output: TAP version 13 Using board file: boards/google,spherion.yaml 1..8 ok 1 /usb2-controller@11200000/1.4.1/camera.device ok 2 /usb2-controller@11200000/1.4.1/camera.0.driver ok 3 /usb2-controller@11200000/1.4.1/camera.1.driver ok 4 /usb2-controller@11200000/1.4.2/bluetooth.device ok 5 /usb2-controller@11200000/1.4.2/bluetooth.0.driver ok 6 /usb2-controller@11200000/1.4.2/bluetooth.1.driver ok 7 /pci-controller@11230000/0.0/0.0/wifi.device ok 8 /pci-controller@11230000/0.0/0.0/wifi.driver Totals: pass:8 fail:0 xfail:0 xpass:0 skip:0 error:0 Signed-off-by: NĂ­colas F. R. A. Prado --- Changes in v3: - Rewritten to use the YAML format and HW topology .../devices/boards/google,spherion.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 tools/testing/selftests/devices/boards/google,spherion.yaml diff --git a/tools/testing/selftests/devices/boards/google,spherion.yaml b/tools/testing/selftests/devices/boards/google,spherion.yaml new file mode 100644 index 000000000000..1212542d31e7 --- /dev/null +++ b/tools/testing/selftests/devices/boards/google,spherion.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# This is the device definition for the Google Spherion Chromebook. +# The filename "google,spherion" comes from the Devicetree compatible, so this +# file will be automatically used when the test is run on that machine. +# +# The top-level is a list of controllers, either for USB or PCI(e). +# Every controller needs to have a 'type' key set to either 'usb-controller' or +# 'pci-controller'. +# Every controller needs to be uniquely identified on the platform. To achieve +# this, several optional keys can be used: +# - dt-mmio: identify the MMIO address of the controller as defined in the +# Devicetree. +# - usb-version: for USB controllers to differentiate between USB3 and USB2 +# busses sharing the same controller. +# - acpi-uid: _UID property of the controller as supplied by the ACPI. Useful to +# distinguish between multiple PCI host controllers. +# +# The 'devices' key defines a list of devices that are accessible under that +# controller. A device might be a leaf device or another controller (see +# 'Dell Inc.,XPS 13 9300.yaml'). +# +# The 'path' key is needed for every child device (that is, not top-level) to +# define how to reach this device from the parent controller. For USB devices it +# follows the format \d(.\d)* and denotes the port in the hub at each level in +# the USB topology. For PCI devices it follows the format \d.\d(/\d.\d)* +# denoting the device (identified by device-function pair) at each level in the +# PCI topology. +# +# The 'name' key is used in the leaf devices to name the device for clarity in +# the test output. +# +# For USB leaf devices, the 'interfaces' key should contain a list of the +# interfaces in that device that should be bound to a driver. +# +- type: usb-controller + dt-mmio: 11200000 + usb-version: 2 + devices: + - path: 1.4.1 + interfaces: [0, 1] + name: camera + - path: 1.4.2 + interfaces: [0, 1] + name: bluetooth +- type: pci-controller + dt-mmio: 11230000 + devices: + - path: 0.0/0.0 + name: wifi -- 2.43.0