Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp354754rdb; Tue, 16 Jan 2024 02:21:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IESGFbIKd7ndTThjuChPF7savD1JeTufImuy3JuZ8YDo+YGPtJOaw5VAmUxRHjm81NWxiPD X-Received: by 2002:a05:6214:5245:b0:681:595f:7094 with SMTP id kf5-20020a056214524500b00681595f7094mr4522947qvb.23.1705400478544; Tue, 16 Jan 2024 02:21:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705400478; cv=none; d=google.com; s=arc-20160816; b=nNmLoRKiIVzpTVlYfywBsR3NCxbz2gi/qyoWmqPnww4bYllTAIKsglu0+pQ87xBtMN Yw+VXz351UFr4daij/nyTAaJij3/rC+5YfZynmxED5c39lP65debLQGHtPQNA+EOV3X/ 1D1aMDyrr3S5H8w4l6DFukj3i+x2A8Dt22OiGnz/LNW9YKqQRFCtptSq3o/dBPjHGxTX FlybAMfh2/vmaXgRe5ij4CjPHbvJw3is7zcRnBPIViyzp7yRrgUQeLovC4/4scOfQ2fI XkQmzyGBuWJzr5kpWySRNwJeS5HQl1wTP27JcKQnxhNUZvu/eJbeHs9+ORVKBTNWaDau g1LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:from :dkim-signature; bh=xU+S+uXFFj2cwv3uk43aNu2KbGErrv7KCMlpZ+iS0ZQ=; fh=4kKrN0YbtMuOEAi/5up8C8Iy+Fc3UjNYDofgi3Kz2wU=; b=TwKWzxMiZWMMn+QZvo4SWcHw5pYU6tDbq72zHvRs0FaZXNUIwEyycfG/21F2FTLOUR XlDptt5+zuiOSSXhIExW2/o+cMfaBNExrNLILveot6lUrv5OTl3ech0zpuPcKCCil7Wk 2iHNgFetE8HHeVxsdXMRIsw/hOd0qJoIP+dhoEaPTJGqaW9r1amEpsbRlQH+wN1I8FUd PtWC7UGf2KRKypw/jEEY86BO64MP8Gf/3jovntfYPxBmLcnheCBTFGgykvz8e+zL+iZ7 s/P/GIGHY4DPrPSGKxXapZ4CvEte5LdBE8V+bs86uuKwniPTAopgkfn+pZcdVeyPoUw1 y1ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=kpHNPqFe; spf=pass (google.com: domain of linux-kernel+bounces-27245-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27245-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u16-20020a0cb410000000b0067f886473besi9547039qve.76.2024.01.16.02.21.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 02:21:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27245-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=kpHNPqFe; spf=pass (google.com: domain of linux-kernel+bounces-27245-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27245-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 419451C22F1F for ; Tue, 16 Jan 2024 10:21:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0387313AC2; Tue, 16 Jan 2024 10:21:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="kpHNPqFe" Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) (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 4996D134C9 for ; Tue, 16 Jan 2024 10:21:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canonical.com Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id D635A3F273 for ; Tue, 16 Jan 2024 10:20:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1705400459; bh=xU+S+uXFFj2cwv3uk43aNu2KbGErrv7KCMlpZ+iS0ZQ=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=kpHNPqFejZke64zOWf2zxi+lbiuNCMCJojW0Ct0GdDMO+82GoqKeG34bOH8oxcKqK 6My5kg/DyaEhpprQPMI7WVQ2LSGB6iIGFdld7SrlG30lCDPhGfhD2jL7k20ryjWXCK czdIe8uq6lPuyU48nRCrsEhOKdySM/lcO86X4+1LPXnDYI9WpG6xRuxSyIck0Jz/na P7ZtEsTF7Jrn+zx/0HNhBEosloaR0mcY6YUEfLh1FdUy2dOzWvvEzHT4gw8PdJCjon IiOkT02FbqdFkzt4eSsnDUUWh9OvD+hzR1tIOS71JTqDgj6O5PPm78UfxdB0ACHxxZ oL2Osk49yWyWQ== Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-7835bb86ca6so356446085a.2 for ; Tue, 16 Jan 2024 02:20:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705400458; x=1706005258; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xU+S+uXFFj2cwv3uk43aNu2KbGErrv7KCMlpZ+iS0ZQ=; b=TZA57r+O7WQEvZRdedolu5TD1WmOcs5GUNMSsPWT2cucQi0+pD8a/336RiNRx9f/aX 1N0VQ9pgG/hCwzXc4rkRkZM2j3fRdpzV17xNcDmRaQnLDm770vVKGyAWpSuiLvHTJIn7 ZoaYsX7rPYa8y9bh6npD+H+lyZ+C4tJ1JzwT7q9+qOXGsA+xOvLo8fGD2PWBbYGHgv7O Pcea2P1wMeJ5QhalK09TfHdZWK+k6mNrMFxNPK9dPuauliQYdkTJgtW/rn9fWytxAQtn rL1nlCY820Jv4O7vOw9fPOEU2avZ7BO3zw87e402dztjHk2ZTlrKET63WKCX09/l01dL UPCQ== X-Gm-Message-State: AOJu0YxxK7zA+jUJG34BS7yp4wMtiBcFNQ7c6xkwg/xUkBSOvHm4vKpP ZQe9GZgmXBm2K7IB0ouku98UgCUYSUBss2Of4xvzyrsyU4lmTQicuThXHaysxndy81w+9uTRBDB qW+wU5CgRn7qfKHndgp1zZtAVh4jGS3x7/McztfZmlzIne2kttnSuX0eFWm/pGgTT X-Received: by 2002:a05:622a:314:b0:42a:9f3:f98f with SMTP id q20-20020a05622a031400b0042a09f3f98fmr59858qtw.31.1705400458723; Tue, 16 Jan 2024 02:20:58 -0800 (PST) X-Received: by 2002:a05:622a:314:b0:42a:9f3:f98f with SMTP id q20-20020a05622a031400b0042a09f3f98fmr59852qtw.31.1705400458380; Tue, 16 Jan 2024 02:20:58 -0800 (PST) Received: from 348282803490 named unknown by gmailapi.google.com with HTTPREST; Tue, 16 Jan 2024 02:20:57 -0800 From: Emil Renner Berthing In-Reply-To: <20240116041054.11641-2-nylon.chen@sifive.com> 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 Date: Tue, 16 Jan 2024 02:20:57 -0800 Message-ID: Subject: Re: [v6 1/3] riscv: dts: sifive: unleashed/unmatched: Remove PWM controlled LED's active-low properties To: Nylon Chen , 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 Cc: 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, Conor Dooley Content-Type: text/plain; charset="UTF-8" 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-schematics-v3.pdf[1]. > > Link: https://sifive.cdn.prismic.io/sifive/c52a8e32-05ce-4aaf-95c8-7bf8453f8698_hifive-unleashed-a00-schematics-1.pdf [0] > Link: https://sifive.cdn.prismic.io/sifive/6a06d6c0-6e66-49b5-8e9e-e68ce76f4192_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 = "pwm-leds"; > > led-d1 { > - pwms = <&pwm0 0 7812500 PWM_POLARITY_INVERTED>; > + pwms = <&pwm0 0 7812500 0>; > active-low; > color = ; > max-brightness = <255>; > @@ -57,7 +57,7 @@ led-d1 { > }; > > led-d2 { > - pwms = <&pwm0 1 7812500 PWM_POLARITY_INVERTED>; > + pwms = <&pwm0 1 7812500 0>; > active-low; > color = ; > max-brightness = <255>; > @@ -65,7 +65,7 @@ led-d2 { > }; > > led-d3 { > - pwms = <&pwm0 2 7812500 PWM_POLARITY_INVERTED>; > + pwms = <&pwm0 2 7812500 0>; > active-low; > color = ; > max-brightness = <255>; > @@ -73,7 +73,7 @@ led-d3 { > }; > > led-d4 { > - pwms = <&pwm0 3 7812500 PWM_POLARITY_INVERTED>; > + pwms = <&pwm0 3 7812500 0>; > active-low; > color = ; > max-brightness = <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 = "pwm-leds"; > > led-d12 { > - pwms = <&pwm0 0 7812500 PWM_POLARITY_INVERTED>; > - active-low; > + pwms = <&pwm0 0 7812500 0>; 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 in both places. /Emil > color = ; > max-brightness = <255>; > label = "d12"; > @@ -68,20 +67,17 @@ multi-led { > label = "d2"; > > led-red { > - pwms = <&pwm0 2 7812500 PWM_POLARITY_INVERTED>; > - active-low; > + pwms = <&pwm0 2 7812500 0>; > color = ; > }; > > led-green { > - pwms = <&pwm0 1 7812500 PWM_POLARITY_INVERTED>; > - active-low; > + pwms = <&pwm0 1 7812500 0>; > color = ; > }; > > led-blue { > - pwms = <&pwm0 3 7812500 PWM_POLARITY_INVERTED>; > - active-low; > + pwms = <&pwm0 3 7812500 0>; > color = ; > }; > }; > -- > 2.42.0 > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv