From patchwork Tue Apr 26 19:32:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Drew Fustini X-Patchwork-Id: 12827842 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 579FBC433F5 for ; Tue, 26 Apr 2022 19:33:05 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=lccaAs8zd9EKehMWw2R+oTv7eAOB0RtBTcQP6uEncpc=; b=4NY6qg8YHaJvUD RaaNPRL/Nel6gKfLPcuPhiMZu7ZVexprtR8FMV2LGwlYCZ8RCEu+e0q+ngFz4yqO/3E7XNuzp7ozP Z7PFwZpMP57P/74s/Sl+gdOkDkWAxI/7SfnC6PIy8PZNZdeXWGBKts2ufCRgdrQyTMs7OOd8XzHvd 1lfilg19SiU6EHhmfpie8K68D07FrR86ZQ1zXPe0bL9kGyFL+LOHGceGRV9FCamDiWDkxOdb7lMCH lDcNpvPiMHYTaJr+P1cwlTqqX/WA3lp71BUd6PT/2keYFB8b++BBpsNs7m6nLaM1Si5kuU3blHJFM UJ93hBQdZP3v/VLu9JpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1njQum-00FxCM-DI; Tue, 26 Apr 2022 19:32:00 +0000 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1njQui-00FxBW-Ke for linux-arm-kernel@lists.infradead.org; Tue, 26 Apr 2022 19:31:58 +0000 Received: by mail-pl1-x629.google.com with SMTP id b12so16381872plg.4 for ; Tue, 26 Apr 2022 12:31:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mgMaBzrqlCjRGRam/EOt4zCiGdz7YdwH1DVFMVDfBXs=; b=4iSQaIpcTJHXcBSlJlEWJJA6caO4iGkaz8udUxWuH377Fy/420RlqSFPr0zuzJTrlI ow/Wqnjm31vAQUMgUQy/45uq1nhGdG557XYH+zrIUSAsq6ZwKoy7+8Dg6Tr3fWpFBXQu d94vjw7vYnLz14cGh3Uw/0y0V3gM+5QgvwDNsa/auS4Kfb0f67hpPqa7hyiuff2s0SLY NZHyaGBtuTCZG0mp2xqJLqyiodo1pzG2i8Q+kabrdjUWz/lLEFng35FBelfQerqeggBC To48LL5vy2ZrIfj3vPhQLuZBNt9htOroZJUjkp2dRQb4tmfT1WgwiU+g00VCKRKAwgrH /N6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mgMaBzrqlCjRGRam/EOt4zCiGdz7YdwH1DVFMVDfBXs=; b=xIwq8kdFXXx+KMDsSLgJHouHY5HRJXuhf1rre+poJSoXUmdHE4WVHlvSNUBKKMvqqR iIgkbE5rVEa/kLOP8EBL0oPL42uuy51nfQjs+lV/COdQkqM+Q8GBGWF+RG4Z44+4MeH+ SMdFNwDMjDCwYlq2UIhzGfcYfvEmwDPs26L94GlWtdYqnQrEWAgmW9MeLiU6ttSFOfnr ioWoTU5qLQV97hmWxmeuAqp69vmi3AbHZzcuNjSQFuPy6FSwiwu68KBv0313v6gEAhZw bxvsOXgfYJfKAGVfG1ImME4hmk8plmO8nAJi1W6tRl7sp8yJdPb8xvgZewnscQJZll0h VT+w== X-Gm-Message-State: AOAM53081OGuly7mSWdeZ932//MLygb/tsY8FJ6j9foIUvRtklpaqxCC 88Srt523lKoci9CFfuFg1AvcAg== X-Google-Smtp-Source: ABdhPJwWdeXDoRl1CnV+EVlepDxiTF9qYHgisD3NZHZGVmtsLKeF4TLs8wickLkRyt+RjPIQdF/iiA== X-Received: by 2002:a17:903:240f:b0:156:8e81:a0a3 with SMTP id e15-20020a170903240f00b001568e81a0a3mr24572132plo.13.1651001515895; Tue, 26 Apr 2022 12:31:55 -0700 (PDT) Received: from x1.hsd1.or.comcast.net ([2601:1c2:1001:7090:9bcd:e060:b370:70d8]) by smtp.gmail.com with ESMTPSA id v16-20020a62a510000000b0050759c9a891sm15793410pfm.6.2022.04.26.12.31.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 12:31:55 -0700 (PDT) From: Drew Fustini To: Rob Herring , Krzysztof Kozlowski , Nishanth Menon , Santosh Shilimkar , Dave Gerlach , Tony Lindgren Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Drew Fustini , Keerthy Subject: [PATCH v2 1/2] dt-bindings: wkup-m3-ipc: Add ti, scale-data-fw property Date: Tue, 26 Apr 2022 12:32:52 -0700 Message-Id: <20220426193253.663582-2-dfustini@baylibre.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220426193253.663582-1-dfustini@baylibre.com> References: <20220426193253.663582-1-dfustini@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220426_123156_719216_73AE53A7 X-CRM114-Status: GOOD ( 16.33 ) 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 From: Dave Gerlach Add documentation for ti,scale-data-fw property to enable I2C PMIC voltage scaling during deep sleep. The property contains the name of a binary file for the CM3 firmware to load. Based on previous work by Russ Dill. Signed-off-by: Dave Gerlach Signed-off-by: Keerthy [dfustini: split from driver patch and convert to json-schema] Signed-off-by: Drew Fustini --- Changes from v1: - change 'ti,scale-data-fw' to 'firmware-name' - add 'firmware-name' property to the examples .../devicetree/bindings/soc/ti/wkup-m3-ipc.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/ti/wkup-m3-ipc.yaml b/Documentation/devicetree/bindings/soc/ti/wkup-m3-ipc.yaml index 88d690de050c..fc8fa6ba8c43 100644 --- a/Documentation/devicetree/bindings/soc/ti/wkup-m3-ipc.yaml +++ b/Documentation/devicetree/bindings/soc/ti/wkup-m3-ipc.yaml @@ -40,6 +40,12 @@ description: |+ override the pin's existing bias (pull-up/pull-down) and value (high/low) when IO isolation is active. + Support for I2C PMIC Voltage Scaling + ==================================== + It is possible to pass the name of a binary file to load into the CM3 memory. + The binary data is the I2C sequences for the CM3 to send out to the PMIC + during low power mode entry. + properties: compatible: enum: @@ -67,6 +73,10 @@ properties: mbox_wkupm3 child node. maxItems: 1 + firmware-name: + description: + Name of binary file with I2C sequences for PMIC voltage scaling + ti,vtt-gpio-pin: $ref: /schemas/types.yaml#/definitions/uint32 description: GPIO pin connected to enable pin on VTT regulator @@ -117,6 +127,7 @@ examples: ti,rproc = <&wkup_m3>; mboxes = <&am335x_mailbox &mbox_wkupm3>; ti,vtt-gpio-pin = <7>; + firmware-name = "am335x-evm-scale-data.bin"; }; }; @@ -157,6 +168,7 @@ examples: ti,rproc = <&wkup_m3>; mboxes = <&am437x_mailbox &mbox_wkupm3>; ti,set-io-isolation; + firmware-name = "am43x-evm-scale-data.bin"; }; };