From mboxrd@z Thu Jan 1 00:00:00 1970 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 28366C433FE for ; Mon, 7 Nov 2022 05:34:10 +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: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:In-Reply-To:References: List-Owner; bh=UpZyB8NZxt3XLURhmZBJybhu5JLIeQmCgwA4K6VsbS4=; b=tqRP/OREFOVpyk Fao41c+yWmw1HBaeGEZYQUQ9mTm4+ykgl476zO24JNSElreyXmamfLpRpNbKRjY9vcPQkol6Ne57C OzhXFDgq/cnmheU/wuLa1CcxCTvHBNx0R0HAN5WFP7G3o65acC4hLM3S0WkxxzwyQXSoiE90r0k7v fylKF/dBYg0+im2XKW7qMv6M03ozQi7u6eZEiVcJG3DaBNFbCG1aGTP6E/g1324yimmyIlpcgMQj1 BGpnUFu3rb6/XmxfEOM5ttm5h4cQf4e5kUcv0uWvmOYtbLPvY1VrhHilphLm0tNcKseDYqLvwkvsF v4UicrGVvucqd7xlemDw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oruke-00Bkvd-El; Mon, 07 Nov 2022 05:32:52 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1orukb-00Bkt4-Il for linux-arm-kernel@lists.infradead.org; Mon, 07 Nov 2022 05:32:51 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id A7F3A5C00A3; Mon, 7 Nov 2022 00:32:48 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 07 Nov 2022 00:32: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 :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t=1667799168; x=1667885568; bh=6V6QlHLGLw2oRr9jPgc9OjO2T eOPpJbgq8qGN4VXflk=; b=ZZ6P/iPDkK/QMpgmXyx6+tiw+rt6GaIUHB5krFnNI hal0ibWG8E8BBTcV+BOt8Xmuu86JiaH5e2Lfl0LzKtgR6e6yuR1Kipf6P8uU23Oe uBkT/EgyDwlAc4Q5aZ38aYMZ3ZjSjssDc6UUsXlJwYdoOCaI+54zg20Wxhe3dsDP 1xVSUG0saM8rQNT0vutOeH2E9kO4xFviTZxgGNqlNquLRkgNoIU67WcKeHXzOqiJ Wg7I3aEW1PLyQj+fvNlfODPcaAMPQqh4LIJN0ykZRxNZ8QOiYJrkI64thJquX2ht 97rtdnbtVeuMYM+/HCQg6iaItFQcYLctqJ1rqyfupAG+w== 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:message-id :mime-version: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= 1667799168; x=1667885568; bh=6V6QlHLGLw2oRr9jPgc9OjO2TeOPpJbgq8q GN4VXflk=; b=G3H1WImmm0vDfT8lVkcqqNKqa+nE+NeBwRxKLrMoWNnQXOkviGW MmmjECmS4bsT/Mm791hrBxdMgUQVfgdhdajdt00FjniEjhBWdPQ6Q+0RoCdRQfZB rRXgUX8xAibyvywhbUSjrApPepaybd4AO59mQg4y7ZOVjTF3/bNB84evstXKxzXv 6aVnGUvPvYI+hYPnLu7zUOZkG1n786Fg6uyQ2HmIWO5u3L0zqd4obztKbiFY0Lxq 9dak7xi00q+2dEnCDC/JDK/ZYcKoWpd7Y8r2SEVQ5rdc0W4IXx/zD3k/6i8VuDk/ xRN5M0cQJf0hEo/YfhOyjyzjIDYMTbgfH5Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrvdejgdekgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgvlhcu jfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtffrrg htthgvrhhnpeekheffteehtdetfffgfeetteejvdefleeuvedufffguedtjedvheelvddv fffhveenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghlsehshhholhhlrghnugdr ohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 7 Nov 2022 00:32:47 -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 0/5] leds: Allwinner A100 LED controller support Date: Sun, 6 Nov 2022 23:32:41 -0600 Message-Id: <20221107053247.1180-1-samuel@sholland.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221106_213249_712153_34BCC439 X-CRM114-Status: GOOD ( 15.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series adds bindings and a driver for the RGB LED controller found in some Allwinner SoCs, starting with A100. The hardware in the R329 and D1 SoCs appears to be identical. This v6 is effectively a resend. v5 received no feedback since August. Patches 4-5 depend on the D1 devicetree series[1], but the rest of this series can be merged without them. This driver was tested on the D1 Nezha board. [1]: https://lore.kernel.org/linux-riscv/20220815050815.22340-1-samuel@sholland.org/ Changes in v6: - Drop the A100 DMA controller DT node patch, which was merged via a different series Changes in v5: - A100 contains the original implementation, so use that as the base compatible string, and rename the binding to match - Add "unevaluatedProperties: false" to the child multi-led binding - Rename the driver R329 -> A100, since that is the actual original implementation Changes in v4: - Use "default" instead of "maxItems" for timing properties - Depend on LEDS_CLASS_MULTICOLOR Changes in v3: - Removed quotes from enumeration values - Added vendor prefix to timing/format properties - Renamed "format" property to "pixel-format" for clarity - Dropped "vled-supply" as it is unrelated to the controller hardware - Added vendor prefix to timing/format properties - Renamed "format" property to "pixel-format" for clarity - Dropped "vled-supply" as it is unrelated to the controller hardware - Changed "writesl" to "iowrite32_rep" so the driver builds on hppa Changes in v2: - Fixed typo leading to duplicate t1h-ns property - Removed "items" layer in definition of dmas/dma-names - Replaced uint32 type reference with maxItems in timing properties - Renamed from sunxi-ledc to sun50i-r329-ledc - Added missing "static" to functions/globals as reported by 0day bot Samuel Holland (5): dt-bindings: leds: Add Allwinner A100 LED controller leds: sun50i-a100: New driver for the A100 LED controller arm64: dts: allwinner: a100: Add LED controller node riscv: dts: allwinner: d1: Add LED controller node riscv: dts: allwinner: d1: Add RGB LEDs to boards .../leds/allwinner,sun50i-a100-ledc.yaml | 139 +++++ .../arm64/boot/dts/allwinner/sun50i-a100.dtsi | 14 + .../allwinner/sun20i-d1-lichee-rv-dock.dts | 12 + .../boot/dts/allwinner/sun20i-d1-nezha.dts | 13 + arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi | 21 + drivers/leds/Kconfig | 9 + drivers/leds/Makefile | 1 + drivers/leds/leds-sun50i-a100.c | 554 ++++++++++++++++++ 8 files changed, 763 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/allwinner,sun50i-a100-ledc.yaml create mode 100644 drivers/leds/leds-sun50i-a100.c -- 2.37.3 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel