From mboxrd@z Thu Jan 1 00:00:00 1970 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 F3C31C433E0 for ; Wed, 10 Mar 2021 23:29:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C441B64DDA for ; Wed, 10 Mar 2021 23:29:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231880AbhCJX2u (ORCPT ); Wed, 10 Mar 2021 18:28:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232571AbhCJX2t (ORCPT ); Wed, 10 Mar 2021 18:28:49 -0500 Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD7EFC061574 for ; Wed, 10 Mar 2021 15:28:49 -0800 (PST) Received: by mail-ot1-x335.google.com with SMTP id 75so14943156otn.4 for ; Wed, 10 Mar 2021 15:28:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=CcpjnFhs+hD8NIsHxenerG7IM+48zY0/1AwqAoJFhWQ=; b=bKne5DjbZE9XY5B/uBertZFJs2UrcfISuG2Z5FAP3+P4BEi8k0hijfCeLcQT4EOmM3 hD0sukxdht/nOTSaCOmDUJ3aYZElo+UBaqA5JmmA76TDHs2O4fXRP5XaHNzYO2pocp8K cS2e4pHyf9tHqtF1OSQQTgBHvp/8UovsFmwXnK0Ob8+bO65/QhaII/fTFMK8e+SgeQPr hROoy/oKmFS/J6oFxe+Gu1CN8MaQdiKokHTgcw02pKhWGE4OK3hmvaVVPwhxBmQFodS9 uoYu0OOKh4XiHQPMXAOgbrGaK7hfd6ybeVDXmOkuQE+fjIUyfZnz9ArTIUtilhjl+BFJ j/Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=CcpjnFhs+hD8NIsHxenerG7IM+48zY0/1AwqAoJFhWQ=; b=jiBLKVYnt0pw+WHHsYe6XyTNS0A0LrvZdyFKUPPRI8iZ7snbCDQLpIvfX1L1WXGa4W mBlN6fOfZgcYeHQxZE2RMkURZ6BqBFHP9TuFHBVK9B2riwuN0lB/tkg/+gvSzNpf+gO2 AOIVDyks22e1VnkLQXUGdHZe4qIcTjIP6QWsK2VpFS3aktX7tVgHzpAgtAXy7ydkX/oS hYqrkC/x6IaN+pl0U2stJpSmkJITr6XT/4/vn52xYpuPsuXolRQwTYRAVKA/h0xnAFI7 e1/2GzcXgO/qbTRdt0+x5BvL/7qWw40TI5RG7ii1/MlD8MGvmDvDLZrqz9bR27XJUxoS 9ukA== X-Gm-Message-State: AOAM531hSbxU3By+OZyfJ0TRSwr1JV/NQ5NYlP+lLLuPq1aYB5D2o8rD /VIhxWw3L/5V+1R4dnmQTzGTdP8411un6A== X-Google-Smtp-Source: ABdhPJz52c30YvfDi3Kw8yjoSTmqG5ij8W6ebHqwnKKKCm0AFJvEKyzkQvQrGgaK4stz861b2WS8KA== X-Received: by 2002:a9d:6a50:: with SMTP id h16mr4504158otn.67.1615418929055; Wed, 10 Mar 2021 15:28:49 -0800 (PST) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id g21sm183373ooa.15.2021.03.10.15.28.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Mar 2021 15:28:48 -0800 (PST) Date: Wed, 10 Mar 2021 17:28:46 -0600 From: Bjorn Andersson To: Souradeep Chowdhury Cc: Rob Herring , Andy Gross , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, sibis@codeaurora.org, saiprakash.ranjan@codeaurora.org, Rajendra Nayak , vkoul@kernel.org Subject: Re: [PATCH V1 4/6] DCC: Added the sysfs entries for DCC(Data Capture and Compare) driver Message-ID: References: <332477ea39088fca5879af1a5278c289e1602f6d.1615393454.git.schowdhu@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <332477ea39088fca5879af1a5278c289e1602f6d.1615393454.git.schowdhu@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Wed 10 Mar 10:46 CST 2021, Souradeep Chowdhury wrote: > The DCC is a DMA engine designed to store register values either in > case of a system crash or in case of software triggers manually done > by the user. Using DCC hardware and the sysfs interface of the driver > the user can exploit various functionalities of DCC. The user can specify > the register addresses, the values of which is stored by DCC in it's > dedicated SRAM. The register addresses can be used either to read from, > write to, first read and store value and then write or to loop. All these > options can be exploited using the sysfs interface given to the user. > Following are the sysfs interfaces exposed in DCC driver which are > documented > 1)trigger > 2)config > 3)config_write > 4)config_reset > 5)enable > 6)rd_mod_wr > 7)loop > > Signed-off-by: Souradeep Chowdhury > --- > Documentation/ABI/testing/sysfs-driver-dcc | 74 ++++++++++++++++++++++++++++++ > 1 file changed, 74 insertions(+) > create mode 100644 Documentation/ABI/testing/sysfs-driver-dcc > > diff --git a/Documentation/ABI/testing/sysfs-driver-dcc b/Documentation/ABI/testing/sysfs-driver-dcc > new file mode 100644 > index 0000000..7a855ca > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-driver-dcc > @@ -0,0 +1,74 @@ > +What: /sys/bus/platform/devices/.../trigger > +Date: February 2021 > +Contact: Souradeep Chowdhury > +Description: > + This file allows the software trigger to be enabled > + by the user through the sysfs interface.Through this > + interface the user can manually start a software trigger > + in dcc where by the dcc driver stores the current status > + of the specified registers in dcc sram. > + > +What: /sys/bus/platform/devices/.../enable > +Date: February 2021 > +Contact: Souradeep Chowdhury > +Description: > + This file allows the user to manually enable or > + disable dcc driver.The dcc hardware needs to be > + enabled before use. > + > +What: /sys/bus/platform/devices/.../config > +Date: February 2021 > +Contact: Souradeep Chowdhury > +Description: > + This file allows user to configure the register values > + along with addresses to the dcc driver.This register > + addresses are used to read from,write or loop through. > + To enable all these options separate sysfs files have > + are created. Please describe the expected content of this file. > + > +What: /sys/bus/platform/devices/.../config_write > +Date: February 2021 > +Contact: Souradeep Chowdhury > +Description: > + This file allows user to write a value to the register > + address given as argument.The values are entered in the > + form of . So it's just a generic 'write some user defined data to some user defined register'? This doesn't sound like the typical way things are exposed in sysfs. > + > +What: /sys/bus/platform/devices/.../config_reset > +Date: February 2021 > +Contact: Souradeep Chowdhury > +Description: > + This file is used to reset the configuration of > + a dcc driver to the default configuration. > + > +What: /sys/bus/platform/devices/.../loop > +Date: February 2021 > +Contact: Souradeep Chowdhury > +Description: > + This file is used to enter the loop count as dcc > + driver gives the option to loop multiple times on > + the same register and store the values for each > + loop. > + > +What: /sys/bus/platform/devices/.../rd_mod_wr > +Date: February 2021 > +Contact: Souradeep Chowdhury > +Description: > + This file is used to read the value of the register > + and then write the value given as an argument to the > + register address in config.The address argument should > + be given of the form . > + > +What: /sys/bus/platform/devices/.../ready > +Date: February 2021 > +Contact: Souradeep Chowdhury > +Description: > + This file is used to check the status of the dcc > + hardware if it's ready to take the inputs. > + > +What: /sys/bus/platform/devices/.../curr_list > +Date: February 2021 > +Contact: Souradeep Chowdhury > +Description: > + This file is used to configure the linkedlist data > + to be used while configuring addresses. Please describe the format of this attr. Is it read/write? Regards, Bjorn > -- > QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member > of Code Aurora Forum, hosted by The Linux Foundation >