Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1132781rwi; Wed, 19 Oct 2022 07:07:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6w7rbcv0brkNgbKJ42e4bqmXiTLiFwDl5CaqI1HL/oMbP+E4oTKyvnGq+Xa7K9omePKkNt X-Received: by 2002:a17:906:ee81:b0:77e:829a:76e9 with SMTP id wt1-20020a170906ee8100b0077e829a76e9mr7281178ejb.207.1666188437891; Wed, 19 Oct 2022 07:07:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666188437; cv=none; d=google.com; s=arc-20160816; b=UJjrTB1UBwFrwKmRqfRPyK/rvGNG8RJF14Zd2C28JV3iMx4k2qY7nhffVjGPxqx6lX 9Wb8L1bjBJ9UQPJpEW2Dj6gcbaG+iWTX7vLkSeI5VwE19xc+Xgl78GQDXBFhrOewrWlX a/C/V4afv/wxBDwhkp0+H5zXbtWIOY8VIpGTjdsIW7O2DjzuJ6NlkkLy/+TTijNWxJBN JeUJgAOKbXDnod+ng67Ajy6hBcQ53w2kshGNlxbpA6VBxwjxIk5HKwG/ToNnhO9/uXjM bMR2dwSPazHPGsB2kXl31nu/HHDe8cSqpk0uIHYdOqrROa0d02oiln+CdkEisesomG9p tnHA== 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:organization:message-id:date:cc:to:from :subject:dkim-signature:dkim-signature; bh=93p6LX+Ewu3rCVdZcsXWSNEp7EfDushKgpEKzPy47FQ=; b=QUnELLSrvHVCCNTvZ/xBpLcckUp+aTptE0bW2aCNuluo303kiRQtN9B6Xi03DFTngi rdYyLP9M4Yz0CB1rSq6wl2Pk02kBxmOaUo3okd9S+oTiKuunv8GJOlNdj9Q2cLRuLXmo LzLuCuAiL+FqBmEamExNfqW+UDmwrV/w6PbDJPBkLj19g4eJX2cqW9LBqZ090XtBPR5Q LibC0ydFVH5JJl/+if50VeDZY3Xp8WgTLoXFsPULSuhvPTncagYv4j5qFjLv5QIYkyeR sIqDxwWsfEtPc5WtHNm3G1Z252k4DXHZcgwYzBsfxuWXFNeCyZekApnXWSW4p4TIDAQT wUVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=cTcVCQJr; dkim=pass header.i=@tq-group.com header.s=key1 header.b=L641wtOt; 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=tq-group.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e9-20020a056402190900b0045d9ceae633si9045855edz.55.2022.10.19.07.06.51; Wed, 19 Oct 2022 07:07:17 -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=@tq-group.com header.s=key1 header.b=cTcVCQJr; dkim=pass header.i=@tq-group.com header.s=key1 header.b=L641wtOt; 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=tq-group.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230242AbiJSNRy (ORCPT + 99 others); Wed, 19 Oct 2022 09:17:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229910AbiJSNRd (ORCPT ); Wed, 19 Oct 2022 09:17:33 -0400 Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 966C84E402; Wed, 19 Oct 2022 06:03:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1666184588; x=1697720588; h=subject:from:to:cc:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=93p6LX+Ewu3rCVdZcsXWSNEp7EfDushKgpEKzPy47FQ=; b=cTcVCQJrGOvWvthlW2LIMOEY/Eq3uP5+nUptWomNwgX+bF1TUunYOtCB 7qwff03/+kgQnuPCC7XUrexk6AAXleL3gCzy5PcH2XAQyURlMFapfJF7a x1AlW3OmkyB8iCVIbnlvpF6D01FuOE+Gg731Gy78SKCT/3zwiP6MKZOob Q1QSSzAiZS6VDpq81H6AKrEFxeWUc98QGnO78HkGL67NUdVlyyNf9bZto eTAdtNNulL20O23PNCsUU9u3K0PcllJroefZOg5qNaO3X0+ud0xJ2QR1Z CbNne9tn7WwG9cchUktMuAPEpIanFvbWaQT/2D5ISj19dMPaHC0wOwaAW Q==; X-IronPort-AV: E=Sophos;i="5.95,196,1661810400"; d="scan'208";a="26842869" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 19 Oct 2022 12:45:13 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Wed, 19 Oct 2022 12:45:13 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Wed, 19 Oct 2022 12:45:13 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1666176313; x=1697712313; h=from:to:cc:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding:subject; bh=93p6LX+Ewu3rCVdZcsXWSNEp7EfDushKgpEKzPy47FQ=; b=L641wtOtlNmC+t2Uqkw+LRpWIYhfg7cGAAsCvRqQAaqwB+/WCGUhSntp u60ot7ftL8SUt4I0OjPi3jzS6guL5fVeAD//pOS/w3+gbbv1/Fh7LCtKC LdhuAvM3QauGBd0BtlCqIwz5FgYr/AHzBnBXMcyryBEl3d68q3CxKj51J OdCqbW1UeaueZ1U6YP/fXRZjdky1KaeUFoJkaQUr+XSLlsN1L5DxG/d8V Bk+bLLHEw+6xEaCDn6hcm9zLlPn26snWLmI1YojULfA77vU5UlRppcYZ2 /w2kwMzuqq3ihHGlJy0Esqz7KMhrqFA5YkbsG2GKo4Ou+ROJhTY5TnpWU g==; X-IronPort-AV: E=Sophos;i="5.95,196,1661810400"; d="scan'208";a="26842868" Subject: Re: [PATCH] arm64: dts: meson: Enable active coling using gpio-fan on Odroid N2/N2+ Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 19 Oct 2022 12:45:13 +0200 Received: from steina-w.localnet (unknown [10.123.53.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id C62CB280056; Wed, 19 Oct 2022 12:45:12 +0200 (CEST) From: Alexander Stein To: Anand Moon Cc: Rob Herring , Krzysztof Kozlowski , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Anand Moon Date: Wed, 19 Oct 2022 12:45:10 +0200 Message-ID: <7193025.LvFx2qVVIh@steina-w> Organization: TQ-Systems GmbH In-Reply-To: <20221018195122.8877-1-linux.amoon@gmail.com> References: <20221018195122.8877-1-linux.amoon@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Am Dienstag, 18. Oktober 2022, 21:51:19 CEST schrieb Anand Moon: > Odroid N2/N2+ support active cooling via gpio-fan controller. > Add fan controls and tip point for cpu and ddr thermal sensor > on this boards. > > Signed-off-by: Anand Moon > --- > .../dts/amlogic/meson-g12b-odroid-n2.dtsi | 42 +++++++++++++++++++ > 1 file changed, 42 insertions(+) > > diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi > b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi index > fd3fa82e4c33..e61a4285a910 100644 > --- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi > +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi > @@ -39,6 +39,14 @@ emmc_pwrseq: emmc-pwrseq { > reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>; > }; > > + fan: gpio-fan { > + compatible = "gpio-fan"; > + gpios = <&gpio_ao GPIOAO_10 GPIO_ACTIVE_HIGH>; > + /* Using Dummy Speed */ > + gpio-fan,speed-map = <0 0>, <1 1>; > + #cooling-cells = <2>; > + }; > + > leds { > compatible = "gpio-leds"; > > @@ -410,6 +418,40 @@ &cpu103 { > clock-latency = <50000>; > }; > > +&cpu_thermal { > + trips { > + cpu_active: cpu-active { > + temperature = <60000>; /* millicelsius */ > + hysteresis = <2000>; /* millicelsius */ > + type = "active"; > + }; > + }; > + > + cooling-maps { > + map { > + trip = <&cpu_active>; > + cooling-device = <&fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + }; > +}; > + > +&ddr_thermal { > + trips { > + ddr_active: cpu-active { I suspect this node name shall be 'ddr-active', not 'cpu-active'. Best regards, Alexander > + temperature = <60000>; /* millicelsius */ > + hysteresis = <2000>; /* millicelsius */ > + type = "active"; > + }; > + }; > + > + cooling-maps { > + map { > + trip = <&ddr_active>; > + cooling-device = <&fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + }; > +}; > + > &ext_mdio { > external_phy: ethernet-phy@0 { > /* Realtek RTL8211F (0x001cc916) */ > > base-commit: aae703b02f92bde9264366c545e87cec451de471