Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7933608rwl; Thu, 23 Mar 2023 10:22:51 -0700 (PDT) X-Google-Smtp-Source: AK7set8hD/TABhOmptD18btJXUcZkzj+m96nBGR2ACukLyY7+somvyaVIY0fb5k67k0bfjrUP/Bt X-Received: by 2002:a17:90b:1a85:b0:23f:78d6:b5cc with SMTP id ng5-20020a17090b1a8500b0023f78d6b5ccmr8090647pjb.38.1679592171256; Thu, 23 Mar 2023 10:22:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679592171; cv=none; d=google.com; s=arc-20160816; b=ETg0caHxC6NB/BtqTpc/HGXWvIjSSxaARGx+sA8hIkKMNOHkPUwypKG2267zd3d5se 7gEkOYT41kWNXoVPGBbT9Uv4wE47WmZHa8Xa08ohY4OPFwsWryn6mKkesKdn4Xl5oumN 1sSbhPxcAQskH9tX43ToQfhWnkaJlmq16gkG5dt/cZybBgldc6JC/FV1YH8CbKKJ/Ttq vyORLuNGfVk7wutjyheA9w+Z6xsU2G7yzjDzz26ppZGGtX5koJ9fqI0CoqNFhUSnEDaX 65Y8fEtrEPW48yAh5vIqbXE6gb7EaLuaqLY7MdG0FlWOqDjNhDPpYSICoehkyPD44ieC fVcQ== 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=FhGDrm9YE+DGXvzlrwgx18BLDxzhgRaVG+QCaueBLHU=; b=dIdvvKn8EVT9E8PV1vFhZALapb3xj5ZnXIyTRchyAkqkvlj+4Ag/Isgg0WBK/wyHIN 4fLstvuoCux094HMufBhhzTeNDIs0wQtIbVV9tZ3gi5ve25vscM3Jm2b03IHV+yQz66U PQuGgzhynOnjzSihJ94txcb9ZmscCum7mHWx3HyyBHS/z3kN5tE+AoWEgF+W5YZyCNAB dvdZoY7KgxYAd+ucwO1H4cUN8sl/iteNdUnhcGKAmBgF10Z/Np9JNHVdsbp+NTb/HL0R zPSaFTe8fzFgLXDIV2kG+yWG3sC1Za7KgNa0DO4ZsH9vF4Tx8Ehn49RFPGfTSiOtBgcq wv9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RTuMT+c3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lb4-20020a17090b4a4400b0023def94be5esi2544813pjb.20.2023.03.23.10.22.29; Thu, 23 Mar 2023 10:22:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RTuMT+c3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231768AbjCWRVm (ORCPT + 99 others); Thu, 23 Mar 2023 13:21:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbjCWRVi (ORCPT ); Thu, 23 Mar 2023 13:21:38 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7AA9274BF; Thu, 23 Mar 2023 10:21:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679592089; x=1711128089; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JOjP3peX0ZEQlt5bUy6rekVF3QLzY7oGXCu8avzeStM=; b=RTuMT+c3vJv0PUd3N4w7xuXwjRQSnfXa6Hm0RZ3TE81DcUF2/pE3G4zV sC+47LMmIr5gDUExxbCAcM4KTqlmompBpoWCQvd3Ku1FNkquf/dHAMv9X +j7WdPcTm5BNeNg3yjQrHBB1NqQO80dK6SBh1dd/dLY3cU1ZYAl2a3dlO dlBSwsbm8Pmi6HtK71bVCutp51dYC7w90JgW9RKI/yGZ/pcrxHmD51QUh +Wq5X9i5GfaHGJ9XUFZ3HmL4U8qB5Y4odJzCFg4mox2UOob/XTMWvjX6n GUBnk8ZCVUBaQebUZX8kcku5nHYC70QJSp83jSZRmrgnAFjE8br0dGmpN A==; X-IronPort-AV: E=McAfee;i="6600,9927,10658"; a="425840253" X-IronPort-AV: E=Sophos;i="5.98,285,1673942400"; d="scan'208";a="425840253" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2023 10:21:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10658"; a="712748305" X-IronPort-AV: E=Sophos;i="5.98,285,1673942400"; d="scan'208";a="712748305" Received: from ye-nuc7i7dnhe.sh.intel.com ([10.239.154.52]) by orsmga008.jf.intel.com with ESMTP; 23 Mar 2023 10:21:23 -0700 From: Ye Xiang To: Greg Kroah-Hartman , Arnd Bergmann , Matthias Kaehlcke , Lee Jones , Wolfram Sang , Tyrone Ting , Mark Brown , Linus Walleij , Bartosz Golaszewski , linux-usb@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, linux-gpio@vger.kernel.org Cc: srinivas.pandruvada@intel.com, heikki.krogerus@linux.intel.com, andriy.shevchenko@linux.intel.com, sakari.ailus@linux.intel.com, zhifeng.wang@intel.com, wentong.wu@intel.com, lixu.zhang@intel.com, Ye Xiang Subject: [PATCH v6 3/6] Documentation: Add ABI doc for attributes of LJCA device Date: Fri, 24 Mar 2023 01:21:10 +0800 Message-Id: <20230323172113.1231050-4-xiang.ye@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230323172113.1231050-1-xiang.ye@intel.com> References: <20230323172113.1231050-1-xiang.ye@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add sysfs attributes Documentation entries for LJCA device Signed-off-by: Ye Xiang --- .../ABI/testing/sysfs-bus-usb-devices-ljca | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-usb-devices-ljca diff --git a/Documentation/ABI/testing/sysfs-bus-usb-devices-ljca b/Documentation/ABI/testing/sysfs-bus-usb-devices-ljca new file mode 100644 index 000000000000..16eecaf870e2 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-bus-usb-devices-ljca @@ -0,0 +1,36 @@ +What: /sys/bus/usb/.../ljca_version +Date: July 2023 +KernelVersion: 6.4 +Contact: Ye Xiang +Description: + Provides the current firmware version of LJCA device. + The format is Major.Minor.Patch.Build, where + Major, Minor, Patch, and Build are decimal numbers. + For example: 1.0.0.256 + +What: /sys/bus/usb/.../ljca_enable_dfu +Date: July 2023 +KernelVersion: 6.4 +Contact: Ye Xiang +Description: + Writing 1 to this file to force the LJCA device into DFU + mode so the firmware can be updated. After firmware + updating has been done, the device will back to normal + working mode. + +What: /sys/bus/usb/.../ljca_trace_level +Date: July 2023 +KernelVersion: 6.4 +Contact: Ye Xiang +Description: + Writing N to this file to set firmware log level of LJCA + device. The log can be printed to another computer through + UART ports in LJCA device. Valid values: + + == ========== + 0 LEVEL_ERROR + 1 LEVEL_WARNING + 2 LEVEL_INFO + 3 LEVEL_DEBUG + 4 LEVEL_OFF + == ========== -- 2.34.1