From patchwork Fri Mar 7 20:08:59 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Finkelstein via B4 Relay X-Patchwork-Id: 14007115 Return-Path: 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 73D0CC19F32 for ; Fri, 7 Mar 2025 20:19:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Reply-To:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To: References:Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version: Subject:Date:From:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=8ywoNGB6dhGRiApPfujTGhG8OUfBsQ1dJs2UDBDVfj8=; b=3ws7jyrKiYNULZhqOLE2G+zirH r2Nhu20pE7XswEIi8fDtuWOqSO7Stc0kD93eqzhOiFqzO4v3/cJheBk4RKI9Va81TLhaiUR/ko4ZH 4W0xeM6TJfpf1y1pW+u6ytm+vp+NuqqzMXq+rQ+4b1YW2rg+JbRHTRALG2zc+NobKB/2zd7hl71gp s/MUD/yJdEqxJ7C8trhU2xiCTXfFSmXXC7/TRX+x+mNmAHj38qJlhA2GyOPGsWhuOdAu3anUe1A+B xss+gwzf9oz5sGFV115x2oua022y+NHL3dFagXZ1kxSC3uiPCFWRCUTQoluZsOJcrmLydRIiOcQyj ZHx9Qdhw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tqeAJ-0000000FTMH-37N2; Fri, 07 Mar 2025 20:19:27 +0000 Received: from nyc.source.kernel.org ([2604:1380:45d1:ec00::3]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tqe0E-0000000FRkY-3mhU for linux-arm-kernel@lists.infradead.org; Fri, 07 Mar 2025 20:09:05 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 8E299A4521D; Fri, 7 Mar 2025 20:03:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 58459C4CEE7; Fri, 7 Mar 2025 20:09:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1741378141; bh=cM/qjyW3YYkGvJv2WanJxVFUzfyRY1WJF2GoYePp3pQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=pAwcrnKtrhwfBsEwlZ4xdJdn5DjHh4g9yNET6Lkyzk6O94h1dt2nXPW3Zlyr/x60D o2RRrK00hZfFxzYDC8Hw9P8wTXNZV2n5Opj/rIuYS2wsTTeF8I3zpJvBnyOzHew2P+ LpTv6wP7+NYpT/noR+fyav3Rz9jUIgJKmP9n/cbKoF1bR3Jb5gIQjXRE6pvPbJ0Jq8 0C1df3HKo8Pq/AiwCC4vGAIFP+51bOLXucw3xjFLVGMCxt8QAqRVePmlPeyjdhPSr0 /DjayjWWl/eQJRCfW5Y08t2k9fO7FHLI0jAcPv8x2ntVp4f++kuVkaNFhdpYsEYSfl fv7KbCM0mixYw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E094C28B27; Fri, 7 Mar 2025 20:09:01 +0000 (UTC) From: Sasha Finkelstein via B4 Relay Date: Fri, 07 Mar 2025 21:08:59 +0100 Subject: [PATCH v2 1/3] dt-bindings: spmi: Add Apple SPMI controller MIME-Version: 1.0 Message-Id: <20250307-spmi-v2-1-eccdb06afb99@gmail.com> References: <20250307-spmi-v2-0-eccdb06afb99@gmail.com> In-Reply-To: <20250307-spmi-v2-0-eccdb06afb99@gmail.com> To: Sven Peter , Janne Grunau , Alyssa Rosenzweig , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Sasha Finkelstein X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1741378140; l=2380; i=fnkl.kernel@gmail.com; s=20241124; h=from:subject:message-id; bh=42A1Zt2nvcW4/B1VtjKrwbVfufeFdTVKin8on6KgoN8=; b=ZGFLsAhcZjp+II8lxt6aHhHoP4xpMbAQhaV8uZk9gbYv3wo+c8nfhcIFUIJeuQ1rZ+Dt84E/H EDyXTAvYYprAPJS6SnlHj0C/w8URuJksc4dgdwLGW7+2Rct5L8Tz+Nw X-Developer-Key: i=fnkl.kernel@gmail.com; a=ed25519; pk=aSkp1PdZ+eF4jpMO6oLvz/YfT5XkBUneWwyhQrOgmsU= X-Endpoint-Received: by B4 Relay for fnkl.kernel@gmail.com/20241124 with auth_id=283 X-Original-From: Sasha Finkelstein X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250307_120903_124681_281D537C X-CRM114-Status: GOOD ( 12.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: fnkl.kernel@gmail.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Sasha Finkelstein Add bindings for the SPMI controller present on most Apple SoCs Reviewed-by: Rob Herring (Arm) Signed-off-by: Sasha Finkelstein Reviewed-by: Sven Peter --- .../devicetree/bindings/spmi/apple,spmi.yaml | 49 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 50 insertions(+) diff --git a/Documentation/devicetree/bindings/spmi/apple,spmi.yaml b/Documentation/devicetree/bindings/spmi/apple,spmi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..16bd7eb2b7af2c0b176f0e5b1970f4670af691da --- /dev/null +++ b/Documentation/devicetree/bindings/spmi/apple,spmi.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spmi/apple,spmi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple SPMI controller + +maintainers: + - Sasha Finkelstein + +description: A SPMI controller present on most Apple SoCs + +allOf: + - $ref: spmi.yaml# + +properties: + compatible: + items: + - enum: + - apple,t8103-spmi + - apple,t6000-spmi + - apple,t8112-spmi + - const: apple,spmi + + reg: + maxItems: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + + spmi@920a1300 { + compatible = "apple,t6000-spmi", "apple,spmi"; + reg = <0x920a1300 0x100>; + #address-cells = <2>; + #size-cells = <0>; + + pmic@f { + reg = <0xf SPMI_USID>; + /* PMIC-specific properties */ + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 8e0736dc2ee0e33544fa373a4978b7dae18c040c..271ff8110df83c2d4fe7fbbfffc0a72259460bc5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2236,6 +2236,7 @@ F: Documentation/devicetree/bindings/pci/apple,pcie.yaml F: Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml F: Documentation/devicetree/bindings/power/apple* F: Documentation/devicetree/bindings/pwm/apple,s5l-fpwm.yaml +F: Documentation/devicetree/bindings/spmi/apple,spmi.yaml F: Documentation/devicetree/bindings/watchdog/apple,wdt.yaml F: arch/arm64/boot/dts/apple/ F: drivers/bluetooth/hci_bcm4377.c