Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp287953rdb; Mon, 22 Jan 2024 22:18:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IElpfsN4fiaVCD5kujP62Djp89saCEJDJE82UPntqSUBkYi4ZxHvF5O3FPbPAH/V7mVHzb8 X-Received: by 2002:a05:620a:1101:b0:783:eb8:58d1 with SMTP id o1-20020a05620a110100b007830eb858d1mr4921949qkk.130.1705990733950; Mon, 22 Jan 2024 22:18:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705990733; cv=pass; d=google.com; s=arc-20160816; b=aFwKhocce0HbZ/Ba6cd8xHzyn/6r6Nmd0YlRZULxLXR3YWSRoodCm95iN0NAZn0qSm tydOnGoX+na2fWGnyjxPIxf0pxOcfG8UtWYURkq5R9VuC79sqV90/orl2z/HuFmGjjmZ A8pnsO/1fGuyuCuOYjWpfaYx+XcF/zgYdyWl2mLm5ILfhOcZMz+33UEppFnVJaQPkZNe KZ/7w/m6yRCouRNY5yoQMwB7OOB1i1nJ9m2ovGikQ/uWNxempFVH8h9L/A5Ny/SIXUdK vlss/7n6sKJthe70tXk1TADRz2Chu0EjnDdEhkc1JjbRdd3qYP3a0N4aI0vHB2IKoRQH mIWQ== 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=ME8YwPbdKoUEBb8pwsupWQGlI6P3cfXncKX/A/ie+p0=; fh=47CjjQUQloFpsdVYhLLUkNEWA6N2o9aDP0IqYdYBPnk=; b=hM3kUdp23Q+biVly0f81nDb+q5sX+dJGBw1BtUfoXEeT4rn4cZWxJacwUiukoY2cTu abGwdMoQdyC6jU6nqnkiwxqfSCUOf8EJRKMcOsHguLsUO1i24b9svMg4TX26KQTGVAZ3 pBt1oC459EEFp34z0hUesPyClwG1yLgPTqiXA73z2ASSK5dJqPrO01T6VtYhagmC7LG0 ruJ6syygaAtc+8EsuJEaTeFSVMR94aolSN5ZqCygLQHQ/TPqElwW4O5JyNGHjHTHUSo9 aF51DQaJJOi1F6XEMWIi509hx1TZw02rLaWi2EZ8XVeRuuG3LUP/wGqZDnnAi8fSVsun uUXw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=aphb7JZz; 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-34763-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34763-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.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 v19-20020a05620a0a9300b0078368f6a499si7095752qkg.742.2024.01.22.22.18.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 22:18:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34763-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=@sifive.com header.s=google header.b=aphb7JZz; 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-34763-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34763-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A43BD1C222DA for ; Tue, 23 Jan 2024 06:18:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8AEA751C5F; Tue, 23 Jan 2024 06:18:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="aphb7JZz" Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) (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 4541551C52 for ; Tue, 23 Jan 2024 06:17:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705990680; cv=none; b=N4PAGgLUX9rv+L6sgMn0/nGYHoUG5vn0NSMg3KpWr9KF/tz9wGd2Tp9u72BlKmbkeJ9KTBfljwK2J2pTUxBpD9GazE5tPP8jTzqgbo6XD+2tpRMnGX4BNrpsNAwqalQeYhvwSQnvB9TCXo+H6PXkmzgJF0B8OwoQPJqGLZ1X8ro= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705990680; c=relaxed/simple; bh=1bu5VdLVFE0vJHO/4YwoTnP20DXloan9l7QgOTTeZVQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GD9WTmK1YsPG/1gkM58Tn2XTxvm2DoheEonW/lLm5mQ1j/WXhcVB7WbJQygJyOAUVVpnBPBRlcH6xzM0coJaJWK3zZ/EYcKcSz2K9R2Z/r5f4lj8bTQzpF/EsMTnvB6toi7zFzLFW+Up5hFjJPgxZDQdi9YJDqMbP9Y54wAuEMg= 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=aphb7JZz; arc=none smtp.client-ip=209.85.215.171 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-pg1-f171.google.com with SMTP id 41be03b00d2f7-5cfa71498feso3468815a12.1 for ; Mon, 22 Jan 2024 22:17:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1705990678; x=1706595478; 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=ME8YwPbdKoUEBb8pwsupWQGlI6P3cfXncKX/A/ie+p0=; b=aphb7JZzFwmTJdMlCCY9FGsd4ysrwgqQduQH5NJHxM4CgLKK6OMz2vPSKuCstyuvdb 0eReCnXKNP4CMjxslc7efJa7lXUxDG5AG2XEHZGsK1G3yRdi+nMjPImW5M12iaSmYDnS Vn9CpWmvGE+XZSkh7NnnimZP1lz+JCxhxBVN8nr9ujj65yl1x37wCBW4XZ4fQeFyQ+fu +gSykohJ3A1qjL1T0SaaGUnaL95uTj4HkdZxOuGoJrgNzQe2E8pXOZSQvr8v8QVkbyVg sHWAHfrHuPq2Ai281voMCEHDUCzuIG/xn6Rmo5h/wIQS+hkMV4Nrh9ljRQFT2YlDzDoa EAIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705990678; x=1706595478; 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=ME8YwPbdKoUEBb8pwsupWQGlI6P3cfXncKX/A/ie+p0=; b=vUNsVpRu8+ID7D+kPbnu/wx9dXNEeao5ldkAJI52HeXfspopA+2PeEBCOVDksd7JpH HZ+ROodCXNR7MAN0ov+D6zIAWLssriYU2MAImFnHJQGDStyOoZYqM78Qs1QZtyVSJure rHiYQZ/J9G4uOThknLAWQsRgZXMC34EbR96VBiCPshUhfCi34p/BUOta6SUnsPs3uPyI ysmZZOEWVX8w7lBKYvtWVvjIrFxRgLLT6qR7cnFmbqfxfzVfs0E05wV9FqH/9mNbPFUD DpizNXkjXXg6QjwgVFpJdGFZ/kePX0+2T7t/qFM8cnU2yNeNG2rQAaHD6taivup6qFy5 Rgjg== X-Gm-Message-State: AOJu0Yx8uJCLoscW0WGz84nH6YTknpStvM45q02Fg32juwE64tvx0FwJ p3iTR4W2a71lc2njmMYb1Wc68PTxzcHLsdcbFzUBJ9Lq5fkCgwBlixGtCVUQExk= X-Received: by 2002:a05:6a20:4387:b0:19c:4fcd:fab6 with SMTP id i7-20020a056a20438700b0019c4fcdfab6mr1483066pzl.40.1705990678572; Mon, 22 Jan 2024 22:17:58 -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 p7-20020a170902b08700b001d733c88646sm4425376plr.216.2024.01.22.22.17.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 22:17:58 -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@sifve.com, nylon.chen@sifive.com, nylon7717@gmail.com Subject: [PATCH v7 1/3] riscv: dts: sifive: unleashed/unmatched: Remove PWM controlled LED's active-low properties Date: Tue, 23 Jan 2024 14:17:46 +0800 Message-ID: <20240123061748.8844-2-nylon.chen@sifive.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20240123061748.8844-1-nylon.chen@sifive.com> References: <20240123061748.8844-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.42.0