mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 09:42:22 +02:00
pinctrl: zynqmp: Display the tristate configuration for all pins
Read the tristate config for all the pins and display it. ZynqMP> pinmux status MIO1 MIO1: slew:fast bias:enabled pull:up input:cmos drive:12mA volt:1.8 tri_state:enabled Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com> Link: https://lore.kernel.org/r/20230914100620.26346-1-venkatesh.abbarapu@amd.com Signed-off-by: Michal Simek <michal.simek@amd.com>
This commit is contained in:
committed by
Michal Simek
parent
d053583064
commit
9898d1056d
@@ -548,6 +548,8 @@ static int zynqmp_pinctrl_get_pin_muxing(struct udevice *dev,
|
||||
&pinmux.drive_strength);
|
||||
zynqmp_pm_pinctrl_get_config(selector, PM_PINCTRL_CONFIG_VOLTAGE_STATUS,
|
||||
&pinmux.volt_sts);
|
||||
zynqmp_pm_pinctrl_get_config(selector, PM_PINCTRL_CONFIG_TRI_STATE,
|
||||
&pinmux.tri_state);
|
||||
|
||||
switch (pinmux.drive_strength) {
|
||||
case PM_PINCTRL_DRIVE_STRENGTH_2MA:
|
||||
@@ -568,13 +570,15 @@ static int zynqmp_pinctrl_get_pin_muxing(struct udevice *dev,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
snprintf(buf, size, "slew:%s\tbias:%s\tpull:%s\tinput:%s\tdrive:%dmA\tvolt:%s",
|
||||
snprintf(buf, size,
|
||||
"slew:%s\tbias:%s\tpull:%s\tinput:%s\tdrive:%dmA\tvolt:%s\ttri_state:%s",
|
||||
pinmux.slew ? "slow" : "fast",
|
||||
pinmux.bias ? "enabled" : "disabled",
|
||||
pinmux.pull_ctrl ? "up" : "down",
|
||||
pinmux.input_type ? "schmitt" : "cmos",
|
||||
pinmux.drive_strength,
|
||||
pinmux.volt_sts ? "1.8" : "3.3");
|
||||
pinmux.volt_sts ? "1.8" : "3.3",
|
||||
pinmux.tri_state ? "enabled" : "disabled");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user