From patchwork Mon Oct 7 15:45:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Stephan X-Patchwork-Id: 1993715 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=WgL9y4oP; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=139.178.88.99; helo=sv.mirrors.kernel.org; envelope-from=devicetree+bounces-108607-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org [139.178.88.99]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XMk5M0Vv5z1xsn for ; Tue, 8 Oct 2024 02:45:59 +1100 (AEDT) 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B1661284645 for ; Mon, 7 Oct 2024 15:45:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 60AAF1DA0ED; Mon, 7 Oct 2024 15:45:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="WgL9y4oP" X-Original-To: devicetree@vger.kernel.org Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 DBBA31D9323 for ; Mon, 7 Oct 2024 15:45:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728315949; cv=none; b=kx+PXhsbAQ7HoHS5Gsuo7/PAEi7oefOdIJ59WCXxAFXpQpgOrhfyfrTVr+pOM6xpR70UvYh4HMBdyVrXEF3rf3lzWhcKaf2jb9MDjBefhFUx8kOs+ZryRFup8xJjVQ0gTFCVLMiUxKESJTx0wVRcGipNPRqBKMY3REo1IKCTRGw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728315949; c=relaxed/simple; bh=adjIKONqQldQq+nYfRFYqYIa4peg7k+DD94EtLL12aY=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=hEiwPqVvNLtTZhjsMbf6apBLEedsy5j7GQvDb8GaCZ8Eh7a+vAQwhrwTVIFuW7m/5JO2UA5AdJq5pLxbzNnRtsllPcmxkZ/HbdNbRW8pel+dGZNMsX2L9xLzXw3Uk+Mke9InK/NHCNu2ja7AzgG+yOvT1+F0wDlbe5KWb96kuuI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=WgL9y4oP; arc=none smtp.client-ip=209.85.221.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-37ccebd7f0dso3058684f8f.1 for ; Mon, 07 Oct 2024 08:45:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1728315944; x=1728920744; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=IebLd9pybc2nbLozfLLDXz3gBz/LDqnDpQAr15l89v0=; b=WgL9y4oPhVU5CU2XRqENuOYDGZx91sIqy10aYAOdQfDY3RAKMGiNU7Z+r6hAaNpaWT bgTQQ6g4+JFyn/2PngLEMpYbJA2HBdleUsuHshZC8PnbBETWjvKic5YWoxOrz07E6lWi OUJTh9Ho6JniWBR948uP3g90DuziHpXZqqyhBHFGZqJQWiFnnKqfrAsNbsP1HYHaHlBN q/31zIW+++dp9XHheuFEhqRrSrEOD8LEwDjF9gGyFbmWVsiz1LWsl7IiUJ7AW/dVUUbS kS+ac37+K/SRbw+dhucBbKnF3KIm0r7HwlG8bEnBdmadJoqxZwGbCGuBmZW6aYtPujun d3nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728315944; x=1728920744; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IebLd9pybc2nbLozfLLDXz3gBz/LDqnDpQAr15l89v0=; b=XEr7RYE89uTLZAwRphwXQyUleBWU+7/E56ppWUmkTzsg5bjPXLmkOTl2rAXBdI3bOU k+z5AxpqOeIGDu6tJmaH/kG5afZc36afYONrArseQKssXZCr7DuX+Uvz40/a9IGxrKl5 DuXdLGihGUj1zoguYunNsJXfUcrfw0koDtmpVHKoZ3Gl6e8VwL+m3u9uvPdiaX/iI1/0 jNZ/VUkp+QDU5av/brKXRhfJfKPKMxEha8vAdOCbaGQxOj1XU4MTuqkpM15UapefSZGR /2uGnnBtxsotX1XjdT8+vy4dsowS2t46TzHruohNDfkYd8iFr4JCPBeI9mPpE+YhWsfs 7O0A== X-Forwarded-Encrypted: i=1; AJvYcCXmMmJkr4I61eyLPLRFEcGUbmnSK0SxSSl7QDp5gKXmM43GDHS+8masZucBBBCwasyWPC8jAoyCNJ6S@vger.kernel.org X-Gm-Message-State: AOJu0YzbIsnsMTUHOpa2uxHnvnyyrBsxK9/jTTARGNHntWlC/K/FGupa 2ZLLO7KNF6po7xG9I4sbHJ3XHqwcSjPXSc1Y4geM+Ar7Iv9Re7p6u9hGREevaS4= X-Google-Smtp-Source: AGHT+IG4xZiJ9Dxrm/XmWrYjYFc2ltp0HZl/BJIa/shgIDu3Ewcr2gbsH0yy3XGYqB+hqg8efWUjYA== X-Received: by 2002:adf:f306:0:b0:37c:d526:9bb0 with SMTP id ffacd0b85a97d-37d0e76575dmr6868032f8f.35.1728315944069; Mon, 07 Oct 2024 08:45:44 -0700 (PDT) Received: from [192.168.1.64] (2a02-842a-d52e-6101-6fd0-06c4-5d68-f0a5.rev.sfr.net. [2a02:842a:d52e:6101:6fd0:6c4:5d68:f0a5]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42f9384f648sm17645555e9.20.2024.10.07.08.45.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2024 08:45:43 -0700 (PDT) From: Julien Stephan Subject: [PATCH 0/6] iio: adc: ad7380: fix several supplies issues Date: Mon, 07 Oct 2024 17:45:43 +0200 Message-Id: <20241007-ad7380-fix-supplies-v1-0-badcf813c9b9@baylibre.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIACcCBGcC/x2MQQqAIBAAvxJ7bkGzMvpKdJDcaiFKlCIQ/97Sc RhmMiSKTAnGKkOkhxNfp4CuK1h2d26E7IWhUU2rlWrReWsGhSu/mO4QDonR9NaavlvWwTmQMkQ S/1+nuZQPlvh6lGUAAAA= To: Lars-Peter Clausen , Michael Hennerich , =?utf-8?q?Nuno_S=C3=A1?= , David Lechner , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Jonathan Corbet Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Conor Dooley , Jonathan Cameron , linux-doc@vger.kernel.org, Julien Stephan X-Mailer: b4 0.14.1 Hello, This series tries to fix several issues found on the ad7380 driver about supplies: - vcc and vlogic are required, but are not retrieved and enabled in the probe function - ad7380-4 is the only device from the family that does not have internal reference and uses REFIN instead of REFIO for external reference. driver, bindings, and doc are fixed accordingly Signed-off-by: Julien Stephan --- Julien Stephan (6): dt-bindings: iio: adc: ad7380: remove voltage reference for supplies dt-bindings: iio: adc: ad7380: fix ad7380-4 reference supply iio: adc: ad7380: use devm_regulator_get_enable_read_voltage() iio: adc: ad7380: add missing supplies iio: adc: ad7380: fix supplies for ad7380-4 docs: iio: ad7380: fix supply for ad7380-4 .../devicetree/bindings/iio/adc/adi,ad7380.yaml | 32 +++-- Documentation/iio/ad7380.rst | 13 +- drivers/iio/adc/ad7380.c | 136 ++++++++++++--------- 3 files changed, 110 insertions(+), 71 deletions(-) --- base-commit: 8bea3878a1511bceadc2fbf284b00bcc5a2ef28d change-id: 20241004-ad7380-fix-supplies-3677365cf8aa Best regards,