From patchwork Tue Aug 24 12:44:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luka Kovacic X-Patchwork-Id: 502584 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A35CC19F3E for ; Tue, 24 Aug 2021 12:46:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 73BFB61357 for ; Tue, 24 Aug 2021 12:46:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237414AbhHXMrl (ORCPT ); Tue, 24 Aug 2021 08:47:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237399AbhHXMrg (ORCPT ); Tue, 24 Aug 2021 08:47:36 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 761F7C061796 for ; Tue, 24 Aug 2021 05:46:52 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id m2so1107895wmm.0 for ; Tue, 24 Aug 2021 05:46:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sV5bi/8/32uQJ63ILt7SV8uftT10eHMjtOEaunuG05M=; b=D4xeZ6Il7/TpovSdp6cBhIlgzF733gXgiHdK1AR2sEMG6GUdL8fZgop5meYE0aoupN FewCon2JtctS0mfG2zfLVWMAjUKldRRw3aVPERwzc/M/RWIOZfjEbpF4r1WnaAxpML7B qAejV7rQtR9g+hBZgy4G5Ml8K+GzxfFYQqTwnIuqYZZBejB1JMiSSQxJVrfri2g+LusL KfDtkYMdE5yrIaeu5johxOJM0dZdXeZ6H+yjIgoVZmWH464jJezCcifSpP+mnI60g5eQ wpdYycHnAT2lhf2BPz6VLZHI/hlDhUchgNXa85Ty7DdXu6T7E4IkEQAWxWgwsC1pYI7m 0EHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sV5bi/8/32uQJ63ILt7SV8uftT10eHMjtOEaunuG05M=; b=hSzrZl/bOBo641VRNmt3YShqdV1Hi5mscIUkcQvSy7OvEPvHE7qkt1/RePHXzq9HsB Lb6GEvbO/edlfPj1OT1k1vct4x9BsozJiuRwEpQ3IEOx8ROSmjWZEAIpXzE+/HVX9xgP txgs9jo61JcSv/q8cAewQ+l9PJoyBq06StfTkY9YZaMZw/FVMcU7xaVsVr1g3jgG1TjU buG2yEW1wYFfRnHGVwLNzU+DhUIMZPszb4US1BuZgNogLvv3Ofn2ZWIFoyEnM7zpqJWf c++JZYjA3tgimugwfVENuWOOM+UzITDUJMkOWCqojTXSIthOnqOWSDQwSG7ft3hSVawc z6rg== X-Gm-Message-State: AOAM532h0mxoHoiSuL3mrSCvbJ1enaIbmarzR6V9V3U/Od0iBAEGS7DY WVUbo/pRjOJ15ima5UXhgMNxSg== X-Google-Smtp-Source: ABdhPJyqY7PyhaU2K6nD0+z86vfEI4jeY/625pXpBJpDoe77q7569uA8pCW7P86FiH1hvhjVjZYnbQ== X-Received: by 2002:a05:600c:1c9c:: with SMTP id k28mr4041526wms.148.1629809211135; Tue, 24 Aug 2021 05:46:51 -0700 (PDT) Received: from localhost.localdomain ([2a00:ee2:4b0d:3001:fe74:75c8:e909:251b]) by smtp.gmail.com with ESMTPSA id i14sm2255454wmq.40.2021.08.24.05.46.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Aug 2021 05:46:50 -0700 (PDT) From: Luka Kovacic To: linux-doc@vger.kernel.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, geert+renesas@glider.be, Max.Merchel@tq-group.com, linux@rempel-privat.de, daniel@0x0f.com, shawnguo@kernel.org, sam@ravnborg.org, arnd@arndb.de, krzysztof.kozlowski@canonical.com, pavo.banicevic@sartura.hr, corbet@lwn.net, lee.jones@linaro.org, pavel@ucw.cz, robh+dt@kernel.org, linux@roeck-us.net, jdelvare@suse.com, goran.medic@sartura.hr, luka.perkov@sartura.hr, robert.marko@sartura.hr Cc: Luka Kovacic Subject: [PATCH v9 5/7] Documentation/ABI: Add iei-wt61p803-puzzle driver sysfs interface documentation Date: Tue, 24 Aug 2021 14:44:36 +0200 Message-Id: <20210824124438.14519-6-luka.kovacic@sartura.hr> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210824124438.14519-1-luka.kovacic@sartura.hr> References: <20210824124438.14519-1-luka.kovacic@sartura.hr> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org Add the iei-wt61p803-puzzle driver sysfs interface documentation to allow monitoring and control of the microcontroller from user space. Signed-off-by: Luka Kovacic Signed-off-by: Pavo Banicevic Cc: Luka Perkov Cc: Robert Marko --- .../testing/sysfs-driver-iei-wt61p803-puzzle | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-driver-iei-wt61p803-puzzle diff --git a/Documentation/ABI/testing/sysfs-driver-iei-wt61p803-puzzle b/Documentation/ABI/testing/sysfs-driver-iei-wt61p803-puzzle new file mode 100644 index 000000000000..ab4415587f67 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-driver-iei-wt61p803-puzzle @@ -0,0 +1,61 @@ +What: /sys/bus/serial/devices/.../mac_address_* +Date: September 2020 +Contact: Luka Kovacic +Description: (RW) Internal factory assigned MAC address values + +What: /sys/bus/serial/devices/.../serial_number +Date: September 2020 +Contact: Luka Kovacic +Description: (RW) Internal factory assigned serial number + +What: /sys/bus/serial/devices/.../version +Date: September 2020 +Contact: Luka Kovacic +Description: (RO) Internal MCU firmware version + +What: /sys/bus/serial/devices/.../protocol_version +Date: September 2020 +Contact: Luka Kovacic +Description: (RO) Internal MCU communication protocol version + +What: /sys/bus/serial/devices/.../power_loss_recovery +Date: September 2020 +Contact: Luka Kovacic +Description: (RW) Host platform power loss recovery settings + Value mapping: 0 - Always-On, 1 - Always-Off, 2 - Always-AC, 3 - Always-WA + +What: /sys/bus/serial/devices/.../bootloader_mode +Date: September 2020 +Contact: Luka Kovacic +Description: (RO) Internal MCU bootloader mode status + Value mapping: + 0 - normal mode + 1 - bootloader mode + +What: /sys/bus/serial/devices/.../power_status +Date: September 2020 +Contact: Luka Kovacic +Description: (RO) Power status indicates the host platform power on method. + Value mapping (bitwise list): + 0x80 - Null + 0x40 - Firmware flag + 0x20 - Power loss detection flag (powered off) + 0x10 - Power loss detection flag (AC mode) + 0x08 - Button power on + 0x04 - Wake-on-LAN power on + 0x02 - RTC alarm power on + 0x01 - AC recover power on + +What: /sys/bus/serial/devices/.../build_info +Date: September 2020 +Contact: Luka Kovacic +Description: (RO) Internal MCU firmware build date + Format: yyyy/mm/dd hh:mm + +What: /sys/bus/serial/devices/.../ac_recovery_status +Date: September 2020 +Contact: Luka Kovacic +Description: (RO) Host platform AC recovery status value + Value mapping: + 0 - board has not been recovered from power down + 1 - board has been recovered from power down