Re: [RFC PATCH 04/13] dt-bindings: mfd: ROHM BD72720
From: Matti Vaittinen
Date: Tue Oct 14 2025 - 08:12:02 EST
On 13/10/2025 15:58, Linus Walleij wrote:
Hi Matti,
thanks for your patch!
Thank You for taking the time to review of this RFC!
On Tue, Oct 7, 2025 at 10:33 AM Matti Vaittinen
<mazziesaccount@xxxxxxxxx> wrote:
+ rohm,pin-dvs0:
+ $ref: /schemas/types.yaml#/definitions/string
+ description:
+ BD72720 has 4 different OTP options to determine the use of dvs0-pin.
+ OTP0 - regulator RUN state control.
+ OTP1 - GPI.
+ OTP2 - GPO.
+ OTP3 - Power sequencer output.
+ This property specifies the use of the pin.
+ enum:
+ - dvs-input
+ - gpi
+ - gpo
+
+ rohm,pin-dvs1:
+ $ref: /schemas/types.yaml#/definitions/string
+ description:
+ see rohm,pin-dvs0
+ enum:
+ - dvs-input
+ - gpi
+ - gpo
+
+ rohm,pin-exten0:
+ $ref: /schemas/types.yaml#/definitions/string
+ description: BD72720 has an OTP option to use exten0-pin for different
+ purposes. Set this property accrdingly.
accordingly?
+ const: gpo
+
+ rohm,pin-exten1:
+ $ref: /schemas/types.yaml#/definitions/string
+ description: BD72720 has an OTP option to use exten1-pin for different
+ purposes. Set this property accrdingly.
accordingly?
+ const: gpo
+
+ rohm,pin-fault_b:
+ $ref: /schemas/types.yaml#/definitions/string
+ description: BD72720 has an OTP option to use fault_b-pin for different
+ purposes. Set this property accrdingly.
accordingly?
Gah. Well spotted, thanks!
+ const: gpo
These are a bit idiomatic, not using the actual framework for such
things (pin control) BUT: they are on the other hand crystal
clear for an integrator working with this device tree, and only
four pins so why over-engineer it. I am fine
with them if the DT people are.
I kind of like to emphasize the fact that this is not really a pin-mux in a traditional sense. We can't change the routing after OTP is written. As such, it more resembles "wiring" of the signal inside the PMIC, and this property is not a control but tells us how the signal is wired. But yeah, let's see what others think of it.
Yours,
-- Matti