Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3363276pxu; Tue, 15 Dec 2020 05:25:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6xrnWcLeXAH21F8YORij5RfKL6rXYkqGfFTCepgR3b56XxB8mJLKSJnKgP5Et4XLFzspc X-Received: by 2002:a50:b002:: with SMTP id i2mr29444754edd.99.1608038726708; Tue, 15 Dec 2020 05:25:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608038726; cv=none; d=google.com; s=arc-20160816; b=whoQcu1HlqSRGerjn1+UwaRX1lv1naUxf/IgWK/gJFixmJwXxcSCpn6EMJi8r+I1l/ ySpQHaJ2GAk3KC07Pb4on2EpL72XW/6tMql9Q534HBo0SYnMQWu68/LWdqTnR8lvj+Zf x3QB/0eWVXBEbU2sjlbK24ZiujUehx4wnyvQDhb2OxZwkxlkkvlhB82ufnE4bSQ+BgJs Ocht/seW/7FM4LnsjC7HQm3iX7MUQjmCRcfia4dNAE2WZbCmNl0GCiRVzjYO1KxGjPhb NyVUk0Oq3mBvv7aS+cmM7/QGvAEBjR6y/n0Xs/l6xCTNOXSwqURMabAovItKZ1X+0Ear ohyw== 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 :message-id:date:subject:cc:to:from; bh=P1ZVR7ojzElm9pf/qALRa7XUg0qSIS76ZSKSutMQT/E=; b=gJNXmKAPmU/cGLmavAGcW6vSo1cXuy8qGuJoc4T+Ys/YP/0KJAZZsqWz6sE5qgb57F lfm4A+xu3Kn0ovJcv9jZcYuwPgjaPnxNQHk9vkFq+s7y93uAFuTL4J7LxtMVPBPwhqLv syHbOy9PREcplp3xjQnF6XLHa0M1jv/x3uL3hF97LGHVVYBIsHx2WBY3u6FksRkfOmKC f9dhpxW/hnQDfre51wvAJsObnt9TPn3V1kG9DPMq8okcvBSc6XDiLsIPry/VbJsCVd3X FIsxSsrQrdVPgLdZvyNm9x0a+DC+9U3m9UtShzQ5UGA8SO9DVXhPLqydSmzcgwRF2k5R x5sg== ARC-Authentication-Results: i=1; mx.google.com; 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 cb6si913138ejb.459.2020.12.15.05.25.02; Tue, 15 Dec 2020 05:25:26 -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; 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 S1727468AbgLONVs (ORCPT + 99 others); Tue, 15 Dec 2020 08:21:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:51018 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726861AbgLONVa (ORCPT ); Tue, 15 Dec 2020 08:21:30 -0500 From: Mark Brown Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: Adrien Grassein , Jagan Teki Cc: Liam Girdwood , linux-kernel@vger.kernel.org, Mark Brown Subject: [PATCH] regulator: pf8x00: Use specific compatible strings for devices Date: Tue, 15 Dec 2020 13:20:24 +0000 Message-Id: <20201215132024.13356-1-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Patch-Hashes: v=1; h=sha256; i=iFPmsa3+jnoQAinLCLIyJYrJYVQ0K71zonFwtGd5EuE=; m=wb+pZI7xM+FR+JNfGwZpv0zbVDoPhtbL9e93YelLGuA=; p=HciRgTybYC14UMhoVbWDEyRjUGLc8P1po22O0WJcF7s=; g=2d9d2c6a6c375e43d76a5a3ddf0571f7565bdeba X-Patch-Sig: m=pgp; i=broonie@kernel.org; s=0xC3F436CA30F5D8EB; b=iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl/YtwwACgkQJNaLcl1Uh9BuBQgAgEu 02tONuxW1LaE6GX9LyGK1zX/sFsJQFtoUvFyeppPnwEs/Ie/wcowd1XD8bJ/GtdeWY40TrLyA6b6w 7XvwEFkNheIXFWykhTjkfyOiL/XaQgmHh+I9CxmkV0RFCfLcAf28RIELTmWyxAjQMxIcSrzgA4zx3 UnUlXHB78i0a2XTAxs0zeXVGeNsUtbzrQxsQ+HBRXSv1NGpT16fM22MsPWlJQeR/yKNd/t5+XFKmp 6+fT4QKNMJyQ2f5udfQjLR7D+NMjuxHZQQQzL8Mvlzqh+AKFXu13x9+KftI6pqA8DC1l7tkTgeBWR fXISfx62GumcMBTLWRVUT6f91vAFVFw== Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The pf8x00 driver supports three devices, the DT compatible strings and I2C IDs should enumerate these specifically rather than using a wildcard so that we don't collide with anything incompatible in the same ID range in the future and so that we can handle any software visible differences between the variants we find. Signed-off-by: Mark Brown --- .../bindings/regulator/nxp,pf8x00-regulator.yaml | 6 ++++-- drivers/regulator/pf8x00-regulator.c | 8 ++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/regulator/nxp,pf8x00-regulator.yaml b/Documentation/devicetree/bindings/regulator/nxp,pf8x00-regulator.yaml index a6c259ce9785..956156fe52a3 100644 --- a/Documentation/devicetree/bindings/regulator/nxp,pf8x00-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/nxp,pf8x00-regulator.yaml @@ -19,7 +19,9 @@ description: | properties: compatible: enum: - - nxp,pf8x00 + - nxp,pf8100 + - nxp,pf8121a + - nxp,pf8200 reg: maxItems: 1 @@ -118,7 +120,7 @@ examples: #size-cells = <0>; pmic@8 { - compatible = "nxp,pf8x00"; + compatible = "nxp,pf8100"; reg = <0x08>; regulators { diff --git a/drivers/regulator/pf8x00-regulator.c b/drivers/regulator/pf8x00-regulator.c index 308c27fa6ea8..af9918cd27aa 100644 --- a/drivers/regulator/pf8x00-regulator.c +++ b/drivers/regulator/pf8x00-regulator.c @@ -469,13 +469,17 @@ static int pf8x00_i2c_probe(struct i2c_client *client) } static const struct of_device_id pf8x00_dt_ids[] = { - { .compatible = "nxp,pf8x00",}, + { .compatible = "nxp,pf8100",}, + { .compatible = "nxp,pf8121a",}, + { .compatible = "nxp,pf8200",}, { } }; MODULE_DEVICE_TABLE(of, pf8x00_dt_ids); static const struct i2c_device_id pf8x00_i2c_id[] = { - { "pf8x00", 0 }, + { "pf8100", 0 }, + { "pf8121a", 0 }, + { "pf8200", 0 }, {}, }; MODULE_DEVICE_TABLE(i2c, pf8x00_i2c_id); -- 2.20.1