Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3289603pxb; Fri, 12 Feb 2021 14:31:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJxA63xYaU9dzd/XIojOKvMxj9l8dWiBEMTJX5UWV2tUTTGw0wrHzMBilZxLaPeuc7te+TYl X-Received: by 2002:a17:906:e4f:: with SMTP id q15mr4995355eji.216.1613169097880; Fri, 12 Feb 2021 14:31:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613169097; cv=none; d=google.com; s=arc-20160816; b=y1t4IlSsjoObeIYeu/v0mW4s7A2rj+tUeWRcKGycHd+5LUHv7vxTi62VRUA9pxX/mq xpfOm/mqaCBeJvLsVMnFVO5Cc6qxhoeboyTQyruv04J0HB+DSSAFjDoMHJbC8FTb3WYQ jGW/yr3t//QHbSXLa22QAJonGFPUWGf7mcOXyzq2jh0BBDbNz3M44VVuJH7o+tArcgk9 HMZx8oS2clsh7X2dbjTZB0qsZ/Voq4wzS2KGlhNR5vu2yuJMJZ8foAHLA3qHN8uHWWVx oeCJnz2NoriGiohnoOi8cgBYh3VH2ZwXjPaU3f3puBQuzKW9o9LX+0jly0ARtjvwgYp8 tm3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:ironport-sdr:ironport-sdr; bh=to1GVHdztjFZxS5avoaoIebRvdz5IpFEvFSsPE8wtxs=; b=nxn9RtlEzoeXOTHv6YUW5L+w2gyx2SScFTAQ2bCunqn7dGSMYD5uYC1+V4u5ZtbeQC d6/fn3mPiidW/NhpiQa/wIJMQnnLQFVB/RRuye/KLy29zMij8aeV9aPhL0RR3cB/Ht6H 0GhIfBVlXThkeJPlaAGWPB2j4avjZ9aUfoM38+bV/LvqGgO4i2a4FltVmnLonqOnP1WJ SZOEgx14vP+hiUOpBZmIRMFf+w0Q9sypfBvMpnjweHc3atWOQ504zWU4R/1OflWv95xW R0CG5sBjEp766vZzggGHqvTc/KLD/i1WdvayGqxLsLFucy5aortcshbg3efz0VNHfMTs IbMw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g1si6810372ejb.606.2021.02.12.14.31.14; Fri, 12 Feb 2021 14:31:37 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231406AbhBLW2M (ORCPT + 99 others); Fri, 12 Feb 2021 17:28:12 -0500 Received: from mga03.intel.com ([134.134.136.65]:60271 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231394AbhBLWY5 (ORCPT ); Fri, 12 Feb 2021 17:24:57 -0500 IronPort-SDR: 4I637Pr5KS5ONDKPPd43Lp3HUgck0txoyKCcJ+b7fLU+4yAaO/An56rJ/L12/9XYe2gOSvonob siSutWZ7uEYQ== X-IronPort-AV: E=McAfee;i="6000,8403,9893"; a="182555233" X-IronPort-AV: E=Sophos;i="5.81,174,1610438400"; d="scan'208";a="182555233" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2021 14:23:09 -0800 IronPort-SDR: uGl1TIc7eeI9aEP+MrrK5ifyuS0+uGxLNFKvhVLKOQVeVmUlXFq1weKdgOHhCIQkyHGl7vIdxN G7Ct5XG4ltRQ== X-IronPort-AV: E=Sophos;i="5.81,174,1610438400"; d="scan'208";a="360580349" Received: from smtp.ostc.intel.com ([10.54.29.231]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2021 14:23:09 -0800 Received: from mtg-dev.jf.intel.com (mtg-dev.jf.intel.com [10.54.74.10]) by smtp.ostc.intel.com (Postfix) with ESMTP id 2A4AC6368; Fri, 12 Feb 2021 14:23:09 -0800 (PST) Received: by mtg-dev.jf.intel.com (Postfix, from userid 1000) id 22F4036370E; Fri, 12 Feb 2021 14:23:09 -0800 (PST) From: mgross@linux.intel.com To: markgross@kernel.org, mgross@linux.intel.com, arnd@arndb.de, bp@suse.de, damien.lemoal@wdc.com, dragan.cvetic@xilinx.com, gregkh@linuxfoundation.org, corbet@lwn.net, palmerdabbelt@google.com, paul.walmsley@sifive.com, peng.fan@nxp.com, robh+dt@kernel.org, shawnguo@kernel.org, jassisinghbrar@gmail.com Cc: linux-kernel@vger.kernel.org, "C, Udhayakumar" , devicetree@vger.kernel.org Subject: [PATCH v6 32/34] dt-bindings: misc: hddl_dev: Add hddl device management documentation Date: Fri, 12 Feb 2021 14:23:02 -0800 Message-Id: <20210212222304.110194-33-mgross@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210212222304.110194-1-mgross@linux.intel.com> References: <20210212222304.110194-1-mgross@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "C, Udhayakumar" Add hddl device management documentation The HDDL client driver acts as an software RTC to sync with network time. It abstracts xlink protocol to communicate with remote IA host. This driver exports the details about sensors available in the platform to remote IA host as xlink packets. This driver also handles device connect/disconnect events and identifies board id and soc id using gpio's based on platform configuration. Cc: Rob Herring Cc: devicetree@vger.kernel.org Signed-off-by: C Udhayakumar Signed-off-by: Mark Gross --- .../bindings/misc/intel,hddl-client.yaml | 117 ++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/intel,hddl-client.yaml diff --git a/Documentation/devicetree/bindings/misc/intel,hddl-client.yaml b/Documentation/devicetree/bindings/misc/intel,hddl-client.yaml new file mode 100644 index 000000000000..522b461663b5 --- /dev/null +++ b/Documentation/devicetree/bindings/misc/intel,hddl-client.yaml @@ -0,0 +1,117 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/misc/intel,hddl-client.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Intel hddl client device to handle platform management in Bay series + +maintainers: + - Udhayakumar C + +description: | + The HDDL client driver acts as an software RTC to sync with network time. + It abstracts xlink protocol to communicate with remote host. This driver + exports the details about sensors available in the platform to remote + host as xlink packets. + This driver also handles device connect/disconnect events and identifies + board id and soc id using gpio's based on platform configuration. + +select: false + +properties: + compatible: + items: + - const: intel,hddl-client + + reg: + minItems: 4 + maxItems: 4 + + xlink_chan: + minItems: 1 + maxItems: 1 + description: xlink channel number used for communication + with remote host for time sync and sharing sensor + details available in platform. + + i2c_xlink_chan: + minItems: 1 + maxItems: 1 + description: xlink channel number used for communication + with remote host for xlink i2c smbus. + + sensor_name: + type: object + description: + Details about sensors and its configuration on local host and remote + host. + + properties: + compatible: + items: + - const: intel_tsens + + reg: + description: i2c slave address for sensor. + + local-host: + minItems: 1 + maxItems: 1 + description: enable bit 0 to register sensor as i2c slave + in local host (normal i2c client) + enable bit 1 to mimic sensor as i2c slave + in local host (onchip sensors as i2c slave) + enable bit 2 to register i2c slave as xlink smbus slave + in local host. + remote-host: + minItems: 1 + maxItems: 1 + description: enable bit 0 to register sensor as i2c slave + in remote host (normal i2c client) + enable bit 1 to mimic sensor as i2c slave + in remote host (onchip sensors as i2c slave) + enable bit 2 to register i2c slave as xlink smbus slave + in remote host. + + bus: + minItems: 1 + maxItems: 1 + description: i2c bus number for the i2c client device. + + required: + - compatible + - reg + - local-host + - remote-host + - bus + +required: + - compatible + - reg + - xlink_chan + - i2c_xlink_chan + +additionalProperties: false + +examples: + - | + hddl_dev{ + #address-cells = <2>; + #size-cells = <2>; + + hddl@20320000 { + compatible = "intel,hddl-client"; + status = "disabled"; + reg = <0x0 0x20320000 0x0 0x800>; + xlink_chan = <1080>; + i2c_xlink_chan = <1081>; + kmb_xlink_tj { + status = "okay"; + compatible = "intel_tsens"; + local-host = <0x3>; + remote-host = <0x3>; + bus = <0x1>; + }; + }; + }; -- 2.17.1