Message ID | 20221211025700.1180843-1-jk@codeconstruct.com.au |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1590739wrr; Sat, 10 Dec 2022 18:58:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf6RrXcwu3G2l5GEQbYMSnm6eePmKRpxmwk5+xzGKNpM9EKwDvDGwb9UVFfhOxXKvJ+r0r95 X-Received: by 2002:a17:903:3302:b0:189:cada:4297 with SMTP id jk2-20020a170903330200b00189cada4297mr10652689plb.47.1670727496710; Sat, 10 Dec 2022 18:58:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670727496; cv=none; d=google.com; s=arc-20160816; b=qE42CsOrzK4VEqAlljwenLN/JCvYB7csq6FGfRSDQeZT44xqb03iSapKTwsH8X1PH6 XBmTGwk7yZeBFcLQ+DkXKPGTmOl40khIz0TcaUN5OTJxzkPDldVsAdqtvVuFt/FIzO0g hI7Nku98Lehnc6N4TGKRkEKK/a8Z1CA73MLa0HQE0GX1tCvspe/j18PE+KiKfukQio1b Tyee4+WwbMdg1b7ye3hAw4gAwgI8j0va7ni1p2a8yEDN9aXWlzqtU5CI9V+EJuW90xXA OZIuhR0R8Gv1J0XiKii4L4O+6I8xtqp81MA/XhHIgtsHyD8dpa+026aFkPpSPr0kXb2F NTFA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=B2bgi3mEW9G3IrDXy4oqFAsoYTVXakmyqNJRxS06qk8=; b=oHl4Dyy5Qf2aUHt/+rUDJotysQmObIKDwIkaY5JthckhHhEFXNRAp5mCDetONBoPzU 79VjyKi9IjnX+B1S5SA7TjYpTu+3NLq+oNl9ydfcPZ8HlHcdZj77g/Gds1FAV/tM+eJB pOTOB3E1FBVglQjFY1qw+47S0LXFDFMoZ0faLs7E1RT7eP7J3PjhTya/Z10ABWSDYTPF UKtYEmFc584FIwQPcoSgyhxKTz6k10wREBv5lqE2d/L4hnydI3xkmqrc+k0BHv8L/t0u aXF2xRy+j1pGDsbZgkueHHvl2Yb16epnSJOhXrDqphhzqEYPDIfakr60KO5/tIapRRr9 2I0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=XJ55m8zQ; 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=codeconstruct.com.au Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h191-20020a6383c8000000b0047850e18368si5684169pge.154.2022.12.10.18.58.03; Sat, 10 Dec 2022 18:58:16 -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=@codeconstruct.com.au header.s=2022a header.b=XJ55m8zQ; 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=codeconstruct.com.au Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230011AbiLKC5T (ORCPT <rfc822;baris.duru.linux@gmail.com> + 99 others); Sat, 10 Dec 2022 21:57:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbiLKC5P (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 10 Dec 2022 21:57:15 -0500 Received: from codeconstruct.com.au (pi.codeconstruct.com.au [203.29.241.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83FC8A1A1; Sat, 10 Dec 2022 18:57:12 -0800 (PST) Received: by codeconstruct.com.au (Postfix, from userid 10000) id DEB4B20240; Sun, 11 Dec 2022 10:57:10 +0800 (AWST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeconstruct.com.au; s=2022a; t=1670727430; bh=B2bgi3mEW9G3IrDXy4oqFAsoYTVXakmyqNJRxS06qk8=; h=From:To:Cc:Subject:Date; b=XJ55m8zQFto4ChwS8Bh69mSTYjmYu2vJWCK4C9eiwks/TS8aXQqmyUSAPxgQS2Llx xgAYz4pIPbzTIv85QzOB+Q8tz/KQD6Rn1BamsmnEC+piVQjeaOc1BNuezRhEYg3i3q Pkw4yRWksoHU7Xl3+XiQButtzsXV2CVCcBMtLFNlbDIYKEWyIeJ3ZoU3RstTR8g69k XBYKufEeZUcb78Ubm9KagzTIV4rx8Da0iaUJSC6t3XwXybRXO3H16P1Rm7FypM0wnY V/O5A5DbgFApNxkQUcKfjeDSO+1RnBdBjkrWGNX+NVbWY9F6Kvz8iQkk4sxWRx2RTO 29JaDwuq8gUTg== From: Jeremy Kerr <jk@codeconstruct.com.au> To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Lee Jones <lee@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Arnd Bergmann <arnd@arndb.de>, Philipp Zabel <p.zabel@pengutronix.de> Cc: Mark Brown <broonie@kernel.org> Subject: [RFC PATCH v3 0/2] Add reset control for mfd syscon devices Date: Sun, 11 Dec 2022 10:56:58 +0800 Message-Id: <20221211025700.1180843-1-jk@codeconstruct.com.au> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751884755110177657?= X-GMAIL-MSGID: =?utf-8?q?1751884755110177657?= |
Series |
Add reset control for mfd syscon devices
|
|
Message
Jeremy Kerr
Dec. 11, 2022, 2:56 a.m. UTC
This RFC series adds a facility for syscon devices to control a reset line when probed; we have instances of simple register-only syscon resources that need deassertion of a reset line for the register set to be accessible. Rather than requiring a specific driver to implement this, it'd be nice to use the generic syscon device and the generic resets linkage to do so. Any comments/queries/etc are most welcome. Cheers, Jeremy --- v2: - use direct syscon registration interface, rather than the (unused) syscon platform device code - consequently, add regmap infrastructure to attach a reset controller, in a similar way to attaching clocks v3: - drop regmap reset attach and just do a direct deassert from the syscon driver Jeremy Kerr (2): dt-bindings: mfd/syscon: Add resets property mfd: syscon: allow reset control for syscon devices .../devicetree/bindings/mfd/syscon.yaml | 3 +++ drivers/mfd/syscon.c | 27 ++++++++++++++----- 2 files changed, 24 insertions(+), 6 deletions(-)