From patchwork Thu Apr 6 17:17:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 7836 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1184824vqo; Thu, 6 Apr 2023 10:20:12 -0700 (PDT) X-Google-Smtp-Source: AKy350aUrmsdEM/2V+Mvf4puon4UYvwCHTMFz5C/P2wDjNbiNFDCc+z/VaNqWCPXMyFq4DUj+mLP X-Received: by 2002:a17:907:9723:b0:92f:8324:e3b7 with SMTP id jg35-20020a170907972300b0092f8324e3b7mr6854348ejc.37.1680801612576; Thu, 06 Apr 2023 10:20:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680801612; cv=none; d=google.com; s=arc-20160816; b=bOxYGdHIefILTnXrBvrIF+oH3wmaVvuyIKJilNNuqPGl8lyEPUSFUzMf3+XpC9fFzg IqXKTUOVNLF8YRGUxOOR5JfnD5aIVZbIyYTI+VFwgglQBpnZkqdx/4PCSDDG5xOxtNtp JkV5rh2lh1eaKH5gf1aaGKJ4SS1IkdU9OQD+sZcl3UykkW06PKOeugpTKxlpfZqKMTm4 YI2ZqAW/+kaFRzTKSh+rlpgvL9jczrwJjz14PJhK2/AL7rOSk6jY75uimiIrKSJJE4/5 0HzCMCUw5iYu5f7Bf1jJQTVmTlqmo3YLaZx1g40OI0kaR0N7fEBY8ysf3sM6sxoV/Gwl LXVQ== 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=4uioRN1Y/UYRkZ2nfjucsQbOgHS94/T9WSgkBhFHhqI=; b=JN2YTUogqJbSo5vTlZs5dMInXB6pEnZ5I2IDXZl7eh6jQ3C+xjh+kIna20oB94dmeS fKCkLiUZXadLsxLnW28PsqLSIjUrCyFzoHISi656g3U1XuIBeIAYsv3DAjH1LZm7ieRt 7t3yM6lYeR8Y1Q1xlub1uF8cYmcGI/E4EOv0Q+hKrcuHIr9fa5OJ7p09NO6ddqW2OalO kcy3w36nSc8Rd9VaUrQtt/ozH6mWpqUMsVpPCe7fYyOI7w7yNJgpOI5Ow2kdyXs/ngJ7 1hJP2lC3OqGwLVaNY1HED9HaF46A6hDBWxpS2EejEh424vmgeOhANoQw0cwlD9o14+fU l5Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="W+or+1/P"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz6-20020a170906cd0600b009490dd4e882si1295850ejb.399.2023.04.06.10.19.24; Thu, 06 Apr 2023 10:20:12 -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="W+or+1/P"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239037AbjDFRSO (ORCPT + 99 others); Thu, 6 Apr 2023 13:18:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbjDFRSM (ORCPT ); Thu, 6 Apr 2023 13:18:12 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 288BA4C08; Thu, 6 Apr 2023 10:18:12 -0700 (PDT) Received: from localhost (unknown [188.27.34.213]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id 8EFE366031C8; Thu, 6 Apr 2023 18:18:10 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1680801490; bh=2AfLYbNSjfZV3YG3Ai3MasSQj9DQevx49CcK7v80Dvo=; h=From:To:Cc:Subject:Date:From; b=W+or+1/PaZ75ACKxUhiQGDStPhwVkMVgQOg/sgIjdggf3wOoesYySOA5vOMTGoHgK eAsWWmkH0SWvqsQ7ERV+KpRWprDkw/GgDPqmIMRkVITyNzaJW2kSUBykfCrNsaNrV8 fCrFOkF+fJwPnWo57yuf5bAmBU0mrtNCSIkEzbEFQXCDDKp81/elsPclGNZz0CqP/p FtwPcci4pVNqtyc75CMW6DENLP1AGuCET4iec+WB12AsHPR8wgnzOJeSOuNb3ETFUu mwWTCTsJT0xhyWulm6LwNPetqPEqsQsYa/L3xT7y7pszKBYLRg+ttZ9Z16HMWLNWms x2HFHr9ADc1vg== From: Cristian Ciocaltea To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Bjorn Andersson , Joseph Chen , Ezequiel Garcia Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kernel@collabora.com Subject: [PATCH v2 0/8] Add support for Rockchip RK860X regulators Date: Thu, 6 Apr 2023 20:17:58 +0300 Message-Id: <20230406171806.948290-1-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762448231603444170?= X-GMAIL-MSGID: =?utf-8?q?1762448231603444170?= This patch series introduces support for the Rockchip RK860X regulators, while also providing a few fixes and improvements to the existing fan53555 driver. RK8600/RK8601 are fully compatible with the FAN53555 regulators. RK8602/RK8603 are a bit different, having a wider output voltage selection range, from 0.5 V to 1.5 V in 6.25 mV steps. They are used in the Rock 5B board to power the ARM Cortex-A76 cores and the NPU. Changes in v2: - Dropped the rk8601 and rk8603 entries from the device_id arrays in PATCH 8/8 and updated the bindings accordingly in PATCH 1/8, per Krzysztof's review - v1: https://lore.kernel.org/lkml/20230405194721.821536-1-cristian.ciocaltea@collabora.com/ Cristian Ciocaltea (8): regulator: dt-bindings: fcs,fan53555: Add support for RK860X regulator: fan53555: Explicitly include bits header regulator: fan53555: Fix wrong TCS_SLEW_MASK regulator: fan53555: Remove unused *_SLEW_SHIFT definitions regulator: fan53555: Make use of the bit macros regulator: fan53555: Improve vsel_mask computation regulator: fan53555: Use dev_err_probe regulator: fan53555: Add support for RK860X .../bindings/regulator/fcs,fan53555.yaml | 22 +- drivers/regulator/fan53555.c | 203 ++++++++++++++---- 2 files changed, 172 insertions(+), 53 deletions(-)