pmaports/device/linux-samsung-i927/0056-ARM-dts-tegra20-glide-Lower-GPIO-I2C-frequency.patch
Sergey Larin 5ccbcf999d
samsung-i927: update kernel to 5.2.1, more updates (!452)
- OTG support
- Charger
- WiFi 5GHz
- RTC bug "fixed" (always-on interrupt - made device overheat!)
- Kernel version bumped to 5.2.1
- Memory timings
- New WM8994 codec board driver (fixes suspend/resume)
- Camera's regulator supported now (saves power at least!)
- Updated panel driver (still not in mainline, idk why)
- MHL support in kernel (fixes boot times and screen, currently disabled in X,
  not tested)
- Other minor kernel chagnes

[ci:skip-build]: already built successfully in CI
2019-07-17 00:15:26 +02:00

93 lines
3.2 KiB
Diff

From a9b327e26842789cd17d259b5424d2c0486096b9 Mon Sep 17 00:00:00 2001
From: Sergey Larin <cerg2010cerg2010@mail.ru>
Date: Sun, 14 Jul 2019 19:06:48 +0300
Subject: [PATCH] ARM: dts: tegra20-glide: Lower GPIO I2C frequency
Defaults used by downstream kernel are very high. This should resolve
communication issues and improve stability. Values are set according to
the comments near I2C structs in original kernel.
Signed-off-by: Sergey Larin <cerg2010cerg2010@mail.ru>
---
arch/arm/boot/dts/tegra20-glide.dts | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/arch/arm/boot/dts/tegra20-glide.dts b/arch/arm/boot/dts/tegra20-glide.dts
index c3698603ee69..013f46d159a1 100644
--- a/arch/arm/boot/dts/tegra20-glide.dts
+++ b/arch/arm/boot/dts/tegra20-glide.dts
@@ -849,7 +849,7 @@
compatible = "i2c-gpio";
sda-gpios = <&gpio TEGRA_GPIO(O, 0) (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
scl-gpios = <&gpio TEGRA_GPIO(O, 7) (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
- i2c-gpio,delay-us = <1>;
+ i2c-gpio,delay-us = <5>;
#address-cells = <1>;
#size-cells = <0>;
@@ -901,7 +901,7 @@
compatible = "i2c-gpio";
sda-gpios = <&gpio TEGRA_GPIO(G, 3) (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
scl-gpios = <&gpio TEGRA_GPIO(I, 0) (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
- i2c-gpio,delay-us = <1>;
+ i2c-gpio,delay-us = <5>;
#address-cells = <1>;
#size-cells = <0>;
@@ -947,7 +947,7 @@
compatible = "i2c-gpio";
sda-gpios = <&gpio TEGRA_GPIO(BB, 4) (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
scl-gpios = <&gpio TEGRA_GPIO(BB, 1) (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
- i2c-gpio,delay-us = <1>;
+ i2c-gpio,delay-us = <5>;
#address-cells = <1>;
#size-cells = <0>;
@@ -999,7 +999,7 @@
compatible = "i2c-gpio";
sda-gpios = <&gpio TEGRA_GPIO(Y, 3) (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
scl-gpios = <&gpio TEGRA_GPIO(Y, 1) (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
- i2c-gpio,delay-us = <1>;
+ i2c-gpio,delay-us = <5>;
#address-cells = <1>;
#size-cells = <0>;
interrupt-parent = <&gpio>;
@@ -1019,7 +1019,7 @@
compatible = "i2c-gpio";
sda-gpios = <&gpio TEGRA_GPIO(L, 7) (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
scl-gpios = <&gpio TEGRA_GPIO(L, 6) (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
- i2c-gpio,delay-us = <1>;
+ i2c-gpio,delay-us = <5>;
#address-cells = <1>;
#size-cells = <0>;
@@ -1071,7 +1071,7 @@
compatible = "i2c-gpio";
sda-gpios = <&gpio TEGRA_GPIO(Z, 3) (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
scl-gpios = <&gpio TEGRA_GPIO(C, 6) (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
- i2c-gpio,delay-us = <1>;
+ i2c-gpio,delay-us = <5>;
#address-cells = <1>;
#size-cells = <0>;
@@ -1102,7 +1102,7 @@
compatible = "i2c-gpio";
sda-gpios = <&gpio TEGRA_GPIO(T, 6) (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
scl-gpios = <&gpio TEGRA_GPIO(T, 5) (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
- i2c-gpio,delay-us = <1>;
+ i2c-gpio,delay-us = <5>;
#address-cells = <1>;
#size-cells = <0>;
@@ -1120,7 +1120,7 @@
compatible = "i2c-gpio";
sda-gpios = <&gpio TEGRA_GPIO(X, 2) (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
scl-gpios = <&gpio TEGRA_GPIO(X, 0) (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
- i2c-gpio,delay-us = <1>;
+ i2c-gpio,delay-us = <5>;
#address-cells = <1>;
#size-cells = <0>;
--
2.22.0