From patchwork Mon Oct 31 23:26:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan Brattlof X-Patchwork-Id: 13026488 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 D985AFA3741 for ; Mon, 31 Oct 2022 23:29:13 +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: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:In-Reply-To:References: List-Owner; bh=zHoNPCiwOGGKtkIcNwp9YRtZ4ozeqs/IWc+4TCKDhy8=; b=J1TzzZ8XJd+msW ccuVtEYTnV27RoEvnzNgnXVISDvWwZagR3c/Ac/YTAvfeY/RhyTUJDSX1s7SVUSv05zKEZBZLSdZO c6isn548JzmuaKY2ubwBTDNSxJkoYjMfw7LM0ul9+bsC10yylM2k4neYjRLJn8F/uVjyms1v0gSK9 zHTwUFKIbuaotgvo2QXhPyzTJi092ax8QqNpabc4yApfyHLXpEPMhNnhdm2uiD6oIPhfarQ9odZDk 3iF3Q+ABwjtNKQqpoOtgyC7nZ5ZUq9mJaJKM5Jo0e4ctgLAfN6UQJJC6ADS/4NLC9sba9MNoWNCXn 21OD6mZTbByQi/hMCRwA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1opeCJ-00GcFQ-Mm; Mon, 31 Oct 2022 23:28:04 +0000 Received: from lelv0142.ext.ti.com ([198.47.23.249]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1opeBf-00Gbz1-LN for linux-arm-kernel@lists.infradead.org; Mon, 31 Oct 2022 23:27:25 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 29VNRG2B106682; Mon, 31 Oct 2022 18:27:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1667258836; bh=jHI/aUgR1+2a2pnP1o8nAy+4Uo7MUyI0XA794KwZzDc=; h=From:To:CC:Subject:Date; b=aUCQeAJ6u73EtsHbgbsl8EYEJw2zIZiDVCQb0h9/C6UgIld3qxVOfamNW/chbnBN3 Z0UvlsG84Mw2d5IawyIgKhE+oIIKOnU/iPLpypk9IhnY/T9Gb3SNqkUtijlU2Uq5f2 dKKLhRh4/Ui97Vw9vs7uv4UHO4mehBxT+FXCY70c= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 29VNRGBR022956 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 31 Oct 2022 18:27:16 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Mon, 31 Oct 2022 18:27:15 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Mon, 31 Oct 2022 18:27:15 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 29VNRFrc080580; Mon, 31 Oct 2022 18:27:15 -0500 From: Bryan Brattlof To: "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Rob Herring , Krzysztof Kozlowski , Nishanth Menon , Vignesh Raghavendra , Tero Kristo CC: Keerthy , Linux PM , Device Trees , LKML , LKML ARM , Bryan Brattlof Subject: [PATCH v3 00/11] enable VTM node for all TI's K3 SoCs Date: Mon, 31 Oct 2022 18:26:51 -0500 Message-ID: <20221031232702.10339-1-bb@ti.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3235; h=from:subject; bh=t48eTWhyQ1Ndm6/aGrh+jMu8C0oPX2tNXAsQQAQZpko=; b=owNCWmg5MUFZJlNZAFsGLgAAZP///n9/N7Wj/87+x34jWn7X6X+63H3s//vvxVvZ+dT7+9ywARmy iHqABo9QA0AGnqANAANAAANqAD1GgDQAAGjRoDRp+qaHqNNHqNAA02pvSYoZBGmgaGgGQaMmmnqNBo yA09Q0GmhkyBoABkBkMgAB6mQ00aZNDEaGhpo0yek0YhoyMRo2oyaMEA0ZDIyAxABoNAxHqBkDJkNB oGENAZAPRBo0DTBGI0yAAgRxCziCNE5BK6EgNv4DjHrKKcFK/aOIARBnc7w3M+FysEnvz8xDo5RE+D Amfc3VYerIQSIVX97CQ7I/U8D3aziK0unGjzVmdC08LRpQjh4ijWReyP+deGC4/VZNIrbhB8fVdGWB DJ38Fql2A83KTs0YK5NvWAS98JagKqyN++AAzolE5R58ArLO+nvIVrwEHoQ3YtamA6qLadYgstRgTt j7GlcU/3+lcbuukjAmyxK33Y7jA6JGQbSxoqyk/gUU4wLb4rAEy84Kjje1FoZajnxg7zgJ39BZF6lc 2S5aODhHFXr+S/i/zvf0an3QYVWAfpp56CIrEEoElzuE3oUSlRrCS0mPf5D4Vi+o8Vjf4bx3bs2hz6 MyqbGvOEVs2w8y7VpTeK8TBekQcw2rG7qxGY8qfqzLoFIDek48sIhCQ8/rVef+LuSKcKEgALYMXA== X-Developer-Key: i=bb@ti.com; a=openpgp; fpr=D3D177E40A38DF4D1853FEEF41B90D5D71D56CE0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221031_162723_878882_5BEC7BF6 X-CRM114-Status: GOOD ( 14.96 ) 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 Hello again everyone! This series enables the VTM nodes for all of Texas Instrument's K3 SoCs Most of this series updates the k3_j72xx_bandgap driver to conditionally map an eFuse region used by the j721e to work around an issue in its VTM implementation and allows us to save the SPARE_FUSE region on other SoCs We can then update the device tree bindings for the driver and finally define the VTM nodes for each device Thanks for reviewing again ~Bryan **** v2 -> v3 changes[0]: - removed a errant devm_iounmap() I introduced between patches in v2 - collected tags v1 -> v2 changes[1]: - when removing 'fuse_base' from the 'k3_j72xx_bandgap' structure, I forgot to pass 'fuse_base' to get_efuse_values() - removed the descriptions to the generic 'power-domains' property - incorporated Krzysztof's suggestions to the binding description - refactored binding to use allOf: if: {min,max}Items over what I was doing :) Thanks Krzysztof [0] https://lore.kernel.org/lkml/20221025191515.9151-1-bb@ti.com/ [1] https://lore.kernel.org/lkml/20221011231727.8090-1-bb@ti.com/ Bryan Brattlof (11): thermal: k3_j72xx_bandgap: simplify k3_thermal_get_temp() function thermal: k3_j72xx_bandgap: use bool for i2128 erratum flag thermal: k3_j72xx_bandgap: remove fuse_base from structure thermal: k3_j72xx_bandgap: map fuse_base only for erratum workaround dt-bindings: thermal: k3-j72xx: elaborate on binding description dt-bindings: thermal: k3-j72xx: conditionally require efuse reg range arm64: dts: ti: k3-am64-main: add VTM node arm64: dts: ti: k3-am62-wakeup: add VTM node arm64: dts: ti: k3-j721e-mcu-wakeup: add VTM node arm64: dts: ti: k3-j721s2-mcu-wakeup: add VTM node arm64: dts: ti: k3-j7200-mcu-wakeup: add VTM node .../bindings/thermal/ti,j72xx-thermal.yaml | 35 +++++- arch/arm64/boot/dts/ti/k3-am62-thermal.dtsi | 33 ++++++ arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi | 8 ++ arch/arm64/boot/dts/ti/k3-am62.dtsi | 7 +- arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 8 ++ arch/arm64/boot/dts/ti/k3-am64-thermal.dtsi | 33 ++++++ arch/arm64/boot/dts/ti/k3-am64.dtsi | 4 + .../boot/dts/ti/k3-j7200-mcu-wakeup.dtsi | 8 ++ arch/arm64/boot/dts/ti/k3-j7200-thermal.dtsi | 47 ++++++++ arch/arm64/boot/dts/ti/k3-j7200.dtsi | 3 + .../boot/dts/ti/k3-j721e-mcu-wakeup.dtsi | 9 ++ arch/arm64/boot/dts/ti/k3-j721e-thermal.dtsi | 75 +++++++++++++ arch/arm64/boot/dts/ti/k3-j721e.dtsi | 3 + .../boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi | 8 ++ arch/arm64/boot/dts/ti/k3-j721s2-thermal.dtsi | 103 ++++++++++++++++++ arch/arm64/boot/dts/ti/k3-j721s2.dtsi | 3 + drivers/thermal/k3_j72xx_bandgap.c | 67 ++++++------ 17 files changed, 420 insertions(+), 34 deletions(-) create mode 100644 arch/arm64/boot/dts/ti/k3-am62-thermal.dtsi create mode 100644 arch/arm64/boot/dts/ti/k3-am64-thermal.dtsi create mode 100644 arch/arm64/boot/dts/ti/k3-j7200-thermal.dtsi create mode 100644 arch/arm64/boot/dts/ti/k3-j721e-thermal.dtsi create mode 100644 arch/arm64/boot/dts/ti/k3-j721s2-thermal.dtsi