Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp1076826pxy; Sun, 15 Aug 2021 09:05:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8HnUG4Tq6B58+mhGHZ0dygZ3SSQPKQmQt8hlpIGDoFNubQaSaoa7nSM5QCJ5JyHIrK0Wu X-Received: by 2002:a17:906:6011:: with SMTP id o17mr11802613ejj.157.1629043539450; Sun, 15 Aug 2021 09:05:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629043539; cv=none; d=google.com; s=arc-20160816; b=bpvb3QgKaGCTzLBTx5juER7peqi5QdSbxsSJiCCIb65cewgQmO9TvP47uxQqyS1SgX LP5EtwJrUK4dHweDNyPVdoMZo7aznPlDYFaT4y2p4Rja6W0RhtwpftmuBRL6tXkS1266 iJlZmpMifDZYGnXMt49v9SycwKd/DVRH6G7g0PBWdZkvwNd9uq4N1De3/TFw74Fm2cnD P2FpDGJzY+cMIw8zrxW4tTGjOjjmBM/sLgnld9371wEtRowvkadkEP2dXYRtnqkKx3de FDi7WTBhPBhpSK4lUHYOGcH4pUyCmFUarSxKlg5DugfpyPMpqrE8NFqCg3fXZdcE/IXG 3dRw== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=Ug3kaj/mMHPVPHD0yZn3LcL8S1At+luvJD1CYYnMU9w=; b=lHlFhCDrrNxwZh5Pvd1r+MwUm+rqWFqkrgl/eBFlUVsEWsuLeaXRWq7b4sq3CjsVw4 iIVSjdZo9p6GxIb+S1TAgfDX8phB3vt0MP3iPDH5Do6cfLe84+bcC9m6REtP7R/LlY+u 2DM5FijGdfvZksC40Ny4QVNLngQEKKv06nk1qCuAKn2YRBw7pPc2Q5scAX/saRsXhdM2 tuhuw8Pi+f9eB2b60/KJYogaZzXbjve71lBu6v3Rx/YJfZogj8f3k+rysuBdOb9FIrvM JRWklrabzLQTx6ceAD3yEQkIPmsOFH2wq2uKGHgHnR75vCstBjxoPlnVgXxFgTbo3Ufu aT9w== 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 o20si7366620ejx.330.2021.08.15.09.05.13; Sun, 15 Aug 2021 09:05:39 -0700 (PDT) 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 S238351AbhHOQCS (ORCPT + 99 others); Sun, 15 Aug 2021 12:02:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:58726 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229603AbhHOQCR (ORCPT ); Sun, 15 Aug 2021 12:02:17 -0400 Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C686761221; Sun, 15 Aug 2021 16:01:39 +0000 (UTC) Date: Sun, 15 Aug 2021 17:04:37 +0100 From: Jonathan Cameron To: "Lad, Prabhakar" Cc: Geert Uytterhoeven , Lad Prabhakar , Rob Herring , Lars-Peter Clausen , Magnus Damm , Philipp Zabel , Alexandru Ardelean , linux-iio , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux-Renesas , LKML , Biju Das Subject: Re: [PATCH v4 0/3] Renesas RZ/G2L ADC driver support Message-ID: <20210815170437.32be4ac1@jic23-huawei> In-Reply-To: References: <20210804202118.25745-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20210808180143.6b3dc882@jic23-huawei> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 9 Aug 2021 14:04:33 +0100 "Lad, Prabhakar" wrote: > Hi Jonathan, > > On Sun, Aug 8, 2021 at 5:58 PM Jonathan Cameron wrote: > > > > On Wed, 4 Aug 2021 21:21:15 +0100 > > Lad Prabhakar wrote: > > > > > Hi All, > > > > > > This patch series adds ADC support for Renesas RZ/G2L family. > > > > > > Patches apply on top of v5.14-rc2. > > Hi Lad, I'm fine with this, but need to pull my tree forwards > > to include the header that is only in rc2. > > > > I'll probably do that later in the week then pick up patches 1 and 2. > > > Thanks. > > Geert could you please pick patch 3/3. 1 and 2 now applied to the togreg branch of iio.git and pushed out as testing to see if 0-day can break them. Thanks, Jonathan > > Cheers, > Prabhakar > > > Thanks, > > > > Jonathan > > > > > > Cheers, > > > Prabhakar > > > > > > Changes for v4: > > > * Fixed registering action to assert resets on failure/remove > > > as reported by Philip. > > > * Fixed review comments suggested by Jonathan. > > > * Included RB tag from Rob for patch 1/3 > > > * Note DTS patch applies on top of https://git.kernel.org/pub/scm/ > > > linux/kernel/git/geert/renesas-devel.git/log/ > > > ?h=renesas-arm-dt-for-v5.15 > > > > > > Changes for v3 (as requested by Jonathan): > > > * Made use of FIELD_PREP() > > > * Renamed _CLEAR to _MASK and inverted inline as required > > > * Moved |= pair's on same lines > > > * Made use of sysfs_emit() while reading the labels > > > * Used for_each_bit_set() in rzg2l_adc_isr() > > > * Renamed rzg2l_adc_parse_of() -> rzg2l_adc_parse_properties() > > > * Used devm_add_action_or_reset() for asserting the reset signals and > > > disabling pm_runtime and eventually removing remove() callback > > > * Added comments in isr handler for channel select interrupt > > > * Moved enabling/disabling of pclk during hw init in rzg2l_adc_hw_init() > > > * Dropped clock patch 3/4 (https://lore.kernel.org/patchwork/patch/1462152/) > > > from previous series as its queued up in renesas-clk-for-v5.15 > > > > > > Changes for v2: > > > * Update binding doc, dropped gpios/renesas-rzg2l,adc-trigger-mode > > > properties included channel property to represent each wired channel. > > > * Fixed review comments pointed by Alexandru, implemented pm runtime > > > support, dropped mlock usage > > > * Fixed review comments pointed by Jonathan, renamed the macros, > > > simplified the code. > > > * Included clock and DT patches > > > > > > v1: https://patchwork.kernel.org/project/linux-renesas-soc/cover/ > > > 20210629220328.13366-1-prabhakar.mahadev-lad.rj@bp.renesas.com/ > > > > > > Lad Prabhakar (3): > > > dt-bindings: iio: adc: Add binding documentation for Renesas RZ/G2L > > > A/D converter > > > iio: adc: Add driver for Renesas RZ/G2L A/D converter > > > arm64: dts: renesas: r9a07g044: Add ADC node > > > > > > .../bindings/iio/adc/renesas,rzg2l-adc.yaml | 134 ++++ > > > MAINTAINERS | 8 + > > > arch/arm64/boot/dts/renesas/r9a07g044.dtsi | 42 ++ > > > drivers/iio/adc/Kconfig | 10 + > > > drivers/iio/adc/Makefile | 1 + > > > drivers/iio/adc/rzg2l_adc.c | 600 ++++++++++++++++++ > > > 6 files changed, 795 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/iio/adc/renesas,rzg2l-adc.yaml > > > create mode 100644 drivers/iio/adc/rzg2l_adc.c > > > > >