devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/4] Removal of non-existent DAC nodes
@ 2024-07-17  9:37 Conor Dooley
  2024-07-17  9:37 ` [PATCH v1 1/4] arm64: dts: imx8: remove non-existent DACs Conor Dooley
                   ` (4 more replies)
  0 siblings, 5 replies; 19+ messages in thread
From: Conor Dooley @ 2024-07-17  9:37 UTC (permalink / raw)
  To: linux-kernel
  Cc: conor, Conor Dooley, Dinh Nguyen, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, Huacai Chen,
	WANG Xuerui, devicetree, linux-arm-kernel, linux-rockchip, imx,
	loongarch

From: Conor Dooley <conor.dooley@microchip.com>

Recently I've been getting triggered by abuse of the Rohm dh2228fv
compatible to get the spidev driver probing in Linux on development
kits by employees of various silicon vendors (like NXP or my own
employer). I had a look around the kernel and all users other than the
original Clearfontz board added by Maxime appear to be similar abuse.
Drop the non-existent nodes from all of these devices :)

Fun fact: the dh2228fv isn't even real, and was originally a typo! The
real DAC is a bh2228fv

Cheers,
Conor.

CC: Dinh Nguyen <dinguyen@kernel.org>
CC: Rob Herring <robh@kernel.org>
CC: Krzysztof Kozlowski <krzk+dt@kernel.org>
CC: Conor Dooley <conor+dt@kernel.org>
CC: Heiko Stuebner <heiko@sntech.de>
CC: Shawn Guo <shawnguo@kernel.org>
CC: Sascha Hauer <s.hauer@pengutronix.de>
CC: Pengutronix Kernel Team <kernel@pengutronix.de>
CC: Fabio Estevam <festevam@gmail.com>
CC: Huacai Chen <chenhuacai@kernel.org>
CC: WANG Xuerui <kernel@xen0n.name>
CC: devicetree@vger.kernel.org
CC: linux-kernel@vger.kernel.org
CC: linux-arm-kernel@lists.infradead.org
CC: linux-rockchip@lists.infradead.org
CC: imx@lists.linux.dev
CC: loongarch@lists.linux.dev

Conor Dooley (4):
  arm64: dts: imx8: remove non-existent DACs
  ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1
  loongarch: dts: remove non-existent DAC from 2k1000-ref
  ARM: dts: socfpga: remove non-existent DAC from CycloneV devkit

 .../arm/boot/dts/intel/socfpga/socfpga_cyclone5_socdk.dts | 6 ------
 arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts            | 8 --------
 arch/arm64/boot/dts/freescale/imx8dxl-evk.dts             | 6 ------
 arch/arm64/boot/dts/freescale/imx8qm-mek.dts              | 6 ------
 arch/loongarch/boot/dts/loongson-2k1000-ref.dts           | 5 -----
 5 files changed, 31 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [PATCH v1 1/4] arm64: dts: imx8: remove non-existent DACs
  2024-07-17  9:37 [PATCH v1 0/4] Removal of non-existent DAC nodes Conor Dooley
@ 2024-07-17  9:37 ` Conor Dooley
  2024-07-17  9:38   ` Krzysztof Kozlowski
  2024-08-12  9:43   ` Shawn Guo
  2024-07-17  9:37 ` [PATCH v1 2/4] ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1 Conor Dooley
                   ` (3 subsequent siblings)
  4 siblings, 2 replies; 19+ messages in thread
From: Conor Dooley @ 2024-07-17  9:37 UTC (permalink / raw)
  To: linux-kernel
  Cc: conor, Conor Dooley, Dinh Nguyen, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, Huacai Chen,
	WANG Xuerui, devicetree, linux-arm-kernel, linux-rockchip, imx,
	loongarch

From: Conor Dooley <conor.dooley@microchip.com>

Neither the imx8dxl-evk or imx8qm-mek have a Rohm DAC on them as far as
I can tell from online documentation, and they certainly do not have a
dh2228fv, as this device does not actually exist! Remove the DAC nodes
from the devicetrees as it is not acceptable to pretend to have a device
on a board in order to bind the spidev driver in Linux.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
---
 arch/arm64/boot/dts/freescale/imx8dxl-evk.dts | 6 ------
 arch/arm64/boot/dts/freescale/imx8qm-mek.dts  | 6 ------
 2 files changed, 12 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts
index 1a74ac3ee4ee..4caaecc19227 100644
--- a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts
@@ -722,12 +722,6 @@ &lpspi3 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_lpspi3>;
 	status = "okay";
-
-	spidev0: spi@0 {
-		reg = <0>;
-		compatible = "rohm,dh2228fv";
-		spi-max-frequency = <30000000>;
-	};
 };
 
 &iomuxc {
diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts
index 778741dbbb33..3f0fd147bbd0 100644
--- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts
+++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts
@@ -287,12 +287,6 @@ &lpspi2 {
 	pinctrl-0 = <&pinctrl_lpspi2 &pinctrl_lpspi2_cs>;
 	cs-gpios = <&lsio_gpio3 10 GPIO_ACTIVE_LOW>;
 	status = "okay";
-
-	spidev0: spi@0 {
-		reg = <0>;
-		compatible = "rohm,dh2228fv";
-		spi-max-frequency = <30000000>;
-	};
 };
 
 &lsio_mu5 {
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v1 2/4] ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1
  2024-07-17  9:37 [PATCH v1 0/4] Removal of non-existent DAC nodes Conor Dooley
  2024-07-17  9:37 ` [PATCH v1 1/4] arm64: dts: imx8: remove non-existent DACs Conor Dooley
