Message ID | 20231030-bcm59054-v2-0-5fa4011aa5ba@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 136C2C4332F for <linux-arm-kernel@archiver.kernel.org>; Mon, 30 Oct 2023 19:42:19 +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=k8p+jw0SCHiVClz/1YcbOF2WlspNO8bKWXeFiS2X+bI=; b=uBOcuVW5c9Vkk4 jZgtL9OUWGpYNCdWPp95SsctNnmwCMhPEhLMqa/Yh3xCIpTw30Y/pSWXCktKdnXl+Ca8IjOkkXLLx pSI+lbKW603WVQh9DW4nYXAJZ5JKXMlfNca4swt3n5yaUzh37W7k4EbFGpg31sK/2UDalxivhkM1k n7ueF7wviNCiYQb04YeBVZGyqGeUCUwTQuZj+xa7aFsGxQ+DRx+2DZ/R9TXFX70S1u+x2ISDhTeW9 LBYqqyf7pEiB0HcYEdNW2jOMZDWnvLOLsQNmb5rClcvZGWTTDxm1m2sHhIQaLRHr1ghKBD+9QHGX+ soi4vslH2Jwi3RwEPVXw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qxY93-003xGi-0I; Mon, 30 Oct 2023 19:41:53 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qxY90-003xFv-04 for linux-arm-kernel@lists.infradead.org; Mon, 30 Oct 2023 19:41:51 +0000 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-507c91582fdso7046011e87.2 for <linux-arm-kernel@lists.infradead.org>; Mon, 30 Oct 2023 12:41:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698694908; x=1699299708; 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=oLBCiejWcLX5tzcNkh0MgObjl1pJEDZ1NaFHdVzEHHY=; b=AwGyRY39qSbq9HXir4gEiHvuVyZXRPodkGAsFRFEYGHfSvP8wDbGhhk/LZ4YJXk4NS 9638WeQwC2+gXbjsZP2fDZC7P0MyH3VGCTMhdF0dxVN8QKXhNjno/zyFDgRQENYcdQcH Ed89H6orWaTW2dX0y41/wLXIyS2gZrk9V3228K23/Yr4zvrP0U/95ZJAWzjNbhnFwL1n a2MmwgGFTeWs8KjWhLIBpkQCcKcGQ8o6ufn3yj2W1d+7s9OTXESErTxrg4/LIlS1x1k5 vk8aqqVv9yWhAUIYXliMwaXiMU9iKhSAIVr9TpT5ztWlihyti0OPUVMf2/8IH0VbVe7/ xkaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698694908; x=1699299708; 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=oLBCiejWcLX5tzcNkh0MgObjl1pJEDZ1NaFHdVzEHHY=; b=prSC0Bc7aCxO2nGKtBE4EVrTFkCbR+3s1sJmjgbJIkMBY75RKoI1+4p1VmzAIF9Z4u jXNxr6zDbMBu0W18vX50vuB7KKKDcHT9ZCuFGlPPQrVeTjUr2Huu58cE4klikeWHDGST f5pGwgXM1aMiZ1CCtYW6C0cpR0WJ9kSizizVaWANBY27tiH1xKkR+rA890fsqzjzHWAo VNqaoObbeYP2nd7k8bNudtYNPfeAEF0uQmKH0arWwakCIYy0TU15igzRSABcbwfWtFCb sntaYRyK2/ohgZmlAohAqu8sYHGyDxnWFKI4+SrDKyi2o7gUjJyfj2I1s/retHd5l92v TM1g== X-Gm-Message-State: AOJu0YwZEIAxn3Am50hakDsscvWAnqSku2BX8dG+9Pi2RNmY2vDIJ3yR XXPkt0q0trRqMF6pxC5huPbCQS04PNNquA== X-Google-Smtp-Source: AGHT+IH8oLUZxa/qDapfaqh+h8SSJjQMEWfN8vEfOglWrr6qY0TlgxnahKt61qU8BJDMkKNqRG53yw== X-Received: by 2002:a19:ae08:0:b0:507:a58d:24ba with SMTP id f8-20020a19ae08000000b00507a58d24bamr7836062lfc.63.1698694907651; Mon, 30 Oct 2023 12:41:47 -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 m10-20020ac2428a000000b005057184ae62sm1527802lfh.96.2023.10.30.12.41.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 12:41:47 -0700 (PDT) From: Artur Weber <aweber.kernel@gmail.com> Subject: [PATCH v2 0/6] mfd: bcm590xx: Add support for BCM59054 Date: Mon, 30 Oct 2023 20:41:42 +0100 Message-Id: <20231030-bcm59054-v2-0-5fa4011aa5ba@gmail.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAPYGQGUC/0XMSwrCMBSF4a2UOzaSZzWO3Id0UNPb9oJpSiJBK dm7sQgO/8Ph2yBhJExwaTaImClRWGrIQwNu7pcJGQ21QXKpBJeW3Z03lhvNFA6twVZbrQzU+xp xpNdO3braM6VniO9dzuK7/hDF/0gWjDNlxGm0Z+4Equvke3ocXfDQlVI+2g0eBKAAAAA= 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-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=1698694906; l=2364; i=aweber.kernel@gmail.com; s=20231030; h=from:subject:message-id; bh=xEWklxV2bb+THqz2hq7fCZYhiQfBC65HD3CxOBM/EsU=; b=Hi1r6Cuym/1TEN0XMMiSJF37zFmuslgicn4heRqmRSDjBZF7B+8LBPVuGY7+lww/KzdqK1Hws J3BGKg5B1+9Bg3FvlnTf7Zvy9Q7VHd1v3wG4qmgETkzgFpAaEpf8xYv 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_124150_086839_02631ED7 X-CRM114-Status: GOOD ( 19.18 ) 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> --- Changes in v2: - Fixed BCM59054 ID being passed to BCM59056 function in the regulator driver - Dropped linux-rpi-kernel from the CC list - Link to v1: https://lore.kernel.org/r/20231030-bcm59054-v1-0-3517f980c1e3@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,