From: Pavel Machek <pavel@ucw.cz> To: Sakari Ailus <sakari.ailus@iki.fi> Cc: Andrew Morton <akpm@osdl.org>, pali.rohar@gmail.com, sre@debian.org, sre@ring0.de, kernel list <linux-kernel@vger.kernel.org>, linux-arm-kernel <linux-arm-kernel@lists.infradead.org>, linux-omap@vger.kernel.org, tony@atomide.com, khilman@kernel.org, aaro.koskinen@iki.fi, ivo.g.dimitrov.75@gmail.com, patrikbachan@gmail.com, galak@codeaurora.org, bcousson@baylibre.com, m.chehab@samsung.com, devicetree@vger.kernel.org Subject: [PATCHv6] media: i2c/adp1653: Documentation for devicetree support for adp1653 Date: Fri, 3 Apr 2015 22:26:24 +0200 [thread overview] Message-ID: <20150403202624.GA4308@amd> (raw) In-Reply-To: <20150403113216.GK20756@valkosipuli.retiisi.org.uk> Documentation for adp1653 binding. --- > Please split this as Javier suggested. I'd think both could go through > the media-tree unless someone objects. Please apply. > > + - power-gpios: Reference to the GPIO that controls the power for the chip. > > You're using power-gpios in documentation only. Which is ok, because generic code adds "-gpios" itself. > The spec refers to this by "EN". How about "en-gpios" instead? This > definitely isn't about power, but about resetting the chip. It gets the > power through another pin. It controls power of the chip. Noone gets _power_ through gpios, hopefully. Yes, I can rename it. "en-gpios" is too ugly to live. Sebastian suggested "enable". Hope that's okay with you. Pavel new file mode 100644 index 0000000..da9934a --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/adp1653.txt @@ -0,0 +1,37 @@ +* Analog Devices ADP1653 flash LED driver + +Required Properties: + + - compatible: Must contain be "adi,adp1653" + + - reg: I2C slave address + + - power-gpios: Reference to the GPIO that controls the power for the chip. + +There are two LED outputs available - flash and indicator. One LED is +represented by one child node, nodes need to be named "flash" and "indicator". + +Required properties of the LED child node: +- max-microamp : see Documentation/devicetree/bindings/leds/common.txt + +Required properties of the flash LED child node: + +- flash-max-microamp : see Documentation/devicetree/bindings/leds/common.txt +- flash-timeout-us : see Documentation/devicetree/bindings/leds/common.txt + +Example: + + adp1653: led-controller@30 { + compatible = "adi,adp1653"; + reg = <0x30>; + power-gpios = <&gpio3 24 GPIO_ACTIVE_HIGH>; /* 88 */ + + flash { + flash-timeout-us = <500000>; + flash-max-microamp = <320000>; + max-microamp = <50000>; + }; + indicator { + max-microamp = <17500>; + }; + }; -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
WARNING: multiple messages have this Message-ID (diff)
From: pavel@ucw.cz (Pavel Machek) To: linux-arm-kernel@lists.infradead.org Subject: [PATCHv6] media: i2c/adp1653: Documentation for devicetree support for adp1653 Date: Fri, 3 Apr 2015 22:26:24 +0200 [thread overview] Message-ID: <20150403202624.GA4308@amd> (raw) In-Reply-To: <20150403113216.GK20756@valkosipuli.retiisi.org.uk> Documentation for adp1653 binding. --- > Please split this as Javier suggested. I'd think both could go through > the media-tree unless someone objects. Please apply. > > + - power-gpios: Reference to the GPIO that controls the power for the chip. > > You're using power-gpios in documentation only. Which is ok, because generic code adds "-gpios" itself. > The spec refers to this by "EN". How about "en-gpios" instead? This > definitely isn't about power, but about resetting the chip. It gets the > power through another pin. It controls power of the chip. Noone gets _power_ through gpios, hopefully. Yes, I can rename it. "en-gpios" is too ugly to live. Sebastian suggested "enable". Hope that's okay with you. Pavel new file mode 100644 index 0000000..da9934a --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/adp1653.txt @@ -0,0 +1,37 @@ +* Analog Devices ADP1653 flash LED driver + +Required Properties: + + - compatible: Must contain be "adi,adp1653" + + - reg: I2C slave address + + - power-gpios: Reference to the GPIO that controls the power for the chip. + +There are two LED outputs available - flash and indicator. One LED is +represented by one child node, nodes need to be named "flash" and "indicator". + +Required properties of the LED child node: +- max-microamp : see Documentation/devicetree/bindings/leds/common.txt + +Required properties of the flash LED child node: + +- flash-max-microamp : see Documentation/devicetree/bindings/leds/common.txt +- flash-timeout-us : see Documentation/devicetree/bindings/leds/common.txt + +Example: + + adp1653: led-controller at 30 { + compatible = "adi,adp1653"; + reg = <0x30>; + power-gpios = <&gpio3 24 GPIO_ACTIVE_HIGH>; /* 88 */ + + flash { + flash-timeout-us = <500000>; + flash-max-microamp = <320000>; + max-microamp = <50000>; + }; + indicator { + max-microamp = <17500>; + }; + }; -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2015-04-03 20:26 UTC|newest] Thread overview: 82+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-04-02 14:38 [PATCHv3] media: i2c/adp1653: devicetree support for adp1653 Pavel Machek 2015-04-02 14:38 ` Pavel Machek 2015-04-02 16:14 ` Sakari Ailus 2015-04-02 16:14 ` Sakari Ailus 2015-04-02 16:14 ` Sakari Ailus 2015-04-02 20:30 ` Pavel Machek 2015-04-02 20:30 ` Pavel Machek 2015-04-02 20:30 ` Pavel Machek 2015-04-02 23:48 ` Sakari Ailus 2015-04-02 23:48 ` Sakari Ailus 2015-04-02 23:48 ` Sakari Ailus 2015-04-03 8:23 ` Pavel Machek 2015-04-03 8:23 ` Pavel Machek 2015-04-03 11:23 ` Sakari Ailus 2015-04-03 11:23 ` Sakari Ailus 2015-04-03 11:23 ` Sakari Ailus 2015-04-03 20:29 ` Pavel Machek 2015-04-03 20:29 ` Pavel Machek 2015-04-03 21:35 ` Sakari Ailus 2015-04-03 21:35 ` Sakari Ailus 2015-04-02 20:34 ` [PATCHv4] " Pavel Machek 2015-04-02 20:34 ` Pavel Machek 2015-04-02 20:34 ` Pavel Machek 2015-04-02 22:18 ` Javier Martinez Canillas 2015-04-02 22:18 ` Javier Martinez Canillas 2015-04-03 8:21 ` Pavel Machek 2015-04-03 8:21 ` Pavel Machek 2015-04-03 8:21 ` Pavel Machek 2015-04-03 8:49 ` Javier Martinez Canillas 2015-04-03 8:49 ` Javier Martinez Canillas 2015-04-03 14:22 ` Sebastian Reichel 2015-04-03 14:22 ` Sebastian Reichel 2015-04-03 8:33 ` [PATCHv5] " Pavel Machek 2015-04-03 8:33 ` Pavel Machek 2015-04-03 11:32 ` Sakari Ailus 2015-04-03 11:32 ` Sakari Ailus 2015-04-03 20:26 ` Pavel Machek [this message] 2015-04-03 20:26 ` [PATCHv6] media: i2c/adp1653: Documentation for " Pavel Machek 2015-04-03 21:36 ` Sakari Ailus 2015-04-03 21:36 ` Sakari Ailus 2015-04-04 7:43 ` Pavel Machek 2015-04-04 7:43 ` Pavel Machek 2015-04-04 10:24 ` Sakari Ailus 2015-04-04 10:24 ` Sakari Ailus 2015-04-04 10:24 ` Sakari Ailus 2015-04-04 17:11 ` Pavel Machek 2015-04-04 17:11 ` Pavel Machek 2015-04-04 17:11 ` Pavel Machek 2015-04-04 20:03 ` Sakari Ailus 2015-04-04 20:03 ` Sakari Ailus 2015-04-04 20:03 ` Sakari Ailus 2015-04-09 7:42 ` [PATCHv7] media: i2c/adp1653: Devicetree " Pavel Machek 2015-04-09 7:42 ` Pavel Machek 2015-04-09 9:10 ` Sebastian Reichel 2015-04-09 9:10 ` Sebastian Reichel 2015-04-09 9:10 ` Sebastian Reichel 2015-04-09 11:29 ` Pavel Machek 2015-04-09 11:29 ` Pavel Machek 2015-04-09 12:19 ` Sebastian Reichel 2015-04-09 12:19 ` Sebastian Reichel 2015-04-09 12:19 ` Sebastian Reichel 2015-04-09 12:31 ` [PATCHv7] media: i2c/adp1653: fix includes Pavel Machek 2015-04-09 12:31 ` Pavel Machek 2015-04-09 12:31 ` Pavel Machek 2015-04-09 12:43 ` Javier Martinez Canillas 2015-04-09 12:43 ` Javier Martinez Canillas 2015-04-09 12:59 ` Pali Rohár 2015-04-09 12:59 ` Pali Rohár 2015-04-09 12:59 ` Pali Rohár 2015-04-13 8:32 ` Javier Martinez Canillas 2015-04-13 8:32 ` Javier Martinez Canillas 2015-04-09 21:47 ` [PATCHv7] media: i2c/adp1653: Devicetree support for adp1653 Sakari Ailus 2015-04-09 21:47 ` Sakari Ailus 2015-04-13 13:00 ` Pavel Machek 2015-04-13 13:00 ` Pavel Machek 2015-04-13 13:00 ` Pavel Machek 2015-04-03 21:39 ` [PATCHv6] media: i2c/adp1653: Documentation for devicetree " Sakari Ailus 2015-04-03 21:39 ` Sakari Ailus 2015-04-03 21:39 ` Sakari Ailus 2015-04-03 21:04 ` [PATCHv5] media: i2c/adp1653: " Pavel Machek 2015-04-03 21:04 ` Pavel Machek 2015-04-03 21:04 ` Pavel Machek
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20150403202624.GA4308@amd \ --to=pavel@ucw.cz \ --cc=aaro.koskinen@iki.fi \ --cc=akpm@osdl.org \ --cc=bcousson@baylibre.com \ --cc=devicetree@vger.kernel.org \ --cc=galak@codeaurora.org \ --cc=ivo.g.dimitrov.75@gmail.com \ --cc=khilman@kernel.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-omap@vger.kernel.org \ --cc=m.chehab@samsung.com \ --cc=pali.rohar@gmail.com \ --cc=patrikbachan@gmail.com \ --cc=sakari.ailus@iki.fi \ --cc=sre@debian.org \ --cc=sre@ring0.de \ --cc=tony@atomide.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.