c16587f6840d02f5ba6060026a9d94e0a18dd7d7
[openwrt/staging/ansuel.git] /
1 From 04afb51c1dce90051487d3c7b70a1b1b246ce29a Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Fri, 2 Jun 2023 17:10:23 +0200
4 Subject: [PATCH] ARM: dts: BCM5301X: Use updated "spi-gpio" binding properties
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Switch away from deprecated properties.
10
11 This fixes:
12 arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dtb: spi: gpio-sck: False schema does not allow [[6, 7, 0]]
13 From schema: Documentation/devicetree/bindings/spi/spi-gpio.yaml
14 arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dtb: spi: gpio-mosi: False schema does not allow [[6, 4, 0]]
15 From schema: Documentation/devicetree/bindings/spi/spi-gpio.yaml
16 arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dtb: spi: 'sck-gpios' is a required property
17 From schema: Documentation/devicetree/bindings/spi/spi-gpio.yaml
18 arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dtb: spi: Unevaluated properties are not allowed ('gpio-mosi', 'gpio-sck' were unexpected)
19 From schema: Documentation/devicetree/bindings/spi/spi-gpio.yaml
20
21 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
22 Link: https://lore.kernel.org/r/20230602151023.8607-1-zajec5@gmail.com
23 Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
24 ---
25 arch/arm/boot/dts/bcm4708-buffalo-wzr-1166dhp-common.dtsi | 4 ++--
26 arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts | 4 ++--
27 arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts | 4 ++--
28 arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts | 4 ++--
29 4 files changed, 8 insertions(+), 8 deletions(-)
30
31 --- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1166dhp-common.dtsi
32 +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1166dhp-common.dtsi
33 @@ -16,8 +16,8 @@
34 spi {
35 compatible = "spi-gpio";
36 num-chipselects = <1>;
37 - gpio-sck = <&chipcommon 7 0>;
38 - gpio-mosi = <&chipcommon 4 0>;
39 + sck-gpios = <&chipcommon 7 0>;
40 + mosi-gpios = <&chipcommon 4 0>;
41 cs-gpios = <&chipcommon 6 0>;
42 #address-cells = <1>;
43 #size-cells = <0>;
44 --- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
45 +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
46 @@ -28,8 +28,8 @@
47 spi {
48 compatible = "spi-gpio";
49 num-chipselects = <1>;
50 - gpio-sck = <&chipcommon 7 0>;
51 - gpio-mosi = <&chipcommon 4 0>;
52 + sck-gpios = <&chipcommon 7 0>;
53 + mosi-gpios = <&chipcommon 4 0>;
54 cs-gpios = <&chipcommon 6 0>;
55 #address-cells = <1>;
56 #size-cells = <0>;
57 --- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
58 +++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
59 @@ -28,8 +28,8 @@
60 spi {
61 compatible = "spi-gpio";
62 num-chipselects = <1>;
63 - gpio-sck = <&chipcommon 7 0>;
64 - gpio-mosi = <&chipcommon 4 0>;
65 + sck-gpios = <&chipcommon 7 0>;
66 + mosi-gpios = <&chipcommon 4 0>;
67 cs-gpios = <&chipcommon 6 0>;
68 #address-cells = <1>;
69 #size-cells = <0>;
70 --- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts
71 +++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts
72 @@ -28,8 +28,8 @@
73 spi {
74 compatible = "spi-gpio";
75 num-chipselects = <1>;
76 - gpio-sck = <&chipcommon 7 0>;
77 - gpio-mosi = <&chipcommon 4 0>;
78 + sck-gpios = <&chipcommon 7 0>;
79 + mosi-gpios = <&chipcommon 4 0>;
80 cs-gpios = <&chipcommon 6 0>;
81 #address-cells = <1>;
82 #size-cells = <0>;