From patchwork Fri Apr 7 13:57:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengyu Qu X-Patchwork-Id: 7885 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp303148vqo; Fri, 7 Apr 2023 06:59:35 -0700 (PDT) X-Google-Smtp-Source: AKy350bgw0C70LMsbGytsuA2MFPegzl6jaH/JJb5gcvon2qZuz9mNQsyej9OTdkPw6Fc8AMuHwnM X-Received: by 2002:a05:6402:5161:b0:501:cf67:97fc with SMTP id d1-20020a056402516100b00501cf6797fcmr1966367ede.10.1680875975078; Fri, 07 Apr 2023 06:59:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680875975; cv=pass; d=google.com; s=arc-20160816; b=cOpykezszVPzXSsf2gviaSRGlU2eMOGFLc0BUZDyBak1g56H7p1LiYNLadgDjNcmxE V2K8lotyqfE43aIb+OoUQ+rFuEEiCMORkb7KFCuDn2By67Jya0TpqYR4/ZZVklZTMC1j bNtNVGxq4twn0CEt3ksgqSgb2JQV+lLU4NRssXMKLMMfYt46TZDUjCkng8H+nG+7ADQS 1K+e6QOGSia9R0YgEgsVD7SMty/x+Vafy3xrcwgD3o8Bn799vrPcGXQ3bmqDT9BaZ+iQ 74TyC/cYx+fhEairmDvKpuUGY+MUyUuCkKJZRH9fit2jOMMjpDEW8U5XzpPrXjuiD3qm zjqg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=0vrcbQ/ynOqDu243PYl+5tLXL9TrXYsqacXoIBU0f7E=; b=s2qlpauBiHPHYY5Oe+Yz31BJ33hiudIJ77gQd8CSeyjCCAwEKQBf4OQvbS61GKU1tD /0rLsmQ3h9PSvF7OKtzCcgeKnumPaIa9OvrSJC+t/mhc1cGkFLvhsJzY1UknoBJYZ9oo 4F9mxaWgcKkJwVqbdYgw0XN8G0KO4wnmnBXj9FOw0tjhrK0Szo5cNOTf23OkrVZL9XPE aWb8SEDjb8dRAt1gjcupfqJ7r1y0YxFuqTKLMTBtMM9Dk2o63HlS8IB4/AExhWPfIxEu 9dBGoRDMS94MlC10diJWpyPXo3tIpBOir7ZfEIiH6GNchUIWX/KzLl2EVL61B+X6JUQb u3bQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=INUaHCYC; arc=pass (i=1); 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=QUARANTINE dis=NONE) header.from=outlook.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c11-20020aa7df0b000000b004fd228408c9si3253179edy.222.2023.04.07.06.59.10; Fri, 07 Apr 2023 06:59:35 -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=@outlook.com header.s=selector1 header.b=INUaHCYC; arc=pass (i=1); 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=QUARANTINE dis=NONE) header.from=outlook.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232001AbjDGN6X (ORCPT + 99 others); Fri, 7 Apr 2023 09:58:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240334AbjDGN6H (ORCPT ); Fri, 7 Apr 2023 09:58:07 -0400 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01olkn2097.outbound.protection.outlook.com [40.92.98.97]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE50B8A42; Fri, 7 Apr 2023 06:57:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fQgV13uEtcjwWuwhqPubZA7bkR+H308Onts/gI/OINX2OFWhtK8afn89cP52fnGSEBHp/5ah/P/EB9zYs1SThRXZBZVRoSRRPTz16u1D59JYY/GSHOWfkMu2va9UCZ81Fp+8SOMuSkzF8X8QZv2ot4GBx7LLYBdjf33njUIc/B3tH8soHv7KtsfVU9BJqOyJhsHA2sKSOFo+tWUXchriNyUnU6AuKxC1nD2SaQrG580BLD2XygTXo3rt55HWY/FqA1+Hf0djhAcxsgE1XsN2bJHp9Y+QJtT8rsI21vHBiCI9uKS2xsvMrBzPXxmhs1VX1SOyvDoCGEmsVkuUCT9iVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0vrcbQ/ynOqDu243PYl+5tLXL9TrXYsqacXoIBU0f7E=; b=MTw/bmfveoyrkMjB/LVj9x+KEvvgQk/3PmXYZ0emG/3gjJiDE0miw7MVEWgW2H7OwDl50OCZ25obGZm9oPDN3kGXoJVidIGj9OrRw3qOe6RU8uS4ZuTcip/XMRO8fAst4eRzG3jWeK1HN2gB6oFForfakkqWIHiofVFacGxV9V4j9dUniszCFncDtZC0G2dZxTBMkcwaISI1m9pAtRG3gIiEWBqJ+NJgss54ILvmCLq/7GuMvsZ3vJqzJmmE+UgQjjAyzYIhZswPhGx0O594ZLWENIl+I6ATcdtnpCbp0ldX6otNBGbxmXysTQxacBrJbZ9Ar7mLA+IEh6gDzzk7rw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0vrcbQ/ynOqDu243PYl+5tLXL9TrXYsqacXoIBU0f7E=; b=INUaHCYCi0xqdt1Da5gGzrSldD8xwi96ehaHHRimMhKTvRfqaY2lhSSTtNbKUBv9zvmINzWjXJG+v5prTI5iG7K6LMM6tccU0ChvXodajaC5sACfp6gVXjA1IKz7ums+jEmj3MAIfKoTSQqyAoiaGK4cUmZeXgBV3pQUDTRepxTj6j4vTDcDd2I6Y4ftd7BJ9x+UuK4hkxoSZiNh8dE0UJJoQViQ+EXXxQPuW9KyUkjr9Qq6fxi3lxs0xzsix46Z3ksxNRy/5mZlide9O/D0WZmfUUKyNgQwLnqpS9xoAq7EkoTANUNSnY5JSOSGVEVcCfTMMiKZbu1stJaUuZvlmQ== Received: from TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:252::12) by OSZP286MB2208.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:18d::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.35; Fri, 7 Apr 2023 13:57:49 +0000 Received: from TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM ([fe80::d190:6e4d:5a1e:59a]) by TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM ([fe80::d190:6e4d:5a1e:59a%3]) with mapi id 15.20.6277.033; Fri, 7 Apr 2023 13:57:49 +0000 From: Shengyu Qu To: lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, wens@csie.org, lgirdwood@gmail.com, broonie@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Shengyu Qu Subject: [PATCH v1 0/4] Add X-Powers AXP15060 PMIC support Date: Fri, 7 Apr 2023 21:57:13 +0800 Message-ID: X-Mailer: git-send-email 2.25.1 X-TMN: [dSkGuS4AOxlLuF9I7D5pbNVqhPeryzkl] X-ClientProxiedBy: SJ0PR05CA0050.namprd05.prod.outlook.com (2603:10b6:a03:33f::25) To TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:252::12) X-Microsoft-Original-Message-ID: <20230407135717.17381-1-wiagn233@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TY3P286MB2611:EE_|OSZP286MB2208:EE_ X-MS-Office365-Filtering-Correlation-Id: 47267626-8010-4c14-ee87-08db377012c3 X-MS-Exchange-SLBlob-MailProps: ZILSnhm0P3k6jt5nbgZNLlaeV4OzujJ1x7vrjZMmp5xX5eGR+Eyz9R51GLSUaN7PZtxnjG6o1QaL54qZjL0obI8dJvQOWXnEd7cSu+j14fsHgt2jQQe0Y2FPgjWMqhhzQO/gE1W24d7KKtuuV2MCE3uNOTE1D+iecBN9OVjzocrTvc42vQvzKdDgMFwGXPrzeAdMGPjl5sGzvpEMIoM8ABF5by9u9Fl/1Fchen3pDFy/0UA3XSAnOx+0xvPOxjFuG+ALWHSsYelxpu4YK2SFsbxKrONKweZ8tjp9WGPl0NdVDvgvrli+pq6nrhJH7HAuddoUanSfwfx9PS+3B5L7W90CGY5zSIIYkKyq5MCJy2gg3qIdkygF3I1fcu3Vls8et1gHJvJEtJKkcVar3nbPkq/kzp7Qg6qE7ek/3llcuQao3NqcqCaOFmqD17Gpl+iKNfUBiEhWa2JRNPAutxbPGT3z3h8C1XqoKU6wweLP5A3ZfNHwmg71W9MAwh2rP6hpcnxtD71kRmiG2N6YZFl5z0INpWhW9TwXTv3nJafABsqG1pA6SBZspF9Jr7inhjjKTia+fljOJAjiDEgLfanH5FmmNy5icS5PJPhM5XJ7cdzJki6i1+iGkvB6lxoJZoaq+lUqIocamXhmNbkE3GMVs+eYB1iMCkHzgC6J2+zVqJ7zRFY/VqZWxArtqHgCbh9B3LaLJ/RYbHzK1dLvQ4xCsje/DzBYisoLljibmU7Z4fZmBgKwMnIV6CgJCUrFS++NHrtlUKSd+qmlYuR8/7ELEGNpB9jB/Z++ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Z8IieyLWPFOt+/f08NgPTZL2Pr+XWrAQwygbLecnnNh3qAoXMHJiQzqGQjYMkk72xFr7MXhtmkUKo5kjo0Eybkn973d+rSNCiRMip/0+OgOxdHQiuBa3f84yI0IgBzQ1z/9gmZafhOMBTTaMCGB1sN1pP0m4qTemllcjJ2M665DBBjnTLEJUyS+PdVJCzU0jQepM7VRogKZQmiNj3HsjaK3NtLI4bf8fLcowNtsEE4vurpTIv+5ckGGtAW47R01GmUgjxQ974+m62eWG5QCaBFxqAKPVKYEn1r60XIzB74E2CXwZkbuN2eczNZ+U95BpYaroE1vKlfIZc3b2kBvyPYMne/k/6CtMXBk59ABV/3jkQbPDt30cb8TfPEYnwelvYDInDCuvkQEEi+fZPy37Kv4TKmwMWC8WQRbHtkv41e3gVIq0uLr1D8hv8HF2HP70yRtWD4IcCs50oXe42P2IzYwWpMLeiSPAhfibu/0YgJb5qBSaz4DYUL2zM2+vL2wCAxeIUeFkqSgY0zWWbXTqLOaFzKMuHfJ50/bew9Tar07ksg+t0uC4QzS24vJyPZJ5oe9j63KOH1W4vhAfGE5km8hO9V75SPTcGN/Tsb6tNHeJ69bI7mJ4AzLKWUOF/RxM X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +n5uY2svGKB2JVE2pWfYew9S1OAIhPi5HQ0SmuManGYLDSItY71GkcI4Okl3gA9xZYQGrfBOK9yCCYaU50b0IvRngloTYWogefdg9ubkg2jmDegTPRv6IugEL9yKnaeBHDEihncmhELIcw+rMa/zSJ013fRNLtrSwovA3Us4LY0ucPPY6w7FaETO3PYbom/e9YKexiYuccgSPzyesINCwD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-4c14-ee87-08db377012c3 X-MS-Exchange-CrossTenant-AuthSource: TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Apr 2023 13:57:49.8369 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSZP286MB2208 X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,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?1762526206536825497?= X-GMAIL-MSGID: =?utf-8?q?1762526206536825497?= This patch series adds support for the X-Powers AXP15060 PMIC, which is a general purpose PMIC seen on different boards with different SOC. This series were tested on Starfive Visionfive 2 board. On this board, IRQ line from PMIC isn't connected so PEK function is completely unable to use, so IRQ existence detection is added to patch 2 to avoid initialization failure. Besides, its GPIO/LDO control logic is quite different from other chips and is not easy to add support for it basing on existing axp20x GPIO driver, so I didn't add support for it in this series. Maybe others could do this. Shengyu Qu (4): dt-bindings: mfd: x-powers,axp152: Document the AXP15060 variant mfd: axp20x: Add support for AXP15060 PMIC regulator: axp20x: Add AXP15060 support regulator: axp20x: Set DCDC frequency only when property exists .../bindings/mfd/x-powers,axp152.yaml | 3 +- drivers/mfd/axp20x-i2c.c | 2 + drivers/mfd/axp20x.c | 90 +++++++ drivers/regulator/axp20x-regulator.c | 237 +++++++++++++++++- include/linux/mfd/axp20x.h | 85 +++++++ 5 files changed, 404 insertions(+), 13 deletions(-)