Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3831842pxv; Mon, 5 Jul 2021 06:51:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCzznUGYWr7lSf2fvPKcRE4VuZtfQsO4anC3dG5tRSkt8BRLKJF/TP1779tjgOl9aIdGKK X-Received: by 2002:a17:907:7d8c:: with SMTP id oz12mr13243480ejc.202.1625493106042; Mon, 05 Jul 2021 06:51:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625493106; cv=none; d=google.com; s=arc-20160816; b=OdVAjN4O6+NugXuQU96lzJM/c0F8aD9bk5IY0B0W4JpAz9Rjt1gcnQdbnYvz9ohVu7 WypgvU5xmu0klrCdt4NdWd+nGTfhuOzGrdhGoN0Aasbh3Tb6P9wvU8PGuuC+qwbVkvll Ip+Uu/XnL5F/qVzksiUERlFCgg9rKmEIw+Da1NKMOPaZpHPSdw2JFiyBASem44SaicFO C+NOyxRIVHQJU30kdC67R3hTMuwG8v/Sd3smW37dOI+xdEMAWZC3iltivNCVsdSX3u4B smpU5/ojFLvXX6NFI4HPC4pDTgL44q32vvMwyy4le25mMdjyMA3OHi+BcVhieSWg2BLM qU6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QxtlH5tFXalepLIlvKTbHRvqAev9gVNl4cEeuInBWpg=; b=RLfK1r8L/9VuFpRZoeBR0iICVaB3kERUDGD4pMBw88/ZsH0h7saxIeBmMo2DCxElyN rpVzN9Z3jPewMMGUsCymAhwnY2lph6a+R0t1HZF9tuGSIX9XYET3DUt5uKi2mVqhyRrY bvDOQGMFZF/Txtv3Y/rjPskcr2GgpEQ9flc49dvHcDVO8tlod4Uvo5OHxJc0UhiFaeJK 2vaXf0MrwMWjPcBsoireASh5f7v0WvgyRk60dBQuBCbBY8yJMhr1xWqZdahnCkZ/spfR fWJt4NyJTC4CwWUWZEMfkzHeJpPtli9ndnWNsnRa4JOHOThK1bLv09lDqWJW2SqW3ZP6 49YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sartura-hr.20150623.gappssmtp.com header.s=20150623 header.b=cJ1GDsPu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eo21si11549691ejc.233.2021.07.05.06.51.22; Mon, 05 Jul 2021 06:51:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@sartura-hr.20150623.gappssmtp.com header.s=20150623 header.b=cJ1GDsPu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231376AbhGENwy (ORCPT + 99 others); Mon, 5 Jul 2021 09:52:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231440AbhGENuy (ORCPT ); Mon, 5 Jul 2021 09:50:54 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 081A9C061574 for ; Mon, 5 Jul 2021 06:48:16 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id bg14so29109852ejb.9 for ; Mon, 05 Jul 2021 06:48:15 -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=QxtlH5tFXalepLIlvKTbHRvqAev9gVNl4cEeuInBWpg=; b=cJ1GDsPuxBv7eQjcAGUCvBZVluw68VpgBAOUoO7NzAjZ1WlnCnN/XpEc/nJkfSMrRL F1T19SrkRqdlC8747mOo9TbWexi27jV9uz3sOVxz2OWiNhlqtMxn4HsAI42kmNDxvLiv 7uGtpkIoCaJiTj2L7bVjKutRTBaCae7CI8pxEMGoXIjQinTs+zZXSSGUnDP0WMBShKKF VKdfJOsRSTs3H+MASN00htis3pMG77oKpUbgB43x/p4QznlDNAIdwG8KGvF94X55ExvF FvxDvarIr1OIlkKCf8aV/8hBUTXlG/ahhs0Lme9pVPYrPgy0D6MvYJQZ2/79v3zBPzlG AcJQ== 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=QxtlH5tFXalepLIlvKTbHRvqAev9gVNl4cEeuInBWpg=; b=BZNFC4phbo4PfcqH9DP0DU5ga63c2YwY2knE281tLBHWIJipcPdCSV6rMDAfsmIYRq Agt97tMZBgGbYQG6XivhP0TGE/8Rjv/ntGOw5+ci8uGiTaw4Ry/RECUVC7nb58s+PG6z 9uUtKoyGXiSVUfqCv1kB4sFiI0vyh7cP1/5hrH/OO80sARD3LFiMAtUJiGzoesesSjyp /Y1VRcuAHc+Z66xnN0zr6zCi0+wvYyEWD4JAmEkbxfL933TODvXKUV19BFfySRJaF8KC icTWZfKEgqLyCLfbZEyMGzOrUdTblP8qhPILY159iL/iNsBFzP8bTnAe+DHYaK0nbk3F 21RQ== X-Gm-Message-State: AOAM530K36A6O6GZGqv2Rv7NuYKKO1PXj2X5sW3jCzyderDxQ+y7lnhw lxUbhSrf3s/uTsqUTq6hgVep5g== X-Received: by 2002:a17:906:4fcb:: with SMTP id i11mr11772841ejw.300.1625492894614; Mon, 05 Jul 2021 06:48:14 -0700 (PDT) Received: from localhost.localdomain ([89.18.44.40]) by smtp.gmail.com with ESMTPSA id cf29sm1557637edb.14.2021.07.05.06.48.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jul 2021 06:48:14 -0700 (PDT) From: Pavo Banicevic 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, luka.kovacic@sartura.hr Cc: Robert Marko Subject: [PATCH v8 5/7] Documentation/ABI: Add iei-wt61p803-puzzle driver sysfs interface documentation Date: Mon, 5 Jul 2021 15:49:37 +0200 Message-Id: <20210705134939.28691-6-pavo.banicevic@sartura.hr> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210705134939.28691-1-pavo.banicevic@sartura.hr> References: <20210705134939.28691-1-pavo.banicevic@sartura.hr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Luka Kovacic 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 -- 2.31.1