Message ID | 20231030-bcm59054-v1-0-3517f980c1e3@gmail.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5EEA4C4332F for <linux-arm-kernel@archiver.kernel.org>; Mon, 30 Oct 2023 19:37:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:MIME-Version:Message-Id:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=+KbDcD1SMgaR/52Jnqw/VpCnFpt4Bzi6ZzEMzPKJIz4=; b=AcC0LXa9utGQJi 91C55d3yP4F63Nh7K3XU3drmTXgqvk/orYj8XnMKy9Tg7M1ZZPXVSSOlvhPWY26tdQ4eDD86P/IU9 3MXyFnDEj1jDMZxhIBkmbOh7rJ+GcQL0/94Ef/HY/6n8KwjpWidC9Jpkrebo3l5ZPbXiVZa4qM6Gw /JyykpMXh1WZepKlTfB4ToHrh1cuMPyLXaOyWORBc99uP2s4+dpKFnLgKIxPvecm99xwo36XoZISo A875w7E0ce+IM2DYgh/89KWnQcKQm/E+Nitc+4l/W5ybXNKdGFFV+JAsQWFdNedM07uh8sqicn0Y+ gBapEcUJ7HqPU46HzRIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qxY4L-003wSn-1b; Mon, 30 Oct 2023 19:37:01 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qxY4H-003wPa-15; Mon, 30 Oct 2023 19:36:58 +0000 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-507b9408c61so6794668e87.0; Mon, 30 Oct 2023 12:36:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698694611; x=1699299411; darn=lists.infradead.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=Bh26XfJbTftWgy18NaxuF1WAEMg2xoCjkdWOn5977yI=; b=MZJ0jDLvYJC+xHpMeYeLyUhJ0BTzQYWeHrVVCG4UgTb2mAJdPpqVk8OrR0mrtlvUZQ 1XOQj/WPA4+886hKihHH7o1mUnbC+q1JAQ4YvBkhNPoqYDIAJfDU2wPSBG9SoUwEaRr+ rnZA55UxbQ2Z8OD8ByE4M1JVctu35/QV1BSvfZW1S/n0fKXXwoLLjXi0TVodElKBM6BA k9tz+Uk2ylyKSC686HAbc+DipnzWffy5RaqHrURKlvql5AVfFrwIg9EYRfu1hI7FRKP9 qdzFdJUsOTK51QSIeq92RAvRUyR2n94hsufcUlkjQdd7ebrLHT30DQz6QDuyUOaykrYh a4ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698694611; x=1699299411; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Bh26XfJbTftWgy18NaxuF1WAEMg2xoCjkdWOn5977yI=; b=LOTnGKuigv9jdSuOOHbBlrBWAlQyKk2dfKb3XYvp+2WQwkT7+F5RSWG9gvkzouKUxU vSHTEMMc9oeAeKPLq2RqLD0PHUyzwx9L+Uz984Q4cI+3L9/yWtruYoIEPADWM1p4KHjn eeQDIJj+dU7V1FaBOYDTvvRlAD9w3UKvAmfi7h2VbSfNI4RYWuTF4y5ZEio8AqdEyLPY jwm2Gc2xYWwwK1FIst8NWwigz1IcKzyq7h3QqY+VC9amUMQpB4/mixH6n30axWVi1ZS1 dePAzFVs0V/8XUqvatW/Xpo7FJ4vxMXF1Qjt4aN2OAleNUOcG+X9P7hPfLhObiv5uLHc qbTA== X-Gm-Message-State: AOJu0Yw3aZIUkpVKsmCXPDuzFtI2kBmZ1JH0jnnh+K38CiUZI63Jlv1F u+DOWj2f4JrjWvDgCNJFBL4= X-Google-Smtp-Source: AGHT+IFVbjYqeABIoPu8DwMk3cICsKdrlwzu1sNA3bEnRYKzBi6n/CDT8zTE7cxdP4KmOodOsO78wg== X-Received: by 2002:ac2:5390:0:b0:500:91ac:c0b5 with SMTP id g16-20020ac25390000000b0050091acc0b5mr7558359lfh.30.1698694610559; Mon, 30 Oct 2023 12:36:50 -0700 (PDT) Received: from hex.my.domain (83.11.208.51.ipv4.supernova.orange.pl. [83.11.208.51]) by smtp.gmail.com with ESMTPSA id a27-20020ac2521b000000b0050482b29ac8sm1510781lfl.31.2023.10.30.12.36.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 12:36:50 -0700 (PDT) From: Artur Weber <aweber.kernel@gmail.com> Subject: [PATCH 0/6] mfd: bcm590xx: Add support for BCM59054 Date: Mon, 30 Oct 2023 20:36:37 +0100 Message-Id: <20231030-bcm59054-v1-0-3517f980c1e3@gmail.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAMUFQGUC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI2NDAyNL3aTkXFNLA1MTXePUFDPTVDMTSxNjUyWg8oKi1LTMCrBR0bG1tQA 1gSuaWgAAAA== To: Lee Jones <lee@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Florian Fainelli <florian.fainelli@broadcom.com>, Ray Jui <rjui@broadcom.com>, Scott Branden <sbranden@broadcom.com>, Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org> Cc: Stanislav Jakubek <stano.jakubek@gmail.com>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Artur Weber <aweber.kernel@gmail.com> X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1698694608; l=2127; i=aweber.kernel@gmail.com; s=20231030; h=from:subject:message-id; bh=8uNP0FkkjxZLolVyEC3Crq7ZNEr3i9gNvQ7PYt3oBl4=; b=gtxa7vZMkbHoh5+HI/HS+vJWbKblgVgBc1TrziDaAzI5Is20/imvZ1DNc729ZtNdjRrPuz0av 2TxKRw4NduGA7u3GhyO4bhkBe/7eLTgFhpoRu8UyUqKiXFBDTE4gDmn X-Developer-Key: i=aweber.kernel@gmail.com; a=ed25519; pk=RhDBfWbJEHqDibXbhNEBAnc9FMkyznGxX/hwfhL8bv8= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231030_123657_376176_B04D47C7 X-CRM114-Status: GOOD ( 16.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
mfd: bcm590xx: Add support for BCM59054
|
expand
|
Add support for the BCM59054 MFD to the bcm590xx driver and fix a couple of small bugs in it that also affected the already supported BCM59056. While we're at it - convert the devicetree bindings to YAML format and drop the bcm59056 DTS in favor of describing the PMU in users' DTS files, as is done for most other MFDs. The BCM59054 is fairly similar to the BCM59056, with the primary difference being the different number and layout of regulators. It is primarily used in devices using the BCM21664 and BCM23550 chipsets. I'd appreciate testing on BCM59056-equipped boards to make sure they aren't affected negatively by the changes. So far, I've tested this patch series on a Samsung Galaxy Grand Neo (BAFFINLITE REV02) with a BCM23550 chipset (BCM59054 MFD); this device is not yet supported in the mainline kernel, but I'm working on adding support for it, and other commercially-available devices using Broadcom Kona chips. Hopefully some of that work will make it into mainline in the near future ;) Signed-off-by: Artur Weber <aweber.kernel@gmail.com> --- Artur Weber (6): dt-bindings: mfd: brcm,bcm59056: Convert to YAML dt-bindings: mfd: brcm,bcm59056: Add compatible for BCM59054 ARM: dts: Drop DTS for BCM59056 PMIC mfd: bcm590xx: Add compatible for BCM59054 regulator: bcm590xx: Add support for BCM59054 regulator: bcm590xx: Add proper handling for PMMODE registers .../devicetree/bindings/mfd/brcm,bcm59056.txt | 39 -- .../devicetree/bindings/mfd/brcm,bcm59056.yaml | 142 +++++ arch/arm/boot/dts/broadcom/bcm28155-ap.dts | 68 +- arch/arm/boot/dts/broadcom/bcm59056.dtsi | 91 --- drivers/mfd/bcm590xx.c | 5 +- drivers/regulator/bcm590xx-regulator.c | 708 ++++++++++++++++----- include/linux/mfd/bcm590xx.h | 7 + 7 files changed, 728 insertions(+), 332 deletions(-) --- base-commit: 05d3ef8bba77c1b5f98d941d8b2d4aeab8118ef1 change-id: 20231029-bcm59054-3ed65e649435 Best regards,