@ 2024-07-17  9:37 ` Conor Dooley
  2024-07-17  9:39   ` Krzysztof Kozlowski
                     ` (3 more replies)
  2024-07-17  9:37 ` [PATCH v1 3/4] loongarch: dts: remove non-existent DAC from 2k1000-ref Conor Dooley
                   ` (2 subsequent siblings)
  4 siblings, 4 replies; 19+ messages in thread
From: Conor Dooley @ 2024-07-17  9:37 UTC (permalink / raw)
  To: linux-kernel
  Cc: conor, Conor Dooley, Dinh Nguyen, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, Huacai Chen,
	WANG Xuerui, devicetree, linux-arm-kernel, linux-rockchip, imx,
	loongarch

From: Conor Dooley <conor.dooley@microchip.com>

The Rohm dh2228fv (really the bh2228fv, the compatible in the kernel has
a typo) does not support frequencies above 10 MHz, nor per the
datasheet appear to use either CPOL or CPHA. I suspect that this
devicetree is abusing the compatible in order to bind the spidev driver
in Linux. Pretending to have devices on a board for this purpose is not
acceptable, so remove it.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
---
I could not find any documentation for this board online, and it does
not blatantly say that the device is a "spidev" like other [ab]users, so
it is possible there's actually a DAC here - but I doubt it is a
bh2228fv given the other incompatibilities.
---
 arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts b/arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts
index 2d9994379eb2..9df1cef406c5 100644
--- a/arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts
+++ b/arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts
@@ -167,14 +167,6 @@ &spi {
 	pinctrl-names = "default";
 	pinctrl-0 = <&spim1_clk &spim1_cs0 &spim1_tx &spim1_rx>;
 	status = "okay";
-
-	dh2228fv: dac@0 {
-		compatible = "rohm,dh2228fv";
-		reg = <0>;
-		spi-max-frequency = <24000000>;
-		spi-cpha;
-		spi-cpol;
-	};
 };
 
 &u2phy {
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v1 3/4] loongarch: dts: remove non-existent DAC from 2k1000-ref
  2024-07-17  9:37 [PATCH v1 0/4] Removal of non-existent DAC nodes Conor Dooley
  2024-07-17  9:37 ` [PATCH v1 1/4] arm64: dts: imx8: remove non-existent DACs Conor Dooley
  2024-07-17  9:37 ` [PATCH v1 2/4] ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1 Conor Dooley
@ 2024-07-17  9:37 ` Conor Dooley
  2024-07-17  9:39   ` Krzysztof Kozlowski
  2024-07-17  9:37 ` [PATCH v1 4/4] ARM: dts: socfpga: remove non-existent DAC from CycloneV devkit Conor Dooley
  2025-02-12 20:49 ` (subset) [PATCH v1 0/4] Removal of non-existent DAC nodes Krzysztof Kozlowski
  4 siblings, 1 reply; 19+ messages in thread
From: Conor Dooley @ 2024-07-17  9:37 UTC (permalink / raw)
  To: linux-kernel
  Cc: conor, Conor Dooley, Dinh Nguyen, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, Huacai Chen,
	WANG Xuerui, devicetree, linux-arm-kernel, linux-rockchip, imx,
	loongarch

From: Conor Dooley <conor.dooley@microchip.com>

The 2k1000 reference boards do not have a Rohm DAC on them as far as I
can tell, and they certainly do not have a dh2228fv, as this device does
not actually exist! Remove the dac nodes from the devicetrees as it is
not acceptable to pretend to have a device on a board in order to bind
the spidev driver in Linux.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
---
 arch/loongarch/boot/dts/loongson-2k1000-ref.dts | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/arch/loongarch/boot/dts/loongson-2k1000-ref.dts b/arch/loongarch/boot/dts/loongson-2k1000-ref.dts
index 23cf26cc3e5f..3514ea78f525 100644
--- a/arch/loongarch/boot/dts/loongson-2k1000-ref.dts
+++ b/arch/loongarch/boot/dts/loongson-2k1000-ref.dts
@@ -90,11 +90,6 @@ &spi0 {
 
 	#address-cells = <1>;
 	#size-cells = <0>;
-	spidev@0 {
-		compatible = "rohm,dh2228fv";
-		spi-max-frequency = <100000000>;
-		reg = <0>;
-	};
 };
 
 &ehci0 {
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v1 4/4] ARM: dts: socfpga: remove non-existent DAC from CycloneV devkit
  2024-07-17  9:37 [PATCH v1 0/4] Removal of non-existent DAC nodes Conor Dooley
                   ` (2 preceding siblings ...)
  2024-07-17  9:37 ` [PATCH v1 3/4] loongarch: dts: remove non-existent DAC from 2k1000-ref Conor Dooley
@ 2024-07-17  9:37 ` Conor Dooley
  2024-07-17  9:39   ` Krzysztof Kozlowski
  2024-12-29 10:09   ` (subset) " Krzysztof Kozlowski
  2025-02-12 20:49 ` (subset) [PATCH v1 0/4] Removal of non-existent DAC nodes Krzysztof Kozlowski
  4 siblings, 2 replies; 19+ messages in thread
From: Conor Dooley @ 2024-07-17  9:37 UTC (permalink / raw)
  To: linux-kernel
  Cc: conor, Conor Dooley, Dinh Nguyen, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, Huacai Chen,
	WANG Xuerui, devicetree, linux-arm-kernel, linux-rockchip, imx,
	loongarch

From: Conor Dooley <conor.dooley@microchip.com>

There is no Rohm DAC on the CycloneV devkit according to the online
documentation for it that I could find, and it definitely does not have
a dh2228fv as this device does not actually exist! Remove the DAC node
from the devicetree as it is not acceptable to pretend to have a device
on a board in order to bind the spidev driver in Linux.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
---
 arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_socdk.dts | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_socdk.dts b/arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_socdk.dts
index d37a982e8571..97622febc44e 100644
--- a/arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_socdk.dts
+++ b/arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_socdk.dts
@@ -151,12 +151,6 @@ partition@qspi-rootfs {
 
 &spi0 {
 	status = "okay";
-
-	spidev@0 {
-		compatible = "rohm,dh2228fv";
-		reg = <0>;
-		spi-max-frequency = <1000000>;
-	};
 };
 
 &usb1 {
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 1/4] arm64: dts: imx8: remove non-existent DACs
  2024-07-17  9:37 ` [PATCH v1 1/4] arm64: dts: imx8: remove non-existent DACs Conor Dooley
