tpm: cr50: Use the correct GPIO binding
authorSimon Glass <sjg@chromium.org>
Wed, 8 Apr 2020 22:57:24 +0000 (16:57 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 16 Apr 2020 06:36:28 +0000 (14:36 +0800)
This device should use ready-gpios rather than ready-gpio. Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/dts/chromebook_coral.dts
doc/device-tree-bindings/gpio/intel,apl-gpio.txt
doc/device-tree-bindings/interrupt-controller/intel,acpi-gpe.txt
drivers/tpm/cr50_i2c.c

index af52e11c89a6d58006a0f546e252bb5be8595142..d48ef3573ec2c297bf07ac1094456730f482a12f 100644 (file)
                                reg = <0x50>;
                                compatible = "google,cr50";
                                u-boot,i2c-offset-len = <0>;
-                               ready-gpio = <&gpio_n 28 GPIO_ACTIVE_LOW>;
+                               ready-gpios = <&gpio_n 28 GPIO_ACTIVE_LOW>;
                                interrupts-extended = <&acpi_gpe 0x3c 0>;
                        };
                };
index cf0659b70ec9bed72aa9ad563c29352d27849339..8422ff63abd256783479f2750377c10836a2057c 100644 (file)
@@ -47,7 +47,7 @@ Example:
                        reg = <0x50>;
                        compatible = "google,cr50";
                        u-boot,i2c-offset-len = <0>;
-                       ready-gpio = <&gpio_n GPIO_28 GPIO_ACTIVE_LOW>;
+                       ready-gpios = <&gpio_n GPIO_28 GPIO_ACTIVE_LOW>;
                };
        };
 
index d9252bf29f70f5f3c3c67f2490f30d5086b49a59..2fe02d8a227222f035cbb3ba566fc529d0f4dde6 100644 (file)
@@ -25,6 +25,6 @@ Example:
        tpm@50 {
                reg = <0x50>;
                compatible = "google,cr50";
-               ready-gpio = <&gpio_n 0x1c GPIO_ACTIVE_LOW>;
+               ready-gpios = <&gpio_n 0x1c GPIO_ACTIVE_LOW>;
                interrupts-extended = <&acpi_gpe 0x3c 0>;
        };
index c1d2d2fa38104336b5a7c38716e878c54f047f88..b67051af26aff35fd96066473ac4e1ce9884d942 100644 (file)
@@ -607,7 +607,7 @@ static int cr50_i2c_ofdata_to_platdata(struct udevice *dev)
                priv->irq = irq;
                priv->use_irq = true;
        } else {
-               ret = gpio_request_by_name(dev, "ready-gpio", 0,
+               ret = gpio_request_by_name(dev, "ready-gpios", 0,
                                           &priv->ready_gpio, GPIOD_IS_IN);
                if (ret) {
                        log_warning("Cr50 does not have an ready GPIO/interrupt (err=%d)\n",