[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAPVz0n0O_uSAPYFtg8s+Ni0buyGJys6d0jEMob6SNWx-aeKUEw@mail.gmail.com>
Date: Tue, 10 Feb 2026 13:14:54 +0200
From: Svyatoslav Ryhel <clamor95@...il.com>
To: Krzysztof Kozlowski <krzk@...nel.org>
Cc: Lee Jones <lee@...nel.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>,
Dmitry Torokhov <dmitry.torokhov@...il.com>, Pavel Machek <pavel@...nel.org>,
Arnd Bergmann <arnd@...db.de>, Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Sebastian Reichel <sre@...nel.org>, Michał Mirosław <mirq-linux@...e.qmqm.pl>,
Ion Agorria <ion@...rria.com>, devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-input@...r.kernel.org, linux-leds@...r.kernel.org,
linux-pm@...r.kernel.org
Subject: Re: [PATCH v2 3/9] dt-bindings: mfd: document ASUS Transformer EC
вт, 10 лют. 2026 р. о 13:04 Krzysztof Kozlowski <krzk@...nel.org> пише:
>
> On 10/02/2026 11:59, Svyatoslav Ryhel wrote:
> >>>>> + asus,clear-factory-mode:
> >>>>> + type: boolean
> >>>>> + description: clear Factory Mode bit in EC control register
> >>>>
> >>>> Why would this be a static/fixed property over lifecycle of all devices?
> >>>>
> >>>
> >>> Specify pls.
> >>
> >> Provide rationale why we need to clear it every time, not once. Or any
> >> other rationale why we would accept that property.
> >>
> >
> > Cause it is done by original Asus code and Asus did not provide
> > schematic or any data apart from downstream source regarding this EC.
>
> So that's a no. downstream code which is poor quality, not following DT
> rules at all, is never an argument for a DT property.
>
This property indicates that this controller on every reset restores
factory bit hence it must be cleared. Bit is write only and cannot be
detected. EC remains in factory mode which blocks its functions.
> >
> >>>
> >>>>> +
> >>>>> + battery:
> >>>>> + type: object
> >>>>> + $ref: /schemas/power/supply/power-supply.yaml
> >>>>> + unevaluatedProperties: false
> >>>>> +
> >>>>> + properties:
> >>>>> + compatible:
> >>>>> + const: asus,ec-battery
> >>>>> +
> >>>>> + required:
> >>>>> + - compatible
> >>>>> +
> >>>>> + charger:
> >>>>> + type: object
> >>>>> + $ref: /schemas/power/supply/power-supply.yaml
> >>>>> + additionalProperties: false
> >>>>> +
> >>>>> + properties:
> >>>>> + compatible:
> >>>>> + const: asus,ec-charger
> >>>>> +
> >>>>> + monitored-battery: true
> >>>>> +
> >>>>> + required:
> >>>>> + - compatible
> >>>>> +
> >>>>> + keyboard-ext:
> >>>>> + type: object
> >>>>> + description: top row of multimedia keys
> >>>>> + additionalProperties: false
> >>>>> +
> >>>>> + properties:
> >>>>> + compatible:
> >>>>> + const: asus,ec-keys
> >>>>> +
> >>>>> + required:
> >>>>> + - compatible
> >>>>> +
> >>>>> + led:
> >>>>> + type: object
> >>>>> + additionalProperties: false
> >>>>> +
> >>>>> + properties:
> >>>>> + compatible:
> >>>>> + const: asus,ec-led
> >>>>> +
> >>>>> + required:
> >>>>> + - compatible
> >>>>> +
> >>>>> + serio:
> >>>>
> >>>> All of these children are pointless - no resources. Drop all of them,
> >>>> it's btw explicitly documented rule in writing bindings.
> >>>>
> >>>
> >>> They are all needed to be able to disable them individually from the
> >>> device tree if needed.
> >>
> >> They should not be disabled from DT, so they are not valid here. The
> >> given EC for given device is fixed/static. Does not change.
> >>
> >
> > Have you considered a possibility that function may be
> > disabled/unrouted within the controller. By the vendor.
>
> And then it is implied by the compatible, so no need for any of that.
> Otherwise, if it is not specific per device, then specifying it for DTS
> for all devices would make no sense.
>
So you propose introduce a compatible for every single ec used in
transformers instead of simply disable unpopulated functions? And how
then battery and charger can reach monitored cell if they have no
dedicated node?
> Best regards,
> Krzysztof
Powered by blists - more mailing lists