@ 2024-07-17  9:38   ` Krzysztof Kozlowski
  2024-08-12  9:43   ` Shawn Guo
  1 sibling, 0 replies; 19+ messages in thread
From: Krzysztof Kozlowski @ 2024-07-17  9:38 UTC (permalink / raw)
  To: Conor Dooley, linux-kernel
  Cc: Conor Dooley, Dinh Nguyen, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Heiko Stuebner, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Huacai Chen, WANG Xuerui,
	devicetree, linux-arm-kernel, linux-rockchip, imx, loongarch

On 17/07/2024 11:37, Conor Dooley wrote:
> From: Conor Dooley <conor.dooley@microchip.com>
> 
> Neither the imx8dxl-evk or imx8qm-mek have a Rohm DAC on them as far as
> I can tell from online documentation, and they certainly do not have a
> dh2228fv, as this device does not actually exist! Remove the DAC nodes
> from the devicetrees as it is not acceptable to pretend to have a device
> on a board in order to bind the spidev driver in Linux.
> 
> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
> ---

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 2/4] ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1
  2024-07-17  9:37 ` [PATCH v1 2/4] ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1 Conor Dooley
@ 2024-07-17  9:39   ` Krzysztof Kozlowski
  2024-07-17 10:18   ` Heiko Stübner
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 19+ messages in thread
From: Krzysztof Kozlowski @ 2024-07-17  9:39 UTC (permalink / raw)
  To: Conor Dooley, linux-kernel
  Cc: Conor Dooley, Dinh Nguyen, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Heiko Stuebner, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Huacai Chen, WANG Xuerui,
	devicetree, linux-arm-kernel, linux-rockchip, imx, loongarch

On 17/07/2024 11:37, Conor Dooley wrote:
> From: Conor Dooley <conor.dooley@microchip.com>
> 
> The Rohm dh2228fv (really the bh2228fv, the compatible in the kernel has
> a typo) does not support frequencies above 10 MHz, nor per the
> datasheet appear to use either CPOL or CPHA. I suspect that this
> devicetree is abusing the compatible in order to bind the spidev driver
> in Linux. Pretending to have devices on a board for this purpose is not
> acceptable, so remove it.
> 
> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
> ---
> I could not find any documentation for this board online, and it does
> not blatantly say that the device is a "spidev" like other [ab]users, so
> it is possible there's actually a DAC here - but I doubt it is a
> bh2228fv given the other incompatibilities.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 3/4] loongarch: dts: remove non-existent DAC from 2k1000-ref
  2024-07-17  9:37 ` [PATCH v1 3/4] loongarch: dts: remove non-existent DAC from 2k1000-ref Conor Dooley
