diff mbox series

[v15,1/2] dt-binding: i2c: add bus-supply property

Message ID 20200519072729.7268-2-bibby.hsieh@mediatek.com
State Accepted
Headers show
Series add power control in i2c | expand

Commit Message

Bibby Hsieh May 19, 2020, 7:27 a.m. UTC
In some platforms, they disable the power-supply of i2c due
to power consumption reduction. This patch add bus-supply property.

Signed-off-by: Bibby Hsieh <bibby.hsieh@mediatek.com>
Acked-by: Rob Herring <robh@kernel.org>
---
 Documentation/devicetree/bindings/i2c/i2c.txt | 3 +++
 1 file changed, 3 insertions(+)

Comments

Wolfram Sang May 19, 2020, 8:48 a.m. UTC | #1
On Tue, May 19, 2020 at 03:27:28PM +0800, Bibby Hsieh wrote:
> In some platforms, they disable the power-supply of i2c due
> to power consumption reduction. This patch add bus-supply property.
> 
> Signed-off-by: Bibby Hsieh <bibby.hsieh@mediatek.com>
> Acked-by: Rob Herring <robh@kernel.org>

Applied to for-next, thanks!
Wolfram Sang May 22, 2020, 2:59 p.m. UTC | #2
On Tue, May 19, 2020 at 10:48:00AM +0200, Wolfram Sang wrote:
> On Tue, May 19, 2020 at 03:27:28PM +0800, Bibby Hsieh wrote:
> > In some platforms, they disable the power-supply of i2c due
> > to power consumption reduction. This patch add bus-supply property.
> > 
> > Signed-off-by: Bibby Hsieh <bibby.hsieh@mediatek.com>
> > Acked-by: Rob Herring <robh@kernel.org>
> 
> Applied to for-next, thanks!

Reverted because of regression reports in linux-next.
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/i2c/i2c.txt b/Documentation/devicetree/bindings/i2c/i2c.txt
index 9a53df4243c6..e6b5aafc5dc9 100644
--- a/Documentation/devicetree/bindings/i2c/i2c.txt
+++ b/Documentation/devicetree/bindings/i2c/i2c.txt
@@ -98,6 +98,9 @@  wants to support one of the below features, it should adapt the bindings below.
 	Names of map programmable addresses.
 	It can contain any map needing another address than default one.
 
+- bus-supply
+	phandle to the regulator that provides power to SCL/SDA.
+
 Binding may contain optional "interrupts" property, describing interrupts
 used by the device. I2C core will assign "irq" interrupt (or the very first
 interrupt if not using interrupt names) as primary interrupt for the slave.