Documentation/ABI/stable/sysfs-driver-firmware-zynqmp | 70 +++++++--- 1 file changed, 50 insertions(+), 20 deletions(-)
Use literal blocks for 'cat' and 'echo' commands to separate them from
the surrounding text. Otherwise the lines run together, without any
clear break before or after the commands.
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
Cc: Michal Simek <michal.simek@amd.com>
Cc: Ronak Jain <ronak.jain@amd.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Cc: linux-doc@vger.kernel.org
Documentation/ABI/stable/sysfs-driver-firmware-zynqmp | 70 +++++++---
1 file changed, 50 insertions(+), 20 deletions(-)
--- linux-next-20260911.orig/Documentation/ABI/stable/sysfs-driver-firmware-zynqmp
+++ linux-next-20260911/Documentation/ABI/stable/sysfs-driver-firmware-zynqmp
@@ -141,32 +141,44 @@ Description:
Usage:
- Select over temperature config ID to enable/disable feature
+ Select over temperature config ID to enable/disable feature::
+
# echo 1 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
- Check over temperature config ID is selected or not
+ Check over temperature config ID is selected or not::
+
# cat /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
+
The expected result is 1.
- Select over temperature config ID to configure OT limit
+ Select over temperature config ID to configure OT limit::
+
# echo 2 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
- Check over temperature config ID is selected or not
+ Check over temperature config ID is selected or not::
+
# cat /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
+
The expected result is 2.
- Select external watchdog config ID to enable/disable feature
+ Select external watchdog config ID to enable/disable feature::
+
# echo 3 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
- Check external watchdog config ID is selected or not
+ Check external watchdog config ID is selected or not::
+
# cat /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
+
The expected result is 3.
- Select external watchdog config ID to configure time interval
+ Select external watchdog config ID to configure time interval::
+
# echo 4 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
- Check external watchdog config ID is selected or not
+ Check external watchdog config ID is selected or not::
+
# cat /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
+
The expected result is 4.
Users: Xilinx
@@ -205,52 +217,70 @@ Description:
Usage:
- Enable over temperature feature
+ Enable over temperature feature::
+
# echo 1 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
# echo 1 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_value
- Check whether the over temperature feature is enabled or not
+ Check whether the over temperature feature is enabled or not::
+
# cat /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_value
+
The expected result is 1.
- Disable over temperature feature
+ Disable over temperature feature::
+
# echo 1 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
# echo 0 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_value
- Check whether the over temperature feature is disabled or not
+ Check whether the over temperature feature is disabled or not::
+
# cat /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_value
+
The expected result is 0.
- Configure over temperature limit to 50 Degree Celsius
+ Configure over temperature limit to 50 Degree Celsius::
+
# echo 2 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
# echo 50 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_value
- Check whether the over temperature limit is configured or not
+ Check whether the over temperature limit is configured or not::
+
# cat /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_value
+
The expected result is 50.
- Enable external watchdog feature
+ Enable external watchdog feature::
+
# echo 3 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
# echo 1 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_value
- Check whether the external watchdog feature is enabled or not
+ Check whether the external watchdog feature is enabled or not::
+
# cat /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_value
+
The expected result is 1.
- Disable external watchdog feature
+ Disable external watchdog feature::
+
# echo 3 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
# echo 0 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_value
- Check whether the external watchdog feature is disabled or not
+ Check whether the external watchdog feature is disabled or not::
+
# cat /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_value
+
The expected result is 0.
- Configure external watchdog timer interval to 500ms
+ Configure external watchdog timer interval to 500ms::
+
# echo 4 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
# echo 500 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_value
- Check whether the external watchdog timer interval is configured or not
+ Check whether the external watchdog timer interval is configured or not::
+
# cat /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_value
+
The expected result is 500.
Users: Xilinx
Randy Dunlap <rdunlap@infradead.org> writes: > Use literal blocks for 'cat' and 'echo' commands to separate them from > the surrounding text. Otherwise the lines run together, without any > clear break before or after the commands. > > Signed-off-by: Randy Dunlap <rdunlap@infradead.org> > --- > Cc: Michal Simek <michal.simek@amd.com> > Cc: Ronak Jain <ronak.jain@amd.com> > Cc: linux-arm-kernel@lists.infradead.org > Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> > Cc: Jonathan Corbet <corbet@lwn.net> > Cc: Shuah Khan <skhan@linuxfoundation.org> > Cc: linux-doc@vger.kernel.org > > Documentation/ABI/stable/sysfs-driver-firmware-zynqmp | 70 +++++++--- > 1 file changed, 50 insertions(+), 20 deletions(-) > > --- linux-next-20260911.orig/Documentation/ABI/stable/sysfs-driver-firmware-zynqmp > +++ linux-next-20260911/Documentation/ABI/stable/sysfs-driver-firmware-zynqmp > @@ -141,32 +141,44 @@ Description: > > Usage: > > - Select over temperature config ID to enable/disable feature > + Select over temperature config ID to enable/disable feature:: > + > # echo 1 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id I was sure that this wouldn't work, since the literal block is not indented relative to the containing text. Sphinx does the right thing, though... so applied, thanks, jon
On 9/15/26 11:56 AM, Jonathan Corbet wrote: > Randy Dunlap <rdunlap@infradead.org> writes: > >> Use literal blocks for 'cat' and 'echo' commands to separate them from >> the surrounding text. Otherwise the lines run together, without any >> clear break before or after the commands. >> >> Signed-off-by: Randy Dunlap <rdunlap@infradead.org> >> --- >> Cc: Michal Simek <michal.simek@amd.com> >> Cc: Ronak Jain <ronak.jain@amd.com> >> Cc: linux-arm-kernel@lists.infradead.org >> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> >> Cc: Jonathan Corbet <corbet@lwn.net> >> Cc: Shuah Khan <skhan@linuxfoundation.org> >> Cc: linux-doc@vger.kernel.org >> >> Documentation/ABI/stable/sysfs-driver-firmware-zynqmp | 70 +++++++--- >> 1 file changed, 50 insertions(+), 20 deletions(-) >> >> --- linux-next-20260911.orig/Documentation/ABI/stable/sysfs-driver-firmware-zynqmp >> +++ linux-next-20260911/Documentation/ABI/stable/sysfs-driver-firmware-zynqmp >> @@ -141,32 +141,44 @@ Description: >> >> Usage: >> >> - Select over temperature config ID to enable/disable feature >> + Select over temperature config ID to enable/disable feature:: >> + >> # echo 1 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id > > I was sure that this wouldn't work, since the literal block is not > indented relative to the containing text. Sphinx does the right thing, > though... so applied, thanks, Yeah, I did test it and looked at the output. :) -- ~Randy
Randy Dunlap <rdunlap@infradead.org> writes: > On 9/15/26 11:56 AM, Jonathan Corbet wrote: >> Randy Dunlap <rdunlap@infradead.org> writes: >> >>> Use literal blocks for 'cat' and 'echo' commands to separate them from >>> the surrounding text. Otherwise the lines run together, without any >>> clear break before or after the commands. >>> >>> Signed-off-by: Randy Dunlap <rdunlap@infradead.org> >>> --- >>> Cc: Michal Simek <michal.simek@amd.com> >>> Cc: Ronak Jain <ronak.jain@amd.com> >>> Cc: linux-arm-kernel@lists.infradead.org >>> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> >>> Cc: Jonathan Corbet <corbet@lwn.net> >>> Cc: Shuah Khan <skhan@linuxfoundation.org> >>> Cc: linux-doc@vger.kernel.org >>> >>> Documentation/ABI/stable/sysfs-driver-firmware-zynqmp | 70 +++++++--- >>> 1 file changed, 50 insertions(+), 20 deletions(-) >>> >>> --- linux-next-20260911.orig/Documentation/ABI/stable/sysfs-driver-firmware-zynqmp >>> +++ linux-next-20260911/Documentation/ABI/stable/sysfs-driver-firmware-zynqmp >>> @@ -141,32 +141,44 @@ Description: >>> >>> Usage: >>> >>> - Select over temperature config ID to enable/disable feature >>> + Select over temperature config ID to enable/disable feature:: >>> + >>> # echo 1 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id >> >> I was sure that this wouldn't work, since the literal block is not >> indented relative to the containing text. Sphinx does the right thing, >> though... so applied, thanks, > > Yeah, I did test it and looked at the output. :) Heh...it's nice to know that at least one person does that...:) jon
© 2016 - 2026 Red Hat, Inc.