Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1252760rwb; Sun, 6 Nov 2022 22:23:31 -0800 (PST) X-Google-Smtp-Source: AMsMyM6qM+jTiTTPnhLCSvbwvrj5tcdakUY0p90xUkb9NNq9hNu3GDnxQW+H40+m325dzJoM2ol4 X-Received: by 2002:a17:90b:3e81:b0:213:f86b:f94b with SMTP id rj1-20020a17090b3e8100b00213f86bf94bmr37921186pjb.134.1667802211203; Sun, 06 Nov 2022 22:23:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667802211; cv=none; d=google.com; s=arc-20160816; b=lvUJpIDhW/Cn8Gm09k72Y1g3Ah301i7M8s5WZiW45DE1qRa2KqReAm5KGbUySfwVcP fiJ+0sDcM06IHBD2h9mjhyTGLqUkDcy7dM1nk2n01IEBllXYFesykb/6ml5olH8Kw9NQ c4wizbiXidhmM5n7G+qnP+7y+vhDAFleZ82RKcuLV7nDTQkLe2vPww6ehBgaOS/SDMW8 +fUnO4zWB/0gMPvfytViDPP2yNmBNWkTJ8W+Lr4wwZPtu6nRd/Whet0+aVhzyuijEE50 qOut8pZnHmWE4hC9LwkCqb4LRJRAzNKTKkNl7aHmLv0T1PBxQrUOtg1ervlURAR50LpC paVg== 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=rb54mEX2euKxbMAz3voJkO60XtjBIRlH8c9USq+WGWw=; b=0hd6dd7sBt7KRZoEVVp+k5rfOgA12rsj8TusAt7XznGChSvwkE0QsRzxitfwnjjTUV Uy/cPZrfc+8FauLyrnzIKc0wHD4tRzwuBsNvWTXr1sseRlPWvxLkhBmsixLyZjwfdYBB TuPixKUJ5x9s6+5To9BUepC/Hqric6Lp5BR5bAbr5BBulon/onyiLokpQDs0gcoTPBwI c//R7Ff26xjcicW+Tm/DRC5Ll/kpax3btYp3RTzuOo0M7y0K4TsRXkrVJ5lleD0/FC9f rt50BOguH7/o+UVcVOyDOY2WdXqSHUjyPTEbJi9U3xpbb5Szh28ev6wstutcUdT80C3+ K1Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b=czBhdnVn; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="kJ/ily+q"; 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 y18-20020a056a00191200b0053dd073fc8dsi10025580pfi.175.2022.11.06.22.23.17; Sun, 06 Nov 2022 22:23:31 -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=fm1 header.b=czBhdnVn; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="kJ/ily+q"; 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 S230476AbiKGFdE (ORCPT + 95 others); Mon, 7 Nov 2022 00:33:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230365AbiKGFcy (ORCPT ); Mon, 7 Nov 2022 00:32:54 -0500 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75D9A11C14; Sun, 6 Nov 2022 21:32:53 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id D146D5C0085; Mon, 7 Nov 2022 00:32:52 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 07 Nov 2022 00:32:52 -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=fm1; t=1667799172; x=1667885572; bh=rb 54mEX2euKxbMAz3voJkO60XtjBIRlH8c9USq+WGWw=; b=czBhdnVn36DkBGUmIk /cGc3kIlmxFVqNqUXdVIaO/z+BAzGQyIIKHY46BIwHf812vPfpBq7rbo9volXiLz LT62vo1Hja7kg0q1HcqO1+q9rTXQHqzknT25wN1nZOBYoCQJlao0VaLHm9kEcJRN 6Ro/HT03afqIhBfR3eR2rJz4cLCvqbTbxmUhNUxzoIfeHWsr44zhiBtZiA2Rokft TXn00vMOBi8UICZDY/MN/NOKBs6dyBBk8NRfIbJzlWjUmEkT2viUzNhG9/NQCtGI UEAHPW45d9R7w+AUiOw8EaHYtxgnGY5u4LJpnijWzAD89E8RY9dhVMhKl/NVWNPu n5Tw== 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=fm3; t=1667799172; x=1667885572; bh=rb54mEX2euKxb MAz3voJkO60XtjBIRlH8c9USq+WGWw=; b=kJ/ily+q8sKnsOAab9FzUoVe6zZdm sKlZk6WTECr4YYYpYDrpqcSbZYu0YIq4/W12hMue5CEqaBy77nK2XOjDj6ltD2Eo cBibmS1ANV1XySoU9EKgPeCRzF/FYg/j2ToAK3fNkTkZ1k40EaNmM4br6B5XjeMe 7A0ApYx3tNfUAeX+4g47rga7D16nuPnUcJLF3HCIJi1FDdH7W8/e8E/d6sc1Hgfr OS56qhDHjKDUjNJMi3KTHaSzaVPSuW/W5FVzKCVlzL6VtF93he40AxpWiNZVD60y WU0Z6++lPK1Qb76piU3myZJivnKYkxLYQGbdK7AmNC/YWMEEQO5IurNAw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrvdejgdekgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpedukeetueduhedtleetvefguddvvdejhfefudelgfduveeggeehgfdu feeitdevteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 7 Nov 2022 00:32:52 -0500 (EST) From: Samuel Holland To: Pavel Machek , linux-leds@vger.kernel.org, Chen-Yu Tsai , Jernej Skrabec Cc: devicetree@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Samuel Holland Subject: [PATCH v6 4/5] riscv: dts: allwinner: d1: Add LED controller node Date: Sun, 6 Nov 2022 23:32:45 -0600 Message-Id: <20221107053247.1180-5-samuel@sholland.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221107053247.1180-1-samuel@sholland.org> References: <20221107053247.1180-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,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. 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