platform: tegra: add new panel_cy8c param
Daniel Solomon [Wed, 14 Oct 2015 21:35:20 +0000 (14:35 -0700)]
Add "max-xfer-sz" parameter for the panel_cy8c driver.
This parameter indicates the maximum I2C chunk size based
on the platform's SoC and cy8cxxx microcontroller capabilities.

Bug 1679724

Change-Id: I2ed63f4c7f8e8aa8f3ab1530693af281c170d9c1
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/819305
(cherry picked from commit 7ea81eaa71e0ac2b947aa1c64a5b4868d2533ba2)
Reviewed-on: http://git-master/r/825777
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Aly Hirani <ahirani@nvidia.com>

Documentation/devicetree/bindings/platform/tegra/panel-cy8c.txt
arch/arm64/boot/dts/tegra210-hawkeye-p2290-3304-a04-00.dts
arch/arm64/boot/dts/tegra210-hawkeye-p2290-3306-a04-00.dts

index ea02b01..18a03bc 100644 (file)
@@ -9,6 +9,8 @@ Sub-node properties:
        This gpio must remain high for as long as the
        panel is enabled. It may be deasserted after
        the panel is disabled.
+- max-xfer-size : minimum of maximum Tegra and maximum
+       cy8c I2C transfer chunk sizes
 
 Examples:
        i2c@7000c000 {
@@ -16,6 +18,7 @@ Examples:
                        compatible = "nvidia,cy8c_panel";
                        reg = <0x09>;
                        enable-gpio = <&gpio TEGRA_GPIO(K, 1) 0>;
+                       max-xfer-sz = <64>;
                        #address-cells = <1>;
                        #size-cells = <0>;
                };
index f8257bc..78790d1 100644 (file)
@@ -33,6 +33,7 @@
                        compatible = "nvidia,cy8c_panel";
                        reg = <0x09>;
                        enable-gpio = <&gpio TEGRA_GPIO(K, 1) 0>;
+                       max-xfer-sz = <64>;
                        #address-cells = <1>;
                        #size-cells = <0>;
                };
index 0506fe3..bc4b25e 100644 (file)
@@ -33,6 +33,7 @@
                        compatible = "nvidia,cy8c_panel";
                        reg = <0x09>;
                        enable-gpio = <&gpio TEGRA_GPIO(K, 1) 0>;
+                       max-xfer-sz = <64>;
                        #address-cells = <1>;
                        #size-cells = <0>;
                };