From 08590cd62f8b63776f54cb8ad1b2d329e45341e5 Mon Sep 17 00:00:00 2001 From: Krishna Yarlagadda Date: Mon, 8 Feb 2016 16:47:35 +0530 Subject: spi: tegra: option to boost register access SPI register access for T210 and earlier chips depend on SPI clock frequency. Provided an option to set SPI clock at max frequency for register access. Bug 1675625 Change-Id: Ie52c83cd4602604822462d9f02ddf31ead83aafc Reviewed-on: http://git-master/r/1009782 (cherry picked from commit a2ccd28f2850538064668568432fee5d70a22e82) Signed-off-by: Krishna Yarlagadda Reviewed-on: http://git-master/r/1174581 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Laxman Dewangan --- Documentation/devicetree/bindings/spi/nvidia,spi-tegra114.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Documentation') diff --git a/Documentation/devicetree/bindings/spi/nvidia,spi-tegra114.txt b/Documentation/devicetree/bindings/spi/nvidia,spi-tegra114.txt index 2d961d8e3d69..04ed4dc8653c 100644 --- a/Documentation/devicetree/bindings/spi/nvidia,spi-tegra114.txt +++ b/Documentation/devicetree/bindings/spi/nvidia,spi-tegra114.txt @@ -12,6 +12,10 @@ Recommended properties: Documentation/devicetree/bindings/spi/spi-bus.txt Optional properties: - nvidia,clock-always-on: Enable clock of spi always. +- nvidia,boost-reg-access: In T210 and earlier chips SPI register access + is dependant on SPI clock frequency. Setting this option would + allow SPI clock frequency to be boosted. Benefitial when running + SPI at low frequencies with cpu based transfers. Default false. spi-client device controller properties: - nvidia,enable-hw-based-cs: (Boolean) Use the HW based CS if enabled. -- cgit v1.2.3 From d0080959ebe08f3b4a0f0453eaa8c8c9dff4ae9d Mon Sep 17 00:00:00 2001 From: Krishna Yarlagadda Date: Tue, 17 Nov 2015 19:31:22 +0530 Subject: spi: tegra: support polling mode Added support to use polling mode instead of interrupts through a property in dt Bug 1679083 Change-Id: Ic82ab592822cc96bacda05124d38ddd913e09af9 Reviewed-on: http://git-master/r/840233 (cherry picked from commit cd1c4db5adc8317572106099da37fa434245e699) Reviewed-on: http://git-master/r/1009988 (cherry picked from commit b29ce03a6b7ebb306ff157640470dd5ab99c6f6b) Signed-off-by: Krishna Yarlagadda Reviewed-on: http://git-master/r/1175213 Reviewed-by: Matthew Pedro Tested-by: Matthew Pedro --- Documentation/devicetree/bindings/spi/nvidia,spi-tegra114.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'Documentation') diff --git a/Documentation/devicetree/bindings/spi/nvidia,spi-tegra114.txt b/Documentation/devicetree/bindings/spi/nvidia,spi-tegra114.txt index 04ed4dc8653c..e3c264d90502 100644 --- a/Documentation/devicetree/bindings/spi/nvidia,spi-tegra114.txt +++ b/Documentation/devicetree/bindings/spi/nvidia,spi-tegra114.txt @@ -12,6 +12,7 @@ Recommended properties: Documentation/devicetree/bindings/spi/spi-bus.txt Optional properties: - nvidia,clock-always-on: Enable clock of spi always. +- nvidia,polling-mode: Use polling method instead of interrupts - nvidia,boost-reg-access: In T210 and earlier chips SPI register access is dependant on SPI clock frequency. Setting this option would allow SPI clock frequency to be boosted. Benefitial when running -- cgit v1.2.3