@ 2024-07-17  9:39   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 19+ messages in thread
From: Krzysztof Kozlowski @ 2024-07-17  9:39 UTC (permalink / raw)
  To: Conor Dooley, linux-kernel
  Cc: Conor Dooley, Dinh Nguyen, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Heiko Stuebner, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Huacai Chen, WANG Xuerui,
	devicetree, linux-arm-kernel, linux-rockchip, imx, loongarch

On 17/07/2024 11:37, Conor Dooley wrote:
> From: Conor Dooley <conor.dooley@microchip.com>
> 
> The 2k1000 reference boards do not have a Rohm DAC on them as far as I
> can tell, and they certainly do not have a dh2228fv, as this device does
> not actually exist! Remove the dac nodes from the devicetrees as it is
> not acceptable to pretend to have a device on a board in order to bind
> the spidev driver in Linux.
> 
> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 4/4] ARM: dts: socfpga: remove non-existent DAC from CycloneV devkit
  2024-07-17  9:37 ` [PATCH v1 4/4] ARM: dts: socfpga: remove non-existent DAC from CycloneV devkit Conor Dooley
@ 2024-07-17  9:39   ` Krzysztof Kozlowski
  2024-12-29 10:09   ` (subset) " Krzysztof Kozlowski
  1 sibling, 0 replies; 19+ messages in thread
From: Krzysztof Kozlowski @ 2024-07-17  9:39 UTC (permalink / raw)
  To: Conor Dooley, linux-kernel
  Cc: Conor Dooley, Dinh Nguyen, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Heiko Stuebner, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Huacai Chen, WANG Xuerui,
	devicetree, linux-arm-kernel, linux-rockchip, imx, loongarch

On 17/07/2024 11:37, Conor Dooley wrote:
> From: Conor Dooley <conor.dooley@microchip.com>
> 
> There is no Rohm DAC on the CycloneV devkit according to the online
> documentation for it that I could find, and it definitely does not have
> a dh2228fv as this device does not actually exist! Remove the DAC node
> from the devicetree as it is not acceptable to pretend to have a device
> on a board in order to bind the spidev driver in Linux.
> 
> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 2/4] ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1
  2024-07-17  9:37 ` [PATCH v1 2/4] ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1 Conor Dooley
  2024-07-17  9:39   ` Krzysztof Kozlowski
@ 2024-07-17 10:18   ` Heiko Stübner
       [not found]     ` <CAP9ODKrpKDY91AFDYj7s++kU+=CSLw=F9mXyLZ621Mqq-8S6bw@mail.gmail.com>
  2024-07-17 16:46   ` Fabio Estevam
  2024-07-18  4:20   ` Dragan Simic
  3 siblings, 1 reply; 19+ messages in thread
From: Heiko Stübner @ 2024-07-17 10:18 UTC (permalink / raw)
  To: linux-kernel, Conor Dooley, Otavio Salvador
  Cc: conor, Conor Dooley, Dinh Nguyen, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Huacai Chen, WANG Xuerui,
	devicetree, linux-arm-kernel, linux-rockchip, imx, loongarch

adding Otavio,

Am Mittwoch, 17. Juli 2024, 11:37:54 CEST schrieb Conor Dooley:
> From: Conor Dooley <conor.dooley@microchip.com>
> 
> The Rohm dh2228fv (really the bh2228fv, the compatible in the kernel has
> a typo) does not support frequencies above 10 MHz, nor per the
> datasheet appear to use either CPOL or CPHA. I suspect that this
> devicetree is abusing the compatible in order to bind the spidev driver
> in Linux. Pretending to have devices on a board for this purpose is not
> acceptable, so remove it.

Reasoning is sound, so I'll pick this up after the merge window.


> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
> ---
> I could not find any documentation for this board online, and it does
> not blatantly say that the device is a "spidev" like other [ab]users, so
> it is possible there's actually a DAC here - but I doubt it is a
> bh2228fv given the other incompatibilities.

Otavio, as the original submitter of the Elgin R1 [0], do you happen
to know what type of device this is? Especially as there really do not
seem to be any schematics around for that board.


Heiko



[0] https://patchwork.kernel.org/project/linux-rockchip/patch/20190104014023.17973-4-otavio@ossystems.com.br/

> ---
>  arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts | 8 --------
>  1 file changed, 8 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts b/arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts
> index 2d9994379eb2..9df1cef406c5 100644
> --- a/arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts
> +++ b/arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts
> @@ -167,14 +167,6 @@ &spi {
>  	pinctrl-names = "default";
>  	pinctrl-0 = <&spim1_clk &spim1_cs0 &spim1_tx &spim1_rx>;
>  	status = "okay";
> -
> -	dh2228fv: dac@0 {
> -		compatible = "rohm,dh2228fv";
> -		reg = <0>;
> -		spi-max-frequency = <24000000>;
> -		spi-cpha;
> -		spi-cpol;
> -	};
>  };
>  
>  &u2phy {
> 





^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 2/4] ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1
       [not found]     ` <CAP9ODKrpKDY91AFDYj7s++kU+=CSLw=F9mXyLZ621Mqq-8S6bw@mail.gmail.com>
