Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2419245pxb; Sat, 30 Jan 2021 01:56:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7f7IcpvoeXugs8U2qPMUy/CJyFp61NXD7GgE8Hrp1Swg3zDQ8Sqbh5utTBlLnwElpMhSA X-Received: by 2002:a17:906:1689:: with SMTP id s9mr8151667ejd.500.1612000583734; Sat, 30 Jan 2021 01:56:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612000583; cv=none; d=google.com; s=arc-20160816; b=tyZ9BCXdeW+wHcm0uKBw7hR5oCdb9YoAz06IZV8cWO0WxSASD1RcQ8ccT1fZRD53ir hmUDYy6IDLOoumec10/K5TVGex4f9MqeE8Y+7WhfVs2rwbERpMv5plJSAm1NM8Mrztvg 2JN53igFWH2kWpLn0qIuTiaL8CKpkB44wi5CFkB2Qt40yf5aYqXHbmfVD58wv2TnJ5bP opJrJYjc6oDk6zkbWcGZhXEsjxt6p8tXaj8jBtyoST5lcZsc0Q+RqGUlNSKVsA4HuV0i qk8TmAiRNy1+JiiD2XcAvHmtA/D/Ldv31Q5uHwcPfp8nLF2RjzxpVq10U68D5RpaKNEB 75yw== 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=nY30W69KPAiUvrJK2Aou8Py9xrE1Up6XkITDZ0V3s+Y=; b=mvejGFiuro/nAgZn216jduQFCNITPkitC1ThJECk3w2G99+9Yl9um+z7zbsLM4R1sE ieWVAzFQ2vlyMn6ZO708gw0CZ8ZtXIsHVq7PIaVESDzHF1+8knYFyMDcJNhqtV0M3LkI mMfFVLBxEgwB2IbCP+sI8AoUn+FOqR+2y20B16BoKaY7CIjwWkxqXJz4fwC4OfrKmFpm Q55w+R7Ux5/EcHaY5eRWmMT0UGBIiy219Di05ID/zW66MNlqKdZXo+uJ2nZ2w6HOMI+g eX7+KGz7MOJpZlsZqGNpGLYQ20UW36lf3yUvYwFDvjQmj/Rn8xijH71KJ4r7c4jnS0Ym vB1A== 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 mb2si4347275ejb.729.2021.01.30.01.55.59; Sat, 30 Jan 2021 01:56:23 -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 S230298AbhA3JzE (ORCPT + 99 others); Sat, 30 Jan 2021 04:55:04 -0500 Received: from mga06.intel.com ([134.134.136.31]:41430 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233148AbhA3DAq (ORCPT ); Fri, 29 Jan 2021 22:00:46 -0500 IronPort-SDR: /QOu6WX5O5hTXpYV1vYPrRN1W5bFyRkFCLgiocGrrbTDm/2gpd+GlVZSU5KaQ/7JMWF67Guu8O ZNh07loPhsMA== X-IronPort-AV: E=McAfee;i="6000,8403,9879"; a="242028070" X-IronPort-AV: E=Sophos;i="5.79,387,1602572400"; d="scan'208";a="242028070" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jan 2021 18:21:31 -0800 IronPort-SDR: fliegbaFHBKbnNCLVqnXTZa80DvkqvpG3P4S9q2vmltREH1rEDei/Z0q0eIUPyjgRuigGjQxQs x3zr9Baz5Mpg== X-IronPort-AV: E=Sophos;i="5.79,387,1602572400"; d="scan'208";a="365585733" Received: from smtp.ostc.intel.com ([10.54.29.231]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jan 2021 18:21:31 -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 DAAAB6371; Fri, 29 Jan 2021 18:21:30 -0800 (PST) Received: by mtg-dev.jf.intel.com (Postfix, from userid 1000) id CE48C3636AB; Fri, 29 Jan 2021 18:21:30 -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 v4 32/34] dt-bindings: misc: hddl_dev: Add hddl device management documentation Date: Fri, 29 Jan 2021 18:21:22 -0800 Message-Id: <20210130022124.65083-68-mgross@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210130022124.65083-1-mgross@linux.intel.com> References: <20210130022124.65083-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 | 114 ++++++++++++++++++ 1 file changed, 114 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..c1d121c35fc5 --- /dev/null +++ b/Documentation/devicetree/bindings/misc/intel,hddl-client.yaml @@ -0,0 +1,114 @@ +# 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: hddl@20320000 { + compatible = "intel,hddl-client"; + #address-cells = <2>; + #size-cells = <2>; + 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