Skip to contentSkip to conversation

Removal of non-existent DAC nodes

PATCH Applied Conor Dooley 7 participants 19 messages Jul 17, 2024 – Feb 13, 2025 1 message not in the archive

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

cover Removal of non-existent DAC nodes

From: Conor Dooley <[email protected]>

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 <[email protected]>
CC Rob Herring <[email protected]>
CC Krzysztof Kozlowski <[email protected]>
CC Conor Dooley <[email protected]>
CC Heiko Stuebner <[email protected]>
CC Shawn Guo <[email protected]>
CC Sascha Hauer <[email protected]>
CC Pengutronix Kernel Team <[email protected]>
CC Fabio Estevam <[email protected]>
CC Huacai Chen <[email protected]>
CC WANG Xuerui <[email protected]>

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(-)
Signature · 1 line
2.43.0
#1 lore raw

PATCH 1/4 arm64: dts: imx8: remove non-existent DACs

From: Conor Dooley <[email protected]>

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.

---
 arch/arm64/boot/dts/freescale/imx8dxl-evk.dts | 6 ------
 arch/arm64/boot/dts/freescale/imx8qm-mek.dts  | 6 ------
 2 files changed, 12 deletions(-)
arch/arm64/boot/dts/freescale/imx8dxl-evk.dts +0 -6
index 1a74ac3ee4ee..4caaecc19227 100644
@@ -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 {
arch/arm64/boot/dts/freescale/imx8qm-mek.dts +0 -6
index 778741dbbb33..3f0fd147bbd0 100644
@@ -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 {
Signature · 1 line
2.43.0
Reviewed-by on v1 1/4
#2 lore raw

Re: [PATCH v1 1/4] arm64: dts: imx8: remove non-existent DACs

Quoted 10 lines · Conor Dooley

From: Conor Dooley <[email protected]>

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.

---

Best regards,
Krzysztof

Applied
#3 lore raw

Re: [PATCH v1 1/4] arm64: dts: imx8: remove non-existent DACs

In reply to Conor Dooley
Quoted 9 lines · Conor Dooley

From: Conor Dooley <[email protected]>

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.

Applied, thanks!

#4 lore raw

PATCH 2/4 ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1

In reply to Conor Dooley

From: Conor Dooley <[email protected]>

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.

---
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(-)
arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts +0 -8
index 2d9994379eb2..9df1cef406c5 100644
@@ -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 {
Signature · 1 line
2.43.0
Reviewed-by on v1 2/4
#5 lore raw

Re: [PATCH v1 2/4] ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1

Quoted 9 lines · Conor Dooley

From: Conor Dooley <[email protected]>

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.

Quoted 6 lines

---
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.

Best regards,
Krzysztof

maintainer
#6 lore raw

Re: [PATCH v1 2/4] ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1

In reply to Conor Dooley

adding Otavio,

Am Mittwoch, 17. Juli 2024, 11:37:54 CEST schrieb Conor Dooley:

Quoted 8 lines

From: Conor Dooley <[email protected]>

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.

Quoted 6 lines

---
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/[email protected]/

Quoted 24 lines
---
 arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts | 8 --------
 1 file changed, 8 deletions(-)
arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts +0 -8
index 2d9994379eb2..9df1cef406c5 100644
@@ -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 {

A message that is not in the archive (sent off-list or not yet received): CAP9ODKrpKDY91AFDYj7s++kU+=CSLw=F9mXyLZ621Mqq-8S6bw@mail.gmail.com

reviewer
#8 lore raw

Re: [PATCH v1 2/4] ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1

Quoted 1 line · Otavio Salvador

@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

#9 lore raw

Re: [PATCH v1 2/4] ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1

Quoted 5 lines · Fabio Estevam
Quoted 1 line · Otavio Salvador

@Fabio Estevam can you check this patch?

Quoted 8 lines

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.

reviewer Reviewed-by on v1 2/4
#10 lore raw

Re: [PATCH v1 2/4] ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1

In reply to Conor Dooley
Quoted 9 lines · Conor Dooley

From: Conor Dooley <[email protected]>

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

#11 lore raw

Re: [PATCH v1 2/4] ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1

In reply to Conor Dooley

Hello Conor,

Quoted 10 lines · Conor Dooley

From: Conor Dooley <[email protected]>

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.

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

Quoted 29 lines

---
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(-)
arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts +0 -8
index 2d9994379eb2..9df1cef406c5 100644
@@ -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 {
#12 lore raw

Re: [PATCH v1 2/4] ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1

Quoted 12 lines · Dragan Simic

Hello Conor,

Quoted 9 lines · Conor Dooley

From: Conor Dooley <[email protected]>

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.

Quoted 4 lines
Quoted 1 line

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.

Quoted 34 lines
Quoted 19 lines

---
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(-)
arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts +0 -1
index 2d9994379eb2..9df1cef406c5 100644
@@ -167,14 +167,6 @@ &spi {
 	pinctrl-names = "default";
 	pinctrl-0 = <&spim1_clk &spim1_cs0 &spim1_tx &spim1_rx>;
 	status = "okay";
-

arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts &spi { · line 172

Quoted 10 lines
arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts +0 -7
-	dh2228fv: dac@0 {
-		compatible = "rohm,dh2228fv";
-		reg = <0>;
-		spi-max-frequency = <24000000>;
-		spi-cpha;
-		spi-cpol;
-	};
 };
 
 &u2phy {

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

#13 lore raw

PATCH 3/4 loongarch: dts: remove non-existent DAC from 2k1000-ref

In reply to Conor Dooley

From: Conor Dooley <[email protected]>

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.

---
 arch/loongarch/boot/dts/loongson-2k1000-ref.dts | 5 -----
 1 file changed, 5 deletions(-)
arch/loongarch/boot/dts/loongson-2k1000-ref.dts +0 -5
index 23cf26cc3e5f..3514ea78f525 100644
@@ -90,11 +90,6 @@ &spi0 {
 
 	#address-cells = <1>;
 	#size-cells = <0>;
-	spidev@0 {
-		compatible = "rohm,dh2228fv";
-		spi-max-frequency = <100000000>;
-		reg = <0>;
-	};
 };
 
 &ehci0 {
Signature · 1 line
2.43.0
Reviewed-by on v1 3/4
#14 lore raw

Re: [PATCH v1 3/4] loongarch: dts: remove non-existent DAC from 2k1000-ref

Quoted 9 lines · Conor Dooley

From: Conor Dooley <[email protected]>

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.

Best regards,
Krzysztof

#15 lore raw

PATCH 4/4 ARM: dts: socfpga: remove non-existent DAC from CycloneV devkit

In reply to Conor Dooley

From: Conor Dooley <[email protected]>

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.

---
 arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_socdk.dts | 6 ------
 1 file changed, 6 deletions(-)
arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_socdk.dts +0 -6
index d37a982e8571..97622febc44e 100644
@@ -151,12 +151,6 @@ partition@qspi-rootfs {
 
 &spi0 {
 	status = "okay";
-
-	spidev@0 {
-		compatible = "rohm,dh2228fv";
-		reg = <0>;
-		spi-max-frequency = <1000000>;
-	};
 };
 
 &usb1 {
Signature · 1 line
2.43.0
Reviewed-by on v1 4/4
#16 lore raw

Re: [PATCH v1 4/4] ARM: dts: socfpga: remove non-existent DAC from CycloneV devkit

Quoted 9 lines · Conor Dooley

From: Conor Dooley <[email protected]>

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.

Best regards,
Krzysztof

#17 lore raw

Re: (subset) [PATCH v1 4/4] ARM: dts: socfpga: remove non-existent DAC from CycloneV devkit

In reply to Conor Dooley
Quoted 8 lines · Conor Dooley

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,

Signature · 1 line
Krzysztof Kozlowski <[email protected]>
#18 lore raw

Re: (subset) [PATCH v1 0/4] Removal of non-existent DAC nodes

In reply to Conor Dooley
Quoted 10 lines · Conor Dooley

From: Conor Dooley <[email protected]>

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,

Signature · 1 line
Krzysztof Kozlowski <[email protected]>
#19 lore raw

Re: (subset) [PATCH v1 0/4] Removal of non-existent DAC nodes

Quoted 11 lines · Krzysztof Kozlowski
Quoted 9 lines · Conor Dooley

From: Conor Dooley <[email protected]>

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 :)

Quoted 6 lines
Quoted 1 line

[...]

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.