Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3503375pxx; Mon, 2 Nov 2020 10:33:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJw4lLFr6sprNwknYFFL0TRTHzVtPlVDjSiCrB7+1J2NkLEormuNQxMa0ITK6lO8wHGrUgsD X-Received: by 2002:a17:906:6c93:: with SMTP id s19mr11468319ejr.544.1604342022665; Mon, 02 Nov 2020 10:33:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604342022; cv=none; d=google.com; s=arc-20160816; b=cUEL7aqH9/bb7Pt0urc6cCI6azYRmPjKPg+pADKxrQYQmez696VCR8M+kEC6wRxIeh p5jhhbxHhpeNk2ezEVZxKuqgGhWjJ2EwClnZJl7m3fHyLw87WLVuq33QUmru/j02nt7h le/uB3jU83EmAKAlg+K781zg7Suy/aG/bZLYknShh7M6g//8QvLWGIICf4Yd9qZq4OE8 nv/ss0Sc4CEmgLvetFSl5Ip+pphY+o2w5O8A/MS7OFmUxeBu0C9353Wa+lsoP+5lD7It yi8F0KNbv6jalrNiSqml8dMJZern2Y2Xit9IHdPKDsMHVQ1TaPoHQEcBZLw0fvgFi8BP vOsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=eyikvyOADXRmirW8NUXz20t+vqM77BxXUZpx1lg31Aw=; b=F7J1HepSLlYhJewSj58sVac5VkCPNv4ovrk2gyU+dzlE+OdXDZaMASthWMQ2x39mEK 1tS7aIX8B2N1MpL695l0GOMke4PcaUaNTi7i4f9Xb8Xz56lWbZVhfpholJST4XtR0+tG ACGT8WYTTU6e9QQdcpMHXORba3hSeGKM1a5NxiIHODWh9dVfp0dlEPYQc/iH9yiEffOM 7th2blecsmaTArKSM1a1T53mDtMMKd9pqLT4g3/TgmDmVSEa7yNOl7tGQ9kZHk4/VTcU x6DwI6d1D3Ivffy6naWud+iAHt6M++3Jow/c8wAUKzyFQ9M7Mqh8INpoVsnowPQ5zFgH Aa8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JMK1sYJa; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b7si11220121ejj.658.2020.11.02.10.33.18; Mon, 02 Nov 2020 10:33:42 -0800 (PST) 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=@ti.com header.s=ti-com-17Q1 header.b=JMK1sYJa; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726175AbgKBSai (ORCPT + 99 others); Mon, 2 Nov 2020 13:30:38 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:47366 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725789AbgKBSai (ORCPT ); Mon, 2 Nov 2020 13:30:38 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0A2IU65f075772; Mon, 2 Nov 2020 12:30:06 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1604341806; bh=eyikvyOADXRmirW8NUXz20t+vqM77BxXUZpx1lg31Aw=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=JMK1sYJavYyvttH9hBYlQVtvuHh2Ato7nnuy4s7QJuAdFb/LRnob/ap/8QXocHU1A CZ5KWA232p5kYBGNF56PO2JvlcoQdKLKgyjGNZNnvvRS99FTEKfYQCfXN6PvslKkhl 1BBT9Jw7+AYnSEJ1JDp1UifdpKbRg1OjS+a1UfpA= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0A2IU6Ya054554 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 2 Nov 2020 12:30:06 -0600 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 2 Nov 2020 12:30:06 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Mon, 2 Nov 2020 12:30:05 -0600 Received: from [10.250.36.55] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0A2IU5AF082833; Mon, 2 Nov 2020 12:30:05 -0600 Subject: Re: [PATCH v7 0/6] Add support for the IEI WT61P803 PUZZLE MCU To: Luka Kovacic , Pavel Machek CC: Linux Kernel Mailing List , , Linux LED Subsystem , devicetree , Lee Jones , Rob Herring , Jean Delvare , Guenter Roeck , Marek Behun , Luka Perkov , Andy Shevchenko , Robert Marko References: <20201025005916.64747-7-luka.kovacic@sartura.hr> <20201025005916.64747-6-luka.kovacic@sartura.hr> <20201025005916.64747-5-luka.kovacic@sartura.hr> <20201025005916.64747-4-luka.kovacic@sartura.hr> <20201025005916.64747-3-luka.kovacic@sartura.hr> <20201025005916.64747-2-luka.kovacic@sartura.hr> <20201025005916.64747-1-luka.kovacic@sartura.hr> <20201029180105.GD26053@duo.ucw.cz> From: Dan Murphy Message-ID: <7821443b-ddbc-fc92-b990-14d116dda853@ti.com> Date: Mon, 2 Nov 2020 12:29:59 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello On 11/1/20 3:56 AM, Luka Kovacic wrote: > Hello Pavel, > > On Thu, Oct 29, 2020 at 7:01 PM Pavel Machek wrote: >> Hi! >> >>> +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 >> It would be nice to put this into standard place somewhere. Many >> machines will want to expose this information. > As this is specific to this microcontroller and to how it encodes > these values, I don't see a need to change this. > This isn't used anywhere else. > >> If not, at least spell out WoL, as it is not that common of acronym. > Okay. WoL is a very common acronym especially in the networking space But the overall this section does not make sense The description says that it indicates platform power on method but what is NULL power on? There are flags for power loss detection. Does the RTC mean that the processor real time clock woke up the uC? Or that the internal RTC woke up the controller? And for the /sys/bus/serial/devices/.../iei_wt61p803_puzzle_core/ac_recovery_status what are those values? It seems like some ABI's are documented well with formats and others are just described without a format. For instance /sys/bus/serial/devices/.../iei_wt61p803_puzzle_core/version the format of this version is not described but /sys/bus/serial/devices/.../iei_wt61p803_puzzle_core/build_info is. Dan