Re: [PATCH 4/6] arm64: dts: freescale: imx95-verdin: Add Ivy carrier board

From: Ernest Van Hoecke

Date: Tue Mar 10 2026 - 06:07:54 EST


On Thu, Mar 05, 2026 at 06:24:32PM +0100, Ernest Van Hoecke wrote:
> +/ {
> + aliases {
> + eeprom1 = &carrier_eeprom;
> + };
> +
> + /* AIN1 Voltage w/o AIN1_MODE gpio control */
> + ain1_voltage_unmanaged: voltage-divider-ain1 {
> + compatible = "voltage-divider";
> + #io-channel-cells = <1>;
> + io-channels = <&ivy_adc1 0>;
> + full-ohms = <19>;
> + output-ohms = <1>;
> + };
> +
> + /* AIN1 Current w/o AIN1_MODE gpio control */
> + ain1_current_unmanaged: current-sense-shunt-ain1 {
> + compatible = "current-sense-shunt";
> + #io-channel-cells = <0>;
> + io-channels = <&ivy_adc1 1>;
> + shunt-resistor-micro-ohms = <100000000>;
> + };
> +
> + /* AIN1_MODE - SODIMM 216 */
> + ain1_mode_mux_ctrl: mux-controller-0 {
> + compatible = "gpio-mux";
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_gpio5>;
> + #mux-control-cells = <0>;
> + mux-gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>;
> + };
> +
> + ain1-voltage {
> + compatible = "io-channel-mux";
> + channels = "ain1_voltage", "";
> + io-channels = <&ain1_voltage_unmanaged 0>;
> + io-channel-names = "parent";
> + mux-controls = <&ain1_mode_mux_ctrl>;
> + settle-time-us = <1000>;
> + };
> +
> + ain1-current {
> + compatible = "io-channel-mux";
> + channels = "", "ain1_current";
> + io-channels = <&ain1_current_unmanaged>;
> + io-channel-names = "parent";
> + mux-controls = <&ain1_mode_mux_ctrl>;
> + settle-time-us = <1000>;
> + };
> +
> + /* AIN2 Voltage w/o AIN2_MODE gpio control */
> + ain2_voltage_unmanaged: voltage-divider-ain2 {
> + compatible = "voltage-divider";
> + #io-channel-cells = <1>;
> + io-channels = <&ivy_adc2 0>;
> + full-ohms = <19>;
> + output-ohms = <1>;
> + };
> +
> + /* AIN2 Current w/o AIN2_MODE gpio control */
> + ain2_current_unmanaged: current-sense-shunt-ain2 {
> + compatible = "current-sense-shunt";
> + #io-channel-cells = <0>;
> + io-channels = <&ivy_adc2 1>;
> + shunt-resistor-micro-ohms = <100000000>;
> + };
> +
> + /* AIN2_MODE - SODIMM 218 */
> + ain2_mode_mux_ctrl: mux-controller-1 {
> + compatible = "gpio-mux";
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_gpio6>;
> + #mux-control-cells = <0>;
> + mux-gpios = <&gpio3 27 GPIO_ACTIVE_HIGH>;
> + };
> +
> + ain2-voltage {
> + compatible = "io-channel-mux";
> + channels = "ain2_voltage", "";
> + io-channels = <&ain2_voltage_unmanaged 0>;
> + io-channel-names = "parent";
> + mux-controls = <&ain2_mode_mux_ctrl>;
> + settle-time-us = <1000>;
> + };
> +
> + ain2-current {
> + compatible = "io-channel-mux";
> + channels = "", "ain2_current";
> + io-channels = <&ain2_current_unmanaged>;
> + io-channel-names = "parent";
> + mux-controls = <&ain2_mode_mux_ctrl>;
> + settle-time-us = <1000>;
> + };

Hello Krzysztof,
Hello Frank,

Thanks for your review so far. I noticed that the node order here is
also wrong and not alphanumeric on node name. I will fix some of them,
but for some it could mean that for example, 'ain2_voltage_unmanaged:
voltage-divider-ain2' is far from 'ain2-voltage', which is unfortunate
since they are related. Together with the the current-sense and
mux-controller nodes they form something of a logical group and it seems
undesirable to have them be separated by a long 'leds' node and the
regulator nodes.

Would it be acceptable to keep the "group" together and sort
alphanumerically within it, or is it preferred to sort all nodes
alphanumerically?

Kind regards,
Ernest