From patchwork Fri Mar 12 14:55:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Brugger X-Patchwork-Id: 12134825 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64228C433E6 for ; Fri, 12 Mar 2021 14:57:55 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 027DC64FB3 for ; Fri, 12 Mar 2021 14:57:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 027DC64FB3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=epeO97BeSSTuuOOwWjVXdQk2hViYONUtFaMbae+yzzs=; b=lJbQOTD8U0PdE7uCKKACglqDsv u0Z5M3IZPAsvK5LfqnNG1ZqiyE0L2OSyGe27Dpu7UdSM+eqFQJK4m/GsN7ibCT97GyT4Ta0BRBBdr HNMYceO9qfJuDuMtlt1k5Y2HwcyTb/KRZr0jTu7hLz+fH4/UNSkA3fN8G2Y0QT3JwQmy9vR7Krcdr UfcvIz7md1gUaxkbc25u5megDQ1dwQ0yRsrX+VQe7AByS+QD7hCV4bsrDAZo78a5yX6gS3q1qwYDq nyaOY2cS6ElQbUZzhVNFydowZ8t1837vXWYXorGlnbAi1KRxqVmVqypQrVrOApZFtY7Z0xPot02nf wfQN/gbA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lKjD5-00BggR-1M; Fri, 12 Mar 2021 14:56:15 +0000 Received: from mail.kernel.org ([198.145.29.99]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lKjCy-00BgeX-VU; Fri, 12 Mar 2021 14:56:11 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7754864FE2; Fri, 12 Mar 2021 14:56:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615560963; bh=dxhHQ4+Tj25cN9LD5py5bcCli70KK9AazUdZGS4VzAQ=; h=From:To:Cc:Subject:Date:From; b=BAMTp2ZwbkOUL+l7vDFjopGEW97mrBAo0hIf+MsUuLykpkFns1zI7Q1Vb7r/zGRJa t3agooFlZdJ/rx7cBckFj1vMGDG8lEuV85QzTq2Y0tmNBD/iXRMdnwgUB2/LkjFJZe kSouoo2BQ65GjT363HHRvtcDcDssx2Wmzu1rU6hdjF2VgWeR3e+djcKj7CJ3SCNthd q9Zom7r8/Imi00MQgs5s4Nc76rYTaPCEAH4KIiiB+z0vHPlXltaGArYF+qVgsJqm0I WAAe6X17qcyDREI4uk2Gmm1Mp/SxnrKkPL5ZbZ6kQ+M+v+PgdH4spgoQno4ziguhF/ 4GShn/t/uW1uw== From: matthias.bgg@kernel.org To: lee.jones@linaro.org, robh+dt@kernel.org, matthias.bgg@gmail.com, lgirdwood@gmail.com, broonie@kernel.org Cc: devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Matthias Brugger Subject: [PATCH 1/7] dt-bindings: mfd: mediatek: Fix regulator description Date: Fri, 12 Mar 2021 15:55:39 +0100 Message-Id: <20210312145545.26050-1-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210312_145609_578488_ED1DE976 X-CRM114-Status: UNSURE ( 6.73 ) X-CRM114-Notice: Please train this message. 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: Matthias Brugger Having a separate compatible for the regulator node is redundant and not needed. Delete the corresponding requierement. Signed-off-by: Matthias Brugger Acked-by: Rob Herring --- Documentation/devicetree/bindings/mfd/mt6397.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/mt6397.txt b/Documentation/devicetree/bindings/mfd/mt6397.txt index 2661775a38251..28a69728e6fe2 100644 --- a/Documentation/devicetree/bindings/mfd/mt6397.txt +++ b/Documentation/devicetree/bindings/mfd/mt6397.txt @@ -33,11 +33,8 @@ Optional subnodes: For details, see ../rtc/rtc-mt6397.txt - regulators Required properties: - - compatible: "mediatek,mt6323-regulator" see ../regulator/mt6323-regulator.txt - - compatible: "mediatek,mt6358-regulator" see ../regulator/mt6358-regulator.txt - - compatible: "mediatek,mt6397-regulator" see ../regulator/mt6397-regulator.txt - codec Required properties: From patchwork Fri Mar 12 14:55:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Brugger X-Patchwork-Id: 12134823 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3B4F6C433E0 for ; Fri, 12 Mar 2021 14:57:54 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C324464FD6 for ; Fri, 12 Mar 2021 14:57:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C324464FD6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=/Zs+bltZZhxgvMX9l3tve96RIbJdEGydSn4LD9RFQ8U=; b=MkFZ6IjvDgMBKrCnxBGmY8wG9 VO+DIM2ZKZ0OT10IHqe/UUFi41fC4bKlv0WZ52Fhv/ztMcnCJbCHSWIIWjMDIR/ofkkDoeI9HXEWV FmA7HMOiGFfUtdXG2FVX+I/pdNmIe2i5JAaCLYo+XjcqFft4jyKqoEqwe0HNfvtpae1W6VUMv5Uyq SFf41zDWtRofnL5AteIm/yT4kdxyWREpC6O3iGXzmGBbMAiOGVyOnqMqvKZdZ7iN4dcQbf+5WSQJ8 bT9txwvQyS1lfnqTvMEHaGoJk08z69rdo1CYvQTOHsNOUAzxTcx7bbrc3B6UBSMxaU2xIUPIVAe8h g1VBAUavg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lKjDE-00Bgib-V9; Fri, 12 Mar 2021 14:56:25 +0000 Received: from mail.kernel.org ([198.145.29.99]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lKjCy-00Bgeg-VZ; Fri, 12 Mar 2021 14:56:11 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 49D3364FD6; Fri, 12 Mar 2021 14:56:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615560966; bh=dYV6M61tO7CKph2cwEeRsM8DUMu4Jp31AOjuDQyUfZs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lr0i8NnqRRjht4xrRkUfmgtkN6fA8zTuv4k7uOpDhwIvioPQoNvQD+pJo4V4SnDr8 29hFbI9yMzqK9So0vqDqYRy4A5fqEivoG6Rd1v0MW7xisNOB4Qym3z0wz+wixCdTpY oL6gZyl9Ki2huURi27QwpbpNdhpnJMVVHMFNnk0Pxy+/grf1GZiVOs4JJ9lg4KVxNO v9O7u5zb8YRXHPBswo1U6GwjRA/jTimHt8Z7IJuWfQoG065vT/2DSum3fre/zhFc3n ORUC9iUM/1GTjrSonSj3oZF/pSnVIIaj1RwSX+uc6JK0IaTbr3Tu8dKfMO2TC7i3mc A4BLJ1tOfVQjA== From: matthias.bgg@kernel.org To: lee.jones@linaro.org, robh+dt@kernel.org, matthias.bgg@gmail.com, lgirdwood@gmail.com, broonie@kernel.org Cc: devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Matthias Brugger Subject: [PATCH 2/7] dt-bindigns: regulator: mtk: Drop unneeded compatible Date: Fri, 12 Mar 2021 15:55:40 +0100 Message-Id: <20210312145545.26050-2-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210312145545.26050-1-matthias.bgg@kernel.org> References: <20210312145545.26050-1-matthias.bgg@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210312_145609_688980_5CBD9186 X-CRM114-Status: GOOD ( 11.27 ) 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: Matthias Brugger The regulator does not need to have a device tree compatible, if it's part of an MFD. We leave the node name to the SoC specific name (e.g. mt6323regulator) to allow older kernels to work with the new binding. Signed-off-by: Matthias Brugger --- .../bindings/regulator/mt6323-regulator.txt | 2 +- .../bindings/regulator/mt6358-regulator.txt | 4 +--- .../bindings/regulator/mt6397-regulator.txt | 14 +++++--------- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/Documentation/devicetree/bindings/regulator/mt6323-regulator.txt b/Documentation/devicetree/bindings/regulator/mt6323-regulator.txt index a48749db4df36..69f32e1a6702e 100644 --- a/Documentation/devicetree/bindings/regulator/mt6323-regulator.txt +++ b/Documentation/devicetree/bindings/regulator/mt6323-regulator.txt @@ -19,7 +19,7 @@ LDO: Example: pmic: mt6323 { - mt6323regulator: regulators { + mt6323regulator { mt6323_vproc_reg: buck_vproc{ regulator-name = "vproc"; regulator-min-microvolt = < 700000>; diff --git a/Documentation/devicetree/bindings/regulator/mt6358-regulator.txt b/Documentation/devicetree/bindings/regulator/mt6358-regulator.txt index 9a90a92f2d7e1..ba1214da5bf7c 100644 --- a/Documentation/devicetree/bindings/regulator/mt6358-regulator.txt +++ b/Documentation/devicetree/bindings/regulator/mt6358-regulator.txt @@ -23,9 +23,7 @@ Example: pmic { compatible = "mediatek,mt6358"; - mt6358regulator: mt6358regulator { - compatible = "mediatek,mt6358-regulator"; - + mt6358regulator { mt6358_vdram1_reg: buck_vdram1 { regulator-compatible = "buck_vdram1"; regulator-name = "vdram1"; diff --git a/Documentation/devicetree/bindings/regulator/mt6397-regulator.txt b/Documentation/devicetree/bindings/regulator/mt6397-regulator.txt index c080086d3e629..2b14362ac56e1 100644 --- a/Documentation/devicetree/bindings/regulator/mt6397-regulator.txt +++ b/Documentation/devicetree/bindings/regulator/mt6397-regulator.txt @@ -1,11 +1,9 @@ Mediatek MT6397 Regulator -Required properties: -- compatible: "mediatek,mt6397-regulator" -- mt6397regulator: List of regulators provided by this controller. It is named - according to its regulator type, buck_ and ldo_. - The definition for each of these nodes is defined using the standard binding - for regulators at Documentation/devicetree/bindings/regulator/regulator.txt. +List of regulators provided by this controller. It is named +according to its regulator type, buck_ and ldo_. +The definition for each of these nodes is defined using the standard binding +for regulators at Documentation/devicetree/bindings/regulator/regulator.txt. The valid names for regulators are:: BUCK: @@ -23,9 +21,7 @@ Example: pmic { compatible = "mediatek,mt6397"; - mt6397regulator: mt6397regulator { - compatible = "mediatek,mt6397-regulator"; - + mt6397regulator { mt6397_vpca15_reg: buck_vpca15 { regulator-compatible = "buck_vpca15"; regulator-name = "vpca15"; From patchwork Fri Mar 12 14:55:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Brugger X-Patchwork-Id: 12134827 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 60E68C433E0 for ; Fri, 12 Mar 2021 14:57:58 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E9B1164FD6 for ; Fri, 12 Mar 2021 14:57:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E9B1164FD6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=Um9MaMqQgM0dl/ZqmDPhTOx0ZHBJ7xRQTE4XTBA+t64=; b=jD6b1qRKEWMiKrN56f6PIBzD8 wtJ9Rktf2mXmoyM43EzxXWlTRgdsa/0Zjx6bB2zRohfcxGYN75KXy1tMOFFx39BtD8ryuZ6pD7Kac T4S4fxuTr/5oWkANYMypyieDtdsvNVdqrgjfkQ/WmSbwQQORdK0xg2KMfkcnUn0SRZJA+joJ/cD5P kQwd246c4cS2txnzaRiB4Xx6DQLGu33Na/SdmbwLYZRQV1ChA7jlKY9jAIzQovELv3zLY2kcgBO4o a7Wz5mw5fKF5MVWpBWCfORF4lG0B+4wcQ7EVVtqwu5CG/mKIAUBv+9oOQp0Q7MzIlwPr657Qsg9/J +6/Di50bw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lKjDQ-00BgkM-OP; Fri, 12 Mar 2021 14:56:37 +0000 Received: from mail.kernel.org ([198.145.29.99]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lKjD0-00Bgf5-IJ; Fri, 12 Mar 2021 14:56:12 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0A9DE64FF3; Fri, 12 Mar 2021 14:56:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615560969; bh=Ywd2fbIlwdEKuoislyKBKy60FlzB2Pp3hQxuP2yVuMs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WaDs2NOneOopLzjjXKp+V7QkdvG+dKYTsqW2+f6U4FrswBtMZ/Fs6EMTWOwIh9RLN KB09cZ+LOOee+GnsafGTvSdMZ6iJFs6TMGRF7tguuwPZ4AKW9j3ERIXF2VbsnkCKut jqclKst7d4ITY/+wIhrhmA1eJIGthFDH46ztVXlq6GqnEwBU2Fi/WFFujtmKzcN/BQ sJ6+1ykH7jrtAg1KaZqHEPpt5tLtGUGl+8X/ES/bgmweOQ7GIXJUfXAjjHjdcLzEBQ t+p6C7D45BgL5d7e1p1EThv+GQlR1erqkJC1TEsprZYGztHA0cfsrP3LGkIrxeylkz VpOw3RoKFLeZA== From: matthias.bgg@kernel.org To: lee.jones@linaro.org, robh+dt@kernel.org, matthias.bgg@gmail.com, lgirdwood@gmail.com, broonie@kernel.org Cc: devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Matthias Brugger Subject: [PATCH 3/7] mfd: mt6397: Drop of_compatible for regulator Date: Fri, 12 Mar 2021 15:55:41 +0100 Message-Id: <20210312145545.26050-3-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210312145545.26050-1-matthias.bgg@kernel.org> References: <20210312145545.26050-1-matthias.bgg@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210312_145610_858282_90C47969 X-CRM114-Status: UNSURE ( 8.39 ) X-CRM114-Notice: Please train this message. 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: Matthias Brugger For regulators a compatible string is superfluous. Drop the string. Signed-off-by: Matthias Brugger Acked-by: Lee Jones --- drivers/mfd/mt6397-core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c index 7518d74c3b4c3..13037f4bc54e7 100644 --- a/drivers/mfd/mt6397-core.c +++ b/drivers/mfd/mt6397-core.c @@ -67,7 +67,6 @@ static const struct mfd_cell mt6323_devs[] = { .of_compatible = "mediatek,mt6323-rtc", }, { .name = "mt6323-regulator", - .of_compatible = "mediatek,mt6323-regulator" }, { .name = "mt6323-led", .of_compatible = "mediatek,mt6323-led" @@ -87,7 +86,6 @@ static const struct mfd_cell mt6323_devs[] = { static const struct mfd_cell mt6358_devs[] = { { .name = "mt6358-regulator", - .of_compatible = "mediatek,mt6358-regulator" }, { .name = "mt6358-rtc", .num_resources = ARRAY_SIZE(mt6358_rtc_resources), @@ -107,7 +105,6 @@ static const struct mfd_cell mt6397_devs[] = { .of_compatible = "mediatek,mt6397-rtc", }, { .name = "mt6397-regulator", - .of_compatible = "mediatek,mt6397-regulator", }, { .name = "mt6397-codec", .of_compatible = "mediatek,mt6397-codec", From patchwork Fri Mar 12 14:55:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Brugger X-Patchwork-Id: 12134829 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2EC28C433DB for ; Fri, 12 Mar 2021 14:58:40 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A9B8364FE2 for ; Fri, 12 Mar 2021 14:58:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A9B8364FE2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=YU7sUzDBnYQfv9ocO69PHF67+T6BngaIfct1hPQWMUs=; b=DKpNdbGQptNNs/JvrCEFjMXtV Y70SLv0ZfB9cqPn8ZIbTXRu/01A9bv+eYXyXlK3EYxLjcnNnixERjwXems5UAxJe3w4Tf+ZBrkeA+ PgDFc5LjW31F22oO9bYL73UGzu2heDegqgUIBFbtbJ0KrfNkOW3OKgz+fojau6ToMFMokPKtbyC7p beRVre1o4lIU1J7TaWDTv1/TX0vHs5mkTdqM5cTRcEAQFSuJZ4MJLS1JHgchsqxnaDAHkDNJE1dA1 6BE+E9K+sbJjth1uv6D1Kv9WYjxuU0/ITQ6wahKDFnS9Oq57VzrZcywYIjMuB3AnWSk83KwwDZYyO /iDvdh/fA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lKjDk-00BgpW-NP; Fri, 12 Mar 2021 14:56:56 +0000 Received: from mail.kernel.org ([198.145.29.99]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lKjD3-00Bgfz-8P; Fri, 12 Mar 2021 14:56:15 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id C74A664FF5; Fri, 12 Mar 2021 14:56:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615560972; bh=e6aLLo9i99t687jAHqhOEFnsHr18eT8QCSrvSWuados=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IUhJxiZeYkiZg60n/mwk/bIMEUsg5shOlU6VNI2OH3Tj8GuivdojXazw7yLkoONxl haNcALVeBW/iCIlsBPtrO7bG3ioNhfb4Y4xhZZdqgsVsNgYjyVt/WYN26pUs+S+pOP LIZfrTdZPuJV6ykrDyZRcwpYLaOiTcLlV5ZQ40kzLtNvyANbc9en63zCd6ah1HsCS1 rt+9Y+V7yHt3oKZOmZZ6g1KmPVNC/23tgbT7s+J8UeKkNP7VC82RoDHZUQTLNPwixz 3R0FfFJcf9KJKLL3jT10W5UtkcF4zHP8plIv49sivvZ2r/gd3rGB0TZGJQ/6QJE5tQ 4+YwXI9ZrL4Lw== From: matthias.bgg@kernel.org To: lee.jones@linaro.org, robh+dt@kernel.org, matthias.bgg@gmail.com, lgirdwood@gmail.com, broonie@kernel.org Cc: devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Matthias Brugger Subject: [PATCH 4/7] regulator: mediatek: Add regulators_node to description Date: Fri, 12 Mar 2021 15:55:42 +0100 Message-Id: <20210312145545.26050-4-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210312145545.26050-1-matthias.bgg@kernel.org> References: <20210312145545.26050-1-matthias.bgg@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210312_145613_927796_2593D4EE X-CRM114-Status: GOOD ( 12.58 ) 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: Matthias Brugger Define the regulator node under which the regulators are described. Signed-off-by: Matthias Brugger Acked-by: Mark Brown --- drivers/regulator/mt6323-regulator.c | 3 +++ drivers/regulator/mt6358-regulator.c | 4 ++++ drivers/regulator/mt6397-regulator.c | 10 +++------- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/regulator/mt6323-regulator.c b/drivers/regulator/mt6323-regulator.c index ff9016170db37..8b22ded43ab8a 100644 --- a/drivers/regulator/mt6323-regulator.c +++ b/drivers/regulator/mt6323-regulator.c @@ -42,6 +42,7 @@ struct mt6323_regulator_info { .desc = { \ .name = #vreg, \ .of_match = of_match_ptr(match), \ + .regulators_node = of_match_ptr("mt6323regulator"), \ .ops = &mt6323_volt_range_ops, \ .type = REGULATOR_VOLTAGE, \ .id = MT6323_ID_##vreg, \ @@ -66,6 +67,7 @@ struct mt6323_regulator_info { .desc = { \ .name = #vreg, \ .of_match = of_match_ptr(match), \ + .regulators_node = of_match_ptr("mt6323regulator"), \ .ops = &mt6323_volt_table_ops, \ .type = REGULATOR_VOLTAGE, \ .id = MT6323_ID_##vreg, \ @@ -88,6 +90,7 @@ struct mt6323_regulator_info { .desc = { \ .name = #vreg, \ .of_match = of_match_ptr(match), \ + .regulators_node = of_match_ptr("mt6323regulator"), \ .ops = &mt6323_volt_fixed_ops, \ .type = REGULATOR_VOLTAGE, \ .id = MT6323_ID_##vreg, \ diff --git a/drivers/regulator/mt6358-regulator.c b/drivers/regulator/mt6358-regulator.c index 13cb6ac9a8929..f5c478d7baaf2 100644 --- a/drivers/regulator/mt6358-regulator.c +++ b/drivers/regulator/mt6358-regulator.c @@ -44,6 +44,7 @@ struct mt6358_regulator_info { .desc = { \ .name = #vreg, \ .of_match = of_match_ptr(match), \ + .regulators_node = of_match_ptr("mt6358regulator"), \ .ops = &mt6358_volt_range_ops, \ .type = REGULATOR_VOLTAGE, \ .id = MT6358_ID_##vreg, \ @@ -74,6 +75,7 @@ struct mt6358_regulator_info { .desc = { \ .name = #vreg, \ .of_match = of_match_ptr(match), \ + .regulators_node = of_match_ptr("mt6358regulator"), \ .ops = &mt6358_volt_table_ops, \ .type = REGULATOR_VOLTAGE, \ .id = MT6358_ID_##vreg, \ @@ -99,6 +101,7 @@ struct mt6358_regulator_info { .desc = { \ .name = #vreg, \ .of_match = of_match_ptr(match), \ + .regulators_node = of_match_ptr("mt6358regulator"), \ .ops = &mt6358_volt_range_ops, \ .type = REGULATOR_VOLTAGE, \ .id = MT6358_ID_##vreg, \ @@ -124,6 +127,7 @@ struct mt6358_regulator_info { .desc = { \ .name = #vreg, \ .of_match = of_match_ptr(match), \ + .regulators_node = of_match_ptr("mt6358regulator"), \ .ops = &mt6358_volt_fixed_ops, \ .type = REGULATOR_VOLTAGE, \ .id = MT6358_ID_##vreg, \ diff --git a/drivers/regulator/mt6397-regulator.c b/drivers/regulator/mt6397-regulator.c index 0a30df5e414fc..9e8589f773eaa 100644 --- a/drivers/regulator/mt6397-regulator.c +++ b/drivers/regulator/mt6397-regulator.c @@ -42,6 +42,7 @@ struct mt6397_regulator_info { .desc = { \ .name = #vreg, \ .of_match = of_match_ptr(match), \ + .regulators_node = of_match_ptr("mt6397regulator"), \ .ops = &mt6397_volt_range_ops, \ .type = REGULATOR_VOLTAGE, \ .id = MT6397_ID_##vreg, \ @@ -70,6 +71,7 @@ struct mt6397_regulator_info { .desc = { \ .name = #vreg, \ .of_match = of_match_ptr(match), \ + .regulators_node = of_match_ptr("mt6397regulator"), \ .ops = &mt6397_volt_table_ops, \ .type = REGULATOR_VOLTAGE, \ .id = MT6397_ID_##vreg, \ @@ -89,6 +91,7 @@ struct mt6397_regulator_info { .desc = { \ .name = #vreg, \ .of_match = of_match_ptr(match), \ + .regulators_node = of_match_ptr("mt6397regulator"), \ .ops = &mt6397_volt_fixed_ops, \ .type = REGULATOR_VOLTAGE, \ .id = MT6397_ID_##vreg, \ @@ -396,16 +399,9 @@ static const struct platform_device_id mt6397_platform_ids[] = { }; MODULE_DEVICE_TABLE(platform, mt6397_platform_ids); -static const struct of_device_id mt6397_of_match[] = { - { .compatible = "mediatek,mt6397-regulator", }, - { /* sentinel */ }, -}; -MODULE_DEVICE_TABLE(of, mt6397_of_match); - static struct platform_driver mt6397_regulator_driver = { .driver = { .name = "mt6397-regulator", - .of_match_table = of_match_ptr(mt6397_of_match), }, .probe = mt6397_regulator_probe, .id_table = mt6397_platform_ids, From patchwork Fri Mar 12 14:55:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Brugger X-Patchwork-Id: 12134831 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3BCBBC433E0 for ; Fri, 12 Mar 2021 14:58:53 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BD3DB64FDD for ; Fri, 12 Mar 2021 14:58:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BD3DB64FDD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=5yOwMUXwCDEQP+TV4oJ6LpWopb+x86I2Ml/yp5RWgIc=; b=i5ZRo5JoK+Nbjh+vHHaSier05 OzxT5W65EcYljzOL95arK4jzaxvgsCtJ4Oye3JJpwR31Kk9WJFIUTc89UYBar2HQkWH2jX2xuoNwd u3HZ/tCeZJRXc1aXrqq7euxgZTE4E3WK8x4kXTCsOPtMlupRWywpP91osnCuZZzwAYXo6qMGvSYMn FZpF2Fum/WR3uOrlQ6awMfS1bgfvx1tZnnZRbyDpLBrlo81dU2Zjbnqa1jOCkslyMU3E3YlGNhTEW Fx88MSsGL+jWj9AkvuxDVYjjzNtCTYevZR4ukvaDTY459pxXGXR9jcM89Z0+d24vUbF5h/lMP/TC2 cmF+tzeRg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lKjDx-00Bgvi-5o; Fri, 12 Mar 2021 14:57:09 +0000 Received: from mail.kernel.org ([198.145.29.99]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lKjD6-00BghB-58; Fri, 12 Mar 2021 14:56:18 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 94D2C64FDD; Fri, 12 Mar 2021 14:56:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615560974; bh=ifVjIRBycLednUeFJybHn/MpoBYTnrWvaqMZFuw5nk0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YIhIdSMV4J4FGbGrJ7PBVLkPjHllhez3mjcmjY+l8HYB50TIWR0JWEaTe3WG+zXe+ X6JYe/UV019NtfDLULRVAlszt5MvsudRyJDCv/e+fR9azaPszucIHYXKRyVKIW2uHx liCYf2dBDNkCUrJK/N63VW4R0PH/XqHiNDcVsNkNyWYfR7tDSYIx0yP6phKfiZAze9 8mTGGe+w3kkI3X+UVLBrjnSYZG6U0yJXzsauSUjiAv8l1OnePcW8Ck02SzzOiT+wsd DZGYfdNZ6ZAll7KMyl8QSzLbGheT7PuLRtQY1trHHTgi6scuER/ke5bpUZPGwww9ns qP7QGxoOjZe+Q== From: matthias.bgg@kernel.org To: lee.jones@linaro.org, robh+dt@kernel.org, matthias.bgg@gmail.com, lgirdwood@gmail.com, broonie@kernel.org Cc: devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Matthias Brugger Subject: [PATCH 5/7] arm: dts: mt6323: Drop OF compatible Date: Fri, 12 Mar 2021 15:55:43 +0100 Message-Id: <20210312145545.26050-5-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210312145545.26050-1-matthias.bgg@kernel.org> References: <20210312145545.26050-1-matthias.bgg@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210312_145616_504597_B0C0AC88 X-CRM114-Status: UNSURE ( 8.65 ) X-CRM114-Notice: Please train this message. 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: Matthias Brugger The regulator framework does not need compatible, it's acutall superfluous. Drop it from the DT. Signed-off-by: Matthias Brugger --- arch/arm/boot/dts/mt6323.dtsi | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/mt6323.dtsi b/arch/arm/boot/dts/mt6323.dtsi index 7fda40ab5fe83..d37f118a663a9 100644 --- a/arch/arm/boot/dts/mt6323.dtsi +++ b/arch/arm/boot/dts/mt6323.dtsi @@ -21,9 +21,7 @@ mt6323_leds: leds { status = "disabled"; }; - mt6323regulator: mt6323regulator{ - compatible = "mediatek,mt6323-regulator"; - + mt6323regulator { mt6323_vproc_reg: buck_vproc{ regulator-name = "vproc"; regulator-min-microvolt = < 700000>; From patchwork Fri Mar 12 14:55:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Brugger X-Patchwork-Id: 12134835 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E3388C4332D for ; Fri, 12 Mar 2021 14:59:12 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 70E8764FDD for ; Fri, 12 Mar 2021 14:59:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 70E8764FDD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=8BmrKQxYaVUzbPFTOESP9rpcPOXTvOEZuJXh57tSXb8=; b=hFPk66GGZiCklDDxZaYaebzaI msoEQhNUWgq2Xj9OxYLRjDbnUNmUNOeF7KiCzUi4Mb+z3nJUbMVepriOIfrMQCHZoNSZVSIGmKOMn bFr0GbX7hry1VjL/InISCXw+dFahRqYzXQOHNUEjBdDtwIpZfk3YuUwzo2T3Mn6aV1QlqcKA2TD3n 92vQqt2LXxRW9nelAvmmV7DUxJsm/xxrWnMF7XiEPAzzQJUSukBEkDhCl6FZ/JgTSfK9OWI3w91zz 8J3mBGWrFsQb0k4lEoTJksRKZFB/jQX/OuFoP7gro3tsdvaGn/zNfd0GZuIp7CcBdwr9OXHb4+HPS PRe8CRtNw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lKjEA-00Bh3l-Hw; Fri, 12 Mar 2021 14:57:22 +0000 Received: from mail.kernel.org ([198.145.29.99]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lKjD8-00Bghp-QM; Fri, 12 Mar 2021 14:56:22 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5DAD464FF9; Fri, 12 Mar 2021 14:56:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615560977; bh=EeQot5X//FjuQTal9q/g0ToHWZJHUtbmbREqHYseiwU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BrglqvdGLnT4e90Qla4OmZ5HdXHMJnRu9g4LanqFOzGayG1/hP6Q5NMsG01EYLmMj 2iZOI5992QrM3G442A7hefaSW9W+CwKGfgb+uDywhsw5K0eCAPuDHdb60wvEX0zY88 z88hDXffg58KzrectbLRthOqKaZuYP3id8kolp7uDKDAkOBvfPQGmv24ztFw3UQDna Rn0HIlvXdqLj8eqBZJ0v3WlsJOQis13pTGcbqykGrZ2vF6jj/5E+TsCm/O3ymXWaEa Qn/gn/FNXQjsIo41XGh9NSmZjCRLR/O0zLfgHQ5AaB7JhG917elCjeWvP7KxHUc4MI edZ82S9Sr7yIg== From: matthias.bgg@kernel.org To: lee.jones@linaro.org, robh+dt@kernel.org, matthias.bgg@gmail.com, lgirdwood@gmail.com, broonie@kernel.org Cc: devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Matthias Brugger Subject: [PATCH 6/7] arm64: dts: mt6358: Drop compatible for regulators Date: Fri, 12 Mar 2021 15:55:44 +0100 Message-Id: <20210312145545.26050-6-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210312145545.26050-1-matthias.bgg@kernel.org> References: <20210312145545.26050-1-matthias.bgg@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210312_145619_935070_613BE501 X-CRM114-Status: UNSURE ( 8.80 ) X-CRM114-Notice: Please train this message. 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: Matthias Brugger The regulator framework does not need compatible, it's actually superfluous. Drop it from the DT. Signed-off-by: Matthias Brugger --- arch/arm64/boot/dts/mediatek/mt6358.dtsi | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt6358.dtsi b/arch/arm64/boot/dts/mediatek/mt6358.dtsi index fa159b20379e4..e423feac0bc2e 100644 --- a/arch/arm64/boot/dts/mediatek/mt6358.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt6358.dtsi @@ -15,9 +15,7 @@ mt6358codec: mt6358codec { compatible = "mediatek,mt6358-sound"; }; - mt6358regulator: mt6358regulator { - compatible = "mediatek,mt6358-regulator"; - + mt6358regulator { mt6358_vdram1_reg: buck_vdram1 { regulator-name = "vdram1"; regulator-min-microvolt = <500000>; From patchwork Fri Mar 12 14:55:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Brugger X-Patchwork-Id: 12134833 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2427C433E0 for ; Fri, 12 Mar 2021 14:59:07 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4725464F77 for ; Fri, 12 Mar 2021 14:59:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4725464F77 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=jqQXnlYGLCkzLtin6tlZl3xVcHZLZgOGghaisix7bCo=; b=AAUVxFbSVrj41URF6Il5+NSYn BuAw7Ef+8rVTlxkcKDwYr6Kdn+UcseLYShQUG2P/BcV2GpAUmeAjRsLR2uacxw7382+VzEUF/LVq9 xWntKXGCZobrHM/di2218OShPdVV3zNd+b67yqrfq4LVOn3Cn8D54at1pY84hPHGxprpaqp4nSHlL i/92ztG+KRoAw/wfAj7Z8zsa8JjIeqr319C08JpNYvb5G+wIrsyEo1vuXmutaFurLLdAIIbrbkANM LTd6sXURPRjCRs+GVRjkrOHHcTCC6Hu3A8NATVzqP6zDTXzX3NYSHlZKKk2kM/DFeegVGULgmvJ56 HR8ky8FzQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lKjEP-00BhF6-Dk; Fri, 12 Mar 2021 14:57:37 +0000 Received: from mail.kernel.org ([198.145.29.99]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lKjDB-00BgiC-PQ; Fri, 12 Mar 2021 14:56:24 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2FAE864FE2; Fri, 12 Mar 2021 14:56:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615560980; bh=OQyJ253o9zsK9O8OvMY/sl3QhOqiohfjqnnr+D3rpNk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lfLmSxeiEZMU7ogKtM7X7QoOJJPNY2xIPXleeIL6OWKH6Hg0vKNxEQEHOW/cnkHLJ OGa3g17ZlmKnrMGt3DxCcbimgo+u++GGZKejLtIn9Qy1HfJHGIFu36UZR/7B1V/v0/ 4J2CXAJTanZYN3a61ICHRvBLGz6GThjrllJcnl/rPwbo1k5N8xSylE7DHbKbvkcGeP 4q5wndA8kxiJJ6DWW9yeGLmjUWnyubRDxdoeEQDgfHunGs3Ao8tjaRgV2+aUncE1wa qLAIPJw1oegnvR8kNP7ZpAuBxyuGUq/OQ4uNTyvbIrRRad1gqw8IgXaFIEZWEoD+eR wTh0iLBjPphQA== From: matthias.bgg@kernel.org To: lee.jones@linaro.org, robh+dt@kernel.org, matthias.bgg@gmail.com, lgirdwood@gmail.com, broonie@kernel.org Cc: devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Matthias Brugger Subject: [PATCH 7/7] arm64: dts: mt8173: Drop compatible for mt6397 Date: Fri, 12 Mar 2021 15:55:45 +0100 Message-Id: <20210312145545.26050-7-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210312145545.26050-1-matthias.bgg@kernel.org> References: <20210312145545.26050-1-matthias.bgg@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210312_145623_026681_FB54206B X-CRM114-Status: UNSURE ( 9.40 ) X-CRM114-Notice: Please train this message. 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: Matthias Brugger The regulator framework does not need compatible, it's actually superfluous. Drop it from the DT. Signed-off-by: Matthias Brugger Series-to: lee.jones@linaro.org Series-to: robh+dt@kernel.org Series-to: matthias.bgg@gmail.com Series-to: lgirdwood@gmail.com Series-to: broonie@kernel.org Series-cc: devicetree@vger.kernel.org Series-cc: linux-arm-kernel@lists.infradead.org Series-cc: linux-mediatek@lists.infradead.org Series-cc: linux-kernel@vger.kernel.org --- arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi | 4 +--- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi index 21452c51a20a8..db06a986f763e 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi @@ -916,9 +916,7 @@ pio6397: pinctrl { #gpio-cells = <2>; }; - regulator: mt6397regulator { - compatible = "mediatek,mt6397-regulator"; - + mt6397regulator { mt6397_vpca15_reg: buck_vpca15 { regulator-compatible = "buck_vpca15"; regulator-name = "vpca15"; diff --git a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts index 6dffada2e66b4..c3f2a85d55fe7 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts +++ b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts @@ -303,9 +303,7 @@ pmic: mt6397 { interrupt-controller; #interrupt-cells = <2>; - mt6397regulator: mt6397regulator { - compatible = "mediatek,mt6397-regulator"; - + mt6397regulator { mt6397_vpca15_reg: buck_vpca15 { regulator-compatible = "buck_vpca15"; regulator-name = "vpca15";