From patchwork Mon Nov 14 01:06:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 19498 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1905877wru; Sun, 13 Nov 2022 17:24:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf6GfjaYlSPAfGcTMF35lukL2rcFoYsEk2XPHTvd5+ph+p9DIbuoEYcPB/PyDlc8rmKVhJfY X-Received: by 2002:a05:6402:144c:b0:45f:b9d8:9514 with SMTP id d12-20020a056402144c00b0045fb9d89514mr9694366edx.204.1668389083303; Sun, 13 Nov 2022 17:24:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668389083; cv=none; d=google.com; s=arc-20160816; b=UKF9+MbBKmSN+JkcddJ1l+92Mct34BajybhjwMaI0uLLRdo4+PZE2VMFjz8L+vFp/Q fiSEdyJFlDoq9Vv7xibqnleicEL8QvYxKz5flh9EcjLv4/fImQYiQhesd98puJr+XdMe I1+Tn2Ywt8W6cb9w3/YnqdOMs26lXqOqQ0z6TB0aXM+GlwBfZHfVPjf9+0B8+3okfYt0 cKBWyvL+CDcIsUsOxXed6rDKzKhQm0PZbp8bC+lvPI7xlZjAs3TIOM/isBz+IR7BgQ0H KQM3n3rJ7Gas8/GcsND3A2y+g9JaNvTvnTMQ5z4mMT1qanu8Y0GmuLKieDpTjX70VHAw qiXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :feedback-id:dkim-signature:dkim-signature; bh=5Shl8P/p16p52VEaYrOLrE4C4Kh9jE5qf4TZfI1iPJA=; b=Iqhen/a4tA4oeY4GRzCpLgjnHbzBRGXfRPjTMFvTMHuxmgGIQKO5sMNihG41i+HqVH YrkXGWHYbcAE4NLKzzymsWJW2iz3PxDfV6l6kNCPjYXjTNNF6ESPWF6vq9h/abCD39rF OcrPkVOSXvRzFH+vcRQCp12GogOrA3CwSFd3SN6AiPjZ/RRbGGtzM6YjHg0RAFK1hWj4 TAZFEtsazbp+3Ik3uVvOSM2cO3ryjp7MZ9QikkuiAAYEmqP5dISJY5gwFcvoyA7LrKCb B7/DJ60ZqRTvrkIBNKwuzwaqhZEs3vbgkXGEYr9DGv4XYBivwT0rOkerJLgxb4hdHSDg Z2SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b="J/hYq+Q1"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=hUKjdFkZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sholland.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r9-20020a05640251c900b00459c2ac54e2si6916810edd.255.2022.11.13.17.24.19; Sun, 13 Nov 2022 17:24:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b="J/hYq+Q1"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=hUKjdFkZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sholland.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235713AbiKNBHJ (ORCPT + 99 others); Sun, 13 Nov 2022 20:07:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235693AbiKNBG7 (ORCPT ); Sun, 13 Nov 2022 20:06:59 -0500 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C41D811A30; Sun, 13 Nov 2022 17:06:50 -0800 (PST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id A225A32002E8; Sun, 13 Nov 2022 20:06:49 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sun, 13 Nov 2022 20:06:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1668388009; x=1668474409; bh=5S hl8P/p16p52VEaYrOLrE4C4Kh9jE5qf4TZfI1iPJA=; b=J/hYq+Q1XLL33aztHV IkwPZbm+eFTuTfQVt0tWim0blUm2Y631DutB07mWSOUW4q8AlLPCyuSD0OZ8HaJ9 BtCYKqN7gLrx95FSvfIyJE4+wo9ZLOMKPiUpq5Km3HyxVwA5FHHlManxRiqFpu7y 0rkIMZXHzSzC0szEHhp7qVN/Wpv5bvB1Qe6mwb+V5i11l48Qr8s1VuZF0BywqZyh Tf2Nv6LTM6iV6scptuLiYx7OwivJUxfj5EiGsheljVqbduiUn7eK2Xyu2tDv0vFI 8Pq2nQKzkHYDVjpkTxp1ctatKVs7tL05VnJnAc6C4XmVSVlCC088EFTQ0W0Dhg99 aLyg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1668388009; x=1668474409; bh=5Shl8P/p16p52 VEaYrOLrE4C4Kh9jE5qf4TZfI1iPJA=; b=hUKjdFkZYMMP0Dh2cX6N8S1X1N+lq Q5H8n/J0RsBSbY3SW60hPsrgmOcZD6p0b1tICXzpfdfOuogcHiFYa2AIFwGcNY8W 5+ewT6yQApXH0XM9k+VY+yEFahkg3/aY1KWfsVOxbpPsX0Jwn8k/NhHtD5VKE4O1 EeU5Sy+shqxqVbPZ55pHBeHQMtNrZ37VCs4e7rAiA4i8/ExMwEhkjlctCqjnYaG0 6/uf0Jwjdzt80TWLa/fdFwSLBXo4KoD1FAuh8LEP3SdTc/rccBA262wf3wtimmjh JyD+aufeLdeXmPBnBLCEKiNglTJmUQmekjrFd0pRP9TIJYCbRysN4IoiQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrgedugdeftdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpedukeetueduhedtleetvefguddvvdejhfefudelgfduveeggeehgfdu feeitdevteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 13 Nov 2022 20:06:48 -0500 (EST) From: Samuel Holland To: Pavel Machek , linux-leds@vger.kernel.org, Chen-Yu Tsai , Jernej Skrabec Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, Samuel Holland Subject: [PATCH v7 5/5] riscv: dts: allwinner: d1: Add RGB LEDs to boards Date: Sun, 13 Nov 2022 19:06:36 -0600 Message-Id: <20221114010636.33052-6-samuel@sholland.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221114010636.33052-1-samuel@sholland.org> References: <20221114010636.33052-1-samuel@sholland.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749432751557105189?= X-GMAIL-MSGID: =?utf-8?q?1749432751557105189?= Some D1-based boards feature an onboard RGB LED. Enable them. Acked-by: Jernej Skrabec Signed-off-by: Samuel Holland --- (no changes since v5) Changes in v5: - New patch for v5 .../boot/dts/allwinner/sun20i-d1-lichee-rv-dock.dts | 12 ++++++++++++ arch/riscv/boot/dts/allwinner/sun20i-d1-nezha.dts | 13 +++++++++++++ 2 files changed, 25 insertions(+) diff --git a/arch/riscv/boot/dts/allwinner/sun20i-d1-lichee-rv-dock.dts b/arch/riscv/boot/dts/allwinner/sun20i-d1-lichee-rv-dock.dts index ca36a5d75a7f..02d13e987e02 100644 --- a/arch/riscv/boot/dts/allwinner/sun20i-d1-lichee-rv-dock.dts +++ b/arch/riscv/boot/dts/allwinner/sun20i-d1-lichee-rv-dock.dts @@ -25,6 +25,18 @@ &ehci1 { status = "okay"; }; +&ledc { + pinctrl-0 = <&ledc_pc0_pin>; + pinctrl-names = "default"; + status = "okay"; + + multi-led@0 { + reg = <0x0>; + color = ; + function = LED_FUNCTION_STATUS; + }; +}; + &lradc { status = "okay"; diff --git a/arch/riscv/boot/dts/allwinner/sun20i-d1-nezha.dts b/arch/riscv/boot/dts/allwinner/sun20i-d1-nezha.dts index df865ee15fcf..099075462998 100644 --- a/arch/riscv/boot/dts/allwinner/sun20i-d1-nezha.dts +++ b/arch/riscv/boot/dts/allwinner/sun20i-d1-nezha.dts @@ -5,6 +5,7 @@ #include #include +#include #include "sun20i-d1.dtsi" #include "sun20i-d1-common-regulators.dtsi" @@ -90,6 +91,18 @@ pcf8574a: gpio@38 { }; }; +&ledc { + pinctrl-0 = <&ledc_pc0_pin>; + pinctrl-names = "default"; + status = "okay"; + + multi-led@0 { + reg = <0x0>; + color = ; + function = LED_FUNCTION_STATUS; + }; +}; + &lradc { status = "okay";