summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2021-10-21 07:00:53 -0500
committerJohn Klug <john.klug@multitech.com>2021-12-29 08:26:41 -0600
commit783295b12092bb2b53eeddd619e7f27be980cb80 (patch)
tree3fa2f622396fbe257f9aa6ed07ce2fc941baa6c1
parentd3fe1d89ff98a3c119b648384df63a3949d4dd4d (diff)
downloadmeta-multitech-atmel-783295b12092bb2b53eeddd619e7f27be980cb80.tar.gz
meta-multitech-atmel-783295b12092bb2b53eeddd619e7f27be980cb80.tar.bz2
meta-multitech-atmel-783295b12092bb2b53eeddd619e7f27be980cb80.zip
Add dummy regulator to make gpio expander driver happy
-rw-r--r--recipes-kernel/linux/linux-at91-4.9.87/mtcdt/linux-4.9-mtcdt-device-tree.patch13
1 files changed, 11 insertions, 2 deletions
diff --git a/recipes-kernel/linux/linux-at91-4.9.87/mtcdt/linux-4.9-mtcdt-device-tree.patch b/recipes-kernel/linux/linux-at91-4.9.87/mtcdt/linux-4.9-mtcdt-device-tree.patch
index 0ddf35c..fff3d85 100644
--- a/recipes-kernel/linux/linux-at91-4.9.87/mtcdt/linux-4.9-mtcdt-device-tree.patch
+++ b/recipes-kernel/linux/linux-at91-4.9.87/mtcdt/linux-4.9-mtcdt-device-tree.patch
@@ -1,7 +1,7 @@
diff -Naru orig/arch/arm/boot/dts/mtcdt.dts new/arch/arm/boot/dts/mtcdt.dts
--- orig/arch/arm/boot/dts/mtcdt.dts 1969-12-31 18:00:00.000000000 -0600
-+++ new/arch/arm/boot/dts/mtcdt.dts 2021-10-21 04:58:51.743540072 -0500
-@@ -0,0 +1,306 @@
++++ new/arch/arm/boot/dts/mtcdt.dts 2021-10-21 06:40:53.695663469 -0500
+@@ -0,0 +1,315 @@
+/*
+ * DTS file for Multi-Tech Systems MTCDT Hardware
+ */
@@ -251,6 +251,13 @@ diff -Naru orig/arch/arm/boot/dts/mtcdt.dts new/arch/arm/boot/dts/mtcdt.dts
+ status = "okay";
+ };
+
++ /* pca953x driver wants a regulator
++ * This dummy regulator prevents warnings */
++ dummy_reg: regulator@0 {
++ compatible = "regulator-fixed";
++ reg = <0>;
++ regulator-name = "dummy-supply";
++ };
+
+ i2c-gpio-0 {
+ status = "okay";
@@ -275,12 +282,14 @@ diff -Naru orig/arch/arm/boot/dts/mtcdt.dts new/arch/arm/boot/dts/mtcdt.dts
+ reg = <0x18>;
+ gpio-controller;
+ #gpio-cells = <2>;
++ vcc-supply = <&dummy_reg>;
+ };
+ gpio5: pca9557@19 {
+ compatible = "nxp,pca9557";
+ reg = <0x19>;
+ gpio-controller;
+ #gpio-cells = <2>;
++ vcc-supply = <&dummy_reg>;
+ };
+ };
+ i2c-gpio-1 {