Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4944882rwb; Sun, 13 Nov 2022 17:49:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf730qhDS4tvVQLuKuujeyzcuMOrnp2Uj62+bAY/ul/4mQtdPBN1fCy8ldQACBSS92iLU4TS X-Received: by 2002:a17:906:68d8:b0:78d:e786:e322 with SMTP id y24-20020a17090668d800b0078de786e322mr8603028ejr.308.1668390570821; Sun, 13 Nov 2022 17:49:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668390570; cv=none; d=google.com; s=arc-20160816; b=zllOkQSwjCdolFIgYICLaFzNYobV0aPV2CYX5ZIlbdCeufAbS96ASRH28LOnbEulNa zyFdzrLGxA7S/V4Nzsbt5uk2e62iUi2pPow8k1a2wr8N0QqQo5YLHPzK8MY5wdgeQY5i Y7HwYtkCwPjGjdyFwzbkyY7ATirPcWrGxjSjWhTRIivfYT6Rj001UWAVNGi9VbYyIS+U BjjvXQ74AMiRZcpDjHJBZBzJQD7UfLHDUAJbjuBWGH6UWw3WjjUNo+C9tjhU4GESyDZy oEiaPl8JgJ1hfr1B3BAP16DpKFElMBStByOZ6xruUPG+LekjWZo2QBt/TlPwfxnGyv5H uS3g== 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=vSE/FlVOFfJV72LzWEyWSXBLqckHW0Cl6cdsoa0yPnI=; b=kj6n8ObaBsjo2RL+Wve+mOblTcKXCIqKM53aMSIsE5x5l3JPh9iEm8i8yLFyWgLbls wcDQPUNBajLfeU1prjCcjqVSEuiaCKSnKiGTao00CV2Ah4Lpg8DfHVTivaCrK/MFrgBE VqnMWLOX+9i7rpfvLGRBSJZzGshANIMyNKBrnGlRF4hXpq2HUnbOKWdpbuI20gc5OywV 5yMvJ2LWSB4dLMa7M1BZBASOek1NKIrSJicEOZi49eZ7s+l6p14Vudr2w10OvSW7QG2b 7q9MnfHhdDz3mqN5q+r607ZZpRkcc5Vf8qcHhSHAty2+FmonjvWtlNGA4JB8ZY9CcCLV SVug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b="N/6yUBjE"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=eIp4LKUZ; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a3-20020a509b43000000b004602a1b7da9si1439280edj.133.2022.11.13.17.49.10; Sun, 13 Nov 2022 17:49:30 -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="N/6yUBjE"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=eIp4LKUZ; 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 S235703AbiKNBHF (ORCPT + 89 others); Sun, 13 Nov 2022 20:07:05 -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: 8bit 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 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 = "lcd0"; }; + /omit-if-no-ref/ + ledc_pc0_pin: ledc-pc0-pin { + pins = "PC0"; + function = "ledc"; + }; + /omit-if-no-ref/ mmc0_pins: mmc0-pins { pins = "PF0", "PF1", "PF2", "PF3", "PF4", "PF5"; @@ -178,6 +184,21 @@ ccu: clock-controller@2001000 { #reset-cells = <1>; }; + ledc: led-controller@2008000 { + compatible = "allwinner,sun20i-d1-ledc", + "allwinner,sun50i-a100-ledc"; + reg = <0x2008000 0x400>; + interrupts = <36 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&ccu CLK_BUS_LEDC>, <&ccu CLK_LEDC>; + clock-names = "bus", "mod"; + resets = <&ccu RST_BUS_LEDC>; + dmas = <&dma 42>; + dma-names = "tx"; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; + }; + lradc: keys@2009800 { compatible = "allwinner,sun20i-d1-lradc", "allwinner,sun50i-r329-lradc"; -- 2.37.3