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>
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 {
compatible = "nvidia,cy8c_panel";
reg = <0x09>;
enable-gpio = <&gpio TEGRA_GPIO(K, 1) 0>;
+ max-xfer-sz = <64>;
#address-cells = <1>;
#size-cells = <0>;
};
compatible = "nvidia,cy8c_panel";
reg = <0x09>;
enable-gpio = <&gpio TEGRA_GPIO(K, 1) 0>;
+ max-xfer-sz = <64>;
#address-cells = <1>;
#size-cells = <0>;
};
compatible = "nvidia,cy8c_panel";
reg = <0x09>;
enable-gpio = <&gpio TEGRA_GPIO(K, 1) 0>;
+ max-xfer-sz = <64>;
#address-cells = <1>;
#size-cells = <0>;
};