Message ID | 20240115-feature-xvf3500_driver-v1-2-ed9cfb48bb85@wolfvision.net |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-25781-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp1589974dyc; Mon, 15 Jan 2024 01:18:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IEWYlogm7rY0nLMVvDw5v3rMhppWI2koCFqN1cn+mwAJDbiIHaU8C+sfw0+dSBnS0QYuV8r X-Received: by 2002:a05:6808:f8e:b0:3bd:82e2:70da with SMTP id o14-20020a0568080f8e00b003bd82e270damr273814oiw.95.1705310284868; Mon, 15 Jan 2024 01:18:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705310284; cv=pass; d=google.com; s=arc-20160816; b=C898/vKC1VUydyiZ0PL2qoFBfJvYgkhqdqmLoGvNnKz0JeHL3mcXUaXICDj3TZ21v3 8fM8tzkJbouxOK7ixyudEYVBRFkQqHFXjPWCIp4D7cGeOug75a8NSRlZYBwFtza/MvTe cn0KMxuwPjbHw7cJE5JwKceK37IwO5jGrsSXIJV4O/IsKsApOvbYNgxN3Eu9x0TWNX97 oV/KoLtaYh5O3wyX6FxNfzRNJFeI0SWIbEwh7u9E4EXuMndmmuUxnk5JXC6r1lOk/yj2 La+nDkumfD2vVv7NpFe/arT+AGU6ahMM+jPN7Qjf8zWUkroRlnNhQ1Y/UiNw3ezxCQ8b vXGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence:cc :to:in-reply-to:references:message-id:content-transfer-encoding :subject:date:from:dkim-signature; bh=yXGpWS8USjWi9RTxYzhG5mHhW6v+pt53C1Nrcadd87g=; fh=ZFDYznED4nOVYtdgMs5FDYT6P3aPQeY3QyLLRrbItU0=; b=lgUiEuPMYT32LuL/S++X9Q5sl5MLYNcPK95ae9c3aFVmmu6ogPdHXlMtZQhNP1fvKr nJfYSMFV3DobJzAZy/vCOV1sCrtfwxFhTeYGsnAxYe7w4/KZJEt8DMui3apwtRxmcQ69 X+MmuP4Kbx7f31qWc5XCPHWXzkrzp4K7DgWcW3myP9MMAF0Ugd0dDcC5k7ko+EkUjGjD /5saGUIld83QuFZqBsgg7VjnRwHBTawc3bHtS69e3WrXzjxUItHRrfk9GOF7OOv5o4Hl NNFOUQ3aiPVdeWChbA/Idv6PnU1KJ5XLLYX8l+obVR34JltBrw/W0oXaUpLTSAyqRg/q bAEg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=uSCfaWUs; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); spf=pass (google.com: domain of linux-kernel+bounces-25781-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25781-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b11-20020a056a000ccb00b006d60c30ba57si8660908pfv.2.2024.01.15.01.18.04 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 01:18:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25781-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=uSCfaWUs; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); spf=pass (google.com: domain of linux-kernel+bounces-25781-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25781-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 97FA1281E77 for <ouuuleilei@gmail.com>; Mon, 15 Jan 2024 09:18:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C976C2206D; Mon, 15 Jan 2024 09:16:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=wolfvision.net header.i=@wolfvision.net header.b="uSCfaWUs" Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2044.outbound.protection.outlook.com [40.107.21.44]) (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 8D36BCA7A; Mon, 15 Jan 2024 09:16:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wolfvision.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wolfvision.net ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fnPgPiRc5HMEOzrMu/JoIfulzqY3McRMyiiKyLZlZTiog3EN8EZcPqHxKwCXZVJfJeam7RK56AsiqXfvGk9e+DV/YPE5HsMz+YeExJEaVP+9dEsegIQPgjo1aomGaRy8eOUBqeZ0a60wLAiEL8MddNcWEM7KkSJFj1AyqX2EmFzonsy93OrFObyMczind2YK9+MqKM6oLYZoqE9FoGcxEE3E7bj4GJk28qiKGSIWZOj4klnNTzoTFtotbwSv7q8Xt5YDSU6XGijt6OZtIe/CdyEPL20SJ1xMsBxe4rLnQcYGYVD+EYDLO3hZzkMpwqe60NIx17nNhC9W1hDmodLKPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=yXGpWS8USjWi9RTxYzhG5mHhW6v+pt53C1Nrcadd87g=; b=GNC2JmnEA81pD2PZu47IOt2lDDUL6LB1/QsjBtWZElDQouQiBup7PS6QMqtos4htMSl37cKkM6h7iyDNtUsIRT7Rwu+Y+xrT4Zz5SlwV45qTN1z70v57E6aWplUt+JtOAteoaQCHctu8qMxACdDBnjEmoC8lmIJX6/hqtQppmYExi8/mi7J4zGAuUfUJKTtnIBWCxWBBV8LSLtE5opbKz//Jo+6skgWkifO98G1PBEuKuK6oTnIACcd4blRXzQHprjbRuYgA8XVNcnMQVx04hM1V55VbSO8nt5B8Ga6LVgUml0UVOq6hGcqnHw2J7d0uNKqPdZqN/ZsSfy2b2/VbeQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yXGpWS8USjWi9RTxYzhG5mHhW6v+pt53C1Nrcadd87g=; b=uSCfaWUsRi5d3d7AvH6sPgCWbrgQPJGyeSEIcHj3xBtKONlmRiqH7l17y2wrHQwM7f/uuX7OidG6+QI/p3u2XhtgWEymHOSgW18OJHs8SFyCtUJasETK5gVjOigWsOYwT2LfJbM8+ewLIMBoMJT0hbo9Ct97+saS3BJi3VO6vEs= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) by AM9PR08MB6035.eurprd08.prod.outlook.com (2603:10a6:20b:2d9::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.23; Mon, 15 Jan 2024 09:16:39 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::6b40:1e6f:7c94:71dc]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::6b40:1e6f:7c94:71dc%4]) with mapi id 15.20.7181.026; Mon, 15 Jan 2024 09:16:39 +0000 From: Javier Carrasco <javier.carrasco@wolfvision.net> Date: Mon, 15 Jan 2024 10:16:32 +0100 Subject: [PATCH 2/3] ASoC: dt-bindings: xmos,xvf3500: add bindings for XMOS XVF3500 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240115-feature-xvf3500_driver-v1-2-ed9cfb48bb85@wolfvision.net> References: <20240115-feature-xvf3500_driver-v1-0-ed9cfb48bb85@wolfvision.net> In-Reply-To: <20240115-feature-xvf3500_driver-v1-0-ed9cfb48bb85@wolfvision.net> To: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com> Cc: Rob Herring <robh@kernel.org>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, Javier Carrasco <javier.carrasco@wolfvision.net> X-Mailer: b4 0.13-dev-4e032 X-Developer-Signature: v=1; a=ed25519-sha256; t=1705310196; l=1849; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=ni2dtHWBhPqUUIR7Lgbm7KZN1KzjAuAJdGMwDarzwWM=; b=w06Jag3yG5AYipCk53/pKgLVteSvbFm7yk2EG5flLCpnj740TDte3gx1yr6BLHOWAvJjPncSK 86p7QnIIAciCBAh6/OzMMALd3CL0TZU+kyBkdFvdTzXpVc79mZRtU+7 X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: VI1P190CA0005.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:2b::18) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|AM9PR08MB6035:EE_ X-MS-Office365-Filtering-Correlation-Id: f344b796-9bb6-47ba-eb53-08dc15aaae33 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1Du1GDxS1YBk7nUrYbOtxjZLLeVloS5flwfLsP4stkA8oS8Zj7dMRkcz+vPVMJ2ALDPXrwsDpTRJ6U5AMjNNwH/BeynKFazLLWvwHcrJ8yF1vrD2I0DRxP8i5xfYwpm6Lgy1NXNUZENZoPefl6e4zuxKeZ5qQQf8zDmsctD95dzKAvaptzh2S4R8uyNnhTIDWACdq1nLZcSnERKxeVEyckJA4sv7URubPKduiZ278dlHDplWG2EpBQBxdPRODi99B++DcCsTkM82gF1jF1EB+Mzd5G/RinQ7Q3WW3FB8YxP8BGzqLDLqo/WJmIysHBDEYPYKwKl6LYKqrS2faES2YvaCObAa9gW4WBF8yc4XPKI1+T/Rs8pjOfJ5qvITg7KGrs7fP/ewikjQoXw1f48SD0/CZKeZrFy9f7a+8XB9wI9cYKNnx8YoX9CWh5W6QA/JuRvlexy9dPk1bAewuFpF0hi9JIH4f49m/kIAWa+rIIBrwhhzqcHiAQC2myAnldiF/+OYlDeWoeDmHdaY/RbVF16bHVFS1+8c3gy0k6X+Eym9ZI5dNsoL/PSYW5IAdNg33DPgVFDNsnVSLMP103SokABhl9NcWenVVldgodacWZw= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR08MB4974.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39840400004)(346002)(376002)(396003)(136003)(366004)(230922051799003)(451199024)(186009)(1800799012)(64100799003)(38100700002)(38350700005)(36756003)(86362001)(66556008)(26005)(107886003)(2616005)(54906003)(66946007)(66476007)(316002)(110136005)(6512007)(6506007)(966005)(478600001)(8936002)(8676002)(6666004)(52116002)(6486002)(41300700001)(44832011)(2906002)(4326008)(5660300002)(7416002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?pBxmfvawf0JXiBMq6m+7jhixGEcJ?= =?utf-8?q?YaFJyyeht5g4tcPcSFCSw35wz0tHXtI3cXzZZCmceTk7WZT+AyPg+Oz934Z7Y+17r?= =?utf-8?q?j8LfUDaU6XymBq5f/n9Vz79Oa1DQlkOm2dZi7N1hPzIjjiT2Uf3r5+2UljuqHxJ4V?= =?utf-8?q?VYGLpbM3NbsU2cHvTicdMj2856H3qb3rkl0xTt0y1z2DeiGsiBrRSTqunpSfHRsRy?= =?utf-8?q?jq0o9Y/pMFwNTE4jTpIVXL+Zz0D8Vee8uHRYIDzqb3JyUDtChECv79RMs4JKfpQC9?= =?utf-8?q?Zv0zMHOhvOm2mLhnfrIN0V4VpXh0K02JkW9mBUd76pYFl78D2iJkiTpt4g7EL2vEM?= =?utf-8?q?sV7nVa4lJhzTOrbbB8zgGytxCnehHVuu67e8y4PniR2mLAh6TmR+6p/EaD+nF91U3?= =?utf-8?q?Eiz0qVY78EIsfaxd3rw3fahfTeZqFlIRrriWa2ZHHcfZBNq/xeKTSOyi4VeQSZu4S?= =?utf-8?q?cLisGRy2JiEH1rn76Nk1AE9QuEhRXt4+Dx7JuXANOzrfntqK5bNhZTqRgaTcBNN12?= =?utf-8?q?kcl72+eNeaJLKQz7F5BHvcdu5YbY3p1ucPxKnaxDjMk1O2ypdgroRr1MqY7rd0e3T?= =?utf-8?q?vQED7BrKeNDqHNu1BPEUYJGzzWq6WOEZN8KjOjqCpkNuaDKLij+I1/N2XHiijCHsg?= =?utf-8?q?naOAT90X3knBoHPSsG4aJOQ4e8edEIA0TkU/gfzU/3KAYnSO00PZGpDwfn2vEjpLZ?= =?utf-8?q?QQAIFT8V9IhLCL2N6uSH0zvTbuK9SKH3aAqX0wf+tctDbODUnCf0h/KQGxtNc/v73?= =?utf-8?q?NCONRHVyM1LpsB8J89+cFivAOT26IYWTp/dnhSHZ8+ddCcNNsmcWri8NLRv/r10BB?= =?utf-8?q?xtmLmR8PvVBJ5yrivtsh7awFyA+z9Np6R3mqsBlY9/BlLHEobixU6G9o7s9JQFNtQ?= =?utf-8?q?ioZ6J93fjSylzol+4Ao86lq4lvbzNQG8VyPyAaK1ZLvFAZPob2M35eugRAGGgYdzU?= =?utf-8?q?1D41LTmhGxUkqHChZ1a6Lz0MpCVCrPBhoqkTphSuSUPs4QS4ku9cSP6ULlS5FNBfo?= =?utf-8?q?STa7RHSOzlB89FHQjnwCUFKL6U0QCo/0sCvnS8ZkbSsxWn9r9Xj0/o2FdjiMyKFzp?= =?utf-8?q?YR5zALpLjPTinqO3nXrsbxNGwOJs6RX84dOt9I7LZJl26i615OnReybk6Srpy0gm3?= =?utf-8?q?WW2IRvVB09pGErF1fO18pXzRFF889nLAXhiFWmfdxtIMsw7oh5tvkudX5v2avwfIx?= =?utf-8?q?giaNY/siFLOqh0L+1anf9hxJb8D7jcEzKmeGOFf2TsQnss6i9wSBI/3tChIQC37LK?= =?utf-8?q?KTksD0XyRL8Zpo0tI8pe+IfHOOzsq6n+H0rqSlawWcbF8kr/7uIzEFTFtk0941JaV?= =?utf-8?q?+0k0CkZIZgJ1LBtLsWfK4dMcfVqQwzL0GR6zwso8pFYYjUUI/f7v9Fs/t4YxVO3/t?= =?utf-8?q?7ZhJ5gwJsafH5Mlw1V62hASTkv+O7kmga9I6c+/i0Xv+XSMp/hZ4ULB+795qDIaCn?= =?utf-8?q?1U3bIZqvMIR2CuuVO7+JleZATRFgonn8sTn1Q/PINuziYK3ILv+ElJHQWRoHHkLlB?= =?utf-8?q?yAC789iChL5QsNt0cKb/xIHMfqTW9+kxzresCvoWwHh8W2o7KusInGY=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: f344b796-9bb6-47ba-eb53-08dc15aaae33 X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jan 2024 09:16:39.2277 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: SxibH4yDhyDZBKM8F0kcmsMduG2SGoDst4SrZBZE0GHO8lrBLvsDLgekrK9Et5BywvXuLIHMCc8CkigLdTJxuppjkzMjke1dNxWZwjzHQ0M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB6035 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788147437611308059 X-GMAIL-MSGID: 1788147437611308059 |
Series |
ALSA: usb: add support for XMOS XVF3500
|
|
Commit Message
Javier Carrasco
Jan. 15, 2024, 9:16 a.m. UTC
The XMOS XVF3500 VocalFusion Voice Processor[1] is a low-latency, 32-bit
multicore controller for voice processing.
Add new bindings to define the device properties.
[1] https://www.xmos.com/xvf3500/
Signed-off-by: Javier Carrasco <javier.carrasco@wolfvision.net>
---
.../devicetree/bindings/sound/xmos,xvf3500.yaml | 51 ++++++++++++++++++++++
1 file changed, 51 insertions(+)
Comments
On 15/01/2024 10:16, Javier Carrasco wrote: > The XMOS XVF3500 VocalFusion Voice Processor[1] is a low-latency, 32-bit > multicore controller for voice processing. > > Add new bindings to define the device properties. I don't see any bus, so how does it work? How do you get the voice data from it? I also do not see any DAI: neither here nor in the driver... If there is going to be any new version, then implement all following comments: A nit, subject: drop second/last, redundant "bindings for". The "dt-bindings" prefix is already stating that these are bindings. See also: https://elixir.bootlin.com/linux/v6.7-rc8/source/Documentation/devicetree/bindings/submitting-patches.rst#L18 > > [1] https://www.xmos.com/xvf3500/ > > Signed-off-by: Javier Carrasco <javier.carrasco@wolfvision.net> > --- > .../devicetree/bindings/sound/xmos,xvf3500.yaml | 51 ++++++++++++++++++++++ > 1 file changed, 51 insertions(+) > > diff --git a/Documentation/devicetree/bindings/sound/xmos,xvf3500.yaml b/Documentation/devicetree/bindings/sound/xmos,xvf3500.yaml > new file mode 100644 > index 000000000000..e93a735a0f1a > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/xmos,xvf3500.yaml > @@ -0,0 +1,51 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/xmos,xvf3500.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: XMOS XVF3500 VocalFusion Voice Processor > + > +maintainers: > + - Javier Carrasco <javier.carrasco@wolfvision.net> > + > +description: |- Do not need '|-' unless you need to preserve formatting. > + The XMOS XVF3500 VocalFusion Voice Processor is a low-latency, 32-bit > + multicore controller for voice processing. > + https://www.xmos.com/xvf3500/ > + > +properties: > + compatible: > + const: xmos,xvf3500 > + > + reset-gpios: > + maxItems: 1 > + > + vcc1v0-supply: > + description: | Do not need '|' unless you need to preserve formatting. > + Regulator for the 1V0 supply. > + > + vcc3v3-supply: > + description: | Do not need '|' unless you need to preserve formatting. > + Regulator for the 3V3 supply. > + > +additionalProperties: false This goes after required: block. > + > +required: > + - compatible > + - reset-gpios > + - vcc1v0-supply > + - vcc3v3-supply > + > +examples: > + - | > + #include <dt-bindings/gpio/gpio.h> > + > + xvf3500: voice-processor { Drop unused label. Best regards, Krzysztof
On 15.01.24 14:02, Krzysztof Kozlowski wrote: > On 15/01/2024 10:16, Javier Carrasco wrote: >> The XMOS XVF3500 VocalFusion Voice Processor[1] is a low-latency, 32-bit >> multicore controller for voice processing. >> >> Add new bindings to define the device properties. > > I don't see any bus, so how does it work? How do you get the voice data > from it? I also do not see any DAI: neither here nor in the driver... > The voice data and any other information can be retrieved directly via USB from userspace. Once in normal operation, the device acts as a regular "onboard" USB device and the driver does not need to do any further management. > If there is going to be any new version, then implement all following > comments: > > A nit, subject: drop second/last, redundant "bindings for". The > "dt-bindings" prefix is already stating that these are bindings. > See also: > https://elixir.bootlin.com/linux/v6.7-rc8/source/Documentation/devicetree/bindings/submitting-patches.rst#L18 > > >> >> [1] https://www.xmos.com/xvf3500/ >> >> Signed-off-by: Javier Carrasco <javier.carrasco@wolfvision.net> >> --- >> .../devicetree/bindings/sound/xmos,xvf3500.yaml | 51 ++++++++++++++++++++++ >> 1 file changed, 51 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/sound/xmos,xvf3500.yaml b/Documentation/devicetree/bindings/sound/xmos,xvf3500.yaml >> new file mode 100644 >> index 000000000000..e93a735a0f1a >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/sound/xmos,xvf3500.yaml >> @@ -0,0 +1,51 @@ >> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/sound/xmos,xvf3500.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: XMOS XVF3500 VocalFusion Voice Processor >> + >> +maintainers: >> + - Javier Carrasco <javier.carrasco@wolfvision.net> >> + >> +description: |- > > Do not need '|-' unless you need to preserve formatting. > > >> + The XMOS XVF3500 VocalFusion Voice Processor is a low-latency, 32-bit >> + multicore controller for voice processing. >> + https://www.xmos.com/xvf3500/ >> + >> +properties: >> + compatible: >> + const: xmos,xvf3500 >> + >> + reset-gpios: >> + maxItems: 1 >> + >> + vcc1v0-supply: >> + description: | > > Do not need '|' unless you need to preserve formatting. > > >> + Regulator for the 1V0 supply. >> + >> + vcc3v3-supply: >> + description: | > > Do not need '|' unless you need to preserve formatting. > >> + Regulator for the 3V3 supply. >> + >> +additionalProperties: false > > This goes after required: block. > >> + >> +required: >> + - compatible >> + - reset-gpios >> + - vcc1v0-supply >> + - vcc3v3-supply >> + >> +examples: >> + - | >> + #include <dt-bindings/gpio/gpio.h> >> + >> + xvf3500: voice-processor { > > Drop unused label. > > > > Best regards, > Krzysztof > Thank you for your feedback and best regards, Javier Carrasco
On 15/01/2024 14:58, Javier Carrasco wrote: > On 15.01.24 14:02, Krzysztof Kozlowski wrote: >> On 15/01/2024 10:16, Javier Carrasco wrote: >>> The XMOS XVF3500 VocalFusion Voice Processor[1] is a low-latency, 32-bit >>> multicore controller for voice processing. >>> >>> Add new bindings to define the device properties. >> >> I don't see any bus, so how does it work? How do you get the voice data >> from it? I also do not see any DAI: neither here nor in the driver... >> > The voice data and any other information can be retrieved directly via > USB from userspace. Once in normal operation, the device acts as a > regular "onboard" USB device and the driver does not need to do any > further management. So is this an USB device? If yes, then shouldn't be just auto-discovered and you add here some bindings for other device? This looks like coding power sequence not in USB node, but in some other, new node. Best regards, Krzysztof
On 15.01.24 15:35, Krzysztof Kozlowski wrote: > On 15/01/2024 14:58, Javier Carrasco wrote: >> On 15.01.24 14:02, Krzysztof Kozlowski wrote: >>> On 15/01/2024 10:16, Javier Carrasco wrote: >>>> The XMOS XVF3500 VocalFusion Voice Processor[1] is a low-latency, 32-bit >>>> multicore controller for voice processing. >>>> >>>> Add new bindings to define the device properties. >>> >>> I don't see any bus, so how does it work? How do you get the voice data >>> from it? I also do not see any DAI: neither here nor in the driver... >>> >> The voice data and any other information can be retrieved directly via >> USB from userspace. Once in normal operation, the device acts as a >> regular "onboard" USB device and the driver does not need to do any >> further management. > > So is this an USB device? If yes, then shouldn't be just auto-discovered > and you add here some bindings for other device? This looks like coding > power sequence not in USB node, but in some other, new node. > > Best regards, > Krzysztof > It is an USB device that requires two power supplies and a reset to boot. Afterwards it is auto-discovered and functions normally as a regular USB device. In that sense it works like the onboard USB HUBs: https://github.com/torvalds/linux/blob/master/drivers/usb/misc/onboard_usb_hub.c The onboard USB HUB driver is of course more complex because it has to support other features, but the idea of enabling the power supplies and toggling the reset signal is essentially the same. Best regards, Javier Carrasco
On 15/01/2024 16:59, Javier Carrasco wrote: >>> The voice data and any other information can be retrieved directly via >>> USB from userspace. Once in normal operation, the device acts as a >>> regular "onboard" USB device and the driver does not need to do any >>> further management. >> >> So is this an USB device? If yes, then shouldn't be just auto-discovered >> and you add here some bindings for other device? This looks like coding >> power sequence not in USB node, but in some other, new node. >> >> Best regards, >> Krzysztof >> > It is an USB device that requires two power supplies and a reset to > boot. Afterwards it is auto-discovered and functions normally as a > regular USB device. In that sense it works like the onboard USB HUBs: > > https://github.com/torvalds/linux/blob/master/drivers/usb/misc/onboard_usb_hub.c > > The onboard USB HUB driver is of course more complex because it has to > support other features, but the idea of enabling the power supplies and > toggling the reset signal is essentially the same. > Yeah, about that... so this is not really correct device representation for DT. There is no such device as XVF3500 outside of USB bus. There is XVF3500 but on USB bus and this should be there. In the past we allowed such root-level devices just because we did not have other way to handle them. Now we have. Best regards, Krzysztof
On 15.01.24 17:03, Krzysztof Kozlowski wrote: > On 15/01/2024 16:59, Javier Carrasco wrote: >>>> The voice data and any other information can be retrieved directly via >>>> USB from userspace. Once in normal operation, the device acts as a >>>> regular "onboard" USB device and the driver does not need to do any >>>> further management. >>> >>> So is this an USB device? If yes, then shouldn't be just auto-discovered >>> and you add here some bindings for other device? This looks like coding >>> power sequence not in USB node, but in some other, new node. >>> >>> Best regards, >>> Krzysztof >>> >> It is an USB device that requires two power supplies and a reset to >> boot. Afterwards it is auto-discovered and functions normally as a >> regular USB device. In that sense it works like the onboard USB HUBs: >> >> https://github.com/torvalds/linux/blob/master/drivers/usb/misc/onboard_usb_hub.c >> >> The onboard USB HUB driver is of course more complex because it has to >> support other features, but the idea of enabling the power supplies and >> toggling the reset signal is essentially the same. >> > > Yeah, about that... so this is not really correct device representation > for DT. There is no such device as XVF3500 outside of USB bus. There is > XVF3500 but on USB bus and this should be there. In the past we allowed > such root-level devices just because we did not have other way to handle > them. Now we have. > > Best regards, > Krzysztof > Do you mean that the XVF3500 should not be represented as a platform device and instead it should turn into an USB device represented as a node of an USB controller? Something like this (Rockchip SoC): &usb_host1_xhci { ... xvf3500 { ... }; }; Did I get you right or is that not the correct representation? Thank you again. Best regards, Javier Carrasco
On 15/01/2024 17:24, Javier Carrasco wrote: > Do you mean that the XVF3500 should not be represented as a platform > device and instead it should turn into an USB device represented as a > node of an USB controller? Something like this (Rockchip SoC): > > &usb_host1_xhci { > ... > > xvf3500 { > ... > }; > }; > > Did I get you right or is that not the correct representation? Thank you > again. I believe it should be just like onboard hub. I don't understand why onboard hub was limited to hub, because other USB devices also could be designed similarly by hardware folks :/ And if we talk about Linux drivers, then your current solution does not support suspend/resume and device unbind. Best regards, Krzysztof
On 15.01.24 19:11, Krzysztof Kozlowski wrote: > On 15/01/2024 17:24, Javier Carrasco wrote: >> Do you mean that the XVF3500 should not be represented as a platform >> device and instead it should turn into an USB device represented as a >> node of an USB controller? Something like this (Rockchip SoC): >> >> &usb_host1_xhci { >> ... >> >> xvf3500 { >> ... >> }; >> }; >> >> Did I get you right or is that not the correct representation? Thank you >> again. > > I believe it should be just like onboard hub. I don't understand why > onboard hub was limited to hub, because other USB devices also could be > designed similarly by hardware folks :/ > > And if we talk about Linux drivers, then your current solution does not > support suspend/resume and device unbind. > > Best regards, > Krzysztof > Actually this series is an attempt to get rid of a misuse of the onboard_usb_hub driver by a device that is not a HUB, but requires the platform-part of that driver for the initialization. What would be the best approach to provide support upstream? Should I turn this driver into a generic USB driver that does what the platform-part of the onboard HUB does? Or are we willing to accept non-HUB devices in the onboard_usb_hub driver even though it supports more operations? I am adding linux-usb to this thread in case someone has other suggestions. Thanks and best regards, Javier Carrasco
On 15/01/2024 20:43, Javier Carrasco wrote: > On 15.01.24 19:11, Krzysztof Kozlowski wrote: >> On 15/01/2024 17:24, Javier Carrasco wrote: >>> Do you mean that the XVF3500 should not be represented as a platform >>> device and instead it should turn into an USB device represented as a >>> node of an USB controller? Something like this (Rockchip SoC): >>> >>> &usb_host1_xhci { >>> ... >>> >>> xvf3500 { >>> ... >>> }; >>> }; >>> >>> Did I get you right or is that not the correct representation? Thank you >>> again. >> >> I believe it should be just like onboard hub. I don't understand why >> onboard hub was limited to hub, because other USB devices also could be >> designed similarly by hardware folks :/ >> >> And if we talk about Linux drivers, then your current solution does not >> support suspend/resume and device unbind. >> >> Best regards, >> Krzysztof >> > > Actually this series is an attempt to get rid of a misuse of the > onboard_usb_hub driver by a device that is not a HUB, but requires the > platform-part of that driver for the initialization. That's just naming issue, isn't it? > > What would be the best approach to provide support upstream? Should I > turn this driver into a generic USB driver that does what the > platform-part of the onboard HUB does? Or are we willing to accept No, because you did not solve the problems I mentioned. This is neither accurate hardware description nor proper Linux driver model handling PM and unbind. > non-HUB devices in the onboard_usb_hub driver even though it supports > more operations? > > I am adding linux-usb to this thread in case someone has other suggestions. I don't see any difference between this device and onboard hub. The concept and the problem is the same. Therefore either treat it as as onboard hub or come with USB-version of PCI power sequencing. https://lore.kernel.org/all/20240104130123.37115-1-brgl@bgdev.pl/ Best regards, Krzysztof
On 15.01.24 21:43, Krzysztof Kozlowski wrote: > On 15/01/2024 20:43, Javier Carrasco wrote: >> On 15.01.24 19:11, Krzysztof Kozlowski wrote: >>> On 15/01/2024 17:24, Javier Carrasco wrote: >>>> Do you mean that the XVF3500 should not be represented as a platform >>>> device and instead it should turn into an USB device represented as a >>>> node of an USB controller? Something like this (Rockchip SoC): >>>> >>>> &usb_host1_xhci { >>>> ... >>>> >>>> xvf3500 { >>>> ... >>>> }; >>>> }; >>>> >>>> Did I get you right or is that not the correct representation? Thank you >>>> again. >>> >>> I believe it should be just like onboard hub. I don't understand why >>> onboard hub was limited to hub, because other USB devices also could be >>> designed similarly by hardware folks :/ >>> >>> And if we talk about Linux drivers, then your current solution does not >>> support suspend/resume and device unbind. >>> >>> Best regards, >>> Krzysztof >>> >> >> Actually this series is an attempt to get rid of a misuse of the >> onboard_usb_hub driver by a device that is not a HUB, but requires the >> platform-part of that driver for the initialization. > > That's just naming issue, isn't it? > >> >> What would be the best approach to provide support upstream? Should I >> turn this driver into a generic USB driver that does what the >> platform-part of the onboard HUB does? Or are we willing to accept > > No, because you did not solve the problems I mentioned. This is neither > accurate hardware description nor proper Linux driver model handling PM > and unbind. > You mentioned the PM handling twice, but I am not sure what you mean. The driver provides callbacks for SIMPLE_DEV_PM_OPS, which I tested in freeze and memory power states with positive results. On the other hand, I suppose that you insisted for a good reason, so I would be grateful if you could show me what I am doing wrong. The macro pattern was taken from other devices under sound/, which also check CONFIG_PM_SLEEP, but maybe I took a bad example or missed something. >> non-HUB devices in the onboard_usb_hub driver even though it supports >> more operations? >> >> I am adding linux-usb to this thread in case someone has other suggestions. > > I don't see any difference between this device and onboard hub. The > concept and the problem is the same. Therefore either treat it as as > onboard hub or come with USB-version of PCI power sequencing. > I have nothing against adding this device to onboard_usb_hub as long as it is valid upstream, so no conflicts arise with new additions to the list (which was the trigger for all of this with v6.7). That is obviously the most trivial solution and as you said, it is justs a naming issue because the power sequence is not HUB-specific. > https://lore.kernel.org/all/20240104130123.37115-1-brgl@bgdev.pl/ > > Best regards, > Krzysztof > Thanks and best regards, Javier Carrasco
On Tue, 16 Jan 2024 08:29:04 +0100, Javier Carrasco wrote: > > On 15.01.24 21:43, Krzysztof Kozlowski wrote: > > On 15/01/2024 20:43, Javier Carrasco wrote: > >> On 15.01.24 19:11, Krzysztof Kozlowski wrote: > >>> On 15/01/2024 17:24, Javier Carrasco wrote: > >>>> Do you mean that the XVF3500 should not be represented as a platform > >>>> device and instead it should turn into an USB device represented as a > >>>> node of an USB controller? Something like this (Rockchip SoC): > >>>> > >>>> &usb_host1_xhci { > >>>> ... > >>>> > >>>> xvf3500 { > >>>> ... > >>>> }; > >>>> }; > >>>> > >>>> Did I get you right or is that not the correct representation? Thank you > >>>> again. > >>> > >>> I believe it should be just like onboard hub. I don't understand why > >>> onboard hub was limited to hub, because other USB devices also could be > >>> designed similarly by hardware folks :/ > >>> > >>> And if we talk about Linux drivers, then your current solution does not > >>> support suspend/resume and device unbind. > >>> > >>> Best regards, > >>> Krzysztof > >>> > >> > >> Actually this series is an attempt to get rid of a misuse of the > >> onboard_usb_hub driver by a device that is not a HUB, but requires the > >> platform-part of that driver for the initialization. > > > > That's just naming issue, isn't it? > > > >> > >> What would be the best approach to provide support upstream? Should I > >> turn this driver into a generic USB driver that does what the > >> platform-part of the onboard HUB does? Or are we willing to accept > > > > No, because you did not solve the problems I mentioned. This is neither > > accurate hardware description nor proper Linux driver model handling PM > > and unbind. > > > You mentioned the PM handling twice, but I am not sure what you mean. > The driver provides callbacks for SIMPLE_DEV_PM_OPS, which I tested in > freeze and memory power states with positive results. On the other hand, > I suppose that you insisted for a good reason, so I would be grateful if > you could show me what I am doing wrong. The macro pattern was taken > from other devices under sound/, which also check CONFIG_PM_SLEEP, > but maybe I took a bad example or missed something. FWIW, the patterns in sound/ are somewhat outdated and need to be refreshed. Nowadays one should use DEFINE_SIMPLE_DEV_PM_OPS() instead (that should work without ifdef). thanks, Takashi
On 16/01/2024 08:29, Javier Carrasco wrote: > On 15.01.24 21:43, Krzysztof Kozlowski wrote: >> On 15/01/2024 20:43, Javier Carrasco wrote: >>> On 15.01.24 19:11, Krzysztof Kozlowski wrote: >>>> On 15/01/2024 17:24, Javier Carrasco wrote: >>>>> Do you mean that the XVF3500 should not be represented as a platform >>>>> device and instead it should turn into an USB device represented as a >>>>> node of an USB controller? Something like this (Rockchip SoC): >>>>> >>>>> &usb_host1_xhci { >>>>> ... >>>>> >>>>> xvf3500 { >>>>> ... >>>>> }; >>>>> }; >>>>> >>>>> Did I get you right or is that not the correct representation? Thank you >>>>> again. >>>> >>>> I believe it should be just like onboard hub. I don't understand why >>>> onboard hub was limited to hub, because other USB devices also could be >>>> designed similarly by hardware folks :/ >>>> >>>> And if we talk about Linux drivers, then your current solution does not >>>> support suspend/resume and device unbind. >>>> >>>> Best regards, >>>> Krzysztof >>>> >>> >>> Actually this series is an attempt to get rid of a misuse of the >>> onboard_usb_hub driver by a device that is not a HUB, but requires the >>> platform-part of that driver for the initialization. >> >> That's just naming issue, isn't it? >> >>> >>> What would be the best approach to provide support upstream? Should I >>> turn this driver into a generic USB driver that does what the >>> platform-part of the onboard HUB does? Or are we willing to accept >> >> No, because you did not solve the problems I mentioned. This is neither >> accurate hardware description nor proper Linux driver model handling PM >> and unbind. >> > You mentioned the PM handling twice, but I am not sure what you mean. > The driver provides callbacks for SIMPLE_DEV_PM_OPS, which I tested in > freeze and memory power states with positive results. On the other hand, > I suppose that you insisted for a good reason, so I would be grateful if > you could show me what I am doing wrong. The macro pattern was taken > from other devices under sound/, which also check CONFIG_PM_SLEEP, > but maybe I took a bad example or missed something. You have two Linux devices: USB device and platform device. The platform device controls power of USB device. If platform device goes to some variant of sleep (PRM, system PM) before the USB device, how will USB device react? Will it work? I doubt. You have no ordering / dependencies / device links between these devices thus possible problems. >>> non-HUB devices in the onboard_usb_hub driver even though it supports >>> more operations? >>> >>> I am adding linux-usb to this thread in case someone has other suggestions. >> >> I don't see any difference between this device and onboard hub. The >> concept and the problem is the same. Therefore either treat it as as >> onboard hub or come with USB-version of PCI power sequencing. >> > I have nothing against adding this device to onboard_usb_hub as long as > it is valid upstream, so no conflicts arise with new additions to the > list (which was the trigger for all of this with v6.7). That is I am sorry, but we talk here only about upstream. I don't know therefore what "valid upstream" means. You cannot send a patch which is "not valid upstream". I mean, technically you can, but this would be waste of our time and receive rather annoyed responses. > obviously the most trivial solution and as you said, it is justs a > naming issue because the power sequence is not HUB-specific. I would ack it. Others? No clue, I also do not remember full story behind onboard USB hub and why it was called "hub" instead of "onboard USB device". Best regards, Krzysztof
On 22.01.24 13:01, Takashi Iwai wrote: > On Tue, 16 Jan 2024 08:29:04 +0100, > Javier Carrasco wrote: >> >> On 15.01.24 21:43, Krzysztof Kozlowski wrote: >>> On 15/01/2024 20:43, Javier Carrasco wrote: >>>> On 15.01.24 19:11, Krzysztof Kozlowski wrote: >>>>> On 15/01/2024 17:24, Javier Carrasco wrote: >>>>>> Do you mean that the XVF3500 should not be represented as a platform >>>>>> device and instead it should turn into an USB device represented as a >>>>>> node of an USB controller? Something like this (Rockchip SoC): >>>>>> >>>>>> &usb_host1_xhci { >>>>>> ... >>>>>> >>>>>> xvf3500 { >>>>>> ... >>>>>> }; >>>>>> }; >>>>>> >>>>>> Did I get you right or is that not the correct representation? Thank you >>>>>> again. >>>>> >>>>> I believe it should be just like onboard hub. I don't understand why >>>>> onboard hub was limited to hub, because other USB devices also could be >>>>> designed similarly by hardware folks :/ >>>>> >>>>> And if we talk about Linux drivers, then your current solution does not >>>>> support suspend/resume and device unbind. >>>>> >>>>> Best regards, >>>>> Krzysztof >>>>> >>>> >>>> Actually this series is an attempt to get rid of a misuse of the >>>> onboard_usb_hub driver by a device that is not a HUB, but requires the >>>> platform-part of that driver for the initialization. >>> >>> That's just naming issue, isn't it? >>> >>>> >>>> What would be the best approach to provide support upstream? Should I >>>> turn this driver into a generic USB driver that does what the >>>> platform-part of the onboard HUB does? Or are we willing to accept >>> >>> No, because you did not solve the problems I mentioned. This is neither >>> accurate hardware description nor proper Linux driver model handling PM >>> and unbind. >>> >> You mentioned the PM handling twice, but I am not sure what you mean. >> The driver provides callbacks for SIMPLE_DEV_PM_OPS, which I tested in >> freeze and memory power states with positive results. On the other hand, >> I suppose that you insisted for a good reason, so I would be grateful if >> you could show me what I am doing wrong. The macro pattern was taken >> from other devices under sound/, which also check CONFIG_PM_SLEEP, >> but maybe I took a bad example or missed something. > > FWIW, the patterns in sound/ are somewhat outdated and need to be > refreshed. Nowadays one should use DEFINE_SIMPLE_DEV_PM_OPS() instead > (that should work without ifdef). > > > thanks, > > Takashi Thank you for your feedback. I noticed that the pattern looks different, but given that many devices in sound/ still use that pattern, I just followed suit. In that case I will only use DEFINE_SIMPLE_DEV_PM_OPS. Thanks again and best regards, Javier Carrasco
On 22.01.24 13:29, Krzysztof Kozlowski wrote: > On 16/01/2024 08:29, Javier Carrasco wrote: >> On 15.01.24 21:43, Krzysztof Kozlowski wrote: >>> On 15/01/2024 20:43, Javier Carrasco wrote: >>>> On 15.01.24 19:11, Krzysztof Kozlowski wrote: >>>>> On 15/01/2024 17:24, Javier Carrasco wrote: >>>>>> Do you mean that the XVF3500 should not be represented as a platform >>>>>> device and instead it should turn into an USB device represented as a >>>>>> node of an USB controller? Something like this (Rockchip SoC): >>>>>> >>>>>> &usb_host1_xhci { >>>>>> ... >>>>>> >>>>>> xvf3500 { >>>>>> ... >>>>>> }; >>>>>> }; >>>>>> >>>>>> Did I get you right or is that not the correct representation? Thank you >>>>>> again. >>>>> >>>>> I believe it should be just like onboard hub. I don't understand why >>>>> onboard hub was limited to hub, because other USB devices also could be >>>>> designed similarly by hardware folks :/ >>>>> >>>>> And if we talk about Linux drivers, then your current solution does not >>>>> support suspend/resume and device unbind. >>>>> >>>>> Best regards, >>>>> Krzysztof >>>>> >>>> >>>> Actually this series is an attempt to get rid of a misuse of the >>>> onboard_usb_hub driver by a device that is not a HUB, but requires the >>>> platform-part of that driver for the initialization. >>> >>> That's just naming issue, isn't it? >>> >>>> >>>> What would be the best approach to provide support upstream? Should I >>>> turn this driver into a generic USB driver that does what the >>>> platform-part of the onboard HUB does? Or are we willing to accept >>> >>> No, because you did not solve the problems I mentioned. This is neither >>> accurate hardware description nor proper Linux driver model handling PM >>> and unbind. >>> >> You mentioned the PM handling twice, but I am not sure what you mean. >> The driver provides callbacks for SIMPLE_DEV_PM_OPS, which I tested in >> freeze and memory power states with positive results. On the other hand, >> I suppose that you insisted for a good reason, so I would be grateful if >> you could show me what I am doing wrong. The macro pattern was taken >> from other devices under sound/, which also check CONFIG_PM_SLEEP, >> but maybe I took a bad example or missed something. > > You have two Linux devices: USB device and platform device. The platform > device controls power of USB device. If platform device goes to some > variant of sleep (PRM, system PM) before the USB device, how will USB > device react? Will it work? I doubt. > > You have no ordering / dependencies / device links between these devices > thus possible problems. > Thank you for clarifying this point. I only covered the platform device and such device links are missing. I will opt for the inclusion in onboard_usb_hub, which already covers both devices. >>>> non-HUB devices in the onboard_usb_hub driver even though it supports >>>> more operations? >>>> >>>> I am adding linux-usb to this thread in case someone has other suggestions. >>> >>> I don't see any difference between this device and onboard hub. The >>> concept and the problem is the same. Therefore either treat it as as >>> onboard hub or come with USB-version of PCI power sequencing. >>> >> I have nothing against adding this device to onboard_usb_hub as long as >> it is valid upstream, so no conflicts arise with new additions to the >> list (which was the trigger for all of this with v6.7). That is > > I am sorry, but we talk here only about upstream. I don't know therefore > what "valid upstream" means. You cannot send a patch which is "not valid > upstream". I mean, technically you can, but this would be waste of our > time and receive rather annoyed responses. > I meant valid upstream, so sending such patch makes sense to the community (and not only to us). So far you are the source of feedback upstream, so I will follow your advice. >> obviously the most trivial solution and as you said, it is justs a >> naming issue because the power sequence is not HUB-specific. > > I would ack it. Others? No clue, I also do not remember full story > behind onboard USB hub and why it was called "hub" instead of "onboard > USB device". > > Best regards, > Krzysztof > Thank you and best regards, Javier Carrasco
diff --git a/Documentation/devicetree/bindings/sound/xmos,xvf3500.yaml b/Documentation/devicetree/bindings/sound/xmos,xvf3500.yaml new file mode 100644 index 000000000000..e93a735a0f1a --- /dev/null +++ b/Documentation/devicetree/bindings/sound/xmos,xvf3500.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/xmos,xvf3500.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: XMOS XVF3500 VocalFusion Voice Processor + +maintainers: + - Javier Carrasco <javier.carrasco@wolfvision.net> + +description: |- + The XMOS XVF3500 VocalFusion Voice Processor is a low-latency, 32-bit + multicore controller for voice processing. + https://www.xmos.com/xvf3500/ + +properties: + compatible: + const: xmos,xvf3500 + + reset-gpios: + maxItems: 1 + + vcc1v0-supply: + description: | + Regulator for the 1V0 supply. + + vcc3v3-supply: + description: | + Regulator for the 3V3 supply. + +additionalProperties: false + +required: + - compatible + - reset-gpios + - vcc1v0-supply + - vcc3v3-supply + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + + xvf3500: voice-processor { + compatible = "xmos,xvf3500"; + reset-gpios = <&gpio 5 GPIO_ACTIVE_LOW>; + vcc1v0-supply = <&vcc1v0>; + vcc3v3-supply = <&vcc3v3>; + }; + +...