From patchwork Mon Oct 28 16:44:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karan Sanghavi X-Patchwork-Id: 13853754 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 249C1D3399B for ; Mon, 28 Oct 2024 17:09:53 +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=dXjXaMc1+NjmQK/N1YVEu7l1Gn/kANyJvtlcEB9iCKI=; b=beCd9f45AgEN1fmfIGi4Y/v3Am QJQmpw+83NeDQMHPBAAaL1+zYrw5JDZeXsiUhq4VQC18nLQ7ItKuOAkxljH4MYZ4X1xwVOVfAX3Tp XI2dRUGaqUHOt5xKAGH6j72m/CUzBiopW8aWRct+iIuLwsmJJDA1yGCEfAmMgTlFXcE8YP6SatJBN 5LBIUqMVlH7Z1+LVirA9kiDUzXEAd44zjGxKXyuKXWY83B4e/g8xxIpVfd3dzRQZCX/bcy3pIPozw 8Mw/fzBRrZWbGHgvLD+1kmyrQLdy2e/oLP2UZEbQwMASq+mGRBOp9S79jN0vSX2YP49DHGxgP9VgV 2ps8jSsQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5TFN-0000000BcEl-2d6Q; Mon, 28 Oct 2024 17:09:41 +0000 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5Sr0-0000000BYCI-0ZUc; Mon, 28 Oct 2024 16:44:31 +0000 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-207115e3056so38473325ad.2; Mon, 28 Oct 2024 09:44:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730133868; x=1730738668; 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=dXjXaMc1+NjmQK/N1YVEu7l1Gn/kANyJvtlcEB9iCKI=; b=k529pgATj8McgYFGpI2CcmtlkDi+VDYfAaYyJYNDir+7Z5J1pBXXFuSBUltzynx6tO rDcJfSg2UXOUxWNiM4AZZ6TbCeR/lGuPqlAbQuYoQZJLJFwe4m0GfoCP0biES4UZizse QSwjBcFcntqNuXvcZOe8Sk6Au6xUOJYoDLn96lWuse4/qY28UpoWomxn5odCOUldwR3f Oh4wbk+HaDYqoaOBZNJUy2vxh56KZbWs2FwBr9ZpjqSJzwfw8xORKG71kySHu6V/Px4W v4PfdbXDWdHrHIVvpRz/JdsIgh9O+x+TTv+P5bYGZVXD2pap2m7zEIJmnM1GJ+RTef+f n9KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730133868; x=1730738668; 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=dXjXaMc1+NjmQK/N1YVEu7l1Gn/kANyJvtlcEB9iCKI=; b=BNqeKnfmsnrPaC5GsilUFN8OZ+DjS7GrAHoUb3EMFPtkWYALycDegyoHrMkWV+EZiu A5EKZm3+Dt41Wh6R3XS68ctqS/v1wTNqV9Os1fe9V3kFz5EO/aVbCKUF4bnfw0pSYLg9 zdRDMtT1acU7myUzGrF2RHv8670rOydjbdKcDR5GUCOitOxYeCgED6mkTa/UyJiiHPsx Pk0NibphfO+ozwBAl8DT000z3sX77Ohv4twTPWFVtn4IL9T4R0jV+0I4F3IUzpvygdXx tcYsgzWjKkXcWtMHXjNLaUMtH9WvyKGYuD5VFjOvVbBrKX68BQXOqmGG2KCkPWt+EI2d VkNQ== X-Forwarded-Encrypted: i=1; AJvYcCUQNcufxa1d0JfRvPOHGgA5ZhexkgxJEOlpyxpyrP3jMR2h1qNyTPZr26hmvWJzbrHz077acjr4pN/k2obcFkhbQA==@lists.infradead.org, AJvYcCUYHbF583CRKLyydRWpo580/cqtbmfPNpkbYFogPDPDyTXlYOQdLMYjagyLqXestebjaj0uVwQKcycuVGjEr+MP@lists.infradead.org X-Gm-Message-State: AOJu0YygTBN3X3Iw15HHkkcjfqfK4Ag/iHDarr+W5ITnQZPgBz8rW5Mi ma6/GJEiO+u3b9UW8ewkwEqSA7SVNorRZkKApKmTRlnltd8824nJ X-Google-Smtp-Source: AGHT+IEoqZmHqm6VAVqxfSwuXHWEddFHtQFD30kf+K8fdWv/AuPsHvUw8j0J5Wk9KXaGWw2byK+M7g== X-Received: by 2002:a17:902:ecc3:b0:20c:f292:3a21 with SMTP id d9443c01a7336-210c6892a36mr128561235ad.15.1730133868261; Mon, 28 Oct 2024 09:44:28 -0700 (PDT) Received: from Emma ([2401:4900:1c96:f151:5054:ff:fe53:2787]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-210bc044f82sm52646685ad.258.2024.10.28.09.44.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2024 09:44:27 -0700 (PDT) From: Karan Sanghavi Date: Mon, 28 Oct 2024 16:44:12 +0000 Subject: [PATCH v4] dt-bindings: power: Convert raspberrypi,bcm2835-power to Dt schema MIME-Version: 1.0 Message-Id: <20241028-raspberrypi-bcm2835-power-v4-1-acf44abd45ff@gmail.com> X-B4-Tracking: v=1; b=H4sIAFy/H2cC/43NwQ6DIAyA4VdZOI9FCojstPdYdkCsSjLFwOJmj O8+9GR2MEtPf5N+nUnE4DCS62kmAUcXne9TiPOJ2Nb0DVJXpSaQgWAZ0zSYOJQYwjQ4WtoOCi7 p4N8YqDQCOCux0FKTdD8ErN1ns++P1K2LLx+m7dXI1u0/6sgoo0qiBlFZroS8NZ1xz4v1HVnVE XYSwJEESWJGmCKNVFz9Snwv5UcST1KeA8NMyYrzei8ty/IFyppN2FYBAAA= 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=1730133864; l=4072; i=karansanghvi98@gmail.com; s=20241017; h=from:subject:message-id; bh=VYXYBYtZZtmYHYEH++bEHUARDCjOd5EUg4f7Zg6dWOE=; b=SxiVf23KimpjOkVKsF4/k3vHDNwyubJt+SdtqEl7+QYLfn+WnZ0z2mrcRUCInTQ/sC8RBJm50 fs/4Yjc4BBWCgAMHKe+CjF7l09yo6bUvg0LyIpivuqZfq1Xbmumrsu8 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-20241028_094430_216364_A19F649E X-CRM114-Status: GOOD ( 14.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: , 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 Reviewed-by: Krzysztof Kozlowski --- Changes in v4: - Corrected misindentations and random differences. - Link to v3: https://lore.kernel.org/r/20241026-raspberrypi-bcm2835-power-v3-1-6621e075d33f@gmail.com Changes in v3: - Applied changes as per the feedback received for title and description - Removed power label and renamed node to power-controller - Moved the file from bindings/soc/bcm to bindings/power - Link to v2: https://lore.kernel.org/r/20241022-raspberrypi-bcm2835-power-v2-1-1a4a8a8a5737@gmail.com 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/power/raspberrypi,bcm2835-power.yaml | 42 +++++++++++++++++++ .../bindings/soc/bcm/raspberrypi,bcm2835-power.txt | 47 ---------------------- 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/power/raspberrypi,bcm2835-power.yaml b/Documentation/devicetree/bindings/power/raspberrypi,bcm2835-power.yaml new file mode 100644 index 000000000000..259e1d9b3fab --- /dev/null +++ b/Documentation/devicetree/bindings/power/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/power/raspberrypi,bcm2835-power.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom BCM2835 power domain + +maintainers: + - Alexander Aring + - Eric Anholt + +description: + The Raspberry Pi power domain manages power for various subsystems + in the Raspberry Pi BCM2835 SoC. + +properties: + compatible: + enum: + - raspberrypi,bcm2835-power + + firmware: + $ref: /schemas/types.yaml#/definitions/phandle + description: Reference to the RPi firmware device node + + "#power-domain-cells": + const: 1 + +required: + - compatible + - firmware + - "#power-domain-cells" + +unevaluatedProperties: false + +examples: + - | + power-controller { + compatible = "raspberrypi,bcm2835-power"; + firmware = <&firmware>; + #power-domain-cells = <1>; + }; 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>; -};