Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2952rwe; Thu, 25 Aug 2022 22:32:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR7JNVRmjJvxDgQTs0qNACJl/DP2O0dCdVm7Pf9f/DlJ8xJqjVpvBMrJEhf0hoYhswhfPC9c X-Received: by 2002:a17:907:7243:b0:733:2c:14cf with SMTP id ds3-20020a170907724300b00733002c14cfmr4406417ejc.485.1661491945503; Thu, 25 Aug 2022 22:32:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661491945; cv=none; d=google.com; s=arc-20160816; b=G0iqNeVFoahMasPiLaCJHaZ5oCZx63LuiT9ePfdJVXO/7OCXJhqdyP24kVIuxhaOKM OCTCB/b9p/YXYUahYMI6467D4GBIx9pp5Kof2rw89zdB7pXM7K24zCh1ySCdBrXxnqv4 XgOrcHCdVq7vIRkHQ8zrEh8yPwsFxUVbq6gh3rJaA/8ZLfDh+FCnlX47pRH6slaFJ3KY zgQqjUGXx/SqSEM05Y04tcvfiUKd6Nd2XSHbyeOsxeVtFKvWZJc7aetdZg+Rj5C3+Bh8 SL4u3osdrLmOdgA7UXvBvUHovTdGaOJPSs4+jCjFcvD4MP8AzgATfoqMMSTi597jGMcr 963g== 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=eVZqDBsZhHP5u+DP9tb0OjNqX/1M2tAqFGR+hrOMxok=; b=kYyE57iVOKfmLiyj9hTolBJlWILXhd0XJN5dURwZtzDDr9LMzrnZFWAYgXwOVfUhMk jMWvjxcF7mwU1NtXGBv3DZj0PA/bhFSz/y36iGVaBEZOzOS0/va/FC7ZjGqbJ8CwgrH7 nJMqnS8G6rwNQ6/rrX1IdWnvccdjlZlbh/vDGC6gaqkV1gNhNY3NoIKwA6Jw6R5hgVxX a1WSYpZUFu0G/SHd2nyHyIOp18v9Jy81wY/u5+i3HNldsgZ1DRkm8qW6k1Oj73quCeo5 BiRFjh7ZF62I0Qh2JYgJj9Qa+DMGWHiEL8EYwCfm9br3RriY1SVO0CNAUJF03TastfB3 0Vng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=PqZYP2N2; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=aTEEvwIT; 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 dp17-20020a170906c15100b0073d4da4039asi789415ejc.468.2022.08.25.22.31.59; Thu, 25 Aug 2022 22:32:25 -0700 (PDT) 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=PqZYP2N2; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=aTEEvwIT; 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 S244900AbiHZFKY (ORCPT + 99 others); Fri, 26 Aug 2022 01:10:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244832AbiHZFKG (ORCPT ); Fri, 26 Aug 2022 01:10:06 -0400 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33FF0222AA; Thu, 25 Aug 2022 22:10:02 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 4F4563200A99; Fri, 26 Aug 2022 01:10:00 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 26 Aug 2022 01:10:01 -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=1661490599; x=1661576999; bh=eV ZqDBsZhHP5u+DP9tb0OjNqX/1M2tAqFGR+hrOMxok=; b=PqZYP2N2jfVTKaw/Uh 4CR4ganMslPLNivgqVex85E3HPs9LYllVUPcy6XxmorYUmFba8i0NSXSyVOmr+Tb 6DcAnSRy4YguN6W7L6+BsuaFk1UhiMrZagfQ2wN/NNT1FlLcB1jqIR0ihhxckdnX SZ2ZBNCA/pMMR6ZWHVPO/gyizCi55tckKt1KeD5/2vuU137YV6gwmoYhqo5FSdxg l8PkI9SAxWA8wXV0leNmGaQv7lzi0Af/3RWs5Le8OxH3QkVq6cLlwQ/EqKQA5got oD7uWivbxXdQJ9BKHcH0F5L2Jv/Uc56RIJ3Kq2rNFSgsM7G/P8pCpr5rT9KxdzKk 4m2Q== 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=1661490599; x=1661576999; bh=eVZqDBsZhHP5u +DP9tb0OjNqX/1M2tAqFGR+hrOMxok=; b=aTEEvwIT0Lh2mzRSIe98Gi6XLJPT9 YJl0Z9PqM3BaUQJeM5Dv0PlKH9N4m4NqPbq7Go3FfzNJ+JFPn+0Pl5kCu2xniR0l oc4g9nPRzWbmA7JtaDZbx4FuSdscmbYIqsCqTDFqolTpHlqqa+sPwE2Adbq61M4S it0C8aoCx6YzuOwGOz/kOipW6taR4pWzkOaYj3Hq+NX3IkcajNO5VRozb7uS76xA HZExWEdmV0grnVQAauuTzWmMQZcKTdOjzBSa5wMe219xn3XABbIFj6+srTgJUCR9 G3i2C3+UHWuC3wFY6VrmNOVCmuTEzmxrhblqwzq+fPwNsrf7IS+f+L56g== 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:59 -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 5/6] riscv: dts: allwinner: d1: Add LED controller node Date: Fri, 26 Aug 2022 00:09:41 -0500 Message-Id: <20220826050942.20067-6-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 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,T_SCC_BODY_TEXT_LINE 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 --- 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.35.1