Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4965123rwb; Sat, 10 Dec 2022 19:48:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf4BOKzevoLpdDfrXQEjoeJ/hEjqSyHX9TKoudwj+BFkLqltP2LNC0RU4rd/JYr3ADzuQz6S X-Received: by 2002:a62:36c7:0:b0:573:38f0:c8f5 with SMTP id d190-20020a6236c7000000b0057338f0c8f5mr11058699pfa.28.1670730508979; Sat, 10 Dec 2022 19:48:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670730508; cv=none; d=google.com; s=arc-20160816; b=jByGbZcsoKJFUOIP9CQX2qxRsqaxKPveGZqHWOsv1p73Zi/Za3lNJS93riCM1C0im/ uLayohDhKG6crJSxFkZERPpOAC1Zpo2xiiN1pj5XIAW2SZD9LCu7U9PFKNN4fI6qytaP GIdktaVAAp49p56fhiqgDJfwnbUEiNKYBWMqCzKWl2d90dMDCinGTQ8wvJg7cKqIjmrK IbJJWpPw7trUSRwgS2azP6NkkuoJwigAbDiEH3lDKWx4q3KBSWFMhUMxT7EeKsOmBMOx wqtQRTYJSrrjdxHryQSBl8MnaDGe0DxJUSvgw7NXdpnWwqdlRdXtpiSiWgsiqB8Wzh3n ExEQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f16-20020a056a00239000b0054252c63d75si6746107pfc.98.2022.12.10.19.48.17; Sat, 10 Dec 2022 19:48:28 -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 + 75 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 ); 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 To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Lee Jones , Rob Herring , Krzysztof Kozlowski , Arnd Bergmann , Philipp Zabel Cc: Mark Brown 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: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.35.1