To be able to fully describe how the SY7636A is connected to the system,
add properties for the EN and VCOM_EN pins. To squeeze out every bit
of unused current, in many devices it is possible to power off the
complete chip. Add an input regulator to allow that.
Signed-off-by: Andreas Kemnade <akemnade@kernel.org>
---
.../devicetree/bindings/mfd/silergy,sy7636a.yaml | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml b/Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml
index ee0be32ac0204..08ad593e237f1 100644
--- a/Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml
+++ b/Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml
@@ -32,6 +32,22 @@ properties:
Specifying the power good GPIOs.
maxItems: 1
+ en-gpios:
+ description:
+ If EN pin is not hardwired, specify it here to have it set up.
+ maxItems: 1
+
+ vcom-en-gpios:
+ description:
+ If VCOM_EN pin is not hardwired, specify it here to have it set up.
+ maxItems: 1
+
+ vin-supply:
+ description:
+ Supply for the chip. Some vendor kernels and devicetrees declare this
+ as a GPIO named "pwrall" which does not exist in the datasheet,
+ disabling it makes the chip disappear on the bus.
+
regulators:
type: object
--
2.39.5
On 06/09/2025 11:09, Andreas Kemnade wrote: > To be able to fully describe how the SY7636A is connected to the system, > add properties for the EN and VCOM_EN pins. To squeeze out every bit > of unused current, in many devices it is possible to power off the > complete chip. Add an input regulator to allow that. > > Signed-off-by: Andreas Kemnade <akemnade@kernel.org> > --- > .../devicetree/bindings/mfd/silergy,sy7636a.yaml | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml b/Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml > index ee0be32ac0204..08ad593e237f1 100644 > --- a/Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml > +++ b/Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml > @@ -32,6 +32,22 @@ properties: > Specifying the power good GPIOs. > maxItems: 1 > > + en-gpios: enable-gpios, unless it is something else, but then please explain in the description. > + description: > + If EN pin is not hardwired, specify it here to have it set up. > + maxItems: 1 Best regards, Krzysztof
On Sat, Sep 06, 2025 at 02:01:25PM +0200, Krzysztof Kozlowski wrote: > On 06/09/2025 11:09, Andreas Kemnade wrote: > > + en-gpios: > enable-gpios, unless it is something else, but then please explain in > the description. > > + description: > > + If EN pin is not hardwired, specify it here to have it set up. > > + maxItems: 1 It seems reasonable to name the property after the pin on the device?
On Mon, Sep 08, 2025 at 03:34:00PM +0100, Mark Brown wrote: > On Sat, Sep 06, 2025 at 02:01:25PM +0200, Krzysztof Kozlowski wrote: > > On 06/09/2025 11:09, Andreas Kemnade wrote: > > > > + en-gpios: > > > enable-gpios, unless it is something else, but then please explain in > > the description. > > > > + description: > > > + If EN pin is not hardwired, specify it here to have it set up. > > > + maxItems: 1 > > It seems reasonable to name the property after the pin on the device? Yes, but in general we've standardized on reset, enable, powerdown, etc. rather than all the possible variations of those names. At least with 'reset', standardizing it has bought us the ability to handle it with the reset framework rather than every driver implementing its own GPIO twiddling. Rob
Am Sat, 6 Sep 2025 14:01:25 +0200 schrieb Krzysztof Kozlowski <krzk@kernel.org>: > On 06/09/2025 11:09, Andreas Kemnade wrote: > > To be able to fully describe how the SY7636A is connected to the system, > > add properties for the EN and VCOM_EN pins. To squeeze out every bit > > of unused current, in many devices it is possible to power off the > > complete chip. Add an input regulator to allow that. > > > > Signed-off-by: Andreas Kemnade <akemnade@kernel.org> > > --- > > .../devicetree/bindings/mfd/silergy,sy7636a.yaml | 16 ++++++++++++++++ > > 1 file changed, 16 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml b/Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml > > index ee0be32ac0204..08ad593e237f1 100644 > > --- a/Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml > > +++ b/Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml > > @@ -32,6 +32,22 @@ properties: > > Specifying the power good GPIOs. > > maxItems: 1 > > > > + en-gpios: > > enable-gpios, unless it is something else, but then please explain in > the description. > My idea here was to have it crystal clear which hw pin is meant since there are two pins which enable-like functions. But since you agree with the name for the other pin, I can live with enable-gpios here, as long as EN pin is mentioned in the description. Regards, Andreas
© 2016 - 2025 Red Hat, Inc.