diff options
author | Jacek Anaszewski <j.anaszewski@samsung.com> | 2015-06-08 05:02:21 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2015-06-22 16:55:28 -0400 |
commit | 8bdc89390ed645c7d7c1e23470d24fbd523e7168 (patch) | |
tree | 53a054c6e6b2320a6b77159acd013421da96d906 | |
parent | 0b380186a5f12f12e4c780dd5413731b4ec48670 (diff) |
DT: aat1290: Document handling external strobe sources
This patch adds documentation for a pinctrl-names property.
The property, when present, is used for switching the source
of the strobe signal for the device.
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Bryan Wu <cooloney@gmail.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: devicetree@vger.kernel.org
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
-rw-r--r-- | Documentation/devicetree/bindings/leds/leds-aat1290.txt | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/leds/leds-aat1290.txt b/Documentation/devicetree/bindings/leds/leds-aat1290.txt index ef88b9c53e37..c05ed91a4e42 100644 --- a/Documentation/devicetree/bindings/leds/leds-aat1290.txt +++ b/Documentation/devicetree/bindings/leds/leds-aat1290.txt | |||
@@ -2,7 +2,9 @@ | |||
2 | 2 | ||
3 | The device is controlled through two pins: FL_EN and EN_SET. The pins when, | 3 | The device is controlled through two pins: FL_EN and EN_SET. The pins when, |
4 | asserted high, enable flash strobe and movie mode (max 1/2 of flash current) | 4 | asserted high, enable flash strobe and movie mode (max 1/2 of flash current) |
5 | respectively. | 5 | respectively. In order to add a capability of selecting the strobe signal source |
6 | (e.g. CPU or camera sensor) there is an additional switch required, independent | ||
7 | of the flash chip. The switch is controlled with pin control. | ||
6 | 8 | ||
7 | Required properties: | 9 | Required properties: |
8 | 10 | ||
@@ -10,6 +12,13 @@ Required properties: | |||
10 | - flen-gpios : Must be device tree identifier of the flash device FL_EN pin. | 12 | - flen-gpios : Must be device tree identifier of the flash device FL_EN pin. |
11 | - enset-gpios : Must be device tree identifier of the flash device EN_SET pin. | 13 | - enset-gpios : Must be device tree identifier of the flash device EN_SET pin. |
12 | 14 | ||
15 | Optional properties: | ||
16 | - pinctrl-names : Must contain entries: "default", "host", "isp". Entries | ||
17 | "default" and "host" must refer to the same pin configuration | ||
18 | node, which sets the host as a strobe signal provider. Entry | ||
19 | "isp" must refer to the pin configuration node, which sets the | ||
20 | ISP as a strobe signal provider. | ||
21 | |||
13 | A discrete LED element connected to the device must be represented by a child | 22 | A discrete LED element connected to the device must be represented by a child |
14 | node - see Documentation/devicetree/bindings/leds/common.txt. | 23 | node - see Documentation/devicetree/bindings/leds/common.txt. |
15 | 24 | ||
@@ -25,13 +34,22 @@ Required properties of the LED child node: | |||
25 | Optional properties of the LED child node: | 34 | Optional properties of the LED child node: |
26 | - label : see Documentation/devicetree/bindings/leds/common.txt | 35 | - label : see Documentation/devicetree/bindings/leds/common.txt |
27 | 36 | ||
28 | Example (by Ct = 220nF, Rset = 160kohm): | 37 | Example (by Ct = 220nF, Rset = 160kohm and exynos4412-trats2 board with |
38 | a switch that allows for routing strobe signal either from the host or from | ||
39 | the camera sensor): | ||
40 | |||
41 | #include "exynos4412.dtsi" | ||
29 | 42 | ||
30 | aat1290 { | 43 | aat1290 { |
31 | compatible = "skyworks,aat1290"; | 44 | compatible = "skyworks,aat1290"; |
32 | flen-gpios = <&gpj1 1 GPIO_ACTIVE_HIGH>; | 45 | flen-gpios = <&gpj1 1 GPIO_ACTIVE_HIGH>; |
33 | enset-gpios = <&gpj1 2 GPIO_ACTIVE_HIGH>; | 46 | enset-gpios = <&gpj1 2 GPIO_ACTIVE_HIGH>; |
34 | 47 | ||
48 | pinctrl-names = "default", "host", "isp"; | ||
49 | pinctrl-0 = <&camera_flash_host>; | ||
50 | pinctrl-1 = <&camera_flash_host>; | ||
51 | pinctrl-2 = <&camera_flash_isp>; | ||
52 | |||
35 | camera_flash: flash-led { | 53 | camera_flash: flash-led { |
36 | label = "aat1290-flash"; | 54 | label = "aat1290-flash"; |
37 | led-max-microamp = <520833>; | 55 | led-max-microamp = <520833>; |
@@ -39,3 +57,17 @@ aat1290 { | |||
39 | flash-timeout-us = <1940000>; | 57 | flash-timeout-us = <1940000>; |
40 | }; | 58 | }; |
41 | }; | 59 | }; |
60 | |||
61 | &pinctrl_0 { | ||
62 | camera_flash_host: camera-flash-host { | ||
63 | samsung,pins = "gpj1-0"; | ||
64 | samsung,pin-function = <1>; | ||
65 | samsung,pin-val = <0>; | ||
66 | }; | ||
67 | |||
68 | camera_flash_isp: camera-flash-isp { | ||
69 | samsung,pins = "gpj1-0"; | ||
70 | samsung,pin-function = <1>; | ||
71 | samsung,pin-val = <1>; | ||
72 | }; | ||
73 | }; | ||