Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp195789rdb; Thu, 22 Feb 2024 00:13:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW+V5WNWhADaJGF38OpeZEA93dgKDuMUnu/S7OJOVJApZl7DTo2QNeGKRKNaOAKUgS2kM/qAIrjkiGoW5CGTHCKsoDH94VhC425EpZT0w== X-Google-Smtp-Source: AGHT+IGi1z5K5n1Yt76caKcOlSpLaD1T2Ewy3uOj9vfvUBH5SgPZRzOvaL/1LWZnIIum7ZB1Zi9t X-Received: by 2002:a05:6a20:939b:b0:1a0:d6f6:657f with SMTP id x27-20020a056a20939b00b001a0d6f6657fmr405383pzh.47.1708589596048; Thu, 22 Feb 2024 00:13:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708589596; cv=pass; d=google.com; s=arc-20160816; b=SsD4cNwu8nWQcgq6JWl/Jim3IuTA95KMOQURF3vryf3fzbw+EC3zv+EH5NtIYijmI2 yMbYUTkaeR4IIv31oaW6k74zOgwunEFs2UTTJTs0PKnwpdUHS/13FLiKILlKkN1jy5y9 QeHYjX58tUxd7jL0ZYlBw1ZWXHvc3myValH9rMnZppPSTvhA2G90LhW2m5W+otNzlVSS eZ4w6zVkHL2jS0SSD9BqK6W6Se/NvOlCEJTqdpn+8UmTwX40BMBecd2/zA1jPPKdzECk /RGhZW5zVgeaK74UCNKU5g5Cdzp9O2Fgdvv6SozMVS1vqPSyuTqhPZ0DT7TP09jCTsJ1 /fOA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=71zlVIznaIfi5FluR/+lVnei3BjKa6CskewcKRtvea4=; fh=RzXubTuI29kDtj8Scwwk8DuMGAS6x7kfehxUY8xGnZY=; b=wDXmUHjd15VvbUIdRebhYyFwNJNP5qHcUh/hHXGUFfxLc17XO6vJYZXiy8Kqii/o1W 5CsXWWMaIdlmjZ4UMKAIfQa3lxRhNj4dlvvjf/nam3FZuDCGYcfto7ME8Eco6b/XVIR8 2nnuLPX6kwCBDUbWXmQlGuIcsjjZi9bPhhFKktAGM+hf2p0EG/2UdE1/TlOqIsbiveVV gwVUWv2P+iYERGJzQ04B+13jreWF9l+qTKesC1JKjbSWDx/5XSJqGnEJv/e8fs9STUzB 5GHbP1HaJ1tnBCKNc3QyMqO8ep4SJmdaZCjpYDqT0PmLkZYTcZt6yWhQsnzERRvgq1sB LsZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=LAW1J9Cy; 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-76070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76070-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 n12-20020a170902f60c00b001dc19d6bd24si4380953plg.461.2024.02.22.00.13.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 00:13:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76070-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=LAW1J9Cy; 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-76070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76070-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 B4A7D283177 for ; Thu, 22 Feb 2024 08:13:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B79918AE8; Thu, 22 Feb 2024 08:13:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="LAW1J9Cy" Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 4785918E1C for ; Thu, 22 Feb 2024 08:12:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708589583; cv=none; b=amS+4mCxGkusidKnQsNQWQlUisQ1fWTjwhQCMEl/EXZew457RBWBlS053XBs2yn8MMSguqyC5Kn1Rsm/qRW3OSynwlrEbDoP5QvcXU1/G6JUXM5UUS7QQ+bYROAGbkLBtPxPpuE/aalBXTHm0JfP66U2poTrw6MFJI1Z7tFjR0Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708589583; c=relaxed/simple; bh=lACIWIIe6I6XBgEs4axVETypjgF0xMo4A+BUz4dsSHE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uQSjyrI0Uv/7gMqtFOMaw3QHZX9aTJmrNhsnlQM+oyn8u101XB/2OcAuNWqGEZw37Cc2XGABwN1DF1C6nQz3RnLvQgifquhwx2TeblrzSIS0Vnc9XE+ySSGgPvueAb56cd1YZwgVpPm5vuzEiXQUVsRVB0hQdbg6xW7ffe2uwjQ= 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=LAW1J9Cy; arc=none smtp.client-ip=209.85.214.182 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-pl1-f182.google.com with SMTP id d9443c01a7336-1d7232dcb3eso46121575ad.2 for ; Thu, 22 Feb 2024 00:12:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1708589566; x=1709194366; 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=71zlVIznaIfi5FluR/+lVnei3BjKa6CskewcKRtvea4=; b=LAW1J9Cyv0IPyrQ7ReQwSt2I2kn0uf0klLK7STMVXaXN2OrDIaQe7lPcSEYwCoRaVZ s+BoYwXypRQnLS8B3X2MoYFBf5Jq5gJObjqOtuELGH7+TjxNlwEMt3PDjPmx8i+EI/Zv kqf3qiKNqVnq7xpu3cOuegmCXu+m5WVt6TE9cfBG/lw3S7uOxFFodzJznb4zed6XEgE5 bvO2OCClckpnFfWM7hZeubz+kM286qsMXzkGlTAacgpJ06ppvcyGDcaEZIdygYjDmdy0 F0mTUS01MiGKiKsBMP9FvTeyfmIIkKNIDA8dTmyr/uN07BvUk3Pmi0th1PjP8mGKQo6H BqYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708589566; x=1709194366; 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=71zlVIznaIfi5FluR/+lVnei3BjKa6CskewcKRtvea4=; b=gXSkysEde1cp/TdLq2R+BotrgBRzopTQOXypFUmzzFdumU+vu52HhH/HiJCWpxHoZK C+lCgDudP38PVcqz3cU2Vk0+uhF01AlUMlCWRMo40RXoLs1lNKd6R/23Sd0YUDm2SESS ld3dxQ73T44312V8Q6K8Av1zkdr+IgonP8wbuYpHQL9qtqfW0UV1bTV2e0lEliEqrTNx VaG8miKHRScyP59QGRIM0VSaUrVCYQ/dP7eQWvCM7QQiE3ZfIR6fOYZiXsrP3QHdO17a H22GPIWYTjaa6nON6+bsQTq00NDlt7vvnLap1utLuUO039GbBzV3hHzrwon17pdFpGjq 9J8Q== X-Forwarded-Encrypted: i=1; AJvYcCXUR8X3AaB7dXEX1S1YiT5Xnwyk5XwY43R0l4pIVKADoyn/RJnXCWwQXhNMMl0SU40aNpNsLPwNO7z3Uq8Cjlh/FZ/Is/aTIvTg/mVQ X-Gm-Message-State: AOJu0Yw/CijscL71A0FiuxBRsjDpvjyGy+6Xj4saLLT0JgQKp7AFS+Z/ iSvM/tDxwF+WS+6hpcXb5t+hiz1l0kvL044y26Rd8bG5lJXDtGE1sUV7ReLBpDQ= X-Received: by 2002:a17:902:ecc1:b0:1dc:19e:3d9d with SMTP id a1-20020a170902ecc100b001dc019e3d9dmr11278580plh.30.1708589565722; Thu, 22 Feb 2024 00:12:45 -0800 (PST) Received: from hsinchu15.internal.sifive.com (59-124-168-89.hinet-ip.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id lf8-20020a170902fb4800b001db5ea825b2sm9412796plb.123.2024.02.22.00.12.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 00:12:45 -0800 (PST) From: Nylon Chen To: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org, conor@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, palmer@dabbelt.com, paul.walmsley@sifive.com, aou@eecs.berkeley.edu, thierry.reding@gmail.com, u.kleine-koenig@pengutronix.de Cc: vincent.chen@sifive.com, zong.li@sifive.com, nylon.chen@sifive.com, nylon7717@gmail.com Subject: [PATCH v9 1/3] riscv: dts: sifive: unleashed/unmatched: Remove PWM controlled LED's active-low properties Date: Thu, 22 Feb 2024 16:12:29 +0800 Message-ID: <20240222081231.213406-2-nylon.chen@sifive.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240222081231.213406-1-nylon.chen@sifive.com> References: <20240222081231.213406-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: 8bit 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] 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 | 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/riscv/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 = "pwm-leds"; led-d1 { - pwms = <&pwm0 0 7812500 PWM_POLARITY_INVERTED>; - active-low; + pwms = <&pwm0 0 7812500 0>; color = ; max-brightness = <255>; label = "d1"; }; led-d2 { - pwms = <&pwm0 1 7812500 PWM_POLARITY_INVERTED>; - active-low; + pwms = <&pwm0 1 7812500 0>; color = ; max-brightness = <255>; label = "d2"; }; led-d3 { - pwms = <&pwm0 2 7812500 PWM_POLARITY_INVERTED>; - active-low; + pwms = <&pwm0 2 7812500 0>; color = ; max-brightness = <255>; label = "d3"; }; led-d4 { - pwms = <&pwm0 3 7812500 PWM_POLARITY_INVERTED>; - active-low; + pwms = <&pwm0 3 7812500 0>; color = ; max-brightness = <255>; label = "d4"; 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>; 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.43.0