Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1253969pxb; Fri, 1 Apr 2022 08:28:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCqXvZwfz4BdR2ljiFkXCZpNwRWVViy/1oOzQNQlaKssLfFIPesozVOnH6TL8CvRQz/BL7 X-Received: by 2002:a17:907:6e92:b0:6e4:de0d:464 with SMTP id sh18-20020a1709076e9200b006e4de0d0464mr313893ejc.348.1648826909934; Fri, 01 Apr 2022 08:28:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648826909; cv=none; d=google.com; s=arc-20160816; b=qiM3wR/rGMmnh9rLNYLYPjnUW2qIjMBVkNBlMia+Ee5A/RkBQD1y6/qr57sEPjVyh/ 3av2woIx2VKTJTFhlcJvLSpXwIbvg/0O4eHs2DjKxyaSV4DQiqenV8NXanNBaCaAPLUV WBsLNnweZsfppUURQ6eMSH//yZeKkTaSWLfqpiouJD/5cT2+KQVCxnNiJhfHIgk6lMrT m9ugh6BqiV3ZylUNz8FTd2DnYb+T3Os3P+O8omnaVeoewhWmxg24bNCQ86SmIJfxRu/3 RuuGxz1CALnXpLFNS7LXXcLHwBYp0nD/3BnahCiRMoWck0OPaYsAkEEQEeXODXwj5tUY mZ9g== 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 :dkim-signature; bh=8I7tAuwATZEvUnbGKhoDajOowIbB/rmtuCN80OduxPc=; b=PHwHNCsdUlLOos8kjPd1n+vWR/lJWUwmlJl5N+nD1ut1Nl34vgkR5VPpywkL/pdDZj wAW74xq23kS7YL/OnxKkgUq+MW3q+x9EuhV/3Er7TRbz+uRE7v0+ix/V9rPGmtcTRJct 9XfW0eGeXIw7QkbceN7tABfX1v1RKrXncE7sCK1AbWb8nEt0Z4GQou+mmnSAuHJ1x1Hz 91WXdH8Fey1rLQ+PcfU4Rj141pR3L+OVhDL/QLHtku1MOZn4F6RVgmtvzIY/gHfZms9i hTv/29Q340w/4nI+sITo5bQt51JSt94Plr0y5cqSX50vwCUArTQIL3/7eIcRAb3yevJt RMIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=dhpkztki; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr14-20020a1709073f8e00b006e48d140c28si1680875ejc.506.2022.04.01.08.28.04; Fri, 01 Apr 2022 08:28:29 -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=@collabora.com header.s=mail header.b=dhpkztki; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346512AbiDANxC (ORCPT + 99 others); Fri, 1 Apr 2022 09:53:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346492AbiDANw6 (ORCPT ); Fri, 1 Apr 2022 09:52:58 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 426E81C6490; Fri, 1 Apr 2022 06:51:06 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: kholk11) with ESMTPSA id 821301F41C6C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1648821065; bh=4ga0haARvqzGPiyyyt4tWRKPqw/63CPmbmTUs4qGJ3U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dhpkztki5+AjyK5hQG+xNcDGcijGvtqA5JVjwtmg8LtTtw6i/WnWsUdqDwRbhHJgF upxSgAY0ngHLzGa9FTnU6VWZnRjnKIZ7MoOQ5/+dJp7evVlvRwVuTYfm4JLMAuEBAp el7LarJicw6tjsmzr0vOp25tAR8VwSbLxh/a+615yI+ZBV+FWr12onZF41/lyT4RCk 4FiWczSy5/IuhuMWxg3KIQ2iRc22OglqkDFkxXRkzKOknq4wD83JiA1FOxKDh1O2fS 72F4BUfNj/2WqhNBPDoINQeJ7NAwJUET8HcuAMCvyDxw6y4MGznBFHRYMVIIsvjELv TMwNBeZNYRuPQ== From: AngeloGioacchino Del Regno To: lee.jones@linaro.org Cc: robh+dt@kernel.org, krzk+dt@kernel.org, arnd@arndb.de, matthias.bgg@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, nfraprado@collabora.com, kernel@collabora.com, AngeloGioacchino Del Regno Subject: [PATCH 2/2] dt-bindings: mfd: syscon: Add support for regmap fast-io Date: Fri, 1 Apr 2022 15:50:48 +0200 Message-Id: <20220401135048.23245-3-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220401135048.23245-1-angelogioacchino.delregno@collabora.com> References: <20220401135048.23245-1-angelogioacchino.delregno@collabora.com> 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, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 The syscon driver now enables the .fast_io regmap configuration when the 'fast-io' property is found in a syscon node. Keeping in mind that, in regmap, fast_io is checked only if we are not using hardware spinlocks, allow the fast-io property only if there is no hwlocks reference (and vice-versa). Signed-off-by: AngeloGioacchino Del Regno --- Documentation/devicetree/bindings/mfd/syscon.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/syscon.yaml b/Documentation/devicetree/bindings/mfd/syscon.yaml index 13baa452cc9d..85a2e83b5861 100644 --- a/Documentation/devicetree/bindings/mfd/syscon.yaml +++ b/Documentation/devicetree/bindings/mfd/syscon.yaml @@ -83,11 +83,26 @@ properties: $ref: /schemas/types.yaml#/definitions/uint32 enum: [1, 2, 4, 8] + fast-io: + description: + Indicates that this bus has a very fast IO, for which + acquiring a mutex would be significant overhead. + When present, regmap will use a spinlock instead. + type: boolean + hwlocks: maxItems: 1 description: Reference to a phandle of a hardware spinlock provider node. +if: + required: + - hwlocks +then: + not: + required: + - fast-io + required: - compatible - reg -- 2.35.1