Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1310738pxf; Fri, 12 Mar 2021 06:57:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJyIM6GF5B5BE7tvo63AFtejCu79+2xFuxgE5zNazgg2icSqkGlR471k1xES8nDpcUn86Cj+ X-Received: by 2002:aa7:df84:: with SMTP id b4mr14480462edy.240.1615561070276; Fri, 12 Mar 2021 06:57:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615561070; cv=none; d=google.com; s=arc-20160816; b=e/O1ZRrvlfaWXMjeGM1WTHMzzt8UBNJ0B9DmkW7NfPLJVByybkXQLuuH7cSYvwDH7M jSH36c3xUybOMAi1Dz/xOsiq6GzpMewdwQKMoy0bp0tG1x8BTVAtpflnIXzcsSno0SvK uwm9YCRKdRZpaTB6jc4jTj0Papn/Vs2MZJ2EZicrxQbY0C+1lQs1Oq7OfpmEl2yqbXsQ 2iOMom500prPeSvKGcUviMlwozxKj6HV/ekPCb0pKD8h1K5vaFj6jNI5qLx65TnM9heu 3qVmFOiYgsnl9YfufHtPKvQImG231DjEZhBEFByTZtaX3pcoy7wC7uKht3mycV+TS4qM NE4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TIkJZQvF5sk9xuarX3qPXBdl6ffgROvAyMSwM1J0wto=; b=JShjxPT72VkR3jIkd83hCWKGif5opmnGVefx4476yxRL85rB75g2JVmNDwrs1ARb59 mituSMHirIS49f+QxfqlqAkk4MU8HBODn/grlsqZdMuWwIAguAMEpNHlgJMcrrELSk5v dsDQWviAldLaOb51s+/mbEeu1OAxOWXNUOrqC0cDdc6t2ePOIy7nqjatpycI9rsX4rmI qCSZcBlRBNaBkvLBKgpYW8FL1WONymfM8sFLRt+DHQ1y4gqFkyJMls2G0iHj7IHllsjV cXjnDNN6TI/YjD36BVjABi8EVK8aWm4KnJ3KpkEMVeRhETPDxvGcuI2uyyvC3i3APu2A 31wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lr0i8Nnq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r21si4182513edw.605.2021.03.12.06.57.27; Fri, 12 Mar 2021 06:57:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lr0i8Nnq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231827AbhCLO4f (ORCPT + 99 others); Fri, 12 Mar 2021 09:56:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:41670 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231983AbhCLO4G (ORCPT ); Fri, 12 Mar 2021 09:56:06 -0500 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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"; -- 2.30.1