From patchwork Tue Aug 29 18:45:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadim Pasternak X-Patchwork-Id: 807174 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3xhZMM05Xvz9t38 for ; Wed, 30 Aug 2017 02:48:15 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751773AbdH2QsM (ORCPT ); Tue, 29 Aug 2017 12:48:12 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:34166 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751706AbdH2QsJ (ORCPT ); Tue, 29 Aug 2017 12:48:09 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from vadimp@mellanox.com) with ESMTPS (AES256-SHA encrypted); 29 Aug 2017 19:48:04 +0300 Received: from r-mgtswh-226.mtr.labs.mlnx. (r-mgtswh-226.mtr.labs.mlnx [10.209.1.51]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id v7TGm3G1030696; Tue, 29 Aug 2017 19:48:04 +0300 From: Vadim Pasternak To: robh+dt@kernel.org, davem@davemloft.net Cc: jiri@resnulli.us, ivecera@redhat.com, devicetree@vger.kernel.org, netdev@vger.kernel.org, Vadim Pasternak Subject: [patch v1 1/2] dt-bindings: net: add binding documentation for mlxsw thermal control Date: Tue, 29 Aug 2017 18:45:10 +0000 Message-Id: <1504032311-195988-2-git-send-email-vadimp@mellanox.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1504032311-195988-1-git-send-email-vadimp@mellanox.com> References: <1504032311-195988-1-git-send-email-vadimp@mellanox.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Add binding document for Mellanox switch devices. Signed-off-by: Vadim Pasternak --- .../devicetree/bindings/net/mellanox,mlxsw.txt | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/mellanox,mlxsw.txt diff --git a/Documentation/devicetree/bindings/net/mellanox,mlxsw.txt b/Documentation/devicetree/bindings/net/mellanox,mlxsw.txt new file mode 100644 index 0000000..55de5ff --- /dev/null +++ b/Documentation/devicetree/bindings/net/mellanox,mlxsw.txt @@ -0,0 +1,46 @@ +Mellanox Technologies Switch ASICs + +This file provides information, what the device node +for the Switch ASIC interface contains. + +Required properties: +- compatible : "mellanox,mlxsw_minimal" +- reg : The I2C address of the device. + +Optional properties: +- cooling-phandle : phandle of the cooling device, which is to be used + for the zone thermal control. + If absent, cooling device controlled internally by + the ASIC may be used. + +- trips : the nodes to describe a point in the temperature + domain with key temperatures at which cooling is + recommended. Each node must contain the next values: + - type: the trip type. Expected values are: + 0 - a trip point to enable active cooling; + 1 - a trip point to enable passive cooling; + 2 - a trip point to notify emergency; + - temperature: unsigned integer indicating the trip + temperature level in millicelsius; + - minimum cooling state allowed within the trip node; + - maximum cooling state allowed within the trip node; + +Example: + asic_thermal: mlxsw_minimal@48 { + compatible = "mlxsw_minimal"; + reg = <0x48>; + status = "disabled"; + cooling-phandle = <&cooling>; + + trips { + trip@0 { + trip = <0 75000 0 0>; + }; + trip@1 { + trip = <2 85000 1 5>; + }; + trip@3 { + trip = <2 105000 5 5>; + }; + }; + };