From nobody Mon Apr 13 15:49:12 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CCACDC4332F for ; Mon, 14 Nov 2022 01:07:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235702AbiKNBHG (ORCPT ); Sun, 13 Nov 2022 20:07:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235675AbiKNBGt (ORCPT ); Sun, 13 Nov 2022 20:06:49 -0500 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95C7F10FFD; Sun, 13 Nov 2022 17:06:48 -0800 (PST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 8997B320090D; Sun, 13 Nov 2022 20:06:47 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 13 Nov 2022 20:06:48 -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=1668388007; x=1668474407; bh=vS E/FlVOFfJV72LzWEyWSXBLqckHW0Cl6cdsoa0yPnI=; b=N/6yUBjEoCfsQvydyJ E09HImpo55+NpHn65p+TPpsUKvPJr2aWsJ6BTBNt0LoEM7ZW/ASAq/c4mkydpWLS hLC8J877P0s50b4+ZFRkmfVDjuY07MOeQxDvyCzV0atTtujMWZc5uiM2SzlGvGwr vCH01Bs6fTWxSfdxwSu64MuKZaro4RKeW5x8dDKDfxbptuiQr3l0NDo7UpykAKJU 4MgXOUPXPgUMyC9yPtNStERK6yiywrF9LsZUwL4vnhborLVcLkmIhKrTv1vc4zi2 a4cQuj700C1RCsyOuHNKmhQx0Zjlzd632Sce53Pkee3dWxvL33RSZMmbFrdO6mDG mgng== 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=1668388007; x=1668474407; bh=vSE/FlVOFfJV7 2LzWEyWSXBLqckHW0Cl6cdsoa0yPnI=; b=eIp4LKUZGjUrD9DYFkgLe3BFI+EXA mfnzE4nIrl+3KJWg0FTQ+R42Zcpq2iNPOFyHwL+EWUFHT/uWxKE4/r3N6EcTBE1s RO7NQ+lS20h3pX8EfXkyYlEKssgGKro7Kmc33uSt+/NQSCMTmHaoyW3xLAy+FzTR Vly2WnNguBad2DgtKD8hxSTY8Zk9k7zQFH2PWIIAuU5Ia8/rnOck7Qnn+sE/XAiA QE7zZAxCfNI8CPpYfYP1vQ5/QtglYO7dT1CUE6VbF840PyZNFvccaQzO8IHMA32G kiWd2x86nRw116i/1PHpmW/LIkSaYvHSYpAhtWfMqkCZ+2v5C8Y0G5eYA== 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:46 -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 4/5] riscv: dts: allwinner: d1: Add LED controller node Date: Sun, 13 Nov 2022 19:06:35 -0600 Message-Id: <20221114010636.33052-5-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 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Allwinner D1 contains an LED controller. Add its devicetree node, as well as the pinmux used by the reference board design. Reviewed-by: Jernej Skrabec Signed-off-by: Samuel Holland --- (no changes since v5) Changes in v5: - New patch for v5 arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi b/arch/riscv/boot= /dts/allwinner/sun20i-d1.dtsi index 9a9b3e0fe79d..53b0cb64906f 100644 --- a/arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi +++ b/arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi @@ -115,6 +115,12 @@ lcd_rgb666_pins: lcd-rgb666-pins { function =3D "lcd0"; }; =20 + /omit-if-no-ref/ + ledc_pc0_pin: ledc-pc0-pin { + pins =3D "PC0"; + function =3D "ledc"; + }; + /omit-if-no-ref/ mmc0_pins: mmc0-pins { pins =3D "PF0", "PF1", "PF2", "PF3", "PF4", "PF5"; @@ -178,6 +184,21 @@ ccu: clock-controller@2001000 { #reset-cells =3D <1>; }; =20 + ledc: led-controller@2008000 { + compatible =3D "allwinner,sun20i-d1-ledc", + "allwinner,sun50i-a100-ledc"; + reg =3D <0x2008000 0x400>; + interrupts =3D <36 IRQ_TYPE_LEVEL_HIGH>; + clocks =3D <&ccu CLK_BUS_LEDC>, <&ccu CLK_LEDC>; + clock-names =3D "bus", "mod"; + resets =3D <&ccu RST_BUS_LEDC>; + dmas =3D <&dma 42>; + dma-names =3D "tx"; + status =3D "disabled"; + #address-cells =3D <1>; + #size-cells =3D <0>; + }; + lradc: keys@2009800 { compatible =3D "allwinner,sun20i-d1-lradc", "allwinner,sun50i-r329-lradc"; --=20 2.37.3