Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp472360lqh; Tue, 7 May 2024 05:13:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVvdaNAem8TEx4u2OaJac7Vo4ZuIXsgbQESGAcnPa/UMqnGBKCxh0pD2L/gPWBWEK0O/nJQKVvhn6MbSOb/zXu1EiWPDAKqWjd/qNWf+A== X-Google-Smtp-Source: AGHT+IGrHIuwF51OV54blisCqgxhVaa7fFCJkGjsUkLmmLDOGGVg4L/omQSMxQ1fjDbosWFBo9vu X-Received: by 2002:a05:6a00:10cb:b0:6f3:ebc4:4407 with SMTP id d11-20020a056a0010cb00b006f3ebc44407mr14227229pfu.4.1715084001804; Tue, 07 May 2024 05:13:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715084001; cv=pass; d=google.com; s=arc-20160816; b=YeMqIi+TblG47LXbPheDgYE336NyOhXOtYjvgDgZNQDNveRRQFqfdWOwdk26LXMBbZ XMW+WSkR90/XqrkRQ05QL6QPd7tKVHUAL0c2EFXKxelQsxQWoH9y6RNxLufYWFD2Qriq xKjZj3ly8ANqlaYDHCy72og7bZIrElQR/Ek/dpdvKsMZ1+euNassS5Ck46QHfctGfE0p o+nLQ1avvnZI7lKR9A1QfmEf2+HWZYAT9T53qkHBceqG1WpgdSAPTyEagv3xnXHt5BAO wjR2CZf+urwJUH2W0UHUnqCun6l2Ubfo3fZZC698btfMur9Lk14zq7Cs3FL+CEFbI46J gEEw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=72j6zNVVvGNrYMrCouTEzvFzVcRHh6PlR7ef9XOXTgQ=; fh=pre1MLw/cl8EyK+tSH98DZegTeHG/Aobo20uVQPnuZc=; b=NdpHBtlr/LN6odLq+cV5od4dpfBsijPNDnD/8Uq+REZeEPGzBokD+VxgxwfZ0RvLoq PZJ7C8mndO4P+vQX9FV65ZOTMdq8PUTSqP7+7khY4jdJeGl7vc9Ed8Kmo9MyXNutf3Fc 0hfyv5ni1WI347FH4LoZCKoUhxJRu/YKHgDZKjjY2d3zH0EIEHHeesuCh2k1/08aqYRJ sx+hW0YVjTFZX1xR56uQj0Rt9Ndlfd9ZA5D9OKGfHx9G9H2AF+6cj2WC3UJ/oe69F9JN imH7StC/WYhg9gm8xuIsrMYNTYpOUwq3/6A8yRr28e0wtmJUOQZCHHvXeOsJ8FszrsHo f4zQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Uf9H3qsB; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-171222-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171222-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id s2-20020a056a0008c200b006f46a8950a2si5670439pfu.284.2024.05.07.05.13.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 05:13:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171222-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Uf9H3qsB; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-171222-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171222-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E5B5CB25A44 for ; Tue, 7 May 2024 11:48:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5C6B153821; Tue, 7 May 2024 11:48:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Uf9H3qsB" Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0FF4215253A for ; Tue, 7 May 2024 11:48:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715082518; cv=none; b=Z6sA0QQvRNjN1g0XRYOmDBQ1aH50n7Vch+5ry61fM1FSe8UiaHDxjjTwPXT0ry9ngaKjeE9/+wcSECK1itAtUY8svYoxJKRW8PJSnxzGiib275hv1mKuqZS8NANIaP1UMcapMHwNj950+d/ygUxvVxXoC9HoStNiFloMbrjVUPs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715082518; c=relaxed/simple; bh=ZvJC+HUC23cfgfMiVTigE+cAqOZWAnz9vZbxnvZ8ru0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Wm+eyVc/Adjp6QeNekc/JMmTg+btoeQ5+HGhTybQzDotH78fcDA6h2s8KUvwlANN5lc6PJ3IIvDEX0CT8ne95hJyM2UrAA4LpheZCY5lLmISxFxnUDaLz0Eq8PP1GqxJuDQxq+rIIHDw8YN5mdqu/dUk+qBg9DKx1roEt4KNDug= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Uf9H3qsB; arc=none smtp.client-ip=209.85.208.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-2e3e18c23f9so11501991fa.3 for ; Tue, 07 May 2024 04:48:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715082513; x=1715687313; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=72j6zNVVvGNrYMrCouTEzvFzVcRHh6PlR7ef9XOXTgQ=; b=Uf9H3qsBB1mG3WF0plN0CboxxB8ch2s0qKwTRYjag5C+BU+IlXgsKM7hYhx0tiDts2 qc5GbbkGrphWjfcS+9odIxupiYn3+72eaOnbOPvQApgPU0thtOqJlCDYUz1XGu+dDaAH Huc5tLjXXOFf2KLEjD28m96nOAVqIW7n0/sfFcMoSK8GYpQbS0s1RNUZb1eADTOmrwuz 8DuYQ7U+k5T+XgM60SVoz92dVdmP3eZeZh/Rxt+VwAlk0G6GyUUTIawqDpPuhDZL7exM wtfjhEQwpPR0lbTGLdPgex00KjwZGJe/yoEJtW1tBOfEVywhncSXW2k1RYA7Lg1XzDiS hyew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715082513; x=1715687313; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=72j6zNVVvGNrYMrCouTEzvFzVcRHh6PlR7ef9XOXTgQ=; b=GQBnbMJsc0S9GB+Z51mbtq6JXQXyA8eDo5VGgDxHg5rp9ZYY9yz44S8cS1FNAwy+/m kHzIlmLl8DuJV1e7d7p2DBxEltELTXELfIrg2a6blD2QKhZO/RGTITCEbRvGwQBkoCEo gNhRUiWxkhn97xVNyIGnoehIRns7HIQz+bqw0inexVI2XQs9DmEdPcifkgaPeLRK3Aag 1zSwUJWdK7LlE1gqsxcGQHjCCpJLL5/83AOf9TE6QkR66Liip83dLtWG66xDnH2xpBls wPhzwx4RGxlDxBWkLfoRBgMFDt7r9TtmuARW71jzgGglS/o9xKd9nZ64tpvs/ojih0FF wgOw== X-Forwarded-Encrypted: i=1; AJvYcCUslqxG1kqfO1qtM59vj6Kdg6sB0Q8xWoT50bLEKYbzpc/ctX3Qsl2P/bF79mAOUIT4yIHR3S21pFz/LBGdn8eLz1wBkFbyii6S+1Qq X-Gm-Message-State: AOJu0YzMStejEDxe2QV/lh4gACtgj3W1F/rhIB9Qv99eJ1Xr1CEo8saK kOh25UGDp4J7hucHYqhB0GGtpnkv234RA78zwc5taSdvCezSbsoVUXQCJS8TLkU= X-Received: by 2002:a19:f713:0:b0:51d:3675:6a08 with SMTP id z19-20020a19f713000000b0051d36756a08mr7293073lfe.66.1715082513172; Tue, 07 May 2024 04:48:33 -0700 (PDT) Received: from [172.30.205.144] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id b15-20020ac2562f000000b0051884ea2a32sm2086190lff.31.2024.05.07.04.48.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 May 2024 04:48:32 -0700 (PDT) Message-ID: <6dc632b0-792c-49c8-9f66-43f7a14789cc@linaro.org> Date: Tue, 7 May 2024 13:48:30 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 12/13] regulator: add pm8008 pmic regulator driver To: Johan Hovold , Lee Jones , Mark Brown , Linus Walleij , Bjorn Andersson Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Das Srinagesh , Satya Priya , Stephen Boyd , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org References: <20240506150830.23709-1-johan+linaro@kernel.org> <20240506150830.23709-13-johan+linaro@kernel.org> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20240506150830.23709-13-johan+linaro@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 5/6/24 17:08, Johan Hovold wrote: > From: Satya Priya > > Qualcomm Technologies, Inc. PM8008 is an I2C-controlled PMIC containing > seven LDO regulators. Add a PM8008 regulator driver to support PMIC > regulator management via the regulator framework. > > Note that this driver, originally submitted by Satya Priya [1], has been > reworked to match the new devicetree binding which no longer describes > each regulator as a separate device. > > This avoids describing internal details like register offsets in the > devicetree and allows for extending the implementation with features > like over-current protection without having to update the binding. > > Specifically note that the regulator interrupts are shared between all > regulators. > > Note that the secondary regmap is looked up by name and that if the > driver ever needs to be generalised to support regulators provided by > the primary regmap (I2C address) such information could be added to a > driver lookup table matching on the parent compatible. > > This also fixes the original implementation, which looked up regulators > by 'regulator-name' property rather than devicetree node name and which > prevented the regulators from being named to match board schematics. > > [1] https://lore.kernel.org/r/1655200111-18357-8-git-send-email-quic_c_skakit@quicinc.com > > Signed-off-by: Satya Priya > Cc: Stephen Boyd > [ johan: rework probe to match new binding, amend commit message and > Kconfig entry] > Signed-off-by: Johan Hovold > --- I'm a bit lukewarm on calling this qcom-pm8008-regulator.. But then qcom-i2c-regulator or qpnp-i2c-regulator may bite due to being overly generic.. Would you know whether this code will also be used for e.g. PM8010? Konrad