Removal of non-existent DAC nodes
Subsystems (5)
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.
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
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
@@ -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
@@ -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
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.
Signed-off-by Conor Dooley <[email protected]>---
Best regards,
Krzysztof
Shawn Guo
AppliedRe: [PATCH v1 1/4] arm64: dts: imx8: remove non-existent DACs
In reply to Conor DooleyQuoted 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.
Signed-off-by Conor Dooley <[email protected]>
Applied, thanks!
PATCH 2/4 ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1
In reply to Conor DooleyFrom: 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
@@ -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
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
Signed-off-by Conor Dooley <[email protected]>---
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
Heiko Stübner
maintainerRe: [PATCH v1 2/4] ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1
In reply to Conor Dooleyadding 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
Signed-off-by Conor Dooley <[email protected]>---
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@@ -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
Fabio Estevam
reviewerRe: [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
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.dtsboard 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.
Re: [PATCH v1 2/4] ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1
In reply to Conor DooleyQuoted 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
Re: [PATCH v1 2/4] ARM: dts: rockchip: remove unlikly-to-exist DAC from elgin-r1
In reply to Conor DooleyHello 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.
Signed-off-by Conor Dooley <[email protected]>
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@@ -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 {
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
Signed-off-by Conor Dooley <[email protected]>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@@ -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
PATCH 3/4 loongarch: dts: remove non-existent DAC from 2k1000-ref
In reply to Conor DooleyFrom: 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
@@ -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
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.
Signed-off-by Conor Dooley <[email protected]>
Best regards,
Krzysztof
PATCH 4/4 ARM: dts: socfpga: remove non-existent DAC from CycloneV devkit
In reply to Conor DooleyFrom: 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
@@ -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
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.
Signed-off-by Conor Dooley <[email protected]>
Best regards,
Krzysztof
Krzysztof Kozlowski
AppliedRe: (subset) [PATCH v1 4/4] ARM: dts: socfpga: remove non-existent DAC from CycloneV devkit
In reply to Conor DooleyQuoted 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]>
Krzysztof Kozlowski
AppliedRe: (subset) [PATCH v1 0/4] Removal of non-existent DAC nodes
In reply to Conor DooleyQuoted 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]>
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.