Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1841401pxk; Sat, 26 Sep 2020 07:00:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxufYIdSxViHfgBS2gTphbv6E/NUkhabEgUHUmmkahPXFgilRsSpSHh+qFu0ro6FR+UKg/Q X-Received: by 2002:a17:907:20d0:: with SMTP id qq16mr7152943ejb.65.1601128823178; Sat, 26 Sep 2020 07:00:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601128823; cv=none; d=google.com; s=arc-20160816; b=zXKNBEz0E9LngXHXbal41w1a6CveKFB8CcbKlEvehi6t/OmR5pHRJ/9s6uGM4Yw/qD Vve7ht4G6ll00qS9FL9759fTrN5ozu049tfjnNG9Tgx2KGvMqFDHA13E88+EM64gTELd G/o3DuDfO0DVVxc4S1JNGem9/hSCA0LmPFWyVfr6gzqCTZtdgXY68RYGh2OyUJGCi8c9 IxDQglihh2Vbi1sjiXXdKDBOQsqNjQZv6nAjfvnDhmIXj9nUBkGK7f/AZz4ujsqUuDTi sNR8C/nzXnNX/aUmMZhiDYUkVs/QcX87RQrS0xJGWooinOSqdXLSuDGu111WsNbcsRqr j2Qw== 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=1VEJVLIKvGXIpDq7Str9wltA+5iXr9h3WFs6hOYr6A0=; b=rLP8/Da/gSLYl9qw0ok6m52o0w0iNSHmgJOFf8Fwz4fgExgvmMqAPC+07gKB2WWMEs ByEycpt+VaBZ2H5K4VLakHwNHbwkYESminOYAHwovVfIyso0eWeXx7GTj86Fde4o25Mu 5votE0pRm+ZM0fMqW5BvwBiHyb4H9KADsRApD7hwYTK9S8TF4s9+nNrv8dtPgVWj8qjB evKDirZVjTWH8U2Ot9FEK7o+GDy7lDGmC184WPUED7DuWcrvNf7XujQuZJocoSrbm/H+ zhZnUVJ6PnEFZLFKfVFr5+VswAyrWoNnoU0pElcW/ZeqEHLRgFCw8uX381rrjV2QGXR/ rwEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sartura-hr.20150623.gappssmtp.com header.s=20150623 header.b=0dbuE2nX; 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 g6si4114641edw.254.2020.09.26.06.59.59; Sat, 26 Sep 2020 07:00:23 -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=0dbuE2nX; 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 S1729521AbgIZN4L (ORCPT + 99 others); Sat, 26 Sep 2020 09:56:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729264AbgIZNzq (ORCPT ); Sat, 26 Sep 2020 09:55:46 -0400 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EE6DC0613D5 for ; Sat, 26 Sep 2020 06:55:46 -0700 (PDT) Received: by mail-ej1-x643.google.com with SMTP id r7so2352505ejs.11 for ; Sat, 26 Sep 2020 06:55:46 -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=1VEJVLIKvGXIpDq7Str9wltA+5iXr9h3WFs6hOYr6A0=; b=0dbuE2nX/PVL4FzxTLZeh32ngHh5v+iFZ9McW0BaPbJVbx/N3igN/ID9UIxPGSkSER zS3umRiZROGdtS87ULLrYf8fT1xEKw5tYgwCHjiqacMqSExyixml2qF+aphYJYcjWNFZ daapt+dS+54W4/gI6kWnT2aRg0AMZyyd3NR+O6806ByQSHvWAs2TjJCh1q0/UyiZ0spN mWI7tVnQ3vNPjoAeLHdIjPKge6Dpqk1mZmNR1R5hd6+GtsAd8WfHA986A0k27OrWcRFT L+T3FONQHhcSWcFwDmjnrqgavgZ8AUIb7dOITMTIfXbLUr7IW63ICyIS+nyeeHkzCnS1 4HmQ== 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=1VEJVLIKvGXIpDq7Str9wltA+5iXr9h3WFs6hOYr6A0=; b=lzomNCFWsdFE9Nc7mcQyo9j1w5q+FeTk01sR9BKO/V6mhBKhu6twegNyS/RVF+Otad 6dco0DVyH8F1hfDD3G3SSzPLdM9KUgGv7Fu5HKrXLdhmb3KzqDBpKNgzKqfC9wz4I7jU PSzKWjpc//Xd726w+bgLRgp42LVLDuiMwnWxLJd2p0VTk0hXLW3UF0118sAuUcLLAKIA Xu/sBMEl8artxYus8BlEhFjrcARPmNU+5TkdIPmXOB1enivATLarxw0JfTx0HSj7/STK RXyd0HX5bW7pvnHF1/xqW+LaqBmrFedYNrgBwjYuli6W7zBXT7ZqL+XPLVSldlOzKz3v tW5A== X-Gm-Message-State: AOAM531sCv0ok0b4n9UIo46DPHV6pfXm1hA48bXCA+SMWHwfwQoy++L/ GDBL7bhoJFfQTX3cAOu9xGfr2Nj3/nK4QZ2zxm6pU04SjgDBW3o0AvpegdhWEJaX7eZItDDlPJ9 LvpBPV+ic1chZy05uyEewnnINEsJDrst3Yeyy/VNBY7l3FpsB6l7nVA1o2+6wWub3U40nBkfquc Gmsi8IWIVt+w== X-Received: by 2002:a17:906:b7d1:: with SMTP id fy17mr7786600ejb.391.1601128544578; Sat, 26 Sep 2020 06:55:44 -0700 (PDT) Received: from localhost.localdomain ([2a00:ee2:4b0d:3001:fbc5:498b:ed6d:cfac]) by smtp.gmail.com with ESMTPSA id oq8sm4165700ejb.32.2020.09.26.06.55.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Sep 2020 06:55:43 -0700 (PDT) From: Luka Kovacic To: linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-leds@vger.kernel.org Cc: lee.jones@linaro.org, pavel@ucw.cz, dmurphy@ti.com, robh+dt@kernel.org, jdelvare@suse.com, linux@roeck-us.net, andrew@lunn.ch, jason@lakedaemon.net, gregory.clement@bootlin.com, luka.perkov@sartura.hr, robert.marko@sartura.hr, Luka Kovacic Subject: [PATCH v2 5/7] Documentation/ABI: Add iei-wt61p803-puzzle driver sysfs interface documentation Date: Sat, 26 Sep 2020 15:55:12 +0200 Message-Id: <20200926135514.26189-6-luka.kovacic@sartura.hr> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200926135514.26189-1-luka.kovacic@sartura.hr> References: <20200926135514.26189-1-luka.kovacic@sartura.hr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 Cc: Luka Perkov Cc: Robert Marko --- .../stable/sysfs-driver-iei-wt61p803-puzzle | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 Documentation/ABI/stable/sysfs-driver-iei-wt61p803-puzzle diff --git a/Documentation/ABI/stable/sysfs-driver-iei-wt61p803-puzzle b/Documentation/ABI/stable/sysfs-driver-iei-wt61p803-puzzle new file mode 100644 index 000000000000..36fca70d66ef --- /dev/null +++ b/Documentation/ABI/stable/sysfs-driver-iei-wt61p803-puzzle @@ -0,0 +1,65 @@ +What: /sys/bus/serial/devices/.../iei_wt61p803_puzzle_core/mac_address_* +Date: September 2020 +Contact: Luka Kovacic +Description: Read the internal iEi WT61P803 PUZZLE MCU MAC address values. + These are factory assigned and can be changed. + +What: /sys/bus/serial/devices/.../iei_wt61p803_puzzle_core/serial_number +Date: September 2020 +Contact: Luka Kovacic +Description: Read the internal iEi WT61P803 PUZZLE MCU serial number. + This value is factory assigned and can be changed. + +What: /sys/bus/serial/devices/.../iei_wt61p803_puzzle_core/version +Date: September 2020 +Contact: Luka Kovacic +Description: Read the internal iEi WT61P803 PUZZLE MCU version. + This value is read only. + +What: /sys/bus/serial/devices/.../iei_wt61p803_puzzle_core/protocol_version +Date: September 2020 +Contact: Luka Kovacic +Description: Read the internal iEi WT61P803 PUZZLE MCU protocol version. + This value is read only. + +What: /sys/bus/serial/devices/.../iei_wt61p803_puzzle_core/power_loss_recovery +Date: September 2020 +Contact: Luka Kovacic +Description: Read the iEi WT61P803 PUZZLE MCU power loss recovery value. + This value is read write. + Value mapping: 0 - Always-On, 1 - Always-Off, 2 - Always-AC, 3 - Always-WA + +What: /sys/bus/serial/devices/.../iei_wt61p803_puzzle_core/bootloader_mode +Date: September 2020 +Contact: Luka Kovacic +Description: Read whether the MCU is in bootloader mode. + This value is read only. + +What: /sys/bus/serial/devices/.../iei_wt61p803_puzzle_core/power_status +Date: September 2020 +Contact: Luka Kovacic +Description: Read the iEi WT61P803 PUZZLE MCU power status. Power status indicates + the power on method. + This value is read only. + 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 - WOL power on + 0x02 - RTC alarm power on + 0x01 - AC recover power on + +What: /sys/bus/serial/devices/.../iei_wt61p803_puzzle_core/build_info +Date: September 2020 +Contact: Luka Kovacic +Description: Read the iEi WT61P803 PUZZLE MCU firmware build date. + This value is read only. + Format: yyyy/mm/dd hh:mm + +What: /sys/bus/serial/devices/.../iei_wt61p803_puzzle_core/ac_recovery_status +Date: September 2020 +Contact: Luka Kovacic +Description: Read the iEi WT61P803 PUZZLE MCU AC recovery status. + This value is read only. -- 2.26.2