ARM: dts: Remove "spidev" nodes
authorRob Herring <robh@kernel.org>
Fri, 17 Dec 2021 22:12:32 +0000 (16:12 -0600)
committerArnd Bergmann <arnd@arndb.de>
Mon, 20 Dec 2021 15:01:40 +0000 (16:01 +0100)
"spidev" is not a real device, but a Linux implementation detail. It has
never been documented either. The kernel has WARNed on the use of it for
over 6 years. Time to remove its usage from the tree.

Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20211217221232.3664417-1-robh@kernel.org'
Reviwed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
12 files changed:
arch/arm/boot/dts/at91-q5xr5.dts
arch/arm/boot/dts/at91-wb50n.dts
arch/arm/boot/dts/imx28-tx28.dts
arch/arm/boot/dts/imx53-tx53.dtsi
arch/arm/boot/dts/imx6qdl-tx6.dtsi
arch/arm/boot/dts/imx6ul-imx6ull-opos6uldev.dtsi
arch/arm/boot/dts/imx6ul-prti6g.dts
arch/arm/boot/dts/imx6ul-tx6ul.dtsi
arch/arm/boot/dts/omap3-tao3530.dtsi
arch/arm/boot/dts/qcom-mdm9615-wp8548-mangoh-green.dts
arch/arm/boot/dts/spear1310-evb.dts
arch/arm/boot/dts/spear1340-evb.dts

index 5827383..47a0006 100644 (file)
                        reg = <0x8000 0x3E000>;
                };
        };
-
-       spidev@1 {
-               compatible = "spidev";
-               spi-max-frequency = <2000000>;
-               reg = <1>;
-       };
 };
 
 &spi1 {
        pinctrl-0 = <&pinctrl_spi1 &pinctrl_spi1_npcs0 &pinctrl_spi1_npcs1>;
        cs-gpios = <&pioB 3 GPIO_ACTIVE_HIGH>, <&pioC 5 GPIO_ACTIVE_LOW>, <0>, <0>;
        status = "okay";
-
-       spidev@0 {
-               compatible = "spidev";
-               spi-max-frequency = <2000000>;
-               reg = <0>;
-       };
-
-       spidev@1 {
-               compatible = "spidev";
-               spi-max-frequency = <2000000>;
-               reg = <1>;
-       };
 };
 
 &usart0 {
index a5e45bb..89f0f71 100644 (file)
 
 &spi1 {
        status = "okay";
-
-       spidev@0 {
-               compatible = "spidev";
-               reg = <0>;
-               spi-max-frequency = <8000000>;
-       };
 };
 
 &usb0 {
index 164254c..9e5651c 100644 (file)
                >;
                /* enable this and disable ssp3 below, if you need full duplex SPI transfer */
                status = "disabled";
-
-               spi@0 {
-                       compatible = "spidev";
-                       reg = <0>;
-                       spi-max-frequency = <57600000>;
-               };
-
-               spi@1 {
-                       compatible = "spidev";
-                       reg = <1>;
-                       spi-max-frequency = <57600000>;
-               };
-
-               spi@2 {
-                       compatible = "spidev";
-                       reg = <2>;
-                       spi-max-frequency = <57600000>;
-               };
        };
 };
 
        pinctrl-0 = <&spi3_pins_a>;
        clock-frequency = <57600000>;
        status = "okay";
