Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp214292rdb; Tue, 16 Jan 2024 22:37:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4N+fsZggTAqP0yuSRJ6FWERolEIF8Js+etCkDLFrp8HZUCHEGbkdKUFXreFbpmywot9qO X-Received: by 2002:a05:6808:2190:b0:3bc:2641:2beb with SMTP id be16-20020a056808219000b003bc26412bebmr9389624oib.30.1705473473881; Tue, 16 Jan 2024 22:37:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705473473; cv=pass; d=google.com; s=arc-20160816; b=dyqQlN+10ys87RaGZ0iZOsfNp3gxISzb0DNdH1N03izYr3eIWX+O+oNYmXg3ibk/H0 fJxdxJSTzTGm+M4Khsq5hHsNSOVZmtdGovOxPxlGVzAfG0V7SURNWxSF/n9/Qi3XAPcH 4GrmA6+VHmhJ/cm3CX3cTrXfJdCnPiKN9M3C+MvhLd9wZaTZ5xi90P5Z5LUP4cOi8qMa 39iEIuzHV/HYs4y95WXcaxWHyUgHJRYKOWamVd9k89Lk+HciwMhb8Z9xE9UYkDsn4Fzt 0N6ejsUDeQxJTeHqStwVZhYGluBkC4yiecgfB6KrL4FdN0Nf42AU6hw6yxE17RaTLq7Y 4seQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=3MjS89mx0sQXy2eTiKmRoWh0TgEsc77yp3/tG8fkBm0=; fh=U9nsXyowXdSGMer8pekn9MmBvBHZNsTMIXI7E9duiEQ=; b=W5gOvpaicS0w3prlPQ+GXYDc1VdBQlQEaqVccf8Gy2eQQ8x3UAyS97sG4vXlKsXXz8 zjypHhMuI9D2N+vPaeCTpVFD8TOb03Ll0pLG4WLMQ9GSZicGILFn092Ko93SyeijNpvq YcRnmmuQfECLdHDjbVPmjxDVvfd41VubC9XHsGKnInYlvGHYq838ta4Ftm1P5bh9WHUm qVpw7ARmDBFVByomPKr5bCCRWAXrKXQJ95lQid1vKJxKYHNvtIlH0mzUBuC67Op48/by QFefRapy+nOMOxXC2uvx5qGd16kYWMeyKkfhfA17vp5+0FSZi+W6iFDiKtK3wwepaaZv ufsA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=hgBxX9gg; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: domain of linux-kernel+bounces-28574-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28574-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.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 ca11-20020a056a00418b00b006d9974f0caesi1030919pfb.54.2024.01.16.22.37.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 22:37:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-28574-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=@sifive.com header.s=google header.b=hgBxX9gg; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: domain of linux-kernel+bounces-28574-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28574-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.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 811B62813CC for ; Wed, 17 Jan 2024 06:37:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98BD68F54; Wed, 17 Jan 2024 06:37:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="hgBxX9gg" Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com [209.85.219.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CC170BE4E for ; Wed, 17 Jan 2024 06:37:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705473464; cv=none; b=rwn1GAVuioxui1g/N9M33pcnEV2ndEQhzPWv3zjyDcSLfzI/P3xJDuwDg1jLtTltgwoX2ULIWVvhWyga2t7bxfETdfzvGdBnXv4r785b8K7kTPx0AdjdB+b5sR0//mNVwARVQuVTQ0ZXc9kcSQXMobDX1h3JkeASCz63Wt5e4cM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705473464; c=relaxed/simple; bh=LTeE/mqnWiVhvUUWjvdKUrRjy41JL2x7cpg5UntPi/w=; h=Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Google-Smtp-Source:X-Received:MIME-Version: References:In-Reply-To:From:Date:Message-ID:Subject:To:Cc: Content-Type:Content-Transfer-Encoding; b=iU4j0HD5J7Q18NlnEQnrpjziQD6RGNioivpFewyoTPmysgevMgwAN0bzifW/28Z9VZVPxBwI0zoFBR2XsgBaecspVL0/mCLKZXf3rJsWNb1yBG7eTX/F35XAEw3x9+pf0HxpNTiv9tDZ6nu6lFLYafqLM/TPWht0m3xgLVEkLUM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com; spf=pass smtp.mailfrom=sifive.com; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b=hgBxX9gg; arc=none smtp.client-ip=209.85.219.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sifive.com Received: by mail-yb1-f170.google.com with SMTP id 3f1490d57ef6-dc240b767acso88600276.3 for ; Tue, 16 Jan 2024 22:37:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1705473461; x=1706078261; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=3MjS89mx0sQXy2eTiKmRoWh0TgEsc77yp3/tG8fkBm0=; b=hgBxX9ggpFPAjQaLWUzITDG+iFQ0/t5S7zqEW3eIun443YWPGac9ikSbPDpxRCAXWc ypmk/vcG7cmQTIbcrZBXxmNT2QQZcC1M+jWAzLEVpMWpjBmSCmFUKPSb8DWq/e081FWB FRK9jMJ1DSLn3NFdld3Kj6PGRdIDBBVmOPDahNr01MFac2lHM5r8RjASCiVfG3zrO+wG XefQ6fCBrFjX/aFmLKKv6gywp88DhGpVCncpZQYZ+AOOOVMdT5HM6nu5/mqELJSpnZM6 upefClyn35gMHaYPX6NtssZvLLCL7JTaC9MfGfc7/aBokk+cXKnufyPMAzOEAfZTFnvI L+Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705473461; x=1706078261; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3MjS89mx0sQXy2eTiKmRoWh0TgEsc77yp3/tG8fkBm0=; b=G4eAfj7G4P2P/ajfet5ubDNeXLNiuVZFkPra2wlDwt4IbwZM+FOCiPftB1RdnkaRbp iwHRChQc3TtaMYaK6itNtoFGM/9BGwjH6B3yhMoPaFPsexEEbqG1voJJOBGd07FMuJAj u3M9xGpJ9T0YWjw9sJiO9/tUVCzFg5unTfaYv6RtIirLLNx0tCNhmmi04YU+92wj+S0t hsIB1zHbHdabl9RYTBvPuPP0Qcrq2xAYxpwnDk2oSCZXYtkDi5Naqs6gj6VFfmKqgYDY bxrEJxQzlrKnxgKgft62Vpb1ShTvc/zAJ8lGq9AIh5GycYvxUt7TJwK6wO7OiDmK/ygo xB8A== X-Gm-Message-State: AOJu0Yy4spWs/ZKQuhk0ULDrLgH3TjLkB8mQJcsEKxOHBsSBZS+WxRGU A71U2VmRTy149Wc3NqkCgspF4isg4/LaxJMGV0/hraLYh0Y0uQ== X-Received: by 2002:a25:ab52:0:b0:dc2:3bb2:61 with SMTP id u76-20020a25ab52000000b00dc23bb20061mr367501ybi.90.1705473461632; Tue, 16 Jan 2024 22:37:41 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240116041054.11641-1-nylon.chen@sifive.com> <20240116041054.11641-2-nylon.chen@sifive.com> <20240116-custard-drew-9a02e83d538a@wendy> In-Reply-To: <20240116-custard-drew-9a02e83d538a@wendy> From: Nylon Chen Date: Wed, 17 Jan 2024 14:37:30 +0800 Message-ID: Subject: Re: [v6 1/3] riscv: dts: sifive: unleashed/unmatched: Remove PWM controlled LED's active-low properties To: Conor Dooley Cc: Emil Renner Berthing , paul.walmsley@sifive.com, palmer@dabbelt.com, conor+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, u.kleine-koenig@pengutronix.de, thierry.reding@gmail.com, aou@eecs.berkeley.edu, zong.li@sifve.com, vincent.chen@sifive.com, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, nylon7717@gmail.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Conor Dooley =E6=96=BC 2024=E5=B9=B41=E6=9C=88= 16=E6=97=A5 =E9=80=B1=E4=BA=8C =E4=B8=8B=E5=8D=886:45=E5=AF=AB=E9=81=93=EF= =BC=9A > > 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-sch= ematics-v3.pdf[1]. > > > > > > Link: https://sifive.cdn.prismic.io/sifive/c52a8e32-05ce-4aaf-95c8-7b= f8453f8698_hifive-unleashed-a00-schematics-1.pdf [0] > > > Link: https://sifive.cdn.prismic.io/sifive/6a06d6c0-6e66-49b5-8e9e-e6= 8ce76f4192_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/ar= ch/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/ar= ch/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>; > > Hi Emil and Conor, thanks for your feedback. > > > > Here you remove the active-low property, but you don't above. I'm not s= ure > > what's the right thing to do, but I would have expected the same change= in both > > places. > For this patch, all "active-low" should be deleted. This is my mistake. I will fix it in the next version. > > > 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. Sorry Conor, I apologize for any confusion I may have caused. > > 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_IN= VERTED>; > > > - active-low; > > > + pwms =3D <&pwm0 2 7812500 0>; > > > color =3D ; > > > }; > > > > > > led-green { > > > - pwms =3D <&pwm0 1 7812500 PWM_POLARITY_IN= VERTED>; > > > - active-low; > > > + pwms =3D <&pwm0 1 7812500 0>; > > > color =3D ; > > > }; > > > > > > led-blue { > > > - pwms =3D <&pwm0 3 7812500 PWM_POLARITY_IN= VERTED>; > > > - 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