From nobody Sun Sep 14 00:12:18 2025 Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) (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 3280D248F50 for ; Thu, 29 May 2025 03:43:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748490191; cv=none; b=rN4onolupbNMe06K0MyFshq6V3TBSSDYv6r24pk27YoSMpu3mqUyJsRyW4Nr/1QLq/fsSmBh4JQm+tCIti9appXc4ej+/PH/6FQTJPLXKiAsKi9czUQy45zhPLoKeXkVPjoFoxeY6GHyMi6/gc63BR4OgZszVvUSKNux97mbw1M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748490191; c=relaxed/simple; bh=plbpc31rVrOD0KMkWiMy9DSCysG2bPp4EWpOgbNVk+g=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=p+U3GPYULl5ZfpvXm49r4VHKamlwI3UnGxibPvVKJRS5XAenc1O2fuTP3grxZaSV+CepbDsIqLrYbpzDd5Hmqg7c5C+9aEZ29DaBS+ZzJXxmpAPSQrS0g+UcSOxEcP8j+VnS2CbhptzNQZ3rgtqp8ksuZgcXbc43lM2LDM5eEUY= 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=h83nGkiI; arc=none smtp.client-ip=209.85.214.195 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="h83nGkiI" Received: by mail-pl1-f195.google.com with SMTP id d9443c01a7336-234ade5a819so4910925ad.1 for ; Wed, 28 May 2025 20:43:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1748490189; x=1749094989; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=l3iCEA8tjYiThU7Rin4dKsTFv6XsSOzMIb0/FuGpw2E=; b=h83nGkiIai+kiQbWT+h25J1qPw6qQULqRx1CHFZNH2EAYzUYnFrBPkRBqZcynjt5zX sWunZE4UiFm7avBLJDW8AydWmHgXYJhaUlAj5N+N1pcBl/3b+HKpueujL97rCVkGtmqx PpCvmYS/mlBTPLoSRJrFpXc6ywGb6aLTvpiuxIenC0AVd38SjDpx+lxXHbom7h5OCQgP 4IbRErIZNQw9vio4jCPw7lZagHEorEY33Mxsout32e93lzNtunfuMl5rX4Vyi4O7BgEj inx8wQ/rF/8MnZdf8apVvRgflW2KYIrUrAR0uCpa6pW83cCaLNa+YDEB2EMqwW1u1NrH E1Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748490189; x=1749094989; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=l3iCEA8tjYiThU7Rin4dKsTFv6XsSOzMIb0/FuGpw2E=; b=wILF7ygDc3n1/TDWjAv2rzwy+zStjbjIZhOU0Q0yMP/+n9FmsELdvi8Qxa5/JEgGnv BFUUmVQGWwGwiZB1omb4CJQhoONWC01Z8wXilvNZoCKKwpAB4V3yn0d7f6+UHsX8Eao5 dWaUBlDRsPVU8FtAkOuvBbMsBr24zpwSgDBl0Xh+X6RaPPgDBB65hJ4WrXtSfDP1N9de hpIMLqgHdVoyO77upzNcxeEysdAxrvl/kVq6eLabsVz9xQbJhnTzG/VSVQDb00Sv0i6S CEH3sms27oobY7xcYGLoojLiLZtQjF/35Ksma71FNbhdLbfObzXjFL+Qu1xPEiq8tk5a mRAw== X-Forwarded-Encrypted: i=1; AJvYcCUhKBG2Kf+ZwaMTeTk2lMKalYEtfqegkw9/y3218H3LEHA2vTR/umtWLyg7TjSRds7pdde8Nw2BrGDYfQ0=@vger.kernel.org X-Gm-Message-State: AOJu0Yz7Yc32DArvq4+LjDKvbT99x+nNaVYXJXUB7JENTGDAeICnuG9u 0RHr/wKGqKk6efcBUuzoeRKWF4LkOs4Gh0K8SzilVkFR2wGo9Mex4VBJ1FKBMcc7zLc= X-Gm-Gg: ASbGncv1AuAPZkdYcF7lLLrUnN/synHpnMMojsYAKTxLwkioHf7Z4tRzg8EIpgakGtD sX8kSmFBWifakn6rVgvUki2ZJYKZDW33gvvkyFWvlqPW2WnpFbjuT688o9Hgkj8wlo7EyHnNG0w 4teOAjCmCJ1QcGp12XODAe9R2LXQ6ux0qWZ79Be1h0ENfa6vgbQ3L1x9dOjWPhnEyLq+NQxbGO2 jBwW6gMkFPHGJ5V9bxLxYGS0h3r7FUxochr7+SiO9E0sRaD93FrnWEw6yUtl/UBCeN7PAg+JQgU UdHwVOv7XzB/3AUREp5at+CvnZ4Lnh0018m9rA1V7HVa4gp1a4eCK0Vs9p+1cM00C5LV0Bg/V6r 3J/DvWhKzEJRLXuQlTG/IrMs= X-Google-Smtp-Source: AGHT+IFstNcuVP7w227xN/FD2B4edFkQaofadttJziWx+bPq+XVZnP4+BnZFowLiEIahUkjeG851Gw== X-Received: by 2002:a17:902:ceca:b0:234:cc7c:d2fc with SMTP id d9443c01a7336-234cc7cd589mr68462635ad.27.1748490189449; Wed, 28 May 2025 20:43:09 -0700 (PDT) Received: from hsinchu36-syssw02.internal.sifive.com ([210.176.154.34]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-23506bd92c7sm3425905ad.62.2025.05.28.20.43.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 May 2025 20:43:08 -0700 (PDT) From: Nylon Chen To: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Samuel Holland , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org, Nylon Chen , Conor Dooley , Vincent Chen Subject: [PATCH v15 1/3] riscv: dts: sifive: unleashed/unmatched: Remove PWM controlled LED's active-low properties Date: Thu, 29 May 2025 11:53:39 +0800 Message-Id: <20250529035341.51736-2-nylon.chen@sifive.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250529035341.51736-1-nylon.chen@sifive.com> References: <20250529035341.51736-1-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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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-schematic= s-v3.pdf[1]. Link: https://sifive.cdn.prismic.io/sifive/c52a8e32-05ce-4aaf-95c8-7bf8453f= 8698_hifive-unleashed-a00-schematics-1.pdf [0] Link: https://sifive.cdn.prismic.io/sifive/6a06d6c0-6e66-49b5-8e9e-e68ce76f= 4192_hifive-unmatched-schematics-v3.pdf [1] Acked-by: Conor Dooley Reviewed-by: Conor Dooley Signed-off-by: Vincent Chen Signed-off-by: Nylon Chen --- arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts | 12 ++++-------- arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts | 12 ++++-------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts b/arch/ris= cv/boot/dts/sifive/hifive-unleashed-a00.dts index 900a50526d77..06731b8c7bc3 100644 --- a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts +++ b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts @@ -49,32 +49,28 @@ led-controller { compatible =3D "pwm-leds"; =20 led-d1 { - pwms =3D <&pwm0 0 7812500 PWM_POLARITY_INVERTED>; - active-low; + pwms =3D <&pwm0 0 7812500 0>; color =3D ; max-brightness =3D <255>; label =3D "d1"; }; =20 led-d2 { - pwms =3D <&pwm0 1 7812500 PWM_POLARITY_INVERTED>; - active-low; + pwms =3D <&pwm0 1 7812500 0>; color =3D ; max-brightness =3D <255>; label =3D "d2"; }; =20 led-d3 { - pwms =3D <&pwm0 2 7812500 PWM_POLARITY_INVERTED>; - active-low; + pwms =3D <&pwm0 2 7812500 0>; color =3D ; max-brightness =3D <255>; label =3D "d3"; }; =20 led-d4 { - pwms =3D <&pwm0 3 7812500 PWM_POLARITY_INVERTED>; - active-low; + pwms =3D <&pwm0 3 7812500 0>; color =3D ; max-brightness =3D <255>; label =3D "d4"; diff --git a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts b/arch/ris= cv/boot/dts/sifive/hifive-unmatched-a00.dts index 72b87b08ab44..03ce2cee4e97 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"; =20 led-d12 { - pwms =3D <&pwm0 0 7812500 PWM_POLARITY_INVERTED>; - active-low; + pwms =3D <&pwm0 0 7812500 0>; color =3D ; max-brightness =3D <255>; label =3D "d12"; @@ -68,20 +67,17 @@ multi-led { label =3D "d2"; =20 led-red { - pwms =3D <&pwm0 2 7812500 PWM_POLARITY_INVERTED>; - active-low; + pwms =3D <&pwm0 2 7812500 0>; color =3D ; }; =20 led-green { - pwms =3D <&pwm0 1 7812500 PWM_POLARITY_INVERTED>; - active-low; + pwms =3D <&pwm0 1 7812500 0>; color =3D ; }; =20 led-blue { - pwms =3D <&pwm0 3 7812500 PWM_POLARITY_INVERTED>; - active-low; + pwms =3D <&pwm0 3 7812500 0>; color =3D ; }; }; --=20 2.34.1