Message ID | 20240205191808.998754-1-frut3k7@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-53806-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1149180dyb; Mon, 5 Feb 2024 13:14:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IH0JYSx/OEMCRBCmJuFZxvm3M1V8x5440gEyRqBavVv/dua6t/6Exg819jUYmtGMt9t71Vi X-Received: by 2002:aa7:ca5a:0:b0:55f:cca3:e89e with SMTP id j26-20020aa7ca5a000000b0055fcca3e89emr326217edt.21.1707167676247; Mon, 05 Feb 2024 13:14:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707167676; cv=pass; d=google.com; s=arc-20160816; b=MlIpF0uCrtS6ZBoUII4W7BZPwraWsN33CTIm7II5BLjZrO9uRFov4GXqHQzXzVaaQX 3ubai2+vsZXKRkKosqc5Z4m6K/68komcJXbrBGIvH6xngsD/Jiv/KY4i923cqH7cxM4t 8vxRe79I8JuIO700UsJ8fs4ElugFIDvjA36ryFOKjPJZcYprtd4eK5ZMK7xtAWXzHf6f uUvr9L62V/FSfBQC5r0o6+va2G7YbocAoYMPKdKwpGmsHU8jHWtwXuTOP6dxn1L+3Z7X JJegOngo+SjEujhZYvtZo/7qhIb11vKi9PvApAYWvJy+p6Zy3A0v0sLQ8NWOyhi2mI2E IT6A== 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=IuNWF46JFf3MlfJFwAYp5tNA2d7ETGv42lwNVneuKvA=; fh=ksMlPFXewzdd2qnT1cfVqaBT2r86L31d7QdxkcWIvLM=; b=TM/zQtTTQdN/DQHOervQyNsk10Fm++vlwwF8zaMfSNXSlyr22m1ZcVOwUKMYiLWsgU E8iiBxLYEHpEXQn2BmuwUgkwXlkgiVLC5cqlnpvYeEfWk8ucyWSKOGi2u2MSUJ5s1Czr C9fpkSWTbRe7Yst3lWdHUr5c7AkfLufq296gwcBA2oNIa+Np2vsoH/IDFZ72Ig8Y/qfd 8e4SbnL1L4J56H+JZieO0Po/8b1nZrW+q571cS+SpmrUOdxyy2K5x7oZt/rPSHgvEMqp BT/9xbOCB753s6UEXIebB/sQEVLX2y6c3IFWTL+ZRqsb1JzRLWF8d1HHpiZYATKqa9lK ofMw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="H/DAjPvG"; 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-53806-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53806-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCXwzU94F92WxhWlnIMnVLdPlxwtryzbHaUapL0cmHI1pvMLPrSfi39RdXjiajRxQufm56Mmixl29qJ3BLF+9BEs2ceRDg== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n9-20020a056402060900b0055f7d6be6f2si304335edv.152.2024.02.05.13.14.36 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 13:14:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53806-ouuuleilei=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="H/DAjPvG"; 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-53806-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53806-ouuuleilei=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 CF5121F28141 for <ouuuleilei@gmail.com>; Mon, 5 Feb 2024 21:14:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A70653819; Mon, 5 Feb 2024 19:18:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="H/DAjPvG" Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (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 B77B14D5B5; Mon, 5 Feb 2024 19:18:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707160703; cv=none; b=LRso+KfPSdce8rob86tJPBWHtk86h1SiMQHoV79Vpf5rCD4Nw3/+153QLTHOg2bzAxaEglUgksgiFJ9vl5srNTRIdeG9X4YOb8OtDF4JsbGvHEEBt/XH1pt6LR7guO0ofKpSMYpufXSWPjMZTJ7UKiiO29Zu9sbUhbKS7YmjgOs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707160703; c=relaxed/simple; bh=CDNTWucJRN0r0wgKqo5XyZ/qBIWc6fFcrCzdkqZeMq8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=byWMkl+pJrsVtfG9vXKsuFRYMlcWdMSmGpPfdg2/k4YynRJMwZdyUkowuR99T0/1TV4m7d3e8nHTPLX9kANptrsktGLnc9msFkk1uOHmptpux0esaPL2FRi0RFZGUvsTgMA+T7WKjTc9ySG+xjVzhyHeOOeLORBSCK/pcRlJuA8= 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=H/DAjPvG; arc=none smtp.client-ip=209.85.167.42 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-lf1-f42.google.com with SMTP id 2adb3069b0e04-51149561a39so2014136e87.0; Mon, 05 Feb 2024 11:18:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707160700; x=1707765500; 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=IuNWF46JFf3MlfJFwAYp5tNA2d7ETGv42lwNVneuKvA=; b=H/DAjPvGhpEbJblI4pUylSYXMKxHFIQ3hQBj89HCGhN9DHPjiLRxcf434wLYGJ2DN3 Uif0JQqcwTONNknikRj2JIp3iffGFRg7LhMBb8Iwh44z28B+usMHHsJtC6wcst0ayq5z ZONWE0lxpnFrrUwlJaJMDXnwl8hPF8YtlthalrwXzmICX389qew26nmv0gM3D/l8Yx+U OLxcFLEcdX6DPDzWIkQzBP6196Ykuq7E3+ehRYDpMpADVkhRj/noHY56OCPsY52XSdeo AVhqjb/xjIeNOVEfgxh/m7jTZDsdMNz6hvsNnhDgMAc/6Pdcv28QQ61TF/UuSMwCpu5V S7Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707160700; x=1707765500; 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=IuNWF46JFf3MlfJFwAYp5tNA2d7ETGv42lwNVneuKvA=; b=biCEY2PEnDr8v3u7IsGW2IbHbbuUa1nz0wuUpRBPJPyCXMadLfMaIzj7qylOp+1DjN ozIQZor2t1XnmYq9r4foyl5Iog41SuxebYmqLq2L6roCsvFvr1H6Pp4b17ShoflBMI2D +cwaJguhOttEyhBAGsc+6v5t2IqKFpDSnXxCUZkkHIrEZCzpXB0We9r39402/d2kT1te 9u2egyIlt8NlK0lsaGIjAbyTwlvT/c3p7LY2Wr2ldjLl/PTuCM2Lcj0yqqPwmcLkDqeC sxlgTHaOxYvBIz8UexQUHc0d8zHYoNfIV3bwwLyx/fLHte+dyJ+bMxJmiW9i1q2C9uH1 zPRA== X-Gm-Message-State: AOJu0Yw2me+o2HaRv3GtlGpRek/LixVYsenWg3mgsWSTzIH73mKRrHSg Ounli1FUZ1gjuwhoyia4l9+JXYW/tK1cSwseHDp6rg/2QvrkCtc= X-Received: by 2002:a19:7502:0:b0:511:4a03:6b5c with SMTP id y2-20020a197502000000b005114a036b5cmr405434lfe.14.1707160699537; Mon, 05 Feb 2024 11:18:19 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWETNXcfCkJkwVTvc7GfNxv6tSBKxz5xuYUHWGgnD3c4Xqd5AyndbskdIocEuo79oqS5bHJf9moKWphdta5hZNPJJRRpbM+eW1lasGkL8Q6AhUw8ybNKyMYmenqcVKwZ/GlfV7cZM2OkYrayjFKWC1eyFEDLG04KxuxAg== Received: from frutis-latitude7490.lan (public-gprs393011.centertel.pl. [37.47.166.116]) by smtp.googlemail.com with ESMTPSA id e23-20020a17090681d700b00a3717f96e6esm159096ejx.171.2024.02.05.11.18.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 11:18:19 -0800 (PST) From: =?utf-8?q?Pawe=C5=82_Owoc?= <frut3k7@gmail.com> To: Mark Brown <broonie@kernel.org> Cc: Robert Marko <robimarko@gmail.com>, =?utf-8?q?Pawe=C5=82_Owoc?= <frut3k7@gmail.com>, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] spi: spidev: Add Qualcomm spidev device compatible Date: Mon, 5 Feb 2024 20:18:05 +0100 Message-ID: <20240205191808.998754-1-frut3k7@gmail.com> X-Mailer: git-send-email 2.43.0 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790095053118939818 X-GMAIL-MSGID: 1790095053118939818 |
Series |
[1/2] spi: spidev: Add Qualcomm spidev device compatible
|
|
Commit Message
frut3k7
Feb. 5, 2024, 7:18 p.m. UTC
Add compatible string for Qualcomm spidev device (used for QCA4024).
Signed-off-by: Paweł Owoc <frut3k7@gmail.com>
---
drivers/spi/spidev.c | 2 ++
1 file changed, 2 insertions(+)
Comments
On Mon, Feb 05, 2024 at 08:18:05PM +0100, Paweł Owoc wrote: > Add compatible string for Qualcomm spidev device (used for QCA4024). > --- a/drivers/spi/spidev.c > +++ b/drivers/spi/spidev.c > @@ -710,6 +710,7 @@ static const struct spi_device_id spidev_spi_ids[] = { > { .name = "spi-authenta" }, > { .name = "em3581" }, > { .name = "si3210" }, > + { .name = "spidev" }, > {}, Why? > { .compatible = "lwn,bk4", .data = &spidev_of_check }, > { .compatible = "menlo,m53cpld", .data = &spidev_of_check }, > { .compatible = "micron,spi-authenta", .data = &spidev_of_check }, > + { .compatible = "qca,spidev", .data = &spidev_of_check }, No, this needs to correspond to the hardware being controlled via spidev not to an implementation detail. Any new compatibles also need to be documented. I'm also missing patch 2 of this series so don't know what's going on there.
On Tue, Feb 06, 2024 at 02:01:27PM +0100, frut3k7 wrote: > On Tue, Feb 6, 2024 at 10:37 AM Mark Brown <broonie@kernel.org> wrote: > > On Mon, Feb 05, 2024 at 08:18:05PM +0100, Paweł Owoc wrote: > > > + { .compatible = "qca,spidev", .data = &spidev_of_check }, > > No, this needs to correspond to the hardware being controlled via spidev > > not to an implementation detail. Any new compatibles also need to be > > documented. > The device for which I want to add compatibility is originally used in the > router and this is what the dts fragment looks like: > > spi@3 { > compatible = "qca,spidev"; > reg = <0x00>; > spi-max-frequency = <0x16e3600>; > }; > }; > According to this commit, Qualcomm use this compatibility: > https://github.com/dissent1/msm-2/commit/d6160218393552fea1b7973787f2bd154f870ee2 This is out of tree, it's not exactly a good guide for mainline. The DT should describe the hardware, not how some particular software stack chooses to drive it. > > I'm also missing patch 2 of this series so don't know what's going on > > there. > The second patch was sent only to the devicetree bindings project: > https://lore.kernel.org/all/20240205191828.998783-1-frut3k7@gmail.com/ > It's probably done wrong... You should send the bindings change along with the driver change, they usually get merged together.
On Tue, Feb 6, 2024 at 10:37 AM Mark Brown <broonie@kernel.org> wrote: > > On Mon, Feb 05, 2024 at 08:18:05PM +0100, Paweł Owoc wrote: > > Add compatible string for Qualcomm spidev device (used for QCA4024). > > > --- a/drivers/spi/spidev.c > > +++ b/drivers/spi/spidev.c > > @@ -710,6 +710,7 @@ static const struct spi_device_id spidev_spi_ids[] = { > > { .name = "spi-authenta" }, > > { .name = "em3581" }, > > { .name = "si3210" }, > > + { .name = "spidev" }, > > {}, > > Why? > > > { .compatible = "lwn,bk4", .data = &spidev_of_check }, > > { .compatible = "menlo,m53cpld", .data = &spidev_of_check }, > > { .compatible = "micron,spi-authenta", .data = &spidev_of_check }, > > + { .compatible = "qca,spidev", .data = &spidev_of_check }, > > No, this needs to correspond to the hardware being controlled via spidev > not to an implementation detail. Any new compatibles also need to be > documented. The device for which I want to add compatibility is originally used in the router and this is what the dts fragment looks like: spi@78b8000 { #address-cells = <0x01>; #size-cells = <0x00>; clock-names = "core\0iface"; clocks = <0x03 0x5c 0x03 0x54>; compatible = "qcom,spi-qup-v2.2.1"; cs-select = <0x02>; dma-names = "tx\0rx"; dmas = <0x06 0x12 0x06 0x13>; interrupts = <0x00 0x62 0x00>; pinctrl-0 = <0x08>; pinctrl-names = "default"; quartz-reset-gpio = <0x09 0x15 0x01>; reg = <0x78b8000 0x600>; spi-max-frequency = <0x2faf080>; status = "ok"; spi@3 { compatible = "qca,spidev"; reg = <0x00>; spi-max-frequency = <0x16e3600>; }; }; The first part has already been added: https://lore.kernel.org/all/20231123121324.1046164-1-robimarko@gmail.com/ According to this commit, Qualcomm use this compatibility: https://github.com/dissent1/msm-2/commit/d6160218393552fea1b7973787f2bd154f870ee2 > > I'm also missing patch 2 of this series so don't know what's going on > there. The second patch was sent only to the devicetree bindings project: https://lore.kernel.org/all/20240205191828.998783-1-frut3k7@gmail.com/ It's probably done wrong...
On Tue, Feb 6, 2024 at 2:11 PM Mark Brown <broonie@kernel.org> wrote: > > On Tue, Feb 06, 2024 at 02:01:27PM +0100, frut3k7 wrote: > > On Tue, Feb 6, 2024 at 10:37 AM Mark Brown <broonie@kernel.org> wrote: > > > On Mon, Feb 05, 2024 at 08:18:05PM +0100, Paweł Owoc wrote: > > > > > + { .compatible = "qca,spidev", .data = &spidev_of_check }, > > > > No, this needs to correspond to the hardware being controlled via spidev > > > not to an implementation detail. Any new compatibles also need to be > > > documented. > > > The device for which I want to add compatibility is originally used in the > > router and this is what the dts fragment looks like: > > > > > spi@3 { > > compatible = "qca,spidev"; > > reg = <0x00>; > > spi-max-frequency = <0x16e3600>; > > }; > > }; > > > According to this commit, Qualcomm use this compatibility: > > https://github.com/dissent1/msm-2/commit/d6160218393552fea1b7973787f2bd154f870ee2 > > This is out of tree, it's not exactly a good guide for mainline. The DT > should describe the hardware, not how some particular software stack > chooses to drive it. > Will changing from "spidev" to "qca4024" be enough? > > > I'm also missing patch 2 of this series so don't know what's going on > > > there. > > > The second patch was sent only to the devicetree bindings project: > > https://lore.kernel.org/all/20240205191828.998783-1-frut3k7@gmail.com/ > > It's probably done wrong... > > You should send the bindings change along with the driver change, they > usually get merged together.
On Tue, Feb 06, 2024 at 02:57:49PM +0100, frut3k7 wrote: > On Tue, Feb 6, 2024 at 2:11 PM Mark Brown <broonie@kernel.org> wrote: > > This is out of tree, it's not exactly a good guide for mainline. The DT > > should describe the hardware, not how some particular software stack > > chooses to drive it. > Will changing from "spidev" to "qca4024" be enough? Should be I think.
On Tue, Feb 6, 2024 at 3:10 PM Mark Brown <broonie@kernel.org> wrote: > > On Tue, Feb 06, 2024 at 02:57:49PM +0100, frut3k7 wrote: > > On Tue, Feb 6, 2024 at 2:11 PM Mark Brown <broonie@kernel.org> wrote: > > > > This is out of tree, it's not exactly a good guide for mainline. The DT > > > should describe the hardware, not how some particular software stack > > > chooses to drive it. > > > Will changing from "spidev" to "qca4024" be enough? > > Should be I think. Should both patches (spi and devicetree) be sent to two projects (Linux SPI and Devicetree Bindings)?
On Tue, Feb 06, 2024 at 05:48:04PM +0100, frut3k7 wrote: > Should both patches (spi and devicetree) be sent to two projects > (Linux SPI and Devicetree Bindings)? Yes.
On 07/02/2024 23:45, Paweł Owoc wrote: > Add Qualcomm QCA4024 to trivial devices. > > Signed-off-by: Paweł Owoc <frut3k7@gmail.com> > --- > Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml > index 79dcd92c4a43..c6362e981920 100644 > --- a/Documentation/devicetree/bindings/trivial-devices.yaml > +++ b/Documentation/devicetree/bindings/trivial-devices.yaml > @@ -309,6 +309,8 @@ properties: > - plx,pex8648 > # Pulsedlight LIDAR range-finding sensor > - pulsedlight,lidar-lite-v2 > + # Qualcomm QCA4024 Multi-mode Bluetooth and 802.15.4 SoC > + - qca,qca4024 As I wrote, Bluetooth chip is not a trivial device. This one particular exposes several interfaces to the host, needs a clock and power supply. Best regards, Krzysztof
On 15/02/2024 23:01, frut3k7 wrote: > The device I use has the QCA4024 chip connected via the spi controller: > blsp1_spi4: spi@78b8000 { > compatible = "qcom,spi-qup-v2.2.1"; > #address-cells = <1>; > #size-cells = <0>; > reg = <0x78b8000 0x600>; > interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>; > clocks = <&gcc GCC_BLSP1_QUP4_SPI_APPS_CLK>, > <&gcc GCC_BLSP1_AHB_CLK>; > clock-names = "core", "iface"; > dmas = <&blsp_dma 18>, <&blsp_dma 19>; > dma-names = "tx", "rx"; > status = "disabled"; > }; > > and apart from setting the frequency and gpio there is nothing else: > &blsp1_spi4 { > status = "okay"; > > pinctrl-0 = <&spi_3_pins &quartz_pins>; > pinctrl-names = "default"; > > /* Qualcomm QCA4024 IoT */ > iot@3 { > compatible = "qca,qca4024"; > reg = <0>; > spi-max-frequency = <24000000>; That's your downstream or fork DTS, not hardware description. You could have several regulators not listed here, because your downstream has always-on, or clocks which are not taken and works due to assigned-clocks in other places... Sorry, that's not an argument. Never use downstream DTS as proof how hardware looks. It is usually dis-proof, that things are certainly missing. Best regards, Krzysztof
On 16/02/2024 14:39, Paweł Owoc wrote: > To be clear, I don't want to add support for the QCA4024, I just want > to use this SoC with its own firmware connected to another SoC > (IPQ8072A) via spi. I know and this does not change what I told you days ago: this is not a trivial device, IMO. Please open the schematics or datasheet and check its pins. Best regards, Krzysztof
On 16/02/2024 15:47, Krzysztof Kozlowski wrote: > On 16/02/2024 14:39, Paweł Owoc wrote: >> To be clear, I don't want to add support for the QCA4024, I just want >> to use this SoC with its own firmware connected to another SoC >> (IPQ8072A) via spi. > > I know and this does not change what I told you days ago: this is not a > trivial device, IMO. Please open the schematics or datasheet and check > its pins. To clarify: this is not a trivial, but "regular" device, so I expect standalone binding and at least some basic check whether devices has additional resources. Best regards, Krzysztof
On 17/02/2024 11:55, Paweł Owoc wrote: > On Sat, Feb 17, 2024 at 11:31 AM Krzysztof Kozlowski > <krzysztof.kozlowski@linaro.org> wrote: >> >> On 17/02/2024 11:29, Paweł Owoc wrote: >>> Can you point me to some example? >> >> Please stop top-posting. I really have no clue what you want here and >> what you are referring to. >> >> Best regards, >> Krzysztof >> > > Is any bluetooth device connected via spi already supported? No clue, we have thousands (~5k) of independent schema files. If you ask about SPI devices, there are plenty as an examples. git grep for spi-peripheral-props. Best regards, Krzysztof
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 655f2c959cd4..00bcb77ee597 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -710,6 +710,7 @@ static const struct spi_device_id spidev_spi_ids[] = { { .name = "spi-authenta" }, { .name = "em3581" }, { .name = "si3210" }, + { .name = "spidev" }, {}, }; MODULE_DEVICE_TABLE(spi, spidev_spi_ids); @@ -734,6 +735,7 @@ static const struct of_device_id spidev_dt_ids[] = { { .compatible = "lwn,bk4", .data = &spidev_of_check }, { .compatible = "menlo,m53cpld", .data = &spidev_of_check }, { .compatible = "micron,spi-authenta", .data = &spidev_of_check }, + { .compatible = "qca,spidev", .data = &spidev_of_check }, { .compatible = "rohm,dh2228fv", .data = &spidev_of_check }, { .compatible = "semtech,sx1301", .data = &spidev_of_check }, { .compatible = "silabs,em3581", .data = &spidev_of_check },