devicetree/bindings: Add binding for operator panel on FSP machines
Subsystems (3)
PATCH v2 1/2 devicetree/bindings: Add binding for operator panel on FSP machines
Add a binding to Documentation/devicetree/bindings/powerpc/opal (oppanel-opal.txt) for the operator panel which is present on IBM pseries machines with FSPs.
--- .../devicetree/bindings/powerpc/opal/oppanel-opal.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Documentation/devicetree/bindings/powerpc/opal/oppanel-opal.txt
Documentation/devicetree/bindings/powerpc/opal/oppanel-opal.txt new file +14 -0
@@ -0,0 +1,14 @@ +IBM OPAL Operator Panel Binding +------------------------------- + +Required properties: +- compatible : Should be "ibm,opal-oppanel". +- #lines : Number of lines on the operator panel e.g. <0x2>. +- #length : Number of characters per line of the operator panel e.g. <0x10>. + +Example: + oppanel { + compatible = "ibm,opal-oppanel"; + #lines = <0x2>; + #length = <0x10>; + };
Signature · 6 lines
2.5.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v2 2/2 powerpc/drivers: Add driver for operator panel on FSP machines
Implement new character device driver to allow access from user space to the 2x16 character operator panel display present on IBM Power Systems machines with FSPs.
This will allow status information to be presented on the display which is visible to a user.
The driver implements a 32 character buffer which a user can read/write by accessing the device (/dev/oppanel). This buffer is then displayed on the operator panel display. Any attempt to write past the 32nd position will have no effect and attempts to write more than 32 characters will be truncated. The device may only be accessed by a single process at a time.
---
Change Log:
V1 -> V2:
- Replace "IBM pSeries machines" with "IBM Power Systems machines with FSPs" for improved clarity
- Basic wording/grammar fixes
--- MAINTAINERS | 6 + arch/powerpc/configs/powernv_defconfig | 1 + arch/powerpc/include/asm/opal.h | 2 + arch/powerpc/platforms/powernv/opal-wrappers.S | 1 + arch/powerpc/platforms/powernv/opal.c | 5 + drivers/char/Kconfig | 14 ++ drivers/char/Makefile | 1 + drivers/char/op-panel-powernv.c | 247 +++++++++++++++++++++++++ 8 files changed, 277 insertions(+) create mode 100644 drivers/char/op-panel-powernv.c
MAINTAINERS +6 -0
@@ -8817,6 +8817,12 @@ F: drivers/firmware/psci.c F: include/linux/psci.h F: include/uapi/linux/psci.h +POWERNV OPERATOR PANEL LCD DISPLAY DRIVER +M: Suraj Jitindar Singh <[email protected]> +L: [email protected] +S: Maintained +F: drivers/char/op-panel-powernv.c + PNP SUPPORT M: "Rafael J. Wysocki" <[email protected]> S: Maintained
arch/powerpc/configs/powernv_defconfig +1 -0
@@ -181,6 +181,7 @@ CONFIG_SERIAL_8250=y CONFIG_SERIAL_8250_CONSOLE=y CONFIG_SERIAL_JSM=m CONFIG_VIRTIO_CONSOLE=m +CONFIG_IBM_OP_PANEL=m CONFIG_IPMI_HANDLER=y CONFIG_IPMI_DEVICE_INTERFACE=y CONFIG_IPMI_POWERNV=y
arch/powerpc/include/asm/opal.h +2 -0
@@ -178,6 +178,8 @@ int64_t opal_dump_ack(uint32_t dump_id);int64_t opal_dump_resend_notification (void );int64_t opal_get_msg (uint64_t buffer,uint64_t size); +int64_t opal_write_oppanel_async (uint64_t token,oppanel_line_t *lines, +uint64_t num_lines);int64_t opal_check_completion (uint64_t buffer,uint64_t size,uint64_t token);int64_t opal_sync_host_reboot (void ); int64_t opal_get_param(uint64_t token, uint32_t param_id, uint64_t buffer,
arch/powerpc/platforms/powernv/opal-wrappers.S +1 -0
@@ -278,6 +278,7 @@ OPAL_CALL(opal_dump_info2, OPAL_DUMP_INFO2); OPAL_CALL(opal_dump_read, OPAL_DUMP_READ); OPAL_CALL(opal_dump_ack, OPAL_DUMP_ACK); OPAL_CALL(opal_get_msg, OPAL_GET_MSG); +OPAL_CALL(opal_write_oppanel_async, OPAL_WRITE_OPPANEL_ASYNC); OPAL_CALL(opal_check_completion, OPAL_CHECK_ASYNC_COMPLETION); OPAL_CALL(opal_dump_resend_notification, OPAL_DUMP_RESEND); OPAL_CALL(opal_sync_host_reboot, OPAL_SYNC_HOST_REBOOT);
arch/powerpc/platforms/powernv/opal.c +5 -0
@@ -751,6 +751,9 @@ static int __init opal_init(void)opal_pdev_init (opal_node,"ibm,opal-flash" );opal_pdev_init (opal_node,"ibm,opal-prd" ); +/* Initialise platform device: oppanel interface */ +opal_pdev_init (opal_node,"ibm,opal-oppanel" ); +/* Initialise OPAL kmsg dumper for flushing console on panic */ opal_kmsg_init ();
@@ -885,3 +888,5 @@ EXPORT_SYMBOL_GPL(opal_i2c_request);/* Export these symbols for PowerNV LED class driver */ EXPORT_SYMBOL_GPL (opal_leds_get_ind);EXPORT_SYMBOL_GPL (opal_leds_set_ind); +/* Export this symbol for PowerNV Operator Panel class driver */ +EXPORT_SYMBOL_GPL (opal_write_oppanel_async);
drivers/char/Kconfig +14 -0
@@ -178,6 +178,20 @@ config IBM_BSR of threads across a large system which avoids bouncing a cacheline between several cores on a system +config IBM_OP_PANEL + tristate "IBM POWER Operator Panel Display support" + depends on PPC_POWERNV + default m + help + If you say Y here, a special character device node, /dev/oppanel, + will be created which exposes the operator panel display on IBM + Power Systems machines with FSPs. + + If you don't require access to the operator panel display from user + space, say N. + + If unsure, say M here to build it as a module called op-panel-powernv. + source "drivers/char/ipmi/Kconfig" config DS1620
drivers/char/Makefile +1 -0
@@ -60,3 +60,4 @@ js-rtc-y = rtc.o obj-$(CONFIG_TILE_SROM) += tile-srom.o obj-$(CONFIG_XILLYBUS) += xillybus/ +obj-$(CONFIG_IBM_OP_PANEL) += op-panel-powernv.o
drivers/char/op-panel-powernv.c new file +247 -0
247 lines not on this page · raw message
Signature · 1 line
2.5.0
Quoted 9 lines · Suraj Jitindar Singh
Add a binding to
Documentation/devicetree/bindings/powerpc/opal(oppanel-opal.txt) for the operator panel which is present on IBM pseries machines with FSPs.Signed-off-by Suraj Jitindar Singh <[email protected]>--- .../devicetree/bindings/powerpc/opal/oppanel-opal.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Documentation/devicetree/bindings/powerpc/opal/oppanel-opal.txt
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 3 lines · Suraj Jitindar Singh
Add a binding to
Documentation/devicetree/bindings/powerpc/opal(oppanel-opal.txt) for the operator panel which is present on IBM pseries machines with FSPs.
It's not pseries (as that implies PowerVM / PAPR) - while here we're all about OPAL.
With a slight change to the commit message,
Signature · 2 lines
Stewart Smith OPAL Architect, IBM.
Quoted 6 lines · Stewart Smith
Quoted 3 lines · Suraj Jitindar Singh
Add a binding to
Documentation/devicetree/bindings/powerpc/opal(oppanel-opal.txt) for the operator panel which is present on IBM pseries machines with FSPs.It's not pseries (as that implies PowerVM / PAPR) - while here we're all about OPAL.
Thanks, will fix that up.
Quoted 4 lines
With a slight change to the commit message,
Acked-by Stewart Smith <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html