From patchwork Wed Sep 30 01:40:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luka Kovacic X-Patchwork-Id: 11807551 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1E2826CB for ; Wed, 30 Sep 2020 01:42:15 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CD85520C09 for ; Wed, 30 Sep 2020 01:42:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="wWRpRZlK"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=sartura-hr.20150623.gappssmtp.com header.i=@sartura-hr.20150623.gappssmtp.com header.b="XEEXKgLE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CD85520C09 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sartura.hr Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=/qBH+scH08hOE4YBPSrquuPCCP0ECcU9cXYAftrNR6o=; b=wWRpRZlKTledtQEfd2JVxOau0 EKYZQ1jS87vO5s2Xm8UxdTGUof6b5hlSsOrClHyhPxOwJXrDHtU0ps1fRA3IhhfItUrRmmNZDfwfT IcvHKlI3Go4bxSxcPDaAIYN/hZKLAoujAmHyGLAaf565TqNZrThgZAXEK6xiV/oTT0dI+6s6rf++3 3/LAvVGQ+5n5BHumxj1SAMb4+3cHFnZWUXFrZhwWLNz94Q5uYrJG+4TphHRbw+szlU3Xrit3XjIWL aBfhoXY2vClz2LukREZaL30CMMuV7XMIjeOQCSnG09YAHeOAOUR0H6p646jW+gCeTeZ3UWu8sSsDU 7aIP+oLig==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNR80-0000Op-Jp; Wed, 30 Sep 2020 01:41:56 +0000 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNR7S-0000Eg-OD for linux-arm-kernel@lists.infradead.org; Wed, 30 Sep 2020 01:41:24 +0000 Received: by mail-ed1-x52a.google.com with SMTP id l17so69838edq.12 for ; Tue, 29 Sep 2020 18:41:22 -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=jsG9e64+hm1kWvWLBkpftUqDmTbdR66JgHzNao/M1zI=; b=XEEXKgLEzoyoUtHuREj71CIn39LLDv55q1p4YoqZMbn50ipbK7SMbGwr/+8TwH0q7u eFBd8YaGql4DlTJVLHfs1EKHxVRKt5nKNj99CAVElXSwD1a8Bphj6Zu68cqMLv4AW8gx 6aPZRcaoTcjVftEDpEobqDIUxuxKundkv80ItaN6Ad8C9xazOcQMIjLtrz6rfitREvd3 gUwckuDq3g1ckHE419ZSpad5zaUA737Zv+MErgleOcFGfEArtAiE3u/CVcyabHoT+f31 849yusLJeNjiBZOUdwg0LIhFcBsKUlgrpwMgCnTH3pwAOQfWNfPp7IyYJiI8/j7ssdAS pBAA== 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=jsG9e64+hm1kWvWLBkpftUqDmTbdR66JgHzNao/M1zI=; b=fhK858Jzl2bUL4x+YE0862ivMqQMeIYxwuafGpaOHM2f589h0Gx78PIgqq7Nw5Jo8O hMtBmiLuhh1kCh3Mr63sBylBNEE/8ngQb2P52FB4g96OymyPkd9Urpc40NubfqPDOcCz ZQySskYnb6tz/lQ4Fk7bZrSU1497eBNMIqHqpAdIaxAJbrbrjXnHIBBZ6pSLja9M8ebl 17VtPXdqc2X2qYuo6iu6GfRDp3gECqMeYqSlv0o4Nm+YfesQFzY5MiBj8rmIKsxRhhpE efwqE0P/7NbWKtDxZUGvbr7WeDSLx6sOGKt9ptgZWQF2IPwtlYTs0jLDZ53zjsZdqymM yk5w== X-Gm-Message-State: AOAM532IP+DXvvUhybpfiPMEWaayHa4bwMsb4WUfAvo5bcquYRUv25Vk FPPF8+kNPq2IcQKKvpLrtDyiug== X-Google-Smtp-Source: ABdhPJxfP7whcOzcrPG1GZ9fFLkvY16uwZqJCZ8/jhPqdeTwGOYnDOyL85QWrv8tFjQ1PACUsKwFuA== X-Received: by 2002:a05:6402:7d2:: with SMTP id u18mr290702edy.69.1601430081453; Tue, 29 Sep 2020 18:41:21 -0700 (PDT) Received: from localhost.localdomain ([2a00:ee2:4b0d:3000:290:faff:fe54:449c]) by smtp.gmail.com with ESMTPSA id q1sm203258ejy.37.2020.09.29.18.41.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2020 18:41:20 -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 Subject: [PATCH v3 5/7] Documentation/ABI: Add iei-wt61p803-puzzle driver sysfs interface documentation Date: Wed, 30 Sep 2020 03:40:56 +0200 Message-Id: <20200930014058.44460-6-luka.kovacic@sartura.hr> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200930014058.44460-1-luka.kovacic@sartura.hr> References: <20200930014058.44460-1-luka.kovacic@sartura.hr> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200929_214122_842580_8D746AD8 X-CRM114-Status: GOOD ( 15.23 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:52a listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: andrew@lunn.ch, jdelvare@suse.com, luka.perkov@sartura.hr, jason@lakedaemon.net, gregory.clement@bootlin.com, marek.behun@nic.cz, Luka Kovacic , robh+dt@kernel.org, dmurphy@ti.com, pavel@ucw.cz, robert.marko@sartura.hr, lee.jones@linaro.org, linux@roeck-us.net Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 --- .../testing/sysfs-driver-iei-wt61p803-puzzle | 55 +++++++++++++++++++ 1 file changed, 55 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..6e71d85f3296 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-driver-iei-wt61p803-puzzle @@ -0,0 +1,55 @@ +What: /sys/bus/serial/devices/.../iei_wt61p803_puzzle_core/mac_address_* +Date: September 2020 +Contact: Luka Kovacic +Description: (RW) Internal factory assigned MAC address values + +What: /sys/bus/serial/devices/.../iei_wt61p803_puzzle_core/serial_number +Date: September 2020 +Contact: Luka Kovacic +Description: (RW) Internal factory assigned serial number + +What: /sys/bus/serial/devices/.../iei_wt61p803_puzzle_core/version +Date: September 2020 +Contact: Luka Kovacic +Description: (RO) Internal MCU firmware version + +What: /sys/bus/serial/devices/.../iei_wt61p803_puzzle_core/protocol_version +Date: September 2020 +Contact: Luka Kovacic +Description: (RO) Internal MCU communication protocol version + +What: /sys/bus/serial/devices/.../iei_wt61p803_puzzle_core/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/.../iei_wt61p803_puzzle_core/bootloader_mode +Date: September 2020 +Contact: Luka Kovacic +Description: (RO) Internal MCU bootloader mode status + +What: /sys/bus/serial/devices/.../iei_wt61p803_puzzle_core/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 - 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: (RO) Internal MCU firmware build date + 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: (RO) Host platform AC recovery status value