From patchwork Mon Oct 30 19:41:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13440845 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 D6DFAC4332F for ; Mon, 30 Oct 2023 19:42:24 +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:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=u4h040XhgV6CveCEPfBd8s5sJB3pRHZV3pYrl4hMkCA=; b=iiCCuCUptj9W/l 8G2KYwppocZSeDdiW3oeEsVXjCC0GN4kUA6R/CBaxp1Bx+shLbkhyVszhg5tG3eKXtl2AtImRos4p TbNy0QrmkxHkS7UIM7Bl3KRLxEZHNnp7pEPInEFC2+lE67unr/nhalYsObwY07JUik8euioVhj9xg Vefl0pA0ZdMmngfDxje3V0cJjuWCRuLNjx9In9j7smQaTtOJ3cGlEvbIjzMWjGcP68YxuKhLvo3Yy eFEBXOf9QwYOCfStyYR1nxBYVMYqZsf2L4dNRaPdZlGkWA580LAVUx6crNava4E/pYlNCXYwDzbpq PnyE+NM6rfi1cHNPmn4A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qxY9B-003xK8-2q; Mon, 30 Oct 2023 19:42:01 +0000 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qxY92-003xG4-1d for linux-arm-kernel@lists.infradead.org; Mon, 30 Oct 2023 19:41:54 +0000 Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-50930f126b1so113686e87.3 for ; Mon, 30 Oct 2023 12:41:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698694909; x=1699299709; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=swATsRm/D/rD5LWbhxOgcaqNC48PvNHzrc6mwlQlkRo=; b=OtDhxkDFzFqLRLjK4Ocn0kW+r96KrTG1utvg6nHHWK3/Um1Dv/YFYCKz+Q7A/cM2Uo LFZ+JPjPOj9YPTvyYZt8zbfkI7a1uZM0Xogv6icLvpwd82khbjJAPiuQglzgh+/4AXcf 3vLWm0kMdLKI2VtazeTZXdJSKEyFgByvB4XwKeiu7MQ1hf8LEdjaCduYPNQQAD2C9Wxs IUaXHEwIEEf5HJBnj9lLqiQNiL7oXxu/MhcMHE5KFjtwfUwhq01ghrBeOlyq1twyvdJs qdh2l94VF0L1EOuuS9MLB2vMvK3WpyGkRyMp+vSPSU2QVILySPtxcP8X8ANsoB9nRl1l cR8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698694909; x=1699299709; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=swATsRm/D/rD5LWbhxOgcaqNC48PvNHzrc6mwlQlkRo=; b=tATp/v6ae4G5R2QyE5p5dXHFj84CJI7ghgPnVDR6yYQdqMdPjmUttjmFe+ZdofS1Mp OfvWTsCMJfjGeRorzqtq/JHdIwlBb/q4qZ+4niEBK2I9xmaFOYuJKcYaPiSHwRlajLeH QQJYZju5bThWS6NQQPkwnMlAKCVi5uP7MfDBXXr+BN5kZ6Z2Dc4N17uUb9gFhO0G2oQp bfOrXhVzfLP8QY9gqAZCkSyHfSY+zjwB0eO8fvy7D/DeYdYO6qj9WzPtvUNIdLMQbWm/ 4uEEqqK2oK5++yRAbLdvU0GvAreXkbudMGL4uLJhzR7l+QzeWiyTO5ZYNd0vx7isE/Qj /98A== X-Gm-Message-State: AOJu0YxCYJxO3eY3CRf/RuiQyq2uLydNz3/Y5ApBr8Ald2qQX05oXC6c Gw38ved5rQ8zTBDK+BcgUUE= X-Google-Smtp-Source: AGHT+IHDjgogZloqvF0vTFY93o5pdCKouALhCREZfA40vWUlSo3ELseYviRwZ7oOCxUJTw0ha3c1Mw== X-Received: by 2002:a05:6512:1109:b0:4f8:714e:27a8 with SMTP id l9-20020a056512110900b004f8714e27a8mr9469763lfg.0.1698694909024; Mon, 30 Oct 2023 12:41:49 -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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 12:41:48 -0700 (PDT) From: Artur Weber Date: Mon, 30 Oct 2023 20:41:43 +0100 Subject: [PATCH v2 1/6] dt-bindings: mfd: brcm,bcm59056: Convert to YAML MIME-Version: 1.0 Message-Id: <20231030-bcm59054-v2-1-5fa4011aa5ba@gmail.com> References: <20231030-bcm59054-v2-0-5fa4011aa5ba@gmail.com> In-Reply-To: <20231030-bcm59054-v2-0-5fa4011aa5ba@gmail.com> To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , Liam Girdwood , Mark Brown Cc: Stanislav Jakubek , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Artur Weber X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1698694906; l=4521; i=aweber.kernel@gmail.com; s=20231030; h=from:subject:message-id; bh=Y62BQBGtAcPv02Fu046rbEKVHmHWcxt/VeMRr4coqwE=; b=nx2q3J0EGQzhBlh4CNujQQbnjJb61qCJNAkQKsR4ky9V7rmn4T7KziV5xY9FTTpXm56BySP/+ MJ52RAUBHWrADwtKPq44YGhq1lav7wc3rBoleVHhkWMeAupfSYnw7G0 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_124152_546427_21878A65 X-CRM114-Status: GOOD ( 15.67 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Convert devicetree bindings for the Broadcom BCM59056 PMU MFD from TXT to YAML format. This patch does not change any functionality; the bindings remain the same. Signed-off-by: Artur Weber --- .../devicetree/bindings/mfd/brcm,bcm59056.txt | 39 ---------- .../devicetree/bindings/mfd/brcm,bcm59056.yaml | 91 ++++++++++++++++++++++ 2 files changed, 91 insertions(+), 39 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/brcm,bcm59056.txt b/Documentation/devicetree/bindings/mfd/brcm,bcm59056.txt deleted file mode 100644 index be51a15e05f9..000000000000 --- a/Documentation/devicetree/bindings/mfd/brcm,bcm59056.txt +++ /dev/null @@ -1,39 +0,0 @@ -------------------------------- -BCM590xx Power Management Units -------------------------------- - -Required properties: -- compatible: "brcm,bcm59056" -- reg: I2C slave address -- interrupts: interrupt for the PMU. Generic interrupt client node bindings - are described in interrupt-controller/interrupts.txt - ------------------- -Voltage Regulators ------------------- - -Optional child nodes: -- regulators: container node for regulators following the generic - regulator binding in regulator/regulator.txt - - The valid regulator node names for BCM59056 are: - rfldo, camldo1, camldo2, simldo1, simldo2, sdldo, sdxldo, - mmcldo1, mmcldo2, audldo, micldo, usbldo, vibldo, - csr, iosr1, iosr2, msr, sdsr1, sdsr2, vsr, - gpldo1, gpldo2, gpldo3, gpldo4, gpldo5, gpldo6, - vbus - -Example: - pmu: bcm59056@8 { - compatible = "brcm,bcm59056"; - reg = <0x08>; - interrupts = ; - regulators { - rfldo_reg: rfldo { - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <3300000>; - }; - - ... - }; - }; diff --git a/Documentation/devicetree/bindings/mfd/brcm,bcm59056.yaml b/Documentation/devicetree/bindings/mfd/brcm,bcm59056.yaml new file mode 100644 index 000000000000..6d6acc9fd312 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/brcm,bcm59056.yaml @@ -0,0 +1,91 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/brcm,bcm59056.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: BCM590xx Power Management Unit MFD + +maintainers: + - Artur Weber + +properties: + compatible: + enum: + - "brcm,bcm59056" + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + regulators: + type: object + description: Container node for regulators. + + # The valid regulator node names for BCM59056 are: + # rfldo, camldo1, camldo2, simldo1, simldo2, sdldo, sdxldo, + # mmcldo1, mmcldo2, audldo, micldo, usbldo, vibldo, + # csr, iosr1, iosr2, msr, sdsr1, sdsr2, vsr, + # gpldo1, gpldo2, gpldo3, gpldo4, gpldo5, gpldo6, + # vbus + patternProperties: + "^(cam|sim|mmc)ldo[1-2]$": + type: object + $ref: /schemas/regulator/regulator.yaml# + unevaluatedProperties: false + + "^(rf|sd|sdx|aud|mic|usb|vib)ldo$": + type: object + $ref: /schemas/regulator/regulator.yaml# + unevaluatedProperties: false + + "^(c|m|v)sr$": + type: object + $ref: /schemas/regulator/regulator.yaml# + unevaluatedProperties: false + + "^(io|sd)sr[1-2]$": + type: object + $ref: /schemas/regulator/regulator.yaml# + unevaluatedProperties: false + + "^gpldo[1-6]$": + type: object + $ref: /schemas/regulator/regulator.yaml# + unevaluatedProperties: false + + properties: + "vbus": + type: object + $ref: /schemas/regulator/regulator.yaml# + unevaluatedProperties: false + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pmu: bcm59056@8 { + compatible = "brcm,bcm59056"; + reg = <0x08>; + interrupts = <0 215 IRQ_TYPE_LEVEL_HIGH>; + regulators { + rfldo_reg: rfldo { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3300000>; + }; + }; + }; + };