From patchwork Fri Aug 26 05:09:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 12955546 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BDA62ECAAD2 for ; Fri, 26 Aug 2022 05:11:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1AaXUidz6kNcohE2A9psfaDyhzVYgUXemdkt3oNykV8=; b=VaMFTJDy2Vvirv NaqCYF4XBrTXCrZBAaH8qZVT4uUKMwzevjkCmjWem7BWhQGj50BydKmPUaModGeSwOyebmoRw24ji rXAIKPHy6jKNiGwU/8trhqk87mBgbTDj8bRSeSjwHowr4QNYWpLov4sKnH+8qW2kwwGFa4xdlObk2 aY+qrJ4H52Js4kOqTdeNwYCyN3qeuQgD6RlPQsdUc0EmVi0px4K8o/DouNCi2AIMCKYsOHBPu1362 ShoIPk2kPzP+CCm+Ysr1caH8e6G/S/PzQEt0VI53laHo4tEkxaxrnEpGygL5ccmwzhchba4GnEu7s CpLnmqk2wE7v4OId6SXg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oRRca-00DgxC-6s; Fri, 26 Aug 2022 05:11:08 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oRRbT-00Dfs7-5c; Fri, 26 Aug 2022 05:10:00 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 876303200A8A; Fri, 26 Aug 2022 01:09:57 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 26 Aug 2022 01:09:58 -0400 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=1661490597; x=1661576997; bh=z7 lZBk+lWpWVHAS9g7ZVqLJWmlt/GE8GcSu0rIU3M0g=; b=pxwPieo2ckaht51kXM fcHG6LEzMy6P4hXz55IE7wsTZ0fHJ9fltwFpNYOrNuTEYAP+DnbY0u+XlgM0HcIS PCO8BI5M5XiQOhVME/EVcscv1wiHLeRXqhBg71WPBFLf4uY9PaWN40gG3ACASuL+ fEjaTTM7kUa6ObWRp5rmrN7Fr1qARbsHACqiBnSarr1PFAJpK8PZO0jxDF+Pw98y YGt7S6G8BJVx/RXUe/5pBw3U1WaVJd+StNp7Q+Gb6aUjdmKRVtlhrcNnfdq2KIak Tcp9s2sOAs8aBmNG0zTOYnG0o4pp+rFT4bQGoyDOTXB9PmeKe/JoSXqo8LBkkmfW lEXw== 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=1661490597; x=1661576997; bh=z7lZBk+lWpWVH AS9g7ZVqLJWmlt/GE8GcSu0rIU3M0g=; b=j83JH9rLn8jNXlpWUz2dnr7QappjN Xwlp3IVOivdSx3mA9MXE9N/HhjpF4Uq4bb6th9LlCN5FQ66x+28rvuU2PwDY8sLN kUB/bHqapclqNq/ENyOcGFoXa8euKzhsnfrkjhkn2/BB+p+kW0KJwO2dxVT0MKzj 5zCBroLEIC98oBqXZpPPTJsMfCRKSH6jkyp05ifLiHU/QORUv2472HnKgW5CmTvl IBwgzhgp7WWbGzXkBj2V8Ff/QxBfqOwKtTEGVNNI4zAxHzlvb8qrpr8ZjohlCgZA MzZBL6E/aFaSZmLFVdVmdPk7sw+dxjwiiPUTbgyJIn+zYld5k2KvzQ1vQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdejgedgleefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufgrmhhu vghlucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecugg ftrfgrthhtvghrnhepudekteeuudehtdelteevgfduvddvjefhfedulefgudevgeeghefg udefiedtveetnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghilhhfrh homhepshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 26 Aug 2022 01:09:56 -0400 (EDT) From: Samuel Holland To: Pavel Machek , Chen-Yu Tsai , Jernej Skrabec , linux-leds@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-riscv@lists.infradead.org, Krzysztof Kozlowski , devicetree@vger.kernel.org, Rob Herring , Samuel Holland Subject: [PATCH v5 4/6] arm64: dts: allwinner: a100: Add LED controller node Date: Fri, 26 Aug 2022 00:09:40 -0500 Message-Id: <20220826050942.20067-5-samuel@sholland.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220826050942.20067-1-samuel@sholland.org> References: <20220826050942.20067-1-samuel@sholland.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220825_220959_344576_C9F9F9C6 X-CRM114-Status: UNSURE ( 8.41 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Allwinner A100 contains an LED controller. Add it to the devicetree. Signed-off-by: Samuel Holland --- Changes in v5: - New patch for v5 arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi index 5453a3bb7d81..d5d13ea46c15 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi @@ -265,6 +265,20 @@ i2c3: i2c@5002c00 { #size-cells = <0>; }; + ledc: led-controller@5018000 { + compatible = "allwinner,sun50i-a100-ledc"; + reg = <0x5018000 0x400>; + interrupts = ; + 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>; + }; + ths: thermal-sensor@5070400 { compatible = "allwinner,sun50i-a100-ths"; reg = <0x05070400 0x100>;