From patchwork Tue Oct 22 18:17:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karan Sanghavi X-Patchwork-Id: 13846021 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 2AFFAD2CE12 for ; Tue, 22 Oct 2024 18:19:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: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=tOPvOBFrGG9v7r/XPSldG/3s5SdrorTDL8Bqnl9M+ho=; b=mKze/wd3AJsd8uoOhuU0X4kM// 8G70BCaA6UeT3sQQtYo2UZk5dHOg5+sJmMmJV/Rvn8cDMz5/UizBjI1Fab62Us9G6hVz4gVcIvpNe qJDu1Y/40cy0ncw4poZyc4O6uKjrKK44/L7AqnnpXa1S/0CgzaIkco503Ecmj44qK2NjaRedDgx/7 8QKHSnuelL8RQuPbRDwv6U8pBJ+q5h0inkfgo5WUOoRphAa+tQFWaAzwgcd2kzK9TYj4vE7mSRJT8 8rhpKO2ET1QjCbrcx8B0RSPDRlSIBdXBFigqCRbFtdo3q292Vvuuyat53lZyFT4OlmFS3g9wkN+OK f8ioByFw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t3JT3-0000000BnTB-2aXx; Tue, 22 Oct 2024 18:18:53 +0000 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t3JRT-0000000Bn7W-3whK; Tue, 22 Oct 2024 18:17:17 +0000 Received: by mail-pg1-x532.google.com with SMTP id 41be03b00d2f7-7ea8de14848so3700475a12.2; Tue, 22 Oct 2024 11:17:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729621034; x=1730225834; darn=lists.infradead.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=tOPvOBFrGG9v7r/XPSldG/3s5SdrorTDL8Bqnl9M+ho=; b=DjPG7DRo9Oyowg3hWcvgzaS8PZ0yh8phA/rs7Ga4bMJKBhVEHruAR2j/B/4JlfjiWL WQ9+0f3Xx2flKIn7I3J/Tq6wgCecREo4WMK9N/5Ua5W40fFIydk4ggT2hIAu+FVjIJ3O S/Cpuuy35Gky0qFLbaMuCyVRwvxGz9m5+yKAOSkSF1jrakHuLeKZNeNm1oDrlkb4hslf uN77oC0WUtn2dxSeR4zBV7WvqnHuW3qmqWrnj5WCFzqXohJZzD08ef76jIVV1kis0qpH 8VBTVCeRGCKos3sWW8v7VcFrzM+bUKLVJEX7vbtBFI8bQcrTIQ7U8rtuOcFFmexRh4bd di8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729621034; x=1730225834; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tOPvOBFrGG9v7r/XPSldG/3s5SdrorTDL8Bqnl9M+ho=; b=VFrXvMc3BvJ8fLopaAxyqmDBOn4INyediTfHFzp5d+ijpDxq5OCJ7alBrRc2+Vz3Ou eEweMZlTU8CBsaK3WKuM1XxjjH04/c3J7y8tnq90mljq4TW2YtI2RX1yCiTOekurNCco LIz5UqLBv1ZNLFBAW4utJmvUYisXUAzz6jBAaX3wEozlfDDrYKDlzCrZjNTZYJr5H/jZ aVPvfC7H2FEHuu3/dd8QKiDdMhyBM40DemJjbCYInNxCrbU9w/Z1uETNF9qPtqeORH6p 3ePbapHapJ4jq3TLvwwuCaKjGrF5ewVNrxLIqV7U9TLlZpBrszDX7EYkhInaKshfNdSg iyuQ== X-Forwarded-Encrypted: i=1; AJvYcCVwoN77aiHlY2i7vqOWnnCI4kAL4SxZavgmGgI4my8lw4oAhr18KtdbbSmXFlX+dhfx10rIwmNjK6VRjEDMn3EIUg==@lists.infradead.org, AJvYcCXE6z8R8+Jrn6qFOUB4t5hvzdb/AnfaKe8XBO+2ZHA0olKGzAMdooW9sFUJ30Y6WUdgdUmo1q+D0K0v4/pUZlYz@lists.infradead.org X-Gm-Message-State: AOJu0YxYqWj/Sol6g7U4f1nDVx5FwUycMsML0B3+wcTI98o/XAg0baVA VsDCZ38ai3gTZQtfMQ9R9W1a/w0NHO+RLiTp9bMUCT91irIQ1oV9 X-Google-Smtp-Source: AGHT+IFOLoHKXCN01l6moI7lD4MWbgB6NVyAeNycT4AZSKKo1HXOxFdD2XH82mm0UaaD2U1HQvuhDg== X-Received: by 2002:a17:90b:1983:b0:2e2:a6ee:9280 with SMTP id 98e67ed59e1d1-2e5ddc58547mr3705759a91.26.1729621034306; Tue, 22 Oct 2024 11:17:14 -0700 (PDT) Received: from Emma ([2401:4900:1c96:850b:5054:ff:fe53:2787]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e5ad36783dsm6524333a91.21.2024.10.22.11.17.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 11:17:13 -0700 (PDT) From: Karan Sanghavi Date: Tue, 22 Oct 2024 18:17:03 +0000 Subject: [PATCH v2] dt-bindings: soc: bcm: Convert raspberrypi,bcm2835-power to Dt schema MIME-Version: 1.0 Message-Id: <20241022-raspberrypi-bcm2835-power-v2-1-1a4a8a8a5737@gmail.com> X-B4-Tracking: v=1; b=H4sIAB7sF2cC/42NQQ6CMBBFr0JmbQ0tbaCuuIdhUcoIkwhtpgYlh LtbOYHL95L//g4JmTDBrdiBcaVEYcmgLgX4yS0jChoygyqVlqW0gl2KPTJvkUTvZ9VURsTwRhb GaVXJHhtrLOR9ZHzQ52zfu8wTpVfg7bxa5c/+U12lkKI2aJUefFVr046zo+fVhxm64zi+JvT2S 8IAAAA= To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Broadcom internal kernel review list , Ray Jui , Scott Branden Cc: devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Shuah Khan , Alexander Aring , Eric Anholt , Karan Sanghavi X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1729621030; l=3542; i=karansanghvi98@gmail.com; s=20241017; h=from:subject:message-id; bh=TXt7FMHjxwCOlBu3wcBK6UPZElC9tcZtAdhacpGa9PA=; b=VzEGHIQ+m+wo5aAFSGt04AUeIBJkcK+AjlUMZsEq3Zcj2VTuPi7jLmx+zxQ/j9V0AZyZYaPMs wjKvMnAea17DqI+P+lqWBP8gJ1RTZ0tbKA4SiNIg0fVWCOT63q5pbRE X-Developer-Key: i=karansanghvi98@gmail.com; a=ed25519; pk=UAcbefT1C06npNVDJHdgpPqTm4WE9IhaA1fmJb3A37Y= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241022_111716_017978_2A70BD9D X-CRM114-Status: GOOD ( 13.77 ) 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 the raspberrypi,bcm2835-power binding to Dt schema Signed-off-by: Karan Sanghavi --- Changes in v2: - Added original file maintainers - Removed unnecessary headers from example and formating from description - Link to v1: https://lore.kernel.org/r/20241019-raspberrypi-bcm2835-power-v1-1-75e924dc3745@gmail.com --- .../bindings/soc/bcm/raspberrypi,bcm2835-power.txt | 47 ---------------------- .../soc/bcm/raspberrypi,bcm2835-power.yaml | 42 +++++++++++++++++++ 2 files changed, 42 insertions(+), 47 deletions(-) --- base-commit: 8e929cb546ee42c9a61d24fae60605e9e3192354 change-id: 20241019-raspberrypi-bcm2835-power-5a4231be8959 Best regards, diff --git a/Documentation/devicetree/bindings/soc/bcm/raspberrypi,bcm2835-power.txt b/Documentation/devicetree/bindings/soc/bcm/raspberrypi,bcm2835-power.txt deleted file mode 100644 index 30942cf7992b..000000000000 --- a/Documentation/devicetree/bindings/soc/bcm/raspberrypi,bcm2835-power.txt +++ /dev/null @@ -1,47 +0,0 @@ -Raspberry Pi power domain driver - -Required properties: - -- compatible: Should be "raspberrypi,bcm2835-power". -- firmware: Reference to the RPi firmware device node. -- #power-domain-cells: Should be <1>, we providing multiple power domains. - -The valid defines for power domain are: - - RPI_POWER_DOMAIN_I2C0 - RPI_POWER_DOMAIN_I2C1 - RPI_POWER_DOMAIN_I2C2 - RPI_POWER_DOMAIN_VIDEO_SCALER - RPI_POWER_DOMAIN_VPU1 - RPI_POWER_DOMAIN_HDMI - RPI_POWER_DOMAIN_USB - RPI_POWER_DOMAIN_VEC - RPI_POWER_DOMAIN_JPEG - RPI_POWER_DOMAIN_H264 - RPI_POWER_DOMAIN_V3D - RPI_POWER_DOMAIN_ISP - RPI_POWER_DOMAIN_UNICAM0 - RPI_POWER_DOMAIN_UNICAM1 - RPI_POWER_DOMAIN_CCP2RX - RPI_POWER_DOMAIN_CSI2 - RPI_POWER_DOMAIN_CPI - RPI_POWER_DOMAIN_DSI0 - RPI_POWER_DOMAIN_DSI1 - RPI_POWER_DOMAIN_TRANSPOSER - RPI_POWER_DOMAIN_CCP2TX - RPI_POWER_DOMAIN_CDP - RPI_POWER_DOMAIN_ARM - -Example: - -power: power { - compatible = "raspberrypi,bcm2835-power"; - firmware = <&firmware>; - #power-domain-cells = <1>; -}; - -Example for using power domain: - -&usb { - power-domains = <&power RPI_POWER_DOMAIN_USB>; -}; diff --git a/Documentation/devicetree/bindings/soc/bcm/raspberrypi,bcm2835-power.yaml b/Documentation/devicetree/bindings/soc/bcm/raspberrypi,bcm2835-power.yaml new file mode 100644 index 000000000000..bc4223428bac --- /dev/null +++ b/Documentation/devicetree/bindings/soc/bcm/raspberrypi,bcm2835-power.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/bcm/raspberrypi,bcm2835-power.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom BCM2835 power domain driver + +maintainers: + - Alexander Aring + - Eric Anholt + +description: + The Raspberry Pi power domain driver manages power for various subsystems + in the Raspberry Pi BCM2835 SoC. + +properties: + compatible: + enum: + - raspberrypi,bcm2835-power + + firmware: + $ref: /schemas/types.yaml#/definitions/phandle + + '#power-domain-cells': + const: 1 + +required: + - compatible + - firmware + - "#power-domain-cells" + +unevaluatedProperties: false + +examples: + - | + power: power { + compatible = "raspberrypi,bcm2835-power"; + firmware = <&firmware>; + #power-domain-cells = <1>; + }; +