@ 2024-07-17 15:34       ` Fabio Estevam
  2024-07-17 16:39         ` Conor Dooley
  0 siblings, 1 reply; 19+ messages in thread
From: Fabio Estevam @ 2024-07-17 15:34 UTC (permalink / raw)
  To: Otavio Salvador
  Cc: Heiko Stübner, linux-kernel, Conor Dooley, Otavio Salvador,
	Conor Dooley, Dinh Nguyen, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Huacai Chen, WANG Xuerui, devicetree, linux-arm-kernel,
	linux-rockchip, imx, loongarch

On Wed, Jul 17, 2024 at 11:38 AM Otavio Salvador
<otavio.salvador@ossystems.com.br> wrote:

> @Fabio Estevam can you check this patch?

Correct, the rv1108-elgin-r1.dts board does not contain the DAC.

There is an LCD controlled via spidev though.

Conor,

If spidev is needed, what is the recommended way to describe it in the
devicetree?

Thanks

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 2/4] ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1
  2024-07-17 15:34       ` Fabio Estevam
@ 2024-07-17 16:39         ` Conor Dooley
  0 siblings, 0 replies; 19+ messages in thread
From: Conor Dooley @ 2024-07-17 16:39 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: Otavio Salvador, Heiko Stübner, linux-kernel,
	Otavio Salvador, Conor Dooley, Dinh Nguyen, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Huacai Chen, WANG Xuerui, devicetree,
	linux-arm-kernel, linux-rockchip, imx, loongarch

[-- Attachment #1: Type: text/plain, Size: 1079 bytes --]

On Wed, Jul 17, 2024 at 12:34:03PM -0300, Fabio Estevam wrote:
> On Wed, Jul 17, 2024 at 11:38 AM Otavio Salvador
> <otavio.salvador@ossystems.com.br> wrote:
> 
> > @Fabio Estevam can you check this patch?
> 
> Correct, the rv1108-elgin-r1.dts board does not contain the DAC.
> 
> There is an LCD controlled via spidev though.
> 
> Conor,
> 
> If spidev is needed, what is the recommended way to describe it in the
> devicetree?

Describe the device you actually have in a binding, and add that
compatible to the spidev driver. In this case, given there's a
particular LCD there, that'll work. There's nothing wrong with using
spidev, it's just lying about what hardware that is there that's
problematic.

Otherwise, when it is an open connector where you can put anything, it's
a wee bit messier... A connector binding is required then, something
like the WIP mikrobus stuff that the beagle lads are working on. That's
far from ready, at least on the devicetree side of things, though so
you need to apply an overlay in your bootloader in that case.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 2/4] ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1
  2024-07-17  9:37 ` [PATCH v1 2/4] ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1 Conor Dooley
  2024-07-17  9:39   ` Krzysztof Kozlowski
  2024-07-17 10:18   ` Heiko Stübner
@ 2024-07-17 16:46   ` Fabio Estevam
  2024-07-18  4:20   ` Dragan Simic
  3 siblings, 0 replies; 19+ messages in thread
From: Fabio Estevam @ 2024-07-17 16:46 UTC (permalink / raw)
  To: Conor Dooley
  Cc: linux-kernel, Conor Dooley, Dinh Nguyen, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Huacai Chen, WANG Xuerui,
	devicetree, linux-arm-kernel, linux-rockchip, imx, loongarch

On Wed, Jul 17, 2024 at 6:38 AM Conor Dooley <conor@kernel.org> wrote:
>
> From: Conor Dooley <conor.dooley@microchip.com>
>
> The Rohm dh2228fv (really the bh2228fv, the compatible in the kernel has
> a typo) does not support frequencies above 10 MHz, nor per the
> datasheet appear to use either CPOL or CPHA. I suspect that this
> devicetree is abusing the compatible in order to bind the spidev driver
> in Linux. Pretending to have devices on a board for this purpose is not
> acceptable, so remove it.

In the Subject: s/unlikly/unlikely

Reviewed-by: Fabio Estevam <festevam@gmail.com>

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 2/4] ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1
  2024-07-17  9:37 ` [PATCH v1 2/4] ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1 Conor Dooley
                     ` (2 preceding siblings ...)
  2024-07-17 16:46   ` Fabio Estevam
