dt-bindings: pinctrl: realtek: add RTD1625 pinctrl binding
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Yu-Chun,
thanks for your patch!
[Uwe, can you check this a bit down!]
Quoted 7 lines · Yu-Chun Lin
From: Tzuyi Chang <[email protected]>
Add device tree bindings for RTD1625.
Signed-off-by Tzuyi Chang <[email protected]>Co-developed-by Yu-Chun Lin <[email protected]>Signed-off-by Yu-Chun Lin <[email protected]>
Overall this looks good!
Review
Quoted 6 lines
(quoted diff) +6
-0+ power-source: + description: | + Valid arguments are described as below: + 0: power supply of 1.8V + 1: power supply of 3.3V + enum: [0, 1]
OK...
Review
Quoted 8 lines
(quoted diff) +8
-0+ slew-rate: + description: | + Valid arguments are described as below: + 0: ~1ns falling time + 1: ~10ns falling time + 2: ~20ns falling time + 3: ~30ns falling time + enum: [0, 1, 2, 3]
Slew rate is usually something like volts/second in SI units, I would expect that this differs depending on which power-source is selected? I.e. are these values for 1.8V or 3.3V?
Review
Quoted 4 lines
(quoted diff) +4
-0+ realtek,drive-strength-p: + description: | + Some of pins can be driven using the P-MOS and N-MOS transistor to + achieve finer adjustments.
Finer compared to what? Compared to the overall setting for slew-rate or drive-strength, or both?
Review
Quoted 13 lines
The block-diagram representation is as
(quoted diff) +12
-0+ follows: + VDD + | + ||--+ + +-----o|| P-MOS-FET + | ||--+ + IN --+ +----- out + | ||--+ + +------|| N-MOS-FET + ||--+ + | + GND
Nice picture!
Quoted 10 lines
(quoted diff) +10
-0+ The driving strength of the P-MOS/N-MOS transistors impacts the + waveform's rise/fall times. Greater driving strength results in + shorter rise/fall times. Each P-MOS and N-MOS transistor offers + 8 configurable levels (0 to 7), with higher values indicating + greater driving strength, contributing to achieving the desired + speed. + + The realtek,drive-strength-p is used to control the driving strength + of the P-MOS output. + $ref: /schemas/types.yaml#/definitions/uint32
Review
Quoted 10 lines
(quoted diff) +10
-0+ minimum: 0 + maximum: 7 + + realtek,drive-strength-n: + description: | + Similar to the realtek,drive-strength-p, the realtek,drive-strength-n + is used to control the driving strength of the N-MOS output. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 7
These two are really interesting. But what do these settings represent?
I would *guess* it represents the number of transistors used, simply, so 0 means just one P/N transistor is driving and 7 means 8 transistors are driving.
Can you provide details here?
In this case, maybe we want a generalized property such as drive-stages-p = <n>;
drive-stages-n = <n>;
in the generic bindings, if this will appear from more vendors?
Review
Quoted 13 lines
(quoted diff) +13
-0+ realtek,duty-cycle: + description: | + An integer describing the level to adjust output duty cycle, + controlling the proportion of positive and negative waveforms in + nanoseconds. + Valid arguments are described as below: + 0: 0ns + 2: + 0.25ns + 3: + 0.5ns + 4: -0.25ns + 5: -0.5ns + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 2, 3, 4, 5]
This is a bit dubious.
Isn't this one of those cases where you should be using the PWM bindings, directly in this node? Just slam in #pwm-cells = <...> etc, I think this is what you really want.
Please consult/reference:Documentation/devicetree/bindings/pwm/pwm.yaml consumers would not use pinctrl phandles but something like pwms = <&pwm ....>;
It's maybe a bit trixy to use two generic bindings in the node but it should be just fine.
I don't feel confident mergeing this without Uwe Kleine-König's review.
Quoted 4 lines
(quoted diff) +4
-0+ realtek,input-voltage: + description: | + Select the input receiver voltage domain for the pin (1.8V or 3.3V). + This defines the reference for VIH/VIL and must match the external
Review
Quoted 10 lines
(quoted diff) +10
-0+ signal level. + + This does not control the output drive voltage, which is handled by + the standard generic 'power-source' property. + + Valid arguments are described as below: + 0: 1.8V input logic level + 1: 3.3V input logic level + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1]
This looks very generic. Can you please just add input-voltage to pincfg-node.yaml with a custom format and reference that?
Review
Quoted 6 lines
(quoted diff) +6
-0+ realtek,high-vil: + type: boolean + description: | + Select the input receiver with a higher LOW recognition threshold + (VIL) to improve detection for sources with weak pull-down or slow + falling edges.
Isn't this supposed to be input-schmitt-microvolt?
Or is this something else than a schmitt trigger?
In either case, try to figure out the typical recognition threshold in microvolt and use that, please.
Yours,
Linus Walleij
Uwe Kleine-König
maintainerHello Linus,
Quoted 1 line · Linus Walleij
[Uwe, can you check this a bit down!]
Hmm, I'd like to see the whole patch for that, but I don't find it on lore.kernel.org
(https://lore.kernel.org/all/CAD++jL=445wx467ZKE3-qm_BaVzKYXE-7zmReTFZA0KUAaSNyw@mail.gmail.com/#related).
Maybe the original patch is still in moderation or was killed by a spam filter?
Best regards
Uwe
Quoted 10 lines
Hello Linus,
Quoted 1 line · Linus Walleij
[Uwe, can you check this a bit down!]
Hmm, I'd like to see the whole patch for that, but I don't find it on lore.kernel.org (https://lore.kernel.> org/all/CAD++jL=445wx467ZKE3-qm_BaVzKYXE-7zmReTFZA0KUAaSNyw@mail.gmail.com/#related). Maybe the original patch is still in moderation or was killed by a spam filter?
Best regards
Uwe
Hi Uwe,
It was my fault for missing the mailing list when sending v1.
Since I have received several comments from Linus Walleij and Bartosz Golaszewski, I need some time to discuss the changes with my colleagues before I can send out a proper v2.
I am afraid that resending v1 might bother other maintainers. Therefore, please allow me to send you the full patch series privately.
Sorry for the inconvenience.
Best regards,
Yu-Chun
Hi Linus,
Sorry for the late reply.
Quoted 37 lines
Hi Yu-Chun,
thanks for your patch!
[Uwe, can you check this a bit down!]
Quoted 7 lines · Yu-Chun Lin
From: Tzuyi Chang <[email protected]>
Add device tree bindings for RTD1625.
Signed-off-by Tzuyi Chang <[email protected]>Co-developed-by Yu-Chun Lin <[email protected]>Signed-off-by Yu-Chun Lin <[email protected]>Overall this looks good!
Review
Quoted 6 lines
(quoted diff) +6
-0+ power-source: + description: | + Valid arguments are described as below: + 0: power supply of 1.8V + 1: power supply of 3.3V + enum: [0, 1]OK...
Review
Quoted 8 lines
(quoted diff) +8
-0+ slew-rate: + description: | + Valid arguments are described as below: + 0: ~1ns falling time + 1: ~10ns falling time + 2: ~20ns falling time + 3: ~30ns falling time + enum: [0, 1, 2, 3]
Quoted 4 lines
Slew rate is usually something like volts/second in SI units, I would expect that this differs depending on which power-source is selected?
I.e. are these values for 1.8V or 3.3V?
This slew-rate configuration is specifically applied to the HDMI I2C pins only. These pins operate at 1.8V.
Quoted 9 lines
Review
Quoted 3 lines
(quoted diff) +3
-0+ realtek,drive-strength-p: + description: | + Some of pins can be driven using the P-MOS and N-MOStransistor to
Quoted 1 line
+ achieve finer adjustments.
Finer compared to what? Compared to the overall setting for slew-rate or drive-strength, or both?
It provides finer pad driving capability compared to the generic drive-strength property. This property allows for higher resolution control.
Quoted 46 lines
Review
Quoted 13 lines
The block-diagram representation is as
(quoted diff) +12
-0+ follows: + VDD + | + ||--+ + +-----o|| P-MOS-FET + | ||--+ + IN --+ +----- out + | ||--+ + +------|| N-MOS-FET + ||--+ + | + GNDNice picture!
Quoted 1 line
+ The driving strength of the P-MOS/N-MOS transistors impacts
the
Review
Quoted 2 lines
(quoted diff) +2
-0+ waveform's rise/fall times. Greater driving strength results in + shorter rise/fall times. Each P-MOS and N-MOS transistoroffers
Review
Quoted 5 lines
(quoted diff) +5
-0+ 8 configurable levels (0 to 7), with higher values indicating + greater driving strength, contributing to achieving the desired + speed. + + The realtek,drive-strength-p is used to control the drivingstrength
Review
Quoted 8 lines
(quoted diff) +8
-0+ of the P-MOS output. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 7 + + realtek,drive-strength-n: + description: | + Similar to the realtek,drive-strength-p, therealtek,drive-strength-n
Review
Quoted 4 lines
(quoted diff) +4
-0+ is used to control the driving strength of the N-MOS output. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 7These two are really interesting. But what do these settings represent?
I would *guess* it represents the number of transistors used, simply, so 0 means just one P/N transistor is driving and 7 means 8 transistors are driving.
Quoted 7 lines
Can you provide details here?
In this case, maybe we want a generalized property such as drive-stages-p = <n>; drive-stages-n = <n>;
in the generic bindings, if this will appear from more vendors?
These values are not a simple count of transistors (so 0 is not 1 transistor).
Instead, the 3-bit value represents like a weighted configuration. There is a base driving capability (even at value 0), and each bit adds a different weight to the total strength (e.g., Bit 0 adds a small weight, Bit 2 adds a larger weight).
The resulting current is non-linear and also varies significantly based on the IO voltage (1.8V vs 3.3V) and the specific pad group (e.g., eMMC vs SDIO).
Given this complexity, I am not sure if this implementation is suitable for a generic binding shared with other vendors.
Quoted 26 lines
Review
Quoted 4 lines
(quoted diff) +4
-0+ realtek,duty-cycle: + description: | + An integer describing the level to adjust output duty cycle, + controlling the proportion of positive and negative waveformsin
Review
Quoted 9 lines
(quoted diff) +9
-0+ nanoseconds. + Valid arguments are described as below: + 0: 0ns + 2: + 0.25ns + 3: + 0.5ns + 4: -0.25ns + 5: -0.5ns + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 2, 3, 4, 5]This is a bit dubious.
Isn't this one of those cases where you should be using the PWM bindings, directly in this node? Just slam in #pwm-cells = <...> etc, I think this is what you really want.
Please consult/reference:
Documentation/devicetree/bindings/pwm/pwm.yamlconsumers would not use pinctrl phandles but something like pwms = <&pwm ....>;
Quoted 5 lines
It's maybe a bit trixy to use two generic bindings in the node but it should be just fine.
I don't feel confident mergeing this without Uwe Kleine-König's review.
This hardware block is not a PWM generator. It does not generate a signal with a specific frequency and duty ratio.
Instead, it provides a fixed nanosecond-level adjustment to the rising/falling edges of an existing signal. It is used for Signal Integrity tuning (adding/subtracting delay to fine-tune the high/low duration).
To avoid confusion with PWM bindings, would you suggest a name like realtek,pulse-width-adjust?
Quoted 18 lines
Review
Quoted 3 lines
(quoted diff) +3
-0+ realtek,input-voltage: + description: | + Select the input receiver voltage domain for the pin (1.8V or3.3V).
Quoted 1 line
+ This defines the reference for VIH/VIL and must match the
external
Review
Quoted 3 lines
(quoted diff) +3
-0+ signal level. + + This does not control the output drive voltage, which is handledby
Review
Quoted 7 lines
(quoted diff) +7
-0+ the standard generic 'power-source' property. + + Valid arguments are described as below: + 0: 1.8V input logic level + 1: 3.3V input logic level + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1]
Quoted 3 lines
This looks very generic. Can you please just add input-voltage to
pincfg-node.yamlwith a custom format and reference that?
I will do it in v2.
Quoted 7 lines
Review
Quoted 4 lines
(quoted diff) +4
-0+ realtek,high-vil: + type: boolean + description: | + Select the input receiver with a higher LOW recognitionthreshold
Quoted 1 line
+ (VIL) to improve detection for sources with weak pull-down or
slow
Quoted 9 lines
Quoted 1 line
+ falling edges.
Isn't this supposed to be input-schmitt-microvolt?
Or is this something else than a schmitt trigger?
In either case, try to figure out the typical recognition threshold in microvolt and use that, please.
This is not a configuration for the Schmitt trigger hysteresis window, but rather a selection of the input low voltage level (VIL) to address a specific HDMI I2C compatibility issue.
We have encountered some HDMI sinks (TVs) with weak pull-down capabilities. These devices fail to pull the I2C bus voltage below the standard VIL threshold (~0.7V), causing the SoC to fail to recognize the LOW state.
This property enables a specialized input receiver mode that raises the effective VIL threshold to approximately 1.1V.
The hardware design only supports these two discrete levels (Standard ~0.7V and High-VIL ~1.1V).
Since the hardware acts as a discrete switch between these two levels, do you prefer we replace this boolean with a value-based property,
such as realtek,high-vil-microvolt = <1100000>?
Best Regards,
Yu-Chun
Quoted 2 lines
Yours,
Linus Walleij
Quoted 11 lines · Yu-Chun Lin [林祐君]
Quoted 8 lines
Review
Quoted 3 lines
(quoted diff) +3
-0+ realtek,drive-strength-p: + description: | + Some of pins can be driven using the P-MOS and N-MOStransistor to
Quoted 1 line
+ achieve finer adjustments.
Finer compared to what? Compared to the overall setting for slew-rate or drive-strength, or both?
It provides finer pad driving capability compared to the generic drive-strength property. This property allows for higher resolution control.
(...)
Quoted 28 lines
Quoted 14 lines
Review
Quoted 3 lines
(quoted diff) +3
-0+ realtek,drive-strength-n: + description: | + Similar to the realtek,drive-strength-p, therealtek,drive-strength-n
Review
Quoted 4 lines
(quoted diff) +4
-0+ is used to control the driving strength of the N-MOS output. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 7These two are really interesting. But what do these settings represent?
I would *guess* it represents the number of transistors used, simply, so 0 means just one P/N transistor is driving and 7 means 8 transistors are driving.
Quoted 7 lines
Can you provide details here?
In this case, maybe we want a generalized property such as drive-stages-p = <n>; drive-stages-n = <n>;
in the generic bindings, if this will appear from more vendors?
These values are not a simple count of transistors (so 0 is not 1 transistor).
Instead, the 3-bit value represents like a weighted configuration. There is a base driving capability (even at value 0), and each bit adds a different weight to the total strength (e.g., Bit 0 adds a small weight, Bit 2 adds a larger weight).
Quoted 5 lines
The resulting current is non-linear and also varies significantly based on the IO voltage (1.8V vs 3.3V) and the specific pad group (e.g., eMMC vs SDIO).
Given this complexity, I am not sure if this implementation is suitable for a generic binding shared with other vendors.
Yes I agree. Fair enough! Add some of the above description to the binding document for these two properties so it is clear what they represent and keep them proprietary.
Quoted 35 lines
Quoted 26 lines
Review
Quoted 4 lines
(quoted diff) +4
-0+ realtek,duty-cycle: + description: | + An integer describing the level to adjust output duty cycle, + controlling the proportion of positive and negative waveformsin
Review
Quoted 9 lines
(quoted diff) +9
-0+ nanoseconds. + Valid arguments are described as below: + 0: 0ns + 2: + 0.25ns + 3: + 0.5ns + 4: -0.25ns + 5: -0.5ns + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 2, 3, 4, 5]This is a bit dubious.
Isn't this one of those cases where you should be using the PWM bindings, directly in this node? Just slam in #pwm-cells = <...> etc, I think this is what you really want.
Please consult/reference:
Documentation/devicetree/bindings/pwm/pwm.yamlconsumers would not use pinctrl phandles but something like pwms = <&pwm ....>;Quoted 5 lines
It's maybe a bit trixy to use two generic bindings in the node but it should be just fine.
I don't feel confident mergeing this without Uwe Kleine-König's review.
This hardware block is not a PWM generator. It does not generate a signal with a specific frequency and duty ratio.
Quoted 6 lines
Instead, it provides a fixed nanosecond-level adjustment to the rising/falling edges of an existing signal. It is used for Signal Integrity tuning (adding/subtracting delay to fine-tune the high/low duration).
To avoid confusion with PWM bindings, would you suggest a name like realtek,pulse-width-adjust?
Yes that sounds much better. Also copy the text above into the binding making it clear what this custom property does.
Quoted 27 lines
Quoted 7 lines
Review
Quoted 4 lines
(quoted diff) +4
-0+ realtek,high-vil: + type: boolean + description: | + Select the input receiver with a higher LOW recognitionthreshold
Quoted 1 line
+ (VIL) to improve detection for sources with weak pull-down or
slow
Quoted 8 lines
Quoted 1 line
+ falling edges.
Isn't this supposed to be input-schmitt-microvolt?
Or is this something else than a schmitt trigger?
In either case, try to figure out the typical recognition threshold in microvolt and use that, please.
This is not a configuration for the Schmitt trigger hysteresis window, but rather a selection of the input low voltage level (VIL) to address a specific HDMI I2C compatibility issue.
We have encountered some HDMI sinks (TVs) with weak pull-down capabilities. These devices fail to pull the I2C bus voltage below the standard VIL threshold (~0.7V), causing the SoC to fail to recognize the LOW state.
This property enables a specialized input receiver mode that raises the effective VIL threshold to approximately 1.1V.
Quoted 6 lines
The hardware design only supports these two discrete levels (Standard ~0.7V and High-VIL ~1.1V).
Since the hardware acts as a discrete switch between these two levels, do you prefer we replace this boolean with a value-based property,
such as realtek,high-vil-microvolt = <1100000>?
Wow excellent description!
I understand it now and certainly this should be custom.
Also copy in the explanation into the binding document!
Yours,
Linus Walleij
Quoted 10 lines · Linus Walleij
Hi Yu-Chun,
thanks for your patch!
[Uwe, can you check this a bit down!]
Quoted 2 lines · Yu-Chun Lin
From: Tzuyi Chang <[email protected]>
Quoted 7 lines
Quoted 5 lines
Add device tree bindings for RTD1625.
Signed-off-by Tzuyi Chang <[email protected]>Co-developed-by Yu-Chun Lin <[email protected]>Signed-off-by Yu-Chun Lin <[email protected]>Overall this looks good!
Where can I find the binding patch? What this is in-reply-to does not exist:
https://lore.kernel.org/all/CAD++jL=445wx467ZKE3-qm_BaVzKYXE-7zmReTFZA0KUAaSNyw@mail.gmail.com/
Nor can I find anything else from Eleanor that would appear to be what this is:
https://lore.kernel.org/all/?q=f%3Aeleanor.lin%40realtek.com
Quoted 107 lines
Review
Quoted 7 lines
(quoted diff) +6
-0+ power-source: + description: | + Valid arguments are described as below: + 0: power supply of 1.8V + 1: power supply of 3.3V + enum: [0, 1]OK...
Review
Quoted 8 lines
(quoted diff) +8
-0+ slew-rate: + description: | + Valid arguments are described as below: + 0: ~1ns falling time + 1: ~10ns falling time + 2: ~20ns falling time + 3: ~30ns falling time + enum: [0, 1, 2, 3]Slew rate is usually something like volts/second in SI units, I would expect that this differs depending on which power-source is selected? I.e. are these values for 1.8V or 3.3V?
Review
Quoted 4 lines
(quoted diff) +4
-0+ realtek,drive-strength-p: + description: | + Some of pins can be driven using the P-MOS and N-MOS transistor to + achieve finer adjustments.Finer compared to what? Compared to the overall setting for slew-rate or drive-strength, or both?
Review
Quoted 13 lines
The block-diagram representation is as
(quoted diff) +12
-0+ follows: + VDD + | + ||--+ + +-----o|| P-MOS-FET + | ||--+ + IN --+ +----- out + | ||--+ + +------|| N-MOS-FET + ||--+ + | + GNDNice picture!
Quoted 10 lines
(quoted diff) +10
-0+ The driving strength of the P-MOS/N-MOS transistors impacts the + waveform's rise/fall times. Greater driving strength results in + shorter rise/fall times. Each P-MOS and N-MOS transistor offers + 8 configurable levels (0 to 7), with higher values indicating + greater driving strength, contributing to achieving the desired + speed. + + The realtek,drive-strength-p is used to control the driving strength + of the P-MOS output. + $ref: /schemas/types.yaml#/definitions/uint32Review
Quoted 10 lines
(quoted diff) +10
-0+ minimum: 0 + maximum: 7 + + realtek,drive-strength-n: + description: | + Similar to the realtek,drive-strength-p, the realtek,drive-strength-n + is used to control the driving strength of the N-MOS output. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 7These two are really interesting. But what do these settings represent?
I would *guess* it represents the number of transistors used, simply, so 0 means just one P/N transistor is driving and 7 means 8 transistors are driving.
Can you provide details here?
In this case, maybe we want a generalized property such as drive-stages-p = <n>;
drive-stages-n = <n>;in the generic bindings, if this will appear from more vendors?
Review
Quoted 13 lines
(quoted diff) +13
-0+ realtek,duty-cycle: + description: | + An integer describing the level to adjust output duty cycle, + controlling the proportion of positive and negative waveforms in + nanoseconds. + Valid arguments are described as below: + 0: 0ns + 2: + 0.25ns + 3: + 0.5ns + 4: -0.25ns + 5: -0.5ns + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 2, 3, 4, 5]This is a bit dubious.
Isn't this one of those cases where you should be using the PWM bindings, directly in this node? Just slam in #pwm-cells = <...> etc, I think this is what you really want.
Please consult/reference:
Documentation/devicetree/bindings/pwm/pwm.yamlconsumers would not use pinctrl phandles but something like pwms = <&pwm ....>;
Quoted 4 lines
It's maybe a bit trixy to use two generic bindings in the node but it should be just fine.
I don't feel confident mergeing this without Uwe Kleine-König's review.
This does sound like a pwm to me too, but I can't see the rest of the series to comment.
Quoted 9 lines
Quoted 9 lines
(quoted diff) +9
-0+ realtek,input-voltage: + description: | + Select the input receiver voltage domain for the pin (1.8V or 3.3V). + This defines the reference for VIH/VIL and must match the external + signal level. + + This does not control the output drive voltage, which is handled by + the standard generic 'power-source' property. +
Quoted 8 lines
Review
Quoted 5 lines
(quoted diff) +5
-0+ Valid arguments are described as below: + 0: 1.8V input logic level + 1: 3.3V input logic level + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1]This looks very generic. Can you please just add input-voltage to
pincfg-node.yamlwith a custom format and reference that?
Why a custom format, rather than input-voltage-microvolt or w/e?
Cheers,
Conor.
Quoted 17 lines
Review
Quoted 7 lines
(quoted diff) +6
-0+ realtek,high-vil: + type: boolean + description: | + Select the input receiver with a higher LOW recognition threshold + (VIL) to improve detection for sources with weak pull-down or slow + falling edges.Isn't this supposed to be input-schmitt-microvolt?
Or is this something else than a schmitt trigger?
In either case, try to figure out the typical recognition threshold in microvolt and use that, please.
Yours,
Linus Walleij
Quoted 17 lines · Linus Walleij
Quoted 16 lines
Hi Yu-Chun,
thanks for your patch!
[Uwe, can you check this a bit down!]
On Wed, Jan 28, 2026 at 4:39 AM Yu-Chun Lin <[email protected]> wrote:
From: Tzuyi Chang <[email protected]>
Add device tree bindings for RTD1625.
Quoted 3 lines
Signed-off-by Tzuyi Chang <[email protected]>Co-developed-by Yu-Chun Lin <[email protected]>Signed-off-by Yu-Chun Lin <[email protected]>
Quoted 8 lines
Quoted 1 line
Overall this looks good!
Where can I find the binding patch? What this is in-reply-to does not exist:
https://lore.kernel.org/all/CAD++jL=445wx467ZKE3-qm_BaVzKYXE-7zmReTFZA0KUAaSNyw@mail.gmail.com/
Nor can I find anything else from Eleanor that would appear to be what this is:
https://lore.kernel.org/all/?q=f%3Aeleanor.lin%40realtek.com
Hi Conor,
I apologize for the confusion. I realized that when I sent out the v1 patch, I missed the mailing list, which is why it's not showing up in the archives.
Since I had already received some feedback on v1, I missed the timing to resend the v1. However, you were included in the CC list of the initial v1 patch email. You might be able to find the full patch in your inbox.
Quoted 106 lines
Quoted 106 lines
Review
Quoted 7 lines
(quoted diff) +6
-0+ power-source: + description: | + Valid arguments are described as below: + 0: power supply of 1.8V + 1: power supply of 3.3V + enum: [0, 1]OK...
Review
Quoted 8 lines
(quoted diff) +8
-0+ slew-rate: + description: | + Valid arguments are described as below: + 0: ~1ns falling time + 1: ~10ns falling time + 2: ~20ns falling time + 3: ~30ns falling time + enum: [0, 1, 2, 3]Slew rate is usually something like volts/second in SI units, I would expect that this differs depending on which power-source is selected? I.e. are these values for 1.8V or 3.3V?
Review
Quoted 4 lines
(quoted diff) +4
-0+ realtek,drive-strength-p: + description: | + Some of pins can be driven using the P-MOS and N-MOS transistor to + achieve finer adjustments.Finer compared to what? Compared to the overall setting for slew-rate or drive-strength, or both?
Review
Quoted 13 lines
The block-diagram representation is as
(quoted diff) +12
-0+ follows: + VDD + | + ||--+ + +-----o|| P-MOS-FET + | ||--+ + IN --+ +----- out + | ||--+ + +------|| N-MOS-FET + ||--+ + | + GNDNice picture!
Quoted 10 lines
(quoted diff) +10
-0+ The driving strength of the P-MOS/N-MOS transistors impacts the + waveform's rise/fall times. Greater driving strength results in + shorter rise/fall times. Each P-MOS and N-MOS transistor offers + 8 configurable levels (0 to 7), with higher values indicating + greater driving strength, contributing to achieving the desired + speed. + + The realtek,drive-strength-p is used to control the driving strength + of the P-MOS output. + $ref: /schemas/types.yaml#/definitions/uint32Review
Quoted 10 lines
(quoted diff) +10
-0+ minimum: 0 + maximum: 7 + + realtek,drive-strength-n: + description: | + Similar to the realtek,drive-strength-p, the realtek,drive-strength-n + is used to control the driving strength of the N-MOS output. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 7These two are really interesting. But what do these settings represent?
I would *guess* it represents the number of transistors used, simply, so 0 means just one P/N transistor is driving and 7 means 8 transistors are driving.
Can you provide details here?
In this case, maybe we want a generalized property such as drive-stages-p = <n>; drive-stages-n = <n>;
in the generic bindings, if this will appear from more vendors?
Review
Quoted 13 lines
(quoted diff) +13
-0+ realtek,duty-cycle: + description: | + An integer describing the level to adjust output duty cycle, + controlling the proportion of positive and negative waveforms in + nanoseconds. + Valid arguments are described as below: + 0: 0ns + 2: + 0.25ns + 3: + 0.5ns + 4: -0.25ns + 5: -0.5ns + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 2, 3, 4, 5]This is a bit dubious.
Isn't this one of those cases where you should be using the PWM bindings, directly in this node? Just slam in #pwm-cells = <...> etc, I think this is what you really want.
Please consult/reference:
Documentation/devicetree/bindings/pwm/pwm.yamlconsumers would not use pinctrl phandles but something like pwms = <&pwm ....>;
Quoted 7 lines
Quoted 4 lines
It's maybe a bit trixy to use two generic bindings in the node but it should be just fine.
I don't feel confident mergeing this without Uwe Kleine-König's review.
This does sound like a pwm to me too, but I can't see the rest of the series to comment.
Please kindly refer to my response to Linus [1].
[1] https://lore.kernel.org/all/[email protected]/
Quoted 19 lines
Quoted 10 lines
Quoted 10 lines
(quoted diff) +9
-0+ realtek,input-voltage: + description: | + Select the input receiver voltage domain for the pin (1.8V or 3.3V). + This defines the reference for VIH/VIL and must match the external + signal level. + + This does not control the output drive voltage, which is handled by + the standard generic 'power-source' property. +Quoted 8 lines
Review
Quoted 5 lines
(quoted diff) +5
-0+ Valid arguments are described as below: + 0: 1.8V input logic level + 1: 3.3V input logic level + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1]This looks very generic. Can you please just add input-voltage to
pincfg-node.yamlwith a custom format and reference that?
Quoted 2 lines
Why a custom format, rather than input-voltage-microvolt or w/e?
I will add input-voltage-microvolt to pincfg-node.yaml and use the microvolt format as suggested. Thanks
Yu-Chun
Quoted 20 lines
Cheers,
Conor.Quoted 17 lines
Review
Quoted 7 lines
(quoted diff) +6
-0+ realtek,high-vil: + type: boolean + description: | + Select the input receiver with a higher LOW recognition threshold + (VIL) to improve detection for sources with weak pull-down or slow + falling edges.Isn't this supposed to be input-schmitt-microvolt?
Or is this something else than a schmitt trigger?
In either case, try to figure out the typical recognition threshold in microvolt and use that, please.
Yours,
Linus Walleij
Quoted 26 lines · Yu-Chun Lin [林祐君]
Quoted 17 lines · Linus Walleij
Quoted 16 lines
Hi Yu-Chun,
thanks for your patch!
[Uwe, can you check this a bit down!]
On Wed, Jan 28, 2026 at 4:39 AM Yu-Chun Lin <[email protected]> wrote:
From: Tzuyi Chang <[email protected]>
Add device tree bindings for RTD1625.
Quoted 3 lines
Signed-off-by Tzuyi Chang <[email protected]>Co-developed-by Yu-Chun Lin <[email protected]>Signed-off-by Yu-Chun Lin <[email protected]>Quoted 8 lines
Quoted 1 line
Overall this looks good!
Where can I find the binding patch? What this is in-reply-to does not exist:
https://lore.kernel.org/all/CAD++jL=445wx467ZKE3-qm_BaVzKYXE-7zmReTFZA0KUAaSNyw@mail.gmail.com/
Nor can I find anything else from Eleanor that would appear to be what this is:
https://lore.kernel.org/all/?q=f%3Aeleanor.lin%40realtek.com
Quoted 8 lines
Hi Conor,
I apologize for the confusion. I realized that when I sent out the v1 patch, I missed the mailing list, which is why it's not showing up in the archives.
Since I had already received some feedback on v1, I missed the timing to resend the v1. However, you were included in the CC list of the initial v1 patch email. You might be able to find the full patch in your inbox.
Nah, anything that goes to [email protected] gets deleted once someone has reviewed it, so I deleted it when Linus replied unfortunately. I'll check out the other mail, but I think your revised name is an improvement. Also, probably add more to your description to make it clear that its not a PWM but rather minor adjustments to the signal.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [PATCH 6/8] pinctrl: realtek: add support for slew rate, input voltage and high VIL
Quoted 10 lines · Yu-Chun Lin
From: Tzuyi Chang <[email protected]>
Add support for configuring slew rate, input voltage level, and high VIL mode. This involves updating the pin configuration parsing logic to handle
PIN_CONFIG_SLEW_RATEand the new custom properties "realtek,input-voltage" and "realtek,high-vil".Signed-off-by Tzuyi Chang <[email protected]>Co-developed-by Yu-Chun Lin <[email protected]>Signed-off-by Yu-Chun Lin <[email protected]>
(...)
Quoted 4 lines
static const struct pinconf_generic_params rtd_custom_bindings[] = {
{"realtek,drive-strength-p", RTD_DRIVE_STRENGH_P, 0},
{"realtek,drive-strength-n", RTD_DRIVE_STRENGH_N, 0},
{"realtek,duty-cycle", RTD_DUTY_CYCLE, 0},I see we are already using some dubious custom properties here.
It slipped through my review I guess :/
It doesn't stop us from using standard properties as well if we go for that for drive-strength-p/n and duty-cycle.
Review
Quoted 2 lines
(quoted diff) +2
-0+ {"realtek,input-voltage", RTD_INPUT_VOLTAGE, 0}, + {"realtek,high-vil", RTD_HIGH_VIL, 1},
Let's try to be stricter with these. I think they should be standard (non realtek,*) properties.
Yours,
Linus Walleij