Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp363371rdb; Tue, 16 Jan 2024 02:45:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IGhz3LmTHDUgc9Oj4hf2hOnY9DqiUinBPVoK8P0Yfam42DcrdRVUGENrfetF07tTqAP2ISM X-Received: by 2002:a17:90a:598f:b0:28b:d2f9:c421 with SMTP id l15-20020a17090a598f00b0028bd2f9c421mr3649519pji.7.1705401916007; Tue, 16 Jan 2024 02:45:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705401915; cv=none; d=google.com; s=arc-20160816; b=xg06kcAoUM5piWqf6Yfco2/14HYP7sns7BRVqM9tlSn8h3FIaSAUsisrni6syFqap4 pQGrjakDZueYheey9B0OBxSyxQmRrYnUdP85qa8t2zpnnIZllHPFOiEXQ4vt1eBcd3Mr bzdj0An4c8A5Dznq7usSS0vaFr96+noM7w+uxnmFKUcf2xPodA7mNkfU/vAvpYLBWiHv 9Y3qbxd8MkUv39psKERItf+mgSGPUG7PGpsqBcMiv2StbaBjFaA+RRHNOkGm9A4ZywOM Ogs/IA7FeAcZ/hXzn5fUIm+SklzDW/LRyQTijyKm1lYZWpPgpT+RUCyxHHnrYG7f5huJ +36g== ARC-Message-Signature: i=1; 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=D3l633a+p41hO4v772l/u+bf1WlZ6As2zOfQoerepBA=; fh=4u6skDzLcufufI96n59ac3tlMjW95EcYtamp8Xcu+as=; b=gqceBJ9ykSjbHcRftpbamLfsX3Kx6qg5q8BmptvcL9yQRqgoH+riiWwstMkYZN612O Xg9XxtvOELTUgro9Swt+Zw6iPtvwnxRJUzIr8PqcVhOCLuTI3nMLeZUXxKLmQKHjq2X5 0CCt/NXEmpRbcjSaQJtW22s45pq4i7PkOtNzMceqEz+sYyb1lgq6CiFR2nlVVit7ULSD vOXUUtDL/GUwLfWfWSZy7E0kxJmwQL3GY6t0RlZXnlX+o5mO2GqupyiPc8jiRrvlYUU6 xoMU4znBPAFI7IaWKvybbB39fybkOZpbFkXIzVtSW2Tqxzn61B2ypHJ4W+zUF7vriOcn r97w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=m1CJZ8GS; spf=pass (google.com: domain of linux-kernel+bounces-27263-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27263-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id np5-20020a17090b4c4500b0028e865ba764si271757pjb.64.2024.01.16.02.45.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 02:45:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27263-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=m1CJZ8GS; spf=pass (google.com: domain of linux-kernel+bounces-27263-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27263-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 964942850E8 for ; Tue, 16 Jan 2024 10:45:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE7A41759B; Tue, 16 Jan 2024 10:45:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="m1CJZ8GS" Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (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 C6A1013FEC; Tue, 16 Jan 2024 10:45:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1705401907; x=1736937907; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=jHGGpGh4/MgHAVgMxsA0r7UyDWvPUjd2U3iqvzqI5I4=; b=m1CJZ8GSAXQo7fG2xzwArFMUXbL5StM7m4ry7iEW9gL/uJAMt5e1n+5F HFxNqhCfFUg/9WgpxTlflPjSqxHaTqW9m8GBFla/lxh3ax0l/VW+/4lSo teueSZAPKgpswuoZrtackdjzeosdZfvGE91/65gkYAn1jhJBJK/K+o78l yl4SiSC+5SPTvvtOoOc+inIyyxD4SXEnLWr9+6IM6hDev7KRvaiKVg80U UwSoS/l/nfupEk/bYgqm3AOKhZM4pgUFYLbSpvADdGJ1Lx/8mnvdoRMpf M3efYNRYC/3loEMkeuEJp8SRjCOOw5SyEnVR9M0UPMuohLTqJgP9qw1tZ Q==; X-CSE-ConnectionGUID: OYl/i3GiRI22Pg4Ra+XJtQ== X-CSE-MsgGUID: zKuPVUJwS3+E6LjSAt2uZA== X-IronPort-AV: E=Sophos;i="6.04,198,1695711600"; d="asc'?scan'208";a="14823470" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 16 Jan 2024 03:45:03 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 16 Jan 2024 03:44:49 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Tue, 16 Jan 2024 03:44:46 -0700 Date: Tue, 16 Jan 2024 10:44:10 +0000 From: Conor Dooley To: Emil Renner Berthing CC: Nylon Chen , , , , , , , , , , , , , , , Subject: Re: [v6 1/3] riscv: dts: sifive: unleashed/unmatched: Remove PWM controlled LED's active-low properties Message-ID: <20240116-custard-drew-9a02e83d538a@wendy> References: <20240116041054.11641-1-nylon.chen@sifive.com> <20240116041054.11641-2-nylon.chen@sifive.com> 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="IllJYSRTwnK6qQf5" Content-Disposition: inline In-Reply-To: --IllJYSRTwnK6qQf5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 16, 2024 at 02:20:57AM -0800, Emil Renner Berthing wrote: > Nylon Chen wrote: > > This removes the active-low properties of the PWM-controlled LEDs in > > the HiFive Unmatched device tree. > > > > The reference is hifive-unleashed-a00.pdf[0] and hifive-unmatched-schem= atics-v3.pdf[1]. > > > > Link: https://sifive.cdn.prismic.io/sifive/c52a8e32-05ce-4aaf-95c8-7bf8= 453f8698_hifive-unleashed-a00-schematics-1.pdf [0] > > Link: https://sifive.cdn.prismic.io/sifive/6a06d6c0-6e66-49b5-8e9e-e68c= e76f4192_hifive-unmatched-schematics-v3.pdf [1] > > > > Acked-by: Conor Dooley > > Reviewed-by: Conor Dooley > > Co-developed-by: Zong Li > > Signed-off-by: Zong Li > > Co-developed-by: Vincent Chen > > Signed-off-by: Vincent Chen > > Signed-off-by: Nylon Chen > > --- > > arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts | 8 ++++---- > > arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts | 12 ++++-------- > > 2 files changed, 8 insertions(+), 12 deletions(-) > > > > diff --git a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts b/arch= /riscv/boot/dts/sifive/hifive-unleashed-a00.dts > > index 900a50526d77..11e7ac1c54bb 100644 > > --- a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts > > +++ b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts > > @@ -49,7 +49,7 @@ led-controller { > > compatible =3D "pwm-leds"; > > > > led-d1 { > > - pwms =3D <&pwm0 0 7812500 PWM_POLARITY_INVERTED>; > > + pwms =3D <&pwm0 0 7812500 0>; > > active-low; > > color =3D ; > > max-brightness =3D <255>; > > @@ -57,7 +57,7 @@ led-d1 { > > }; > > > > led-d2 { > > - pwms =3D <&pwm0 1 7812500 PWM_POLARITY_INVERTED>; > > + pwms =3D <&pwm0 1 7812500 0>; > > active-low; > > color =3D ; > > max-brightness =3D <255>; > > @@ -65,7 +65,7 @@ led-d2 { > > }; > > > > led-d3 { > > - pwms =3D <&pwm0 2 7812500 PWM_POLARITY_INVERTED>; > > + pwms =3D <&pwm0 2 7812500 0>; > > active-low; > > color =3D ; > > max-brightness =3D <255>; > > @@ -73,7 +73,7 @@ led-d3 { > > }; > > > > led-d4 { > > - pwms =3D <&pwm0 3 7812500 PWM_POLARITY_INVERTED>; > > + pwms =3D <&pwm0 3 7812500 0>; > > active-low; > > color =3D ; > > max-brightness =3D <255>; > > diff --git a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts b/arch= /riscv/boot/dts/sifive/hifive-unmatched-a00.dts > > index 07387f9c135c..b328ee80693f 100644 > > --- a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts > > +++ b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts > > @@ -51,8 +51,7 @@ led-controller-1 { > > compatible =3D "pwm-leds"; > > > > led-d12 { > > - pwms =3D <&pwm0 0 7812500 PWM_POLARITY_INVERTED>; > > - active-low; > > + pwms =3D <&pwm0 0 7812500 0>; >=20 > Here you remove the active-low property, but you don't above. I'm not sure > what's the right thing to do, but I would have expected the same change i= n both > places. Just to note, the original version of this that I acked/reviewed removed the property from all led nodes. I then apparently didn't look closely enough at v5 and left acked/reviewed tags on it too. It did not remove the active-low properties but this change was not mentioned in the changelog for the series. D4 on the unleashed and D12 on the unmatched have the same circuitry (modulo the placement of the series resistor) so I don't get why the property is being removed from only D12. I rescind my ack/review until that is clarified and/or fixed. Thanks, Conor. > > color =3D ; > > max-brightness =3D <255>; > > label =3D "d12"; > > @@ -68,20 +67,17 @@ multi-led { > > label =3D "d2"; > > > > led-red { > > - pwms =3D <&pwm0 2 7812500 PWM_POLARITY_INVERTED>; > > - active-low; > > + pwms =3D <&pwm0 2 7812500 0>; > > color =3D ; > > }; > > > > led-green { > > - pwms =3D <&pwm0 1 7812500 PWM_POLARITY_INVERTED>; > > - active-low; > > + pwms =3D <&pwm0 1 7812500 0>; > > color =3D ; > > }; > > > > led-blue { > > - pwms =3D <&pwm0 3 7812500 PWM_POLARITY_INVERTED>; > > - active-low; > > + pwms =3D <&pwm0 3 7812500 0>; > > color =3D ; > > }; > > }; > > -- > > 2.42.0 > > > > > > _______________________________________________ > > linux-riscv mailing list > > linux-riscv@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/linux-riscv --IllJYSRTwnK6qQf5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZaZd+QAKCRB4tDGHoIJi 0ojCAP9YNgYC4jBsQgF0fIM37HjeKwwrAxp5ishwLKUKa9BKYAD9HCzhM/N+Tc7h NaSisFJ74M5IGYP0aZCDYgCf1EHv5gE= =Qjx9 -----END PGP SIGNATURE----- --IllJYSRTwnK6qQf5--