Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2827558rwb; Fri, 9 Dec 2022 06:51:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf5uGvmoxs4OBOUTmj9PnIhgPfkdBMimknL6b2KQiu2Px4A0ue/cDiaufZzZkAkcqy6Yqt9L X-Received: by 2002:a17:90a:3e03:b0:219:2aa9:2c7c with SMTP id j3-20020a17090a3e0300b002192aa92c7cmr6123358pjc.0.1670597465079; Fri, 09 Dec 2022 06:51:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670597465; cv=none; d=google.com; s=arc-20160816; b=HByGcAF7Hf5nk56IpdGuD2VEFO5taakiaTv2Ddf2KCr6tV5iE4ZL2k+islBJhb72F6 MKgGehdsWkqYk43IpOR6eIqCP0oj0X4Hcmul3bgdleZZ9Uau3Ink0JGmmX0fs1yTK9AC mxCrwi9LTzFktxWgasD9rBmIchv8261MQ/r+Ut/WPVCa1VnJbvlsHOe9ntNNejWtk2gM zZWmMSpgCW3o7EPpJk1Jduef5VoVOazhLhtsLRROIg6ScYvYK4mwecxSQ0r9F2qme/l7 dDQgDjIkWd4CxdmM93wFrXPy/h5ShTEjfhxKCtwWjozxBZbXPMqVNymTD+DOkeiccBkS bKrw== 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:dkim-signature; bh=ksjf1ifYnL0IeOGv0R3sruLheVUdXvnakVg9dKCd4O8=; b=MFmqSYfxF0DUv6rvjsu7jvWiqwA1CX/7AJ49rc9sMI03Oibs5ZDt5rhfPhtfPLxvux rNwajTo5sShsh6EcYyQv2RYlZY2yFvFRdv4UVEFnq6zd8bfw5FPFf2YT3LmTMNEvtyH4 pNCcu0m7sOHS/hMGMh2A4V2Yb1m44OtUz/LtEQfCmu+9XIksiJGYXZm3fesWBICOt9KT BH0OJkeQyB8LRbaAmrt0Gs7yjOsHZwmW/1xwOHSHSsYtp5Tiu0QRnkHgfOqu6R79EPZv u1+DzYvlMRfjjbIIcf5KLQpTWx3xVki34Drwb7aBTMooMKSVkPztAy8/IYV5s+2ls7lr AKMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OQbbA1cK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i30-20020a63585e000000b004770fe91070si1613386pgm.587.2022.12.09.06.50.55; Fri, 09 Dec 2022 06:51:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OQbbA1cK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229873AbiLIOiB (ORCPT + 75 others); Fri, 9 Dec 2022 09:38:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbiLIOh7 (ORCPT ); Fri, 9 Dec 2022 09:37:59 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 787FD22536; Fri, 9 Dec 2022 06:37:58 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id n7so3722472wms.3; Fri, 09 Dec 2022 06:37:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ksjf1ifYnL0IeOGv0R3sruLheVUdXvnakVg9dKCd4O8=; b=OQbbA1cK0DLAHzSfbCq5R8N42tSEvcURMYHt9ZKK+qQWDGzmd6F6B4RFf1jPssJGbj ZVLzrI0eVT8/DemfkWZX4S2ly6YAMd4Igj2dHB5DSD+4aeEdEVoScZ8oSd4eJTr5tyRR Yf3GkNs4OgraFIWhrjQE8n/HMyqK5p2aGAxY40oV1AVYan85DJXLUrnud+gMZcrhJHiY AYhPxe47WfPQdQ4+0W8NhvANhC7JWtG7EG+Bl5TZSJjVmsDgF1F3SEXCPqKjMbrY0UQW Nlp6j6rGt3VHI07A1wXyixNjgDjAzGlUj9olUKmAUgmI2+RfO1j3ezGdMzKoC8tC8lTn MoEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ksjf1ifYnL0IeOGv0R3sruLheVUdXvnakVg9dKCd4O8=; b=Ru/8MXPuwfhtWmbP9oiFb9btmfYeKny7UEmymkPdY0YxaOnm2iO2joMuERF+pXTnn6 dIMdTJUQlx+kmnjDZyFEamOFey/z/Uri3vj7uj9DQm8M+ceLaU43WCKjy4xrQAps+h/7 /Y5gmQ7/DU5OrO1S296oA4neOAQbvBXTm6N9ydYb2bXw4naGbjtrV7hPaYNXGEhpzVzR tg8vPMMI6e/GP58U4pFKomhy49XbzjpxMvuoMNbF3lo6sEpvewdC8AA0XrogQ0o7jGv4 yexSnkYYiNinpAOyanJcVWvQfAyTy0bAO0Dw4+Vjh0MxqAk2QPZ+6ul1TOL7F4uhRRKF YhYA== X-Gm-Message-State: ANoB5pmUBt47kjny+xOc8ask+ruPmlGagWn3yurZL1ZDX4i1R9EAo0mN 7ghjmQHQhwXgKmHCfiK9i68= X-Received: by 2002:a05:600c:1d91:b0:3d0:274a:3171 with SMTP id p17-20020a05600c1d9100b003d0274a3171mr5173435wms.0.1670596676855; Fri, 09 Dec 2022 06:37:56 -0800 (PST) Received: from localhost.localdomain ([95.183.227.98]) by smtp.gmail.com with ESMTPSA id m31-20020a05600c3b1f00b003d1e3b1624dsm9645517wms.2.2022.12.09.06.37.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Dec 2022 06:37:56 -0800 (PST) From: Yassine Oudjana X-Google-Original-From: Yassine Oudjana To: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Tianshu Qiu , Bingbu Cao Cc: Yassine Oudjana , Yassine Oudjana , Jacopo Mondi , Lee Jackson , Christophe JAILLET , Umang Jain , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/3] media: i2c: ak7375: Add regulator management Date: Fri, 9 Dec 2022 17:37:38 +0300 Message-Id: <20221209143741.214242-1-y.oudjana@protonmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yassine Oudjana This series adds needed regulator management for the AK7375 VCM. A DT schema conversion is made before adding new properties. Changes since v2: - Increase delay to 10000 microseconds to match the AK7371 datasheet and because 3000 can be unstable sometimes. - Use dev_err_probe to report regulator parsing failure. - Remove AK7375_NUM_SUPPLIES macro. - Use unsigned int to index supply name array. Changes since v1: - Add vendor prefix to DT binding doc file name - Reorganize variable declaration - Change the power-on delay range to 3000-3500 microseconds. Yassine Oudjana (3): media: dt-bindings: ak7375: Convert to DT schema media: dt-bindings: ak7375: Add supplies media: i2c: ak7375: Add regulator management .../devicetree/bindings/media/i2c/ak7375.txt | 8 --- .../media/i2c/asahi-kasei,ak7375.yaml | 52 +++++++++++++++++++ MAINTAINERS | 2 +- drivers/media/i2c/ak7375.c | 38 ++++++++++++++ 4 files changed, 91 insertions(+), 9 deletions(-) delete mode 100644 Documentation/devicetree/bindings/media/i2c/ak7375.txt create mode 100644 Documentation/devicetree/bindings/media/i2c/asahi-kasei,ak7375.yaml -- 2.38.1