From patchwork Tue Sep 7 00:39:28 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: 1525083 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=LCAPVP+g; 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 4H3RHT67xSz9shn; Tue, 7 Sep 2021 10:39:49 +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 1mNP9M-0002vj-V4; Tue, 07 Sep 2021 00:39:44 +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 1mNP9K-0002sO-59 for kernel-team@lists.ubuntu.com; Tue, 07 Sep 2021 00:39:42 +0000 Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (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 67FF34019C for ; Tue, 7 Sep 2021 00:39:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1630975181; bh=B7ylXwQJg538KKlVV0rWDgFMwUzUcIRNN2UlLOFqwZg=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=LCAPVP+g/X1IY49fGNTIHWCF76uAY/YQkcom7PKQLrdzL92iN5PpxAzjZn/OJpQOh FSPqxfHyfKGN5pAAMlIzy1aviRlBJlDCcwrkbEV82aTsCCDRqeBUcm7Ds63V5MwLzJ 594Jq1aqWx+DDC/Np/yD89VWdWjBFL4E8UQyJddjssgAtgamlVxIDIrWEJCg85QYxH 88UTK4lLJMFT2fJ5jI1wqSlvD4uJHaYN/7+78SkL4yE26X2vOBTniYr5biUy8v6HaS jc0gK/KMFtaq13Ijt1XxEPo3t2aRQY1Y7Ve4l3hSQUGwov65ZMmgq8ogXEEUGnj8CZ Js57zDGX8BvVA== Received: by mail-wm1-f71.google.com with SMTP id r125-20020a1c2b830000b0290197a4be97b7so486032wmr.9 for ; Mon, 06 Sep 2021 17:39:41 -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=B7ylXwQJg538KKlVV0rWDgFMwUzUcIRNN2UlLOFqwZg=; b=LTP5Nohr+TtBeH3tcRQIOO87AF8KSw0wWLdioIKe1mxFwVGiTOjMX0KjgWjmEpHjfB RJSQmNdgVRBa0ZepNDHmmqBCxup7Cjeea2UEQ0nzISvnEq9i4LiSJQvEbtceeQQv33eH 2X+VrwdRu75kyQnuFQaLUeXEG22TUk4GjeaiXeMIiiR3lhNpsYtqexCxjXWxd57s2GGh hkysRRCNdo/NPArARdifu46U5x8KYzSoSotrOmUFqtmjU8EXN2B1l3PTF1nX9axVrKJF ZYigOe1wh7chBcn80gJKmADvVyJh8NDZzvF6VUJWTgIzBfPd2pPzZLZf8rOwUisk2ikR YNIQ== X-Gm-Message-State: AOAM532a8Fkd2FHUiNWwBZoLLWRj1x6tMxZ+hiQSmQRUUsWvmg0fmT1q YW9xiZhEMu9NwX6hiPqLRgbhBgz9vXCUWX5qdwln3pQKBnd+64t8yirHTMBFiZ9XOYWv6guMCf3 YBfMeuRgvimgN5Q+aP87ROTQDqHvJbv1AAeP9i6wWtg== X-Received: by 2002:a7b:c92b:: with SMTP id h11mr1343679wml.62.1630975180852; Mon, 06 Sep 2021 17:39:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8hOXih5ZXHJ47j7RNiBGJ+8oKSWs1HDtW38Dk9f8xTp3esxCTQtiRDN3q8pCIeopcB8M8Aw== X-Received: by 2002:a7b:c92b:: with SMTP id h11mr1343667wml.62.1630975180584; Mon, 06 Sep 2021 17:39:40 -0700 (PDT) Received: from localhost ([2a01:4b00:85fd:d700:3349:7876:92a0:e08a]) by smtp.gmail.com with ESMTPSA id c4sm1095132wme.14.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:40 -0700 (PDT) From: Dimitri John Ledkov To: kernel-team@lists.ubuntu.com Subject: [SRU][I/riscv][PATCH 2/6] riscv: sifive: unmatched: add D2 RGB LED Date: Tue, 7 Sep 2021 01:39:28 +0100 Message-Id: <20210907003932.112495-3-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 --- .../boot/dts/sifive/hifive-unmatched-a00.dts | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts index 8461b33d1f..56e6d8e8fe 100644 --- a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts +++ b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts @@ -33,13 +33,37 @@ soc { pwmleds { compatible = "pwm-leds"; - d12 { + green-d12 { label = "green:d12"; pwms = <&pwm0 0 7812500 PWM_POLARITY_INVERTED>; active-low = <1>; max-brightness = <255>; linux,default-trigger = "none"; }; + + green-d2 { + label = "green:d2"; + pwms = <&pwm0 1 7812500 PWM_POLARITY_INVERTED>; + active-low = <1>; + max-brightness = <255>; + linux,default-trigger = "none"; + }; + + red-d2 { + label = "red:d2"; + pwms = <&pwm0 2 7812500 PWM_POLARITY_INVERTED>; + active-low = <1>; + max-brightness = <255>; + linux,default-trigger = "none"; + }; + + blue-d2 { + label = "blue:d2"; + pwms = <&pwm0 3 7812500 PWM_POLARITY_INVERTED>; + active-low = <1>; + max-brightness = <255>; + linux,default-trigger = "none"; + }; }; hfclk: hfclk {