Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp327665rwn; Wed, 7 Sep 2022 17:41:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR5xyH2ZMC81rl7ZHJwYiV7x39cdS5UmF6y71v2KBhCPhM1kUBsLy2zMtrTzRVHYynnKuMNw X-Received: by 2002:a17:90a:4fe3:b0:1fd:b6f7:f5e3 with SMTP id q90-20020a17090a4fe300b001fdb6f7f5e3mr1218832pjh.169.1662597698962; Wed, 07 Sep 2022 17:41:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662597698; cv=none; d=google.com; s=arc-20160816; b=Hh+mL33M2+xlo8uHLKQCyAbNBMmr7EOggS1rSphdkkCgaXsN7mvsa6SQOLYADmbIvZ CSFOgczybEacitf8ZyjsV4qbmT9zcMtY4CfmbN7qIAhUxkkrsEsELPrdGxXTBbELjSUI 3CZPE54rL+NPNrTjGyYhvb1nuP94EjmHhYyf9gzwbPW1OGbpNtpGyaLVROYKHGrzfM1a M67KSYq/klRynPdY3ouxXoi3XVRaRAdMllb22ac/B9W7clMYCIkGaHj38U3hnleqR3in g9DMYfED5OkI4Z3S1aOL7Bs+bpJNUJ9mhMetxY6Uf8AwLMS4LXwHm26wJ3baM508SoQO N15w== 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=DELamAHiH5ow1JIa3b0SED6sYq9CauriwmQhOZR8Eac=; b=bRAQgZ4q8w7LmXaa1s8mXcv1gGZVgoEODAQIbOKJlY3xMATy5/PPt+KP8W37CV6UWA KuKlVZYcTiZz9kSVpawAV83v7fTI+0EZNck/ttKIfmOh5lvkFXpjVpRxICwkXa0mme5V z1ViQCrkUgc9TNQvRgJPMEGhfw3UJ8PjCPQxyJG4cegP5vgRmSePlCf8aH6U8dZVr0G/ g4twsf90qa75qqPXCRowNm1CBGB7dHILz2D9FUz1PYxvwNJ4ngtmkWo3MxGhSwqjdSjj wMPvApkh9g4lW/XNl06RnRA5TbpoSD7unEweV67d5xojrOzhS5Ib25ArTqPLjeiZZhci hAgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=EdHO5H2S; 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 z14-20020a63b90e000000b0041bd0985ea9si18053678pge.671.2022.09.07.17.41.27; Wed, 07 Sep 2022 17:41:38 -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=EdHO5H2S; 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 S230230AbiIHAbS (ORCPT + 99 others); Wed, 7 Sep 2022 20:31:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229701AbiIHAbQ (ORCPT ); Wed, 7 Sep 2022 20:31:16 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E4089DF95; Wed, 7 Sep 2022 17:31:14 -0700 (PDT) Received: from jupiter.universe (dyndsl-095-033-158-249.ewe-ip-backbone.de [95.33.158.249]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id 1B9086601F71; Thu, 8 Sep 2022 01:31:12 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1662597072; bh=3EKYdeI9ImBwId2uHj5bb7bVDUAL+ak9O+UkE2ID4FM=; h=From:To:Cc:Subject:Date:From; b=EdHO5H2S9Ran9kSXk41JTPAejXUYbg203Fp58VoPUxpC7b7j0SOL8NcIxedmUtWjg 0uYi+hcQvtbjrEvLH09pO7ZBKZyDt52p4mP5dPOcwaauuDSXpxf52k4YLt9NiV4rkI USSQDPbp86hk7aZpQ2BxV03v0uuKgb4Mz5OGcCgA37t+IAanXutPqji3RilEBo8PYk 1oj10Bdajd6QJ4hVDQYHFwkEPYRYeeQ/GRWBxONOYnHHLSOoRHdcaszRsOXtW0OOQg 0MYxTZRAs7sK55dDS3CsDHHj7rQgK45TOSzrlFXgS2K55kbXxFgG6icqlWshntfNA6 JSQ1uutFvUWlg== Received: by jupiter.universe (Postfix, from userid 1000) id 5A2C248056F; Thu, 8 Sep 2022 02:31:09 +0200 (CEST) From: Sebastian Reichel To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Lee Jones Cc: Michael Turquette , Stephen Boyd , Linus Walleij , Mark Brown , Liam Girdwood , Alexandre Belloni , Alessandro Zummo , linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCHv2 00/13] Introduce RK806 Support Date: Thu, 8 Sep 2022 02:30:54 +0200 Message-Id: <20220908003107.220143-1-sebastian.reichel@collabora.com> 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_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Hi, The Rockchip RK3588 Evaluation Boards use SPI connected RK806 PMICs. Downstream this is handled by a new driver, but apart from being SPI connected this chip is quite similar to the ther Rockchip PMICs (also RK806 is promoted to also support I2C). Thus this series instead updates RK808. Changelog since PATCHv2: * https://lore.kernel.org/all/20220831215437.117880-1-sebastian.reichel@collabora.com/ * Collect Acked-by * Avoid if/else checks for regulator id in rk806 regulator driver * Fix indentation in DTS example section of the rk806 binding * Use absolute path for regulator.yaml referencing in the rk806 binding * Reduce pattern for DCDC regulators to only allow 1-10 * replace uppercase name with lowercase ones in regulator names * replace _ with - in regulator names -- Sebastian Sebastian Reichel (13): mfd: rk808: convert to device managed resources mfd: rk808: use dev_err_probe clk: RK808: reduce 'struct rk808' usage regulator: rk808: reduce 'struct rk808' usage rtc: rk808: reduce 'struct rk808' usage mfd: rk808: replace 'struct i2c_client' with 'struct device' mfd: rk808: split into core and i2c dt-bindings: mfd: add rk806 binding mfd: rk8xx: add rk806 support pinctrl: rk805: add rk806 pinctrl support regulator: rk808: Use dev_err_probe regulator: rk808: add rk806 support ASoC: rk817: Remove 'select REGMAP_I2C' .../bindings/mfd/rockchip,rk806.yaml | 388 +++++++++++++ drivers/clk/clk-rk808.c | 34 +- drivers/mfd/Kconfig | 19 + drivers/mfd/Makefile | 4 +- drivers/mfd/{rk808.c => rk8xx-core.c} | 343 ++++-------- drivers/mfd/rk8xx-i2c.c | 205 +++++++ drivers/mfd/rk8xx-spi.c | 128 +++++ drivers/pinctrl/pinctrl-rk805.c | 189 ++++++- drivers/regulator/rk808-regulator.c | 508 +++++++++++++++++- drivers/rtc/rtc-rk808.c | 47 +- include/linux/mfd/rk808.h | 417 +++++++++++++- sound/soc/codecs/Kconfig | 1 - 12 files changed, 1976 insertions(+), 307 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/rockchip,rk806.yaml rename drivers/mfd/{rk808.c => rk8xx-core.c} (71%) create mode 100644 drivers/mfd/rk8xx-i2c.c create mode 100644 drivers/mfd/rk8xx-spi.c -- 2.35.1