From patchwork Tue Sep 7 00:39:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dimitri John Ledkov X-Patchwork-Id: 1525082 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=tMAlYV1D; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4H3RHR3M4Cz9shn; Tue, 7 Sep 2021 10:39:47 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1mNP9L-0002uI-Gy; Tue, 07 Sep 2021 00:39:43 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1mNP9I-0002rM-FK for kernel-team@lists.ubuntu.com; Tue, 07 Sep 2021 00:39:40 +0000 Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (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 49E924015D for ; Tue, 7 Sep 2021 00:39:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1630975180; bh=NHY7cKlOmtsiMBmaZRg5BtcZcsTxLes8flPTqBLtUJc=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=tMAlYV1DZv/g0JiRpdTza+6KZaxjZOQlmkhJtNspNpqpXVQTqB0TxLhyGTwH6F+Vc t4qDvFwvKGeEShZdR9G8o8fHK1s8ukd0DSY/7o9cRwHxyJysL90pYKIQdmN67yktcc G7fvmAcN1MFRTgjWyVyaJu5B3QNdj7yEgv+qTPXL26dLZ9LLbAgNddopSsf3I2jo9F n/B8fH3V4XZ3ioI64otGuPxcmiQoZMvy7IhTzrD0lc2dLPEQYr5qKPJGkWN/fam2ma YT9/W0XJFv5c0sqrNeu040eQvCJO4i/ls3QoC3PSA4EjeBZqJlufRBsxUd6hpRiELG FPA1wIOsvSVVw== Received: by mail-wm1-f69.google.com with SMTP id h1-20020a05600c350100b002e751bf6733so485583wmq.8 for ; Mon, 06 Sep 2021 17:39:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NHY7cKlOmtsiMBmaZRg5BtcZcsTxLes8flPTqBLtUJc=; b=c2dP9aHJq3dVh0mu2Qy0DrxlNq1EDUN/nRyAqSDjleZX7H0An4wMdOTbenkUEHI+8k MxsLDSEuq0x7SNh/jjAQYdkwLHucBdvUlnOTZltzNbSeb1eqeYMQkjzrl+B6RzAiP/JG sL4TvujRIZ1fzeuiQ1xCYIdPBIFcU3muuEYc9RXaT6Hg/n7Ji4UPsspszV5/uon7MJsM v47hL3dhaVy/VcTLaJzpl/ZqpcdqZhbKZQkh4SrC72jDsJ4fgg6O019OgMk8N8Bd2fAs 53LPNJ0Rr+XjKf0RT7ffu8MA7yUA1sEGvvDV5oX6XE5iacnCPnH0BO/E5/vl79zyqMzJ ZUCQ== X-Gm-Message-State: AOAM530NKyUai2yyWob8FhfYne7KBZxns0k1ISBjSIHLO9wh7O97/Mpb rTPAFd+1IOb+LXUunSWu3n0SalVTSkrP44NqSEYhpcJjZtWX6Uid5RMRCkVgyABQ4+9E7eNuW35 yVPKODm4W8K2BXoiIHOF2nEZ4Uq9T8lK2M1t60/ItZA== X-Received: by 2002:adf:e747:: with SMTP id c7mr13570927wrn.241.1630975179678; Mon, 06 Sep 2021 17:39:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxf+aCwItvEEK9opTa/vo/r8dkG7DXFu16Z/H/AOzK/MgBqj+3ylymtXe/Nhvdszxm/p8yEKQ== X-Received: by 2002:adf:e747:: with SMTP id c7mr13570923wrn.241.1630975179511; Mon, 06 Sep 2021 17:39:39 -0700 (PDT) Received: from localhost ([2a01:4b00:85fd:d700:3349:7876:92a0:e08a]) by smtp.gmail.com with ESMTPSA id t14sm845270wmi.12.2021.09.06.17.39.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Sep 2021 17:39:39 -0700 (PDT) From: Dimitri John Ledkov To: kernel-team@lists.ubuntu.com Subject: [SRU][I/riscv][PATCH 1/6] riscv: sifive: unmatched: add D12 PWM LED Date: Tue, 7 Sep 2021 01:39:27 +0100 Message-Id: <20210907003932.112495-2-dimitri.ledkov@canonical.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210907003932.112495-1-dimitri.ledkov@canonical.com> References: <20210907003932.112495-1-dimitri.ledkov@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: David Abdurachmanov Signed-off-by: David Abdurachmanov BugLink: https://bugs.launchpad.net/bugs/1942806 Signed-off-by: Dimitri John Ledkov --- arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts index e026f60af0..8461b33d1f 100644 --- a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts +++ b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts @@ -3,6 +3,7 @@ #include "fu740-c000.dtsi" #include +#include /* Clock frequency (in Hz) of the PCB crystal for rtcclk */ #define RTCCLK_FREQ 1000000 @@ -30,6 +31,17 @@ memory@80000000 { soc { }; + pwmleds { + compatible = "pwm-leds"; + d12 { + label = "green:d12"; + pwms = <&pwm0 0 7812500 PWM_POLARITY_INVERTED>; + active-low = <1>; + max-brightness = <255>; + linux,default-trigger = "none"; + }; + }; + hfclk: hfclk { #clock-cells = <0>; compatible = "fixed-clock";