Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp98615rdb; Wed, 7 Feb 2024 23:23:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXltEmVudDtxjMjPDFyIPyJ9aw2yBZVJ4PrvF9QTLGvmsL/5ftf8A/tKN5AypOB/AYhxWz/ZXFZuHrf54RS1LzAijB+eZZSNI1RK1RBKg== X-Google-Smtp-Source: AGHT+IESgcMqTl6DILt08vJo/BJv5R2pZIEFdxJVB9l7hOOD6q5ulPjDVNm5O3wJtzJLBYBREz8u X-Received: by 2002:a05:6358:d585:b0:176:b16a:f392 with SMTP id ms5-20020a056358d58500b00176b16af392mr6168053rwb.10.1707376983910; Wed, 07 Feb 2024 23:23:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707376983; cv=pass; d=google.com; s=arc-20160816; b=VeseU9Tg8WKi2sldNMqL29MkP4Lgb73JHvwooPh2ySCbwBRELK88Tak0wHa3uzdp73 Nq6hol/8nlYBrWXKk+/bYdUW87doXgY+EebhWgwEmUm6HW3H1p9b0/mFvHS+TFB1kneD i5KPJZmtVOvvKGU7zrjvlI7Gg+VfH8oMnipqU/G86ZGeVULSDDPMocIYF5Y0WC5mkguf HHdB4GXVZIWOIpay0BHkvU+IxwEEmIoZPIpahbKyUUIM/acqLaqwcWZLjh4fwnaPuinH U1OG5BEUVvQHNdtUEFnzKkoXrxq/45JqTPG7NyLeTfYmWjfyaNV4YBk0ALH07sKyYcEC s6aw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bTseBzxWDcq9gt0CHAOxcRC1TbnWfWAUQNygoI4GuiM=; fh=mFOz7NYFOmzzbN0kLrMVOdrcm0HSYheD+SMbfXKCEsE=; b=bikmi9qDqnA5hMKknAmHxkPLv2snk6IDo3C2bTc0qvFf4nZ3uQJEoiiAoN8J6sug4m KC4xYdEP/rG2iwNOZchPTZBsMJ7ei2kbepoE3/Q3CBoJdKBcozB0IWbofhmSBRUwpwui VdlFJzA/ZZdD7bAdycQYG0NG4ZFSpxYDIVZ+B4FLsE5lOdosVt28VUv8WxrSXVNHEllS Fr9PrmUl6ubGnkqq+cqZlLlO/8/YwyRDid995PgLoN8N7lROKPg5Q96e7ot92xJWFh38 hwW88+2xmOMZdATjjupz9RyIjwsFkraJXUUiCXVRx99J8vl8N0bJWCsk3wUs6W+8YgOd R/Gw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=nLduN4ok; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-57554-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57554-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=2; AJvYcCWQNBdwbQ1FhgFixNmJbaL93YhpCuRZi4Xl1oOHsr/67YILRKI/ltj+uYFVLa1FZ5oyhShiZ5c6yR8m9IDrFoIDRBeZ+mFy/TCCkgjKnA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id sz11-20020a17090b2d4b00b00296fcec7964si309859pjb.161.2024.02.07.23.23.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 23:23:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57554-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=nLduN4ok; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-57554-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57554-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id CD1DFB21B9F for ; Thu, 8 Feb 2024 07:22:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 656C6692FB; Thu, 8 Feb 2024 07:22:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="nLduN4ok" Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 31F5A67A0F; Thu, 8 Feb 2024 07:22:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707376970; cv=none; b=Hmt7TYdLuLiBZC/kKySwMlXMZLQLTBw+eG7hyPChdbrRCIUFu++O6oCS8LIoKpPFELGA6r8z9V1a+4MXrnQzB2hNQdrbRM/LSg3avrWJZ9/HE87HNfbDnSYxbtzMGbrXH94bifqNeRC2QNa8uu/MFrHHfOUEb0P02b6+glPHDbU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707376970; c=relaxed/simple; bh=bTseBzxWDcq9gt0CHAOxcRC1TbnWfWAUQNygoI4GuiM=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LldynpCR3nwcsdi4v/4Ya4eAaadLWlCHe0R6TYj2N50/AadGP3Hesfij/qMDbI4AXUWV4l3Rk4FJLr+e2SEs020iSyHyAXzrxHkJo/hxgstkXu4mhEqy+6UtHr9muBr3o/QYc/Z9qOF09PX27opHp1evwocSncm3fDNmXCVhVSU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=nLduN4ok; arc=none smtp.client-ip=198.47.23.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 4187Magk082163; Thu, 8 Feb 2024 01:22:37 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1707376957; bh=bTseBzxWDcq9gt0CHAOxcRC1TbnWfWAUQNygoI4GuiM=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=nLduN4ok72nm0oxonfi0GyFZjosDYtMuB49CLoQlpgqhuAy7F5MgdZVabA56Qd1Id N4+AAqaR120s0IzEWpQsCxc1z2cALgfZkOrYaJ2kyPs+iA5O/thcH6YSELIZpfLb1n M0KC6fCg9tM7g2By3ZQgBBUpTZki7JvXBNkKVGeU= Received: from DFLE110.ent.ti.com (dfle110.ent.ti.com [10.64.6.31]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 4187MaPn092956 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 8 Feb 2024 01:22:36 -0600 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 8 Feb 2024 01:22:36 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 8 Feb 2024 01:22:36 -0600 Received: from localhost (jluthra.dhcp.ti.com [172.24.227.217]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 4187MZcK115426; Thu, 8 Feb 2024 01:22:36 -0600 Date: Thu, 8 Feb 2024 12:52:35 +0530 From: Jai Luthra To: Wadim Egorov CC: Andrew Davis , Nathan Morrisson , , , , , , , , , , Subject: Re: Re: [PATCH] arm64: dts: ti: am62-phyboard-lyra: Add overlay to enable a GPIO fan Message-ID: <7zzhg5tgypia7nta3pz6ocu3linrfghmilnd7icdvsoupzyepp@4vbmmkh2jtc7> References: <20240207172820.478332-1-nmorrisson@phytec.com> <033de6e2-4ca4-46bc-a0a7-e9921ed15977@phytec.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="nyrrqv4d76o3v3xw" Content-Disposition: inline In-Reply-To: <033de6e2-4ca4-46bc-a0a7-e9921ed15977@phytec.de> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 --nyrrqv4d76o3v3xw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Wadim, On Feb 08, 2024 at 06:57:54 +0100, Wadim Egorov wrote: > Hi Andrew, >=20 > Am 07.02.24 um 23:20 schrieb Andrew Davis: > > On 2/7/24 11:28 AM, Nathan Morrisson wrote: > > > The phyBOARD-Lyra has a GPIO fan header. This overlay enables the fan > > > header and sets the fan to turn on at 65C. > > >=20 > > > Signed-off-by: Nathan Morrisson > > > --- > > > =C2=A0 arch/arm64/boot/dts/ti/Makefile=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0 1 + > > > =C2=A0 .../ti/k3-am62-phyboard-lyra-gpio-fan.dtso=C2=A0=C2=A0=C2=A0 |= 51 +++++++++++++++++++ > > > =C2=A0 2 files changed, 52 insertions(+) > > > =C2=A0 create mode 100644 > > > arch/arm64/boot/dts/ti/k3-am62-phyboard-lyra-gpio-fan.dtso > > >=20 > > > diff --git a/arch/arm64/boot/dts/ti/Makefile > > > b/arch/arm64/boot/dts/ti/Makefile > > > index 52c1dc910308..379fb4f31a1f 100644 > > > --- a/arch/arm64/boot/dts/ti/Makefile > > > +++ b/arch/arm64/boot/dts/ti/Makefile > > > @@ -23,6 +23,7 @@ dtb-$(CONFIG_ARCH_K3) +=3D k3-am625-verdin-wifi-dev= =2Edtb > > > =C2=A0 dtb-$(CONFIG_ARCH_K3) +=3D k3-am625-verdin-wifi-mallow.dtb > > > =C2=A0 dtb-$(CONFIG_ARCH_K3) +=3D k3-am625-verdin-wifi-yavia.dtb > > > =C2=A0 dtb-$(CONFIG_ARCH_K3) +=3D k3-am62-lp-sk.dtb > > > +dtb-$(CONFIG_ARCH_K3) +=3D k3-am62-phyboard-lyra-gpio-fan.dtbo > >=20 > > Why not call this k3-am625-phyboard-lyra-gpio-fan.dtbo to match the > > name of the base board it applies to better? >=20 > We are able to reuse this overlay for different SoMs (am625 and am62a) th= at > are using the same carrier board (lyra). In that case do you mind calling it k3-am62x-phyboard-*? It would match=20 the existing convention we have for camera sensor overlays that can be=20 applied on SK-AM62, SK-AM62A, SK-AM62P etc. >=20 > Regards, > Wadim >=20 >=20 > >=20 > > Andrew > >=20 > > > =C2=A0 =C2=A0 # Boards with AM62Ax SoC > > > =C2=A0 dtb-$(CONFIG_ARCH_K3) +=3D k3-am62a7-sk.dtb > > > diff --git > > > a/arch/arm64/boot/dts/ti/k3-am62-phyboard-lyra-gpio-fan.dtso > > > b/arch/arm64/boot/dts/ti/k3-am62-phyboard-lyra-gpio-fan.dtso > > > new file mode 100644 > > > index 000000000000..9c05748bdd9d > > > --- /dev/null > > > +++ b/arch/arm64/boot/dts/ti/k3-am62-phyboard-lyra-gpio-fan.dtso > > > @@ -0,0 +1,51 @@ > > > +// SPDX-License-Identifier: GPL-2.0-only OR MIT > > > +/* > > > + * Copyright (C) 2024 PHYTEC America LLC > > > + * Author: Garrett Giordano > > > + */ > > > + > > > +/dts-v1/; > > > +/plugin/; > > > + > > > +#include > > > +#include > > > +#include "k3-pinctrl.h" > > > + > > > +&{/} { > > > +=C2=A0=C2=A0=C2=A0 fan: gpio-fan { > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 compatible =3D "gpio-fan"; > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 gpio-fan,speed-map =3D <0= 0 8600 1>; > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 gpios =3D <&main_gpio0 40= GPIO_ACTIVE_LOW>; > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 #cooling-cells =3D <2>; > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pinctrl-names =3D "defaul= t"; > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pinctrl-0 =3D <&gpio_fan_= pins_default>; > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 status =3D "okay"; > > > +=C2=A0=C2=A0=C2=A0 }; > > > +}; > > > + > > > +&main_pmx0 { > > > +=C2=A0=C2=A0=C2=A0 gpio_fan_pins_default: gpio-fan-default-pins { > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pinctrl-single,pins =3D < > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 A= M62X_IOPAD(0x0a4, PIN_OUTPUT, 7) /* (M22) > > > GPMC0_DIR.GPIO0_40 */ > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 >; > > > +=C2=A0=C2=A0=C2=A0 }; > > > +}; > > > + > > > +&thermal_zones { > > > +=C2=A0=C2=A0=C2=A0 main0_thermal: main0-thermal { > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 trips { > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 m= ain0_thermal_trip0: main0-thermal-trip { > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 temperature =3D <65000>;=C2=A0 /* millicelsius */ > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 hysteresis =3D <2000>;=C2=A0=C2=A0=C2=A0 /* millic= elsius */ > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 type =3D "active"; > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 }; > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 }; > > > + > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 cooling-maps { > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 m= ap0 { > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 trip =3D <&main0_thermal_trip0>; > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 cooling-device =3D <&fan THERMAL_NO_LIMIT > > > THERMAL_NO_LIMIT>; > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 }; > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 }; > > > +=C2=A0=C2=A0=C2=A0 }; > > > +}; > >=20 > > _______________________________________________ > > linux-arm-kernel mailing list > > linux-arm-kernel@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --=20 Thanks, Jai GPG Fingerprint: 4DE0 D818 E5D5 75E8 D45A AFC5 43DE 91F9 249A 7145 --nyrrqv4d76o3v3xw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEETeDYGOXVdejUWq/FQ96R+SSacUUFAmXEgTYACgkQQ96R+SSa cUUexA/8CbWipRfeSHq2u7+K+hYoyjV2o/C3gUS8RfzLQyZvl9Ey8mODmJpsTZH2 YRBFvj5RT6w7foqhM1D0eWTkQR/Adm9Zr+WX5kZ7EB7A83pUNqDAkV322u5rV+Fv Yk3Lh+Jd7aBgKuEGrBUjsQrX4EggOgB6L8npNhcAu7TYHG2Vc5Ymqs6LNJxm3LO6 MVmS0zN+1/aO6Yb/vfucnknYidEQPpJkEeomSxvTubNpFPPzlRdbPZ94ywmuAD9o oJeSEnvIRCZgP9uyVFnUtzI4J8wfuL9rOXteinEOzOaxValZ2Hlqvi0ICs0/Wlic LSv6NKmyhCuakGMuoCcgG0AK0dbV96rHYoB5tUcfSZgrGQeDtBJgr6djy9Ah22zy JUQ+uRya/r4Xk1xoCD4ZN4asQo8+VV6yVqT3xAP5Hd3PFJhUHGbeLfOHdPVUPsa/ AA7r7zl35A1+CTCAlzwf8HxcWtC4/j+r4y7uLoCQf8UxP2wP1h6vaWZPQ9AA3+Ps Wl4OIYjCa9rlEGG6nU4cIkfuaHQYhrHuJ4qKUeaQlnFpro3Z+/5/wR0y2eKGRDIA Xfwi/kuB+/e3d2jF6wDRbQh/uwtNY2v5L1hC86exs0hrnOhGjWDcYT1xb9bh1iNW CRxo6dsLh7J/ykJMmh32idfoD/mOvCDHx9NdssXVjaTdSTrzdiA= =0Ili -----END PGP SIGNATURE----- --nyrrqv4d76o3v3xw--