From patchwork Thu May 19 07:51:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 1960 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id ED1D53F1D5 for ; Thu, 19 May 2022 09:51:22 +0200 (CEST) Received: by mail-wr1-f69.google.com with SMTP id l6-20020adfe586000000b0020d0ff79cecsf1239204wrm.12 for ; Thu, 19 May 2022 00:51:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1652946682; cv=pass; d=google.com; s=arc-20160816; b=lmBg97F6NU6Ejg0jDBUYHZ+RJnlsxlXjyXCEEexFHDbOydLdophZm17TUsO0efiEGd PP6VjILEamBKd1y+iL6znDY/vBa4ryed1pAM1aTNr/Pgm/MH9IUA5tEvYn/7E1acYjbw InieHIVvJPXO3eT0wLZMPdlwGtlUlbscyHwQs6sN6F2FsOkhgNe5+sDDjFOF74OHnUp9 ne4c7M6YM8jUEb8GGAESe3+RjD1VpTtykdeB05G6fQ+IxvXOUH2DjGzIpe4XqLeZN3iS aWXZfKYi747N5A98eE1tKdjVJbRFjgBi2e47GWHusmiLsTC50l8xWSFCcG+uW8eebnfa bN0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=fqp3RqKwqF4aKOF8nirB8osD8DgT6BwOx96Y3NqF2kw=; b=UK61ov3qWDIsoM9XwfjQZ2KwEPkDboSMMap7DdNTamLR/2BVPU2fKSMse5ypGQApay JtjcHabadQDZWEgDMZXCOB9zJSs/yhZO228oZsqsnqmQbAZmItUPml6ioBHr5Ah2QpZa naLRzUEhYv459lpdNXbVqM5AU1Flt2F8/PxwjXfexyFHjD2Q80yyToNMVt+CCCC/Nezx 8sHcFuSmTIMujI3HJwDyXZfkV+y7ourBUb5aKKH8Obbhywwu2CdyX5ZjGbleLjD5LNoF 5fYBqE0+Y3BN4smiv3HLIRsw3MS6rCpuEOatnRx1kNkam1GICfLo942E/9OHVdb7uU7B ye4w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dREwkqgK; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=fqp3RqKwqF4aKOF8nirB8osD8DgT6BwOx96Y3NqF2kw=; b=r0haxF6cbI6T4yuaJkqsRONL7UcCI74ztx90r2gxygrPZks668AMXqLAcGFpYtOcAn L2ZuYl8ThyJBG5B16hd5pCOzSd0IhK5f7pp4G0muF5ynWDWMBeChc2dyq9kCbfeL19oR LqSauYkyy/XWgo+HQBNXHkNGW1HEWccfpDZxc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=fqp3RqKwqF4aKOF8nirB8osD8DgT6BwOx96Y3NqF2kw=; b=wvbVH3kxlEmsJMqM4pw+5yZUUtqvp+Ce8puqGuqNY0/erroGCGqEhvWYoAqEuNlErg +ttLN7nwOfUSGFDDWnyjtIaDHbhtgKT4iSnjGu1jEpSynSgsoxYur2y3ClxWwtjWK4OE 325LASO856iDcBosafpuJVRxQjbo6OcqVvQg2dA+e6NkO7eNlFcMJxpSEQlcXbpjW9Dg BdwnbimfX1sJoAH7CSnZJbUDcocT/6p06g6qM00OGtH1SuFIU6Ic4P+lZVnC3cdgvmfn p6fx6fmmxqdZqY88fPjeQJT+bRRgnEHDkp7+n6mAzgG8o0yzxNlIRY29swMM+WjOmpPs 2mZw== X-Gm-Message-State: AOAM530ddVXc4F3m5G3DrCTjQI+Z3k0AquMGgODhBASRVys4KdVrPZb/ RYnz7ygl5BTcjo7OIhRb2WhIwmsP X-Google-Smtp-Source: ABdhPJy60PqkQkeFHQYX69PIX/L3F8X+0hXow+bt/nz7Ja9VZtSeJsfE0c+fVrdtyicUFPKO15RvHQ== X-Received: by 2002:a7b:c387:0:b0:394:81f8:f049 with SMTP id s7-20020a7bc387000000b0039481f8f049mr2605536wmj.126.1652946682276; Thu, 19 May 2022 00:51:22 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a5d:64ca:0:b0:20c:bb44:bd7 with SMTP id f10-20020a5d64ca000000b0020cbb440bd7ls2968933wri.0.gmail; Thu, 19 May 2022 00:51:21 -0700 (PDT) X-Received: by 2002:a5d:4a10:0:b0:20e:60b6:34a6 with SMTP id m16-20020a5d4a10000000b0020e60b634a6mr2835176wrq.404.1652946681245; Thu, 19 May 2022 00:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652946681; cv=none; d=google.com; s=arc-20160816; b=qBTfKifjx1PYB9DUeAfX05u51wG/FpwgnffWqC4ea/3uwfGZVYTN3sooEFLuYrvsHX +RwKMUmMxQqGmqu8SEgeFg4QUD5fh6hm3tFRcirQZMa2dm4dHR/uCvofA/EIWGBkbIZZ EKcF0sklSZLQg0KfB9bCnx2Bt4qztEI44TCgbOjd/yHDrLcY/KQ0WlE81SYnDQ7GDLaU InRAqex88e0/9Pf5CeFoiBjTc9q0bLHZCdtn9SXqgaJOAEHvcWj0dY4P0WqwHKtk7Peo twGcoh7Zk6u3P4Cr4DZEEHYT9S2aTah5vK0DFm4f5Gt/+Fib7rpII3ATHRYj7YxhyoI+ qMZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=y+ISkJJI9HCW17NlesxzBupNaP4V8jkoqAfbXb7t54A=; b=Rdr5EoTJeeHcPvGqknCa3rcG7luk5ovWBmYlJm87HCEko5S2+o6FbmL9LiR2QfmveC J3ld95YbonJqnUewvByWUdB/W6gzO5P25GcNohhNlr6pAcKG3TsMIUpfVIgS0LQFP5my 5rsOHevJppUplhMuRBZn4kcIcYyBYe7e+3MRO6eySHWspoXpHlX9rAJJgDjg6lp0PBIa lV0GzfoT+JhEB9JDbLCPEvuiJ3ypvBUSFyOQZePHR4/JGIGowo4N5773CbprCKS2pEDw YWfRG5tIXN8xzQUVk67HpbuJdhH47T0OMjo9LwRMIQECcmOVFpZgSraz79xgpLutNwTV qnIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dREwkqgK; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id p21-20020a1c5455000000b003972dedca8csor302253wmi.43.2022.05.19.00.51.21 for (Google Transport Security); Thu, 19 May 2022 00:51:21 -0700 (PDT) Received-SPF: pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a7b:c2a9:0:b0:397:9a4:f66b with SMTP id c9-20020a7bc2a9000000b0039709a4f66bmr2629692wmk.128.1652946681000; Thu, 19 May 2022 00:51:21 -0700 (PDT) Received: from tom-ThinkPad-T14s-Gen-2i.station (net-188-217-53-154.cust.vodafonedsl.it. [188.217.53.154]) by smtp.gmail.com with ESMTPSA id c6-20020a05600c4a0600b003942a244ebfsm3370254wmp.4.2022.05.19.00.51.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 May 2022 00:51:20 -0700 (PDT) From: Tommaso Merciai To: Cc: tommaso.merciai@amarulasolutions.com, linuxfancy@googlegroups.com, linux-amarula@amarulasolutions.com, michael@amarulasolutions.com, Shunqian Zheng , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] media: i2c: ov5695: use regulator_bulk_enable/regulator_bulk disable instead of for loop Date: Thu, 19 May 2022 09:51:14 +0200 Message-Id: <20220519075117.1003520-2-tommaso.merciai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220519075117.1003520-1-tommaso.merciai@amarulasolutions.com> References: <20220519075117.1003520-1-tommaso.merciai@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: tommaso.merciai@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dREwkqgK; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Enable regulator using regulator_bulk_enable/regulatore_bulk_disable function in __ov5695_power_on/__ov5695_power_off function instead of for loop. This reduce code size and make things more clear Signed-off-by: Tommaso Merciai Co-Developed-by: Michael Trimarchi --- drivers/media/i2c/ov5695.c | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/drivers/media/i2c/ov5695.c b/drivers/media/i2c/ov5695.c index 439385938a51..880b586e55fe 100644 --- a/drivers/media/i2c/ov5695.c +++ b/drivers/media/i2c/ov5695.c @@ -972,7 +972,7 @@ static int ov5695_s_stream(struct v4l2_subdev *sd, int on) static int __ov5695_power_on(struct ov5695 *ov5695) { - int i, ret; + int ret; struct device *dev = &ov5695->client->dev; ret = clk_prepare_enable(ov5695->xvclk); @@ -987,13 +987,10 @@ static int __ov5695_power_on(struct ov5695 *ov5695) * The hardware requires the regulators to be powered on in order, * so enable them one by one. */ - for (i = 0; i < OV5695_NUM_SUPPLIES; i++) { - ret = regulator_enable(ov5695->supplies[i].consumer); - if (ret) { - dev_err(dev, "Failed to enable %s: %d\n", - ov5695->supplies[i].supply, ret); - goto disable_reg_clk; - } + ret = regulator_bulk_enable(ARRAY_SIZE(ov5695->supplies), ov5695->supplies); + if (ret) { + dev_err(dev, "Failed to enable regulators %d\n", ret); + goto disable_reg_clk; } gpiod_set_value_cansleep(ov5695->reset_gpio, 0); @@ -1003,8 +1000,7 @@ static int __ov5695_power_on(struct ov5695 *ov5695) return 0; disable_reg_clk: - for (--i; i >= 0; i--) - regulator_disable(ov5695->supplies[i].consumer); + regulator_bulk_disable(ARRAY_SIZE(ov5695->supplies), ov5695->supplies); clk_disable_unprepare(ov5695->xvclk); return ret; @@ -1012,8 +1008,6 @@ static int __ov5695_power_on(struct ov5695 *ov5695) static void __ov5695_power_off(struct ov5695 *ov5695) { - struct device *dev = &ov5695->client->dev; - int i, ret; clk_disable_unprepare(ov5695->xvclk); gpiod_set_value_cansleep(ov5695->reset_gpio, 1); @@ -1022,12 +1016,7 @@ static void __ov5695_power_off(struct ov5695 *ov5695) * The hardware requires the regulators to be powered off in order, * so disable them one by one. */ - for (i = OV5695_NUM_SUPPLIES - 1; i >= 0; i--) { - ret = regulator_disable(ov5695->supplies[i].consumer); - if (ret) - dev_err(dev, "Failed to disable %s: %d\n", - ov5695->supplies[i].supply, ret); - } + regulator_bulk_disable(ARRAY_SIZE(ov5695->supplies), ov5695->supplies); } static int __maybe_unused ov5695_runtime_resume(struct device *dev) From patchwork Thu May 19 07:51:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 1961 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id AD79D3F15A for ; Thu, 19 May 2022 09:51:25 +0200 (CEST) Received: by mail-wm1-f72.google.com with SMTP id i81-20020a1c3b54000000b00397330faf1dsf93291wma.0 for ; Thu, 19 May 2022 00:51:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1652946685; cv=pass; d=google.com; s=arc-20160816; b=K1oQtG5OHkOYSyF+6nHkcwAMYG3XSfA8IHNzHUrejSUJlV562QVEwS1nA9prI0iA2p vR+b6xYnxrOpcq0ZemyNaYLpJDsfusRYhUc+FEusjQvtrbicfGnu6yTV/ozRQbOcGnYH T5NZeo4T5RhDhDTWMZEY9ov8i7+VmbMPO2Ju6DI+gN9G8n1QtbmNLLWGLXnZN0Anx4b8 uDFJ3LbMGIis4iGnAlIi65b0WD9d7Y0ekQWllHmm5xKpMMFFkrVhZ4H1OtwvBMFZzi6a qVFHDyEPSgcOa38kiM6dX9PTpoFtDeKOIIx0A6FYN5Ej5YMxVbYRrjKgT4gbWl9368vx DcKQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=8InriBH/ZXS+Bok9w5ZZaYth8j7qMX6k+bObbF8pf1g=; b=Qw7dkKaTTusf7GBxOqipJTCLivjLb7GXSQXYjLg02zPSw8aJwd4lCOT98CPwfbiPOH Ld91R8S9jpfiT6f+U9LJkbGIw0vjWiWQzJpeXEPxRWtvW5X9pExaD3J4JGJjgPSefLfM 3mOEQJzUvCSc2rAjYgugDD91EQ9Aj+sudH6U7hY9lp+XVrP9BbwG5gWBdQjkZQ7lYp6w waaEwa/W+l4Jzi0Vk1OTk7sKKPNXsVk8iIfecwwEzzDxZ2hs/Xu6QhEHGtAHieBRHam2 SL7OeIQjZx8pTgKEQ+fQEclmxNSN9U+tffKJDNp3TN7jJJoyDmQX0pqATFgNGOys1mHP 85cA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=V4UXNqgM; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=8InriBH/ZXS+Bok9w5ZZaYth8j7qMX6k+bObbF8pf1g=; b=AorT/SSDsY84gxTTzNL9n4ImKTIMXv8A35GEyP11flfYsqcDIXdS7lvNR5uanTK1ga abejLbjCWLmMom/6repllmw4mwP5n7LMSEOMozUOTTKShblOdAkvQCO03exvKg0jOL+o yr4egYgJzmH/htiXjZCTAwqG+SFQ6gqGJa5Dw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=8InriBH/ZXS+Bok9w5ZZaYth8j7qMX6k+bObbF8pf1g=; b=v9hNB8gSMJpxjVuYzyrYChDbvLr8/M9rMsrPPGkgBaVvhzLTgwj63FK0oSkJzuvdZr fV4+7vAbWHHtZwjVmpdtOxvjWyj1VNUeh8UsfWJTvQ+eBYLy6RyTXAQNBqk7JNn/DfKl eEqlCAzZEFMmuwtAvaJS/pQUstlV9p66+CUl6WpR1BS817EJjR67p3N8wkucthWcVh2t q9/V6A51JDfYkcs8LFynqVdFIuy+OAmuT84/z1VeZZlkz7qByC+cZRczLf2MiKGkUKsD yPCpPYDO53vqSPhVsXGMPYkNAMhN4H0ZPCgC2fnjebuPYO6Uroe7vnWS4F7+8jUBZwaV N3Uw== X-Gm-Message-State: AOAM5307Y3saXfGFSvQP0x4ibO+VVRvvZWKIxyOEARZSSCy8/op6/i0Y CPt6x5OsLVB6NKMHQy/vaSubj2AB X-Google-Smtp-Source: ABdhPJyAFw5gG+mjCCev5CQh2eWL/MxxrlKkH54JYvrzTATirvkF4u9j9cduntAmGaJxx2dbKgk2xg== X-Received: by 2002:a5d:64e7:0:b0:20c:67c4:89b4 with SMTP id g7-20020a5d64e7000000b0020c67c489b4mr2881255wri.321.1652946685271; Thu, 19 May 2022 00:51:25 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a5d:64ca:0:b0:20c:bb44:bd7 with SMTP id f10-20020a5d64ca000000b0020cbb440bd7ls2969190wri.0.gmail; Thu, 19 May 2022 00:51:24 -0700 (PDT) X-Received: by 2002:a05:6000:1548:b0:20d:122d:7b05 with SMTP id 8-20020a056000154800b0020d122d7b05mr2840112wry.112.1652946684342; Thu, 19 May 2022 00:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652946684; cv=none; d=google.com; s=arc-20160816; b=CG717smNabn8sm9xC9GXlZpAf/IJ3nTYKci++AVJ0BHh/lOt5uK3x2nNNSZywJMeO+ rloPO0upYUkYO7nOBk1nYY0ZnA6CxbQE/IFTC/P2qegbw3VKXto1RzdCDbtd2x6LD8JA F2y7TRSxcIiF9lXGmJINDwcnRLdpFcFnSAnzQRPJ1TDls80MxdHLwVT8vSLbZ/3ZXCK6 NyWTHyvlysx512TR4xj4vosMQEhsx/6Mu8eepKnWzQgrHGdcwhICOHrIV5DmZHGVmcV3 1cAKwC5wX+LsgLvxWzLwu49gcT8ipfrtqs0C+//ves+Anx7TkK6XQxLSz0G4k9tcWZvA ju6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=iM6CKxNIjkJ6jtgcoGB6e3JO7TA8aFCAtiaLHSOsVJE=; b=FM4cv5pv/lW12fTSNqH3+vtiMHPRo42YwaNFtE28V796svk75wxxBk0TiYFbkty6a+ vPO7ykcCN/GIKcTv8f3LoFs2LsARdbVR5hADJujmCtAAyBEy/YchBQgdJomfSacoIapu LDBdU3Ne0kE015Qw1LG21j9DjCPTaWjYmoUvWXNuzkZ5H2S4FKzf8n+PUlHYPQ3PzL26 oJ7clvEInaeNMaEgborTA4Q3es+OvG7KJYSWjsqb1aJdEDUR4Qsi/fUTbozM+VnHek2t pboUjtAnzlaywBBVRY4DBrD1g2RK++osPfhRrgxQqXXPtCz+YE42M8NiIn4QrRHIkzHi eGMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=V4UXNqgM; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id c11-20020adffb0b000000b0020acd19570csor2614600wrr.44.2022.05.19.00.51.24 for (Google Transport Security); Thu, 19 May 2022 00:51:24 -0700 (PDT) Received-SPF: pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a5d:64a6:0:b0:20c:64ef:c9cc with SMTP id m6-20020a5d64a6000000b0020c64efc9ccmr2983587wrp.190.1652946684161; Thu, 19 May 2022 00:51:24 -0700 (PDT) Received: from tom-ThinkPad-T14s-Gen-2i.station (net-188-217-53-154.cust.vodafonedsl.it. [188.217.53.154]) by smtp.gmail.com with ESMTPSA id c6-20020a05600c4a0600b003942a244ebfsm3370254wmp.4.2022.05.19.00.51.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 May 2022 00:51:23 -0700 (PDT) From: Tommaso Merciai To: Cc: tommaso.merciai@amarulasolutions.com, linuxfancy@googlegroups.com, linux-amarula@amarulasolutions.com, michael@amarulasolutions.com, Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Shunqian Zheng , Mauro Carvalho Chehab , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH 2/4] arm64: dts: rockchip: px30: max drive-strength for cif_clkout_m0 Date: Thu, 19 May 2022 09:51:15 +0200 Message-Id: <20220519075117.1003520-3-tommaso.merciai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220519075117.1003520-1-tommaso.merciai@amarulasolutions.com> References: <20220519075117.1003520-1-tommaso.merciai@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: tommaso.merciai@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=V4UXNqgM; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add max drive-strength for cif_clkout_m0. This fix the issue that sometimes camera ov5695 is not probed correctly. Tested on PX30_Mini_EVB_V11_20190507 Signed-off-by: Tommaso Merciai Tested-by: Tommaso Merciai Reviewed-by: Michael Trimarchi --- arch/arm64/boot/dts/rockchip/px30-evb.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/px30-evb.dts b/arch/arm64/boot/dts/rockchip/px30-evb.dts index 848bc39cf86a..53930e28eadf 100644 --- a/arch/arm64/boot/dts/rockchip/px30-evb.dts +++ b/arch/arm64/boot/dts/rockchip/px30-evb.dts @@ -537,6 +537,13 @@ wifi_enable_h: wifi-enable-h { <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; }; }; + + cif-m0 { + cif_clkout_m0: cif-clkout-m0 { + rockchip,pins = + <2 RK_PB3 1 &pcfg_pull_none_12ma>; + }; + }; }; &pmu_io_domains { From patchwork Thu May 19 07:51:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 1962 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 5DA633F1D5 for ; Thu, 19 May 2022 09:51:28 +0200 (CEST) Received: by mail-wm1-f72.google.com with SMTP id m124-20020a1c2682000000b00393fcd2722dsf1536275wmm.4 for ; Thu, 19 May 2022 00:51:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1652946687; cv=pass; d=google.com; s=arc-20160816; b=f3tu4rYKPq4i0b/u4I6ox6HhDRaTCqqwvN5sgzxIJfUuxMYcK96hm+3TKNmlMG5Ozw 8YE8+KHF8dUajbc1F36sTz1DorTNtPFowPyqIlUt0daBXPXDfMPfA8WhLUv0zGnZ/Uo6 dcwcxczXpVsyFGOg883dSJu1SSo5y/Bq3i9USCpz+F17QdLK13FDTYlcT4NvtZZSMWij ZUrGs6HGYcBw5wo1wi1hg3UBoh6diR+1Zc2bl8PShBzficromIytO6PsCkEuMCPfoYMn X2m1SsvHAvCu5D67g76Ncrx0dLiaA5KV5pl1+Ik5OPMU/cjvG9GWeVuyOeBCDBuxFdDq o0Ww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Xd2hEhEd0BmhadYmofazG8r/uEZ34zkl8Dozi4eM6LQ=; b=wk7/oD5tg041AXr5tO1jOB/SGL+IFLu7xg0iYpxQp9dmq9rwwr1cV0Zdij+fS++vym W7gygs3U0ueSBxNrNIULzPP+px2EGqspdqibnh7tFI49U7iWcu94dM2cr7lhO74agrQb T2hBdjQ7RNPL4bWotjIPNShlzCYz8ek209tc+NP7POtrknygjcTtNsbMiulNWORpL5hj 4MEIvlFoRwHKGmAdzMiExRFeIM0hFREHgfexkCdQlgaP/2BQZpdbNHfxG+nU/2knh7Dg 8UzJ8YHy1wGuhaN8fS8aik6vugidhZ2i5H+a8J7vPpT/3XLnDM2KlGGasp7KAt73KmZu TGLQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=K9Not7I+; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=Xd2hEhEd0BmhadYmofazG8r/uEZ34zkl8Dozi4eM6LQ=; b=fi/nJRZ0PhXjd+qG3Xz98zKFIO3YLnh1g0ZdgVJhEbQQM2l2QWDwqMzjJtb4mx7a4e CdWwdZW8vISJIGr6DN56kbo5hXVkJChFmdqFuhpNo5/1KVdWLcYfoSdSPxaM/VvLuplp PpgUCgZ9Ky1f+/hhNlt943W2EZnAoEVcUsdz4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=Xd2hEhEd0BmhadYmofazG8r/uEZ34zkl8Dozi4eM6LQ=; b=d8XIBKmHhjTUjYzQD3p9bDF8NUsH+9815u/Ju+/gsaDAp9DVFHXxhWsJwunHIZOUos 7Nmk6UAonXKd4dWW3hlhbdHSvXpey5ooWNjaJlS142nU8unKqSx/ncVjXeRzcfEL+yQw JOJNkwcIR9i+cPZ4Fkd4RpqcE58LJupKdhaz5E8lWw6wdjxwdI+YAqC6JVga9KN20ztN mlQZ7SEfKnnvX0HV8UYQNhcDCRyX1oItiNULbwyceGgDOQh4N1OHDWecK7O98qoJpR9f hWgyZlArtNjyqtt4AvFVZqgrhQiU7OjDrJjfLie0QC8+yuqxDIl6632JnUSZvkkklnol JltA== X-Gm-Message-State: AOAM533tWfSQ2pV4C9wRTLG5C/U//aTDIr2wrUOt/BerYts+4uH+VOra WZIt8+Z4sgZFhFqDKqJMCIXEHjAp X-Google-Smtp-Source: ABdhPJxC+IqCY4dRoPKrBMjhdhJ+wLs+2hKfs/Z9gXpc+8hps3MjU+MjPMw9V7VBYIhDMOXkiekhWg== X-Received: by 2002:a05:600c:2055:b0:397:2b06:57c7 with SMTP id p21-20020a05600c205500b003972b0657c7mr3094784wmg.97.1652946687686; Thu, 19 May 2022 00:51:27 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:600c:1f11:b0:394:7a2e:a847 with SMTP id bd17-20020a05600c1f1100b003947a2ea847ls810643wmb.0.gmail; Thu, 19 May 2022 00:51:26 -0700 (PDT) X-Received: by 2002:a1c:4c06:0:b0:394:65c4:bd03 with SMTP id z6-20020a1c4c06000000b0039465c4bd03mr2625335wmf.8.1652946686589; Thu, 19 May 2022 00:51:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652946686; cv=none; d=google.com; s=arc-20160816; b=S9abIE9wKNcr0h2NefJZqaugLln4D1Otbi/kX1sHQZMN7q6aou7gMiFwx9ZUS414PU 9RwdoIUlLXVCutyuDa0Fq5646Xq0knSYhRw+dIhyMbPvGyZctSOk0AzZcQ0Cr3ihVoVO XJTb3Gcq3FuKbCDjtS+PiWOc5I1DBtEx4NrnEtXzcYeKtQJP8Z/qo+wwHd+NWl105sKg qP/Dm43Ee/53pMVaooyjFb5qMVc8J+8QzwR50LJY52gmPBhqtRKUzFvEwurlTdbCa17T X5s+yihpz+bLXt/g+ZVZfB8soY77FQd6hVckCGAxcfaXtk+sq+HvtFxhqsM0i6Y2PGjx YSFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=R8nd64bbYuPtZbk3gzEjUJPg36SEhyQKMYL9m18hVxQ=; b=DV0bS02EgVu4iuC82Z1JHTioqHl77PyYdCNWju2ZyNYfbTE+Gi7HuTUAaQNggECegu i6ClQFxmtxvCyGzZAXgWKv84OiZ+ZE1EzQSZPGFnENC+ZXfI8GqDOB0VwvUGVyfYHaJw H8CcFzdaFpCUxdVFKc7VEjG+NV7boEw7n+1JMrJSD4fsSlFNvkOf/QQttHB2rqVmuDio Qe+pO6hy6n2Ca4xyXEvSa8kK8Fue1RnHyiHOWWgxDKcWOM2EaoYXjwGEV/uKpEZi48RV hFMzxjDJoBg0STl8rmzRH2UsHkj4NFoGptxBra8fpJ2MrFerrCeEpoq9sVP0RIthX2Ty UAxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=K9Not7I+; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id ba30-20020a0560001c1e00b0020d09cdde85sor2553103wrb.42.2022.05.19.00.51.26 for (Google Transport Security); Thu, 19 May 2022 00:51:26 -0700 (PDT) Received-SPF: pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:adf:f046:0:b0:20d:e9f:9ed6 with SMTP id t6-20020adff046000000b0020d0e9f9ed6mr2861358wro.539.1652946686410; Thu, 19 May 2022 00:51:26 -0700 (PDT) Received: from tom-ThinkPad-T14s-Gen-2i.station (net-188-217-53-154.cust.vodafonedsl.it. [188.217.53.154]) by smtp.gmail.com with ESMTPSA id c6-20020a05600c4a0600b003942a244ebfsm3370254wmp.4.2022.05.19.00.51.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 May 2022 00:51:26 -0700 (PDT) From: Tommaso Merciai To: Cc: tommaso.merciai@amarulasolutions.com, linuxfancy@googlegroups.com, linux-amarula@amarulasolutions.com, michael@amarulasolutions.com, Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Shunqian Zheng , Mauro Carvalho Chehab , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH 3/4] arm64: dts: rockchip: px30: add mux for mipi-pdn pad Date: Thu, 19 May 2022 09:51:16 +0200 Message-Id: <20220519075117.1003520-4-tommaso.merciai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220519075117.1003520-1-tommaso.merciai@amarulasolutions.com> References: <20220519075117.1003520-1-tommaso.merciai@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: tommaso.merciai@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=K9Not7I+; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add right mux for mipi-pdn. Mux this pad as gpio2 14 Signed-off-by: Tommaso Merciai Tested-by: Tommaso Merciai Reviewed-by: Michael Trimarchi --- arch/arm64/boot/dts/rockchip/px30-evb.dts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/px30-evb.dts b/arch/arm64/boot/dts/rockchip/px30-evb.dts index 53930e28eadf..0d05a1b098bc 100644 --- a/arch/arm64/boot/dts/rockchip/px30-evb.dts +++ b/arch/arm64/boot/dts/rockchip/px30-evb.dts @@ -450,8 +450,8 @@ ov5695: ov5695@36 { dvdd-supply = <&vcc1v5_dvp>; dovdd-supply = <&vcc1v8_dvp>; pinctrl-names = "default"; - pinctrl-0 = <&cif_clkout_m0>; reset-gpios = <&gpio2 14 GPIO_ACTIVE_LOW>; + pinctrl-0 = <&cif_clkout_m0 &mipi_pdn>; port { ucam_out: endpoint { @@ -544,6 +544,12 @@ cif_clkout_m0: cif-clkout-m0 { <2 RK_PB3 1 &pcfg_pull_none_12ma>; }; }; + + mipi { + mipi_pdn: mipi-pdn { + rockchip,pins = <2 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; }; &pmu_io_domains { From patchwork Thu May 19 07:51:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 1963 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 54C8A3F15A for ; Thu, 19 May 2022 09:51:30 +0200 (CEST) Received: by mail-wr1-f72.google.com with SMTP id d7-20020adfef87000000b0020e621f932asf1184745wro.18 for ; Thu, 19 May 2022 00:51:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1652946689; cv=pass; d=google.com; s=arc-20160816; b=0je0mynAq3mnLHjbSCshkfPmGNw2lWclT+iQIvO8xVc/byy94wxRfQ9wRaBbTHKdVy AIhbUE5+vHSmNE6xEVxe0esP++/pSB4ZcvB2kWf/rpTm3b1Q1KgCtqZnB5sOzg0O//my Bya9RZukP2TllXGmBHjAJHKPKT6mT1D/dFmx8mAPQexnLAw80TRJ8Bx/+AhNZ/2YVB9I LMqcT/4nPpiRy3vWeehN7UrL/1eknCnMdpUiaxYSToDlL6FAGHZ/7F9QVZ3QyRpZedWV KU6bQXSDyKi5393EcwtJdO/afbapfIWZAcz+qwMoXUKusZftKDJqKTlTSn99/pWHE5uG BH0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=t5FdbU5352yRixcHJC+oLIDj7U+siJwXeYUzzooNBLw=; b=dlpfTA0kIpB5VU8hmOrHdTY2CAJJPh0OOSMx7Q/CnEJf9ZUfbDGiR2mSLfKYnHsx6r OgD0JZcE84IrPm2hK+Z1juLCrKwpGeCiCCqboXJw2d0khcnB6Xqj1guNxVo0wbpcTRvC QcKGzRLmuvmIwDFGp9wAMke1FaNXXNB/35hhtKWIXVSZIpBShg8VHXxEGcyv2P0G12gC KtfCR7rnnRI5UQYfA3o7l9sYC2tbEqxncfI9BcIQ/pLItmrANlZ/BrqcqeEJwBYNKIge hQdxiMaezIqPZCyYrrW6uHVSnWrfT7a7+vEyNvqsNIg5cvq6AGPiaH0UPlKzclOYBIyV crSw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mRbqHyr2; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=t5FdbU5352yRixcHJC+oLIDj7U+siJwXeYUzzooNBLw=; b=ScV3lGAVb4caEeVkgGasy+stsh7mbZNGCylXgaTPmLQ4uR7jOMzFRxu6C2qri7gBce aB6qELiWf8pAdRNpaJCY/XzyRidjMM5Fx12nnn/+W2uiHQCHxWEVjDom46KwFPH593tT CKBS5K9IwM8Q2+QQP/GVkDsaQ/p8ekLTg+9z0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=t5FdbU5352yRixcHJC+oLIDj7U+siJwXeYUzzooNBLw=; b=Isy0bbF3UZ54sVjp4nqshbv2TtYhdh9dY+wwgh11Imuy5h31yD1wV0JXvlhJE0Z2No pPsWYnzy/gAWaVvT4y7pZz/6pU9ly7lF4aVMRD8IxeadZa3goUg9SHLGghUOfsWeSb/E bT0mTyNbAij5SSkNDFZp1jBnzjVpJ314J9OX59zm/QSnatJ4s7SF12HObXYM8uGfNjLK 3550PrDlhg0TG/g4S2Wsrux1p4U02gn/tZSZf0dv63055Z4HCGv173P4TELX8HeYkgIm 2/JoyktpVfDGzI/FDJ6GKPFN0XUGtDRC2ev7yCpMcwKWPhQmbtPd9EgKV8nPjSNIq/sW zGpA== X-Gm-Message-State: AOAM530UWAtqbAZYedQSoX/iOEo97pvKADmLqBo7vcdbcgEUP1xHDWbb RqvgNycwy5O7NNoVnJipcKtcDcVy X-Google-Smtp-Source: ABdhPJwt0mdleXpwotetsN6fxKcil8Gy6X4Vff63RvYmza6T8chSRJIGd5AUU6wSRPIGb9L0wAjDgw== X-Received: by 2002:a05:600c:26d2:b0:393:fb8c:dc31 with SMTP id 18-20020a05600c26d200b00393fb8cdc31mr3098181wmv.129.1652946689710; Thu, 19 May 2022 00:51:29 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:600c:1f11:b0:394:7a2e:a847 with SMTP id bd17-20020a05600c1f1100b003947a2ea847ls810684wmb.0.gmail; Thu, 19 May 2022 00:51:28 -0700 (PDT) X-Received: by 2002:a05:600c:4e06:b0:394:56be:19c with SMTP id b6-20020a05600c4e0600b0039456be019cmr3075802wmq.168.1652946688758; Thu, 19 May 2022 00:51:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652946688; cv=none; d=google.com; s=arc-20160816; b=E21tZ2wj1ElnynGgxpbrsasdTuLG56TQ8jPOomG8g7p7+82Kw37OsdQHAgsBJnFEDb S+f2w0oTjy3dL1CT+VWxP23/CIFUpBpU5Vz6FdCQh898UTfxcoxAKxCZH+kLJ1mNAw8b U9VgyQjjdbE80CMbTYahDcxqYS0OkakK9efbYE89hszgOUAixG0awIKInC3YDiZCb43/ 2X9JQILPj/kNgZ7GHIzhXJELdnhgEcsuB32DMlGN/y6LGpnOCDUQ5Exil32z/9JpoSuP TNdqlETRTXfq3dz7kucFYKnwwIlH0Y+kpIQGYMXB4Nc5jkVFyWfGgTqxPxX6Z1S1mGP4 D27Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=cyCpX1ZmR/kf8pzgbwKyX7fP0Ivtmtw9DDuTffHF0T4=; b=l20dS4kg6eY0mZv5+MmYa/rhZOED7ddMW/8Grcwu+HmfrhpEc1M3OnfU3N7reFcM9X tpiDCqOYZA+HGsgrwvySpeM8KvgGs3hcP9uV4CtN0o9MeDP0G0vU9DNqGVfc4neXBvhY i7EmcHBFDWxBLZzfk0uAVyXUzMgWzfr+IcVOuH7CA57IY3qmk9CK1ykgfxpqq8cd6726 vm4AsuzqrUVbPVhdwnzmoD6F36hFocyIAfXnzIU4M5t+zR7rbva2kJEPp9Ni6aPQn80E ZIb8u+6c9OpsdtbuYJ7eVa/LXAHclBRG1XyC0M93A0emIdX8e+5IUkkWsrGM9BalapOP WEAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mRbqHyr2; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id u16-20020a5d6ad0000000b0020ae6e847e3sor2494420wrw.51.2022.05.19.00.51.28 for (Google Transport Security); Thu, 19 May 2022 00:51:28 -0700 (PDT) Received-SPF: pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:6000:1a87:b0:20c:687f:6d10 with SMTP id f7-20020a0560001a8700b0020c687f6d10mr2791038wry.574.1652946688579; Thu, 19 May 2022 00:51:28 -0700 (PDT) Received: from tom-ThinkPad-T14s-Gen-2i.station (net-188-217-53-154.cust.vodafonedsl.it. [188.217.53.154]) by smtp.gmail.com with ESMTPSA id c6-20020a05600c4a0600b003942a244ebfsm3370254wmp.4.2022.05.19.00.51.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 May 2022 00:51:28 -0700 (PDT) From: Tommaso Merciai To: Cc: tommaso.merciai@amarulasolutions.com, linuxfancy@googlegroups.com, linux-amarula@amarulasolutions.com, michael@amarulasolutions.com, Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Shunqian Zheng , Mauro Carvalho Chehab , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH 4/4] arm64: dts: rockchip: px30: use rk gpio naming convention into reset-gpios Date: Thu, 19 May 2022 09:51:17 +0200 Message-Id: <20220519075117.1003520-5-tommaso.merciai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220519075117.1003520-1-tommaso.merciai@amarulasolutions.com> References: <20220519075117.1003520-1-tommaso.merciai@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: tommaso.merciai@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mRbqHyr2; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Use rk gpio naming convention into reset-gpios of ov5695 camera Signed-off-by: Tommaso Merciai Tested-by: Tommaso Merciai Reviewed-by: Michael Trimarchi --- arch/arm64/boot/dts/rockchip/px30-evb.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/px30-evb.dts b/arch/arm64/boot/dts/rockchip/px30-evb.dts index 0d05a1b098bc..07008d84434c 100644 --- a/arch/arm64/boot/dts/rockchip/px30-evb.dts +++ b/arch/arm64/boot/dts/rockchip/px30-evb.dts @@ -450,8 +450,8 @@ ov5695: ov5695@36 { dvdd-supply = <&vcc1v5_dvp>; dovdd-supply = <&vcc1v8_dvp>; pinctrl-names = "default"; - reset-gpios = <&gpio2 14 GPIO_ACTIVE_LOW>; pinctrl-0 = <&cif_clkout_m0 &mipi_pdn>; + reset-gpios = <&gpio2 RK_PB6 GPIO_ACTIVE_LOW>; port { ucam_out: endpoint {