-
-       spi@0 {
-               compatible = "spidev";
-               reg = <0>;
-               spi-max-frequency = <57600000>;
-       };
-
-       spi@1 {
-               compatible = "spidev";
-               reg = <1>;
-               spi-max-frequency = <57600000>;
-       };
-
-       spi@2 {
-               compatible = "spidev";
-               reg = <2>;
-               spi-max-frequency = <57600000>;
-       };
 };
 
 &usb0 {
index 7c9730f..81c2726 100644 (file)
                &gpio3 19 GPIO_ACTIVE_HIGH
        >;
 
-       spidev0: spi@0 {
-               compatible = "spidev";
-               reg = <0>;
-               spi-max-frequency = <54000000>;
-       };
-
-       spidev1: spi@1 {
-               compatible = "spidev";
-               reg = <1>;
-               spi-max-frequency = <54000000>;
-       };
 };
 
 &esdhc1 {
index 362e65c..bcc5bbc 100644 (file)
                &gpio3 19 GPIO_ACTIVE_HIGH
        >;
        status = "disabled";
-
-       spidev0: spi@0 {
-               compatible = "spidev";
-               reg = <0>;
-               spi-max-frequency = <54000000>;
-       };
-
-       spidev1: spi@1 {
-               compatible = "spidev";
-               reg = <1>;
-               spi-max-frequency = <54000000>;
-       };
 };
 
 &fec {
index 935a77d..18cac19 100644 (file)
        pinctrl-0 = <&pinctrl_ecspi4>;
        cs-gpios = <&gpio4 9 GPIO_ACTIVE_LOW>, <&gpio4 3 GPIO_ACTIVE_LOW>;
        status = "okay";
-
-       spidev0: spi@0 {
-               compatible = "spidev";
-               reg = <0>;
-               spi-max-frequency = <5000000>;
-       };
-
-       spidev1: spi@1 {
-               compatible = "spidev";
-               reg = <1>;
-               spi-max-frequency = <5000000>;
-       };
 };
 
 &i2c1 {
index d620157..c18390f 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_ecspi2>;
        status = "okay";
-
-       spi@0 {
-               compatible = "spidev";
-               reg = <0>;
-               spi-max-frequency = <1000000>;
-       };
 };
 
 &fec1 {
index 938a32c..c485d05 100644 (file)
                        &gpio1 10 GPIO_ACTIVE_HIGH
                >;
                status = "disabled";
-
-               spi@0 {
-                       compatible = "spidev";
-                       reg = <0>;
-                       spi-max-frequency = <660000>;
-               };
-
-               spi@1 {
-                       compatible = "spidev";
-                       reg = <1>;
-                       spi-max-frequency = <660000>;
-               };
        };
 
        sound {
                &gpio1 10 GPIO_ACTIVE_HIGH
        >;
        status = "disabled";
-
-       spidev0: spi@0 {
-               compatible = "spidev";
-               reg = <0>;
-               spi-max-frequency = <60000000>;
-       };
-
-       spidev1: spi@1 {
-               compatible = "spidev";
-               reg = <1>;
-               spi-max-frequency = <60000000>;
-       };
 };
 
 &fec1 {
index 580bfa1..7f440d1 100644 (file)
 &mcspi1 {
        pinctrl-names = "default";
        pinctrl-0 = <&mcspi1_pins>;
-
-       spidev@0 {
-               compatible = "spidev";
-               spi-max-frequency = <48000000>;
-               reg = <0>;
-               spi-cpha;
-       };
 };
 
 &mcspi3 {
        pinctrl-names = "default";
        pinctrl-0 = <&mcspi3_pins>;
-
-       spidev@0 {
-               compatible = "spidev";
-               spi-max-frequency = <48000000>;
-               reg = <0>;
-               spi-cpha;
-       };
 };
 
 #include "twl4030.dtsi"
index 942e3a2..0827de5 100644 (file)
 
 &gsbi3_spi {
        spi@0 {
-               compatible = "swir,mangoh-iotport-spi", "spidev";
+               compatible = "swir,mangoh-iotport-spi";
                spi-max-frequency = <24000000>;
                reg = <0>;
        };
index 8fcb6be..4cbadcb 100644 (file)
                                        pl022,wait-state = <0>;
                                        pl022,duplex = <0>;
                                };
-
-                               spidev@2 {
-                                       compatible = "spidev";
-                                       reg = <2>;
-                                       spi-max-frequency = <25000000>;
-                                       spi-cpha;
-                                       pl022,hierarchy = <0>;
-                                       pl022,interface = <0>;
-                                       pl022,slave-tx-disable;
-                                       pl022,com-mode = <0x2>;
-                                       pl022,rx-level-trig = <0>;
-                                       pl022,tx-level-trig = <0>;
-                                       pl022,ctrl-len = <0x11>;
-                                       pl022,wait-state = <0>;
-                                       pl022,duplex = <0>;
-                               };
                        };
 
                        wdt@ec800620 {
index f70ff56..fd194eb 100644 (file)
                                                ts,i-drive = <1>;
                                        };
                                };
-
-                               spidev@2 {
-                                       compatible = "spidev";
-                                       reg = <2>;
-                                       spi-max-frequency = <25000000>;
-                                       spi-cpha;
-                                       pl022,hierarchy = <0>;
-                                       pl022,interface = <0>;
-                                       pl022,slave-tx-disable;
-                                       pl022,com-mode = <0x2>;
-                                       pl022,rx-level-trig = <0>;
-                                       pl022,tx-level-trig = <0>;
-                                       pl022,ctrl-len = <0x11>;
-                                       pl022,wait-state = <0>;
-                                       pl022,duplex = <0>;
-                               };
                        };
 
                        timer@ec800600 {