From patchwork Mon Nov 7 05:32:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 16240 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1850115wru; Sun, 6 Nov 2022 21:36:12 -0800 (PST) X-Google-Smtp-Source: AMsMyM717vxSpnamtIxFYdqFyD98J+JJBY+6O3zqGE2NMaj2SJE0YcbM162w+9AjyACI4YK6HQ14 X-Received: by 2002:a17:902:6a86:b0:176:a6bc:54c0 with SMTP id n6-20020a1709026a8600b00176a6bc54c0mr50161120plk.87.1667799372567; Sun, 06 Nov 2022 21:36:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667799372; cv=none; d=google.com; s=arc-20160816; b=U3pO7LZjPCdPsfDIXu1Q2nTEQigdibc0/dQuyygOVMZ+qQ2LxoCGnsaPu8aOygTzhd psjFIuRJL0RwUbl86kcNNuR6740m5ASID++33tzgTlen5e52+5fy9QGwPNSMETPRDqUQ 9qbEtAThDEEtWnFT41Mj/to7ZwygZ/Oz+BU/RAMkn0gC/sifT2ZyhT5JzKA/uATJ9RGF GWF9xldZ/gwplmHqPmnvnDq223bwzWXEQDorKjdy1KHgCF6LJbVoYWX/gGnVLQ0p1K1Z PWms/e+7D5JT4qIlyKC/9nsLIlsclawJtmhLWiduSbifOpwLeaPqVDBPxjOwypHxrJsv 2jLQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d3-20020a63d643000000b0045fd05b2ce8si7940408pgj.239.2022.11.06.21.35.58; Sun, 06 Nov 2022 21:36:12 -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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748814394862860791?= X-GMAIL-MSGID: =?utf-8?q?1748814394862860791?= 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 Reviewed-by: Jernej Skrabec --- (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";