@ 2024-07-18  4:20   ` Dragan Simic
  2024-07-18  4:46     ` Dragan Simic
  3 siblings, 1 reply; 19+ messages in thread
From: Dragan Simic @ 2024-07-18  4:20 UTC (permalink / raw)
  To: Conor Dooley
  Cc: linux-kernel, Conor Dooley, Dinh Nguyen, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, Huacai Chen,
	WANG Xuerui, devicetree, linux-arm-kernel, linux-rockchip, imx,
	loongarch

Hello Conor,

On 2024-07-17 11:37, Conor Dooley wrote:
> From: Conor Dooley <conor.dooley@microchip.com>
> 
> The Rohm dh2228fv (really the bh2228fv, the compatible in the kernel 
> has
> a typo) does not support frequencies above 10 MHz, nor per the
> datasheet appear to use either CPOL or CPHA. I suspect that this
> devicetree is abusing the compatible in order to bind the spidev driver
> in Linux. Pretending to have devices on a board for this purpose is not
> acceptable, so remove it.
> 
> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>

There's a small typo in the patch subject:
s/unlikly/unlikely/

> ---
> I could not find any documentation for this board online, and it does
> not blatantly say that the device is a "spidev" like other [ab]users, 
> so
> it is possible there's actually a DAC here - but I doubt it is a
> bh2228fv given the other incompatibilities.
> ---
>  arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts | 8 --------
>  1 file changed, 8 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts
> b/arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts
> index 2d9994379eb2..9df1cef406c5 100644
> --- a/arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts
> +++ b/arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts
> @@ -167,14 +167,6 @@ &spi {
>  	pinctrl-names = "default";
>  	pinctrl-0 = <&spim1_clk &spim1_cs0 &spim1_tx &spim1_rx>;
>  	status = "okay";
> -
> -	dh2228fv: dac@0 {
> -		compatible = "rohm,dh2228fv";
> -		reg = <0>;
> -		spi-max-frequency = <24000000>;
> -		spi-cpha;
> -		spi-cpol;
> -	};
>  };
> 
>  &u2phy {

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 2/4] ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1
  2024-07-18  4:20   ` Dragan Simic
@ 2024-07-18  4:46     ` Dragan Simic
  0 siblings, 0 replies; 19+ messages in thread
From: Dragan Simic @ 2024-07-18  4:46 UTC (permalink / raw)
  To: Conor Dooley
  Cc: linux-kernel, Conor Dooley, Dinh Nguyen, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, Huacai Chen,
	WANG Xuerui, devicetree, linux-arm-kernel, linux-rockchip, imx,
	loongarch

On 2024-07-18 06:20, Dragan Simic wrote:
> Hello Conor,
> 
> On 2024-07-17 11:37, Conor Dooley wrote:
>> From: Conor Dooley <conor.dooley@microchip.com>
>> 
>> The Rohm dh2228fv (really the bh2228fv, the compatible in the kernel 
>> has
>> a typo) does not support frequencies above 10 MHz, nor per the
>> datasheet appear to use either CPOL or CPHA. I suspect that this
>> devicetree is abusing the compatible in order to bind the spidev 
>> driver
>> in Linux. Pretending to have devices on a board for this purpose is 
>> not
>> acceptable, so remove it.
>> 
>> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
> 
> There's a small typo in the patch subject:
> s/unlikly/unlikely/

Ah, sorry for the noise, I see now it's been pointed out already.

>> ---
>> I could not find any documentation for this board online, and it does
>> not blatantly say that the device is a "spidev" like other [ab]users, 
>> so
>> it is possible there's actually a DAC here - but I doubt it is a
>> bh2228fv given the other incompatibilities.
>> ---
>>  arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts | 8 --------
>>  1 file changed, 8 deletions(-)
>> 
>> diff --git a/arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts
>> b/arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts
>> index 2d9994379eb2..9df1cef406c5 100644
>> --- a/arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts
>> +++ b/arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts
>> @@ -167,14 +167,6 @@ &spi {
>>  	pinctrl-names = "default";
>>  	pinctrl-0 = <&spim1_clk &spim1_cs0 &spim1_tx &spim1_rx>;
>>  	status = "okay";
>> -
>> -	dh2228fv: dac@0 {
>> -		compatible = "rohm,dh2228fv";
>> -		reg = <0>;
>> -		spi-max-frequency = <24000000>;
>> -		spi-cpha;
>> -		spi-cpol;
>> -	};
>>  };
>> 
>>  &u2phy {
> 
> _______________________________________________
> Linux-rockchip mailing list
> Linux-rockchip@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-rockchip

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 1/4] arm64: dts: imx8: remove non-existent DACs
  2024-07-17  9:37 ` [PATCH v1 1/4] arm64: dts: imx8: remove non-existent DACs Conor Dooley
  2024-07-17  9:38   ` Krzysztof Kozlowski
@ 2024-08-12  9:43   ` Shawn Guo
  1 sibling, 0 replies; 19+ messages in thread
From: Shawn Guo @ 2024-08-12  9:43 UTC (permalink / raw)
  To: Conor Dooley
  Cc: linux-kernel, Conor Dooley, Dinh Nguyen, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, Huacai Chen,
	WANG Xuerui, devicetree, linux-arm-kernel, linux-rockchip, imx,
	loongarch

On Wed, Jul 17, 2024 at 10:37:53AM +0100, Conor Dooley wrote:
> From: Conor Dooley <conor.dooley@microchip.com>
> 
> Neither the imx8dxl-evk or imx8qm-mek have a Rohm DAC on them as far as
> I can tell from online documentation, and they certainly do not have a
> dh2228fv, as this device does not actually exist! Remove the DAC nodes
> from the devicetrees as it is not acceptable to pretend to have a device
> on a board in order to bind the spidev driver in Linux.
> 
> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>

Applied, thanks!


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: (subset) [PATCH v1 4/4] ARM: dts: socfpga: remove non-existent DAC from CycloneV devkit
  2024-07-17  9:37 ` [PATCH v1 4/4] ARM: dts: socfpga: remove non-existent DAC from CycloneV devkit Conor Dooley
  2024-07-17  9:39   ` Krzysztof Kozlowski
@ 2024-12-29 10:09   ` Krzysztof Kozlowski
  1 sibling, 0 replies; 19+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-29 10:09 UTC (permalink / raw)
  To: linux-kernel, Conor Dooley
  Cc: Conor Dooley, Dinh Nguyen, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Heiko Stuebner, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Huacai Chen, WANG Xuerui,
	devicetree, linux-arm-kernel, linux-rockchip, imx, loongarch


On Wed, 17 Jul 2024 10:37:56 +0100, Conor Dooley wrote:
> There is no Rohm DAC on the CycloneV devkit according to the online
> documentation for it that I could find, and it definitely does not have
> a dh2228fv as this device does not actually exist! Remove the DAC node
> from the devicetree as it is not acceptable to pretend to have a device
> on a board in order to bind the spidev driver in Linux.
> 
> 
> [...]

Applied, thanks!

[4/4] ARM: dts: socfpga: remove non-existent DAC from CycloneV devkit
      https://git.kernel.org/krzk/linux-dt/c/ba9dfa76ebb030df6b605e16239a8052c3c02171

Best regards,
-- 
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: (subset) [PATCH v1 0/4] Removal of non-existent DAC nodes
  2024-07-17  9:37 [PATCH v1 0/4] Removal of non-existent DAC nodes Conor Dooley
                   ` (3 preceding siblings ...)
  2024-07-17  9:37 ` [PATCH v1 4/4] ARM: dts: socfpga: remove non-existent DAC from CycloneV devkit Conor Dooley
@ 2025-02-12 20:49 ` Krzysztof Kozlowski
  2025-02-13 20:05   ` Conor Dooley
  4 siblings, 1 reply; 19+ messages in thread
From: Krzysztof Kozlowski @ 2025-02-12 20:49 UTC (permalink / raw)
  To: linux-kernel, Conor Dooley
  Cc: Conor Dooley, Dinh Nguyen, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Heiko Stuebner, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Huacai Chen, WANG Xuerui,
	devicetree, linux-arm-kernel, linux-rockchip, imx, loongarch


On Wed, 17 Jul 2024 10:37:52 +0100, Conor Dooley wrote:
> From: Conor Dooley <conor.dooley@microchip.com>
> 
> Recently I've been getting triggered by abuse of the Rohm dh2228fv
> compatible to get the spidev driver probing in Linux on development
> kits by employees of various silicon vendors (like NXP or my own
> employer). I had a look around the kernel and all users other than the
> original Clearfontz board added by Maxime appear to be similar abuse.
> Drop the non-existent nodes from all of these devices :)
> 
> [...]

Applied, thanks!

[3/4] loongarch: dts: remove non-existent DAC from 2k1000-ref
      https://git.kernel.org/krzk/linux-dt/c/854a080f0b73ff966a813ec2dc53891831daa28d

Best regards,
-- 
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: (subset) [PATCH v1 0/4] Removal of non-existent DAC nodes
  2025-02-12 20:49 ` (subset) [PATCH v1 0/4] Removal of non-existent DAC nodes Krzysztof Kozlowski
@ 2025-02-13 20:05   ` Conor Dooley
  0 siblings, 0 replies; 19+ messages in thread
From: Conor Dooley @ 2025-02-13 20:05 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: linux-kernel, Conor Dooley, Dinh Nguyen, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, Huacai Chen,
	WANG Xuerui, devicetree, linux-arm-kernel, linux-rockchip, imx,
	loongarch

[-- Attachment #1: Type: text/plain, Size: 1170 bytes --]

On Wed, Feb 12, 2025 at 09:49:59PM +0100, Krzysztof Kozlowski wrote:
> 
> On Wed, 17 Jul 2024 10:37:52 +0100, Conor Dooley wrote:
> > From: Conor Dooley <conor.dooley@microchip.com>
> > 
> > Recently I've been getting triggered by abuse of the Rohm dh2228fv
> > compatible to get the spidev driver probing in Linux on development
> > kits by employees of various silicon vendors (like NXP or my own
> > employer). I had a look around the kernel and all users other than the
> > original Clearfontz board added by Maxime appear to be similar abuse.
> > Drop the non-existent nodes from all of these devices :)
> > 
> > [...]
> 
> Applied, thanks!
> 
> [3/4] loongarch: dts: remove non-existent DAC from 2k1000-ref
>       https://git.kernel.org/krzk/linux-dt/c/854a080f0b73ff966a813ec2dc53891831daa28d

Heh, funny that you picked this up yesterday - I noticed that it was
there while poking at spidev doing some debugging yesterday and was
going to grab the patch myself. Thanks.
Noticed also that there's a user of it in riscv that I hadn't included
in my original patch. No clue why I didn't include that, but I've sent
out a patch for it now.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2025-02-13 20:05 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-17  9:37 [PATCH v1 0/4] Removal of non-existent DAC nodes Conor Dooley
2024-07-17  9:37 ` [PATCH v1 1/4] arm64: dts: imx8: remove non-existent DACs Conor Dooley
2024-07-17  9:38   ` Krzysztof Kozlowski
2024-08-12  9:43   ` Shawn Guo
2024-07-17  9:37 ` [PATCH v1 2/4] ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1 Conor Dooley
2024-07-17  9:39   ` Krzysztof Kozlowski
2024-07-17 10:18   ` Heiko Stübner
     [not found]     ` <CAP9ODKrpKDY91AFDYj7s++kU+=CSLw=F9mXyLZ621Mqq-8S6bw@mail.gmail.com>
2024-07-17 15:34       ` Fabio Estevam
2024-07-17 16:39         ` Conor Dooley
2024-07-17 16:46   ` Fabio Estevam
2024-07-18  4:20   ` Dragan Simic
2024-07-18  4:46     ` Dragan Simic
2024-07-17  9:37 ` [PATCH v1 3/4] loongarch: dts: remove non-existent DAC from 2k1000-ref Conor Dooley
2024-07-17  9:39   ` Krzysztof Kozlowski
2024-07-17  9:37 ` [PATCH v1 4/4] ARM: dts: socfpga: remove non-existent DAC from CycloneV devkit Conor Dooley
2024-07-17  9:39   ` Krzysztof Kozlowski
2024-12-29 10:09   ` (subset) " Krzysztof Kozlowski
2025-02-12 20:49 ` (subset) [PATCH v1 0/4] Removal of non-existent DAC nodes Krzysztof Kozlowski
2025-02-13 20:05   ` Conor Dooley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).