Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp2713705pxt; Mon, 9 Aug 2021 07:14:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnuYQYjt0kwqoWew1oAVV3P+SHPl/TYSiu4NM29tb7FDkHr2f9P3xus/SmAdM9XSY1cfa6 X-Received: by 2002:a05:6402:26c1:: with SMTP id x1mr8471081edd.134.1628518495950; Mon, 09 Aug 2021 07:14:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628518495; cv=none; d=google.com; s=arc-20160816; b=pbQfCUMPH4BodfaET9yRQAsNT17rgWyVhuk0TTNNJtUr7cgoq72mccybxBvgMQlnna trKKq5Gh0ahHhSCtLAHA5t4ELoL4pdJofIBdEAW6V2hA1EeHiGTE9QYQ/VnLSnHjgjyE xoZRfBDpJnnxWH6tdZW4Ce5b29k65Rs3I32jHpUBdmjDks/+FwP4u4XMu6wF7tE3uJfO e8BOu2YLuia8Coyv/zx7ELZ900ofk4tzHNLAIDWM/mnwomXq8bkZHCfVA3E0azN7E684 m/9F+4E8IiXgCjd9GgTP+tY/ArNy3Tlo86KPl2xekFmr4F9QO1O3ah7Kues0WS0g3UNj a7Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=2hc21s6jA+fO3+n9I28OBHKaMgXfmcXARaC/ezel7U0=; b=E7YjmLo+v+h6QzOBgVr+L+bolLB3sv8gzznMIf5AerwifqvCiJzUnY3V96qBXGOmEO aardqj9qeuXcOS2M+wfepwKESRPhrwmbSFihB1fefKhM5vL0Rjj84RWLwUgMillznz/U Q6EfoxbYZYQ7yTzqV6gfXEatmBuVtT4glFpeIeA8t+WOFVWX5nt2Rv8SVafGpaIozDb/ xZMNiOJfX9G2MvJ1q/1rjUw4z15baYgML/Bq8ztE1N4+AlljoDk4IbmgFRV2OqnxBqzp XshcSV8Wk7dCSdHb+rTvBBJX7wUuDMd8iZ2YLVnNnrJMfe76ch0jXRHzz9lvjc4kVCKe ObmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=J1BqMh+w; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b19si7935991edd.545.2021.08.09.07.14.29; Mon, 09 Aug 2021 07:14:55 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=J1BqMh+w; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234732AbhHINFZ (ORCPT + 99 others); Mon, 9 Aug 2021 09:05:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234778AbhHINFV (ORCPT ); Mon, 9 Aug 2021 09:05:21 -0400 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C361C061796; Mon, 9 Aug 2021 06:05:00 -0700 (PDT) Received: by mail-yb1-xb33.google.com with SMTP id j77so29337135ybj.3; Mon, 09 Aug 2021 06:05:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2hc21s6jA+fO3+n9I28OBHKaMgXfmcXARaC/ezel7U0=; b=J1BqMh+wbNjwpR/syWDWFESR9pwlu3Os0JaBxi70t0BuUsU1bOuf0my9Z9tUA+sIHb MotXFSzBF1Rw2OY7yvyPa43y0x3InFh/yiTcnN9ccYWKr1cRVTgldoEaZEsY/lE39xWr Zvp6NJaW+3XrSu0oO/jOw6BfDcxDIgDy6+HRbVNq50h2Qet8JimxDSDQ0hwY4Yk7vflt RyV9y7VwKAC89CLsEsn5Avgs2g6kfWn+BvdOedNii7GKoUJXby02wPMm7dk7JvAKL72m 0qQ2jMnGUDW9Q3XMUlmgUe80kDLLrrR0+IdvlLTaRPLWOfV4KJINpM0MXJ4QIYONLCiy d+Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2hc21s6jA+fO3+n9I28OBHKaMgXfmcXARaC/ezel7U0=; b=nm4EJ24EDmALbu2rK9VmYbHWSLFQ8a+2MAnNxEP+19GiuL+T5vQC679ed7oa7uCSrC mdblrzCAGNW7/l2n/dQGNOSB8HONjbmldMSvPWUw6aMQiVsHhygHb1v4CDMjKwwkFMwu eptu3NuNvwWLwdFV3MheFNeaw/hc68YPKcVq7Za3yRdaXM2wDxChiiPw1I1n0jtVSi01 C5sEIlyEQIdjcHGEvcB8WDWP5QWCfi9MGn3W+9z1vWb5ycPsUQ1bTwp0CZXjR8YdPlPU l6A39KVju24jFH8rmSpKFNXDMusSL5IWfAS0e0TrvyaM2I+TMfKFel+VjqewBcZtShF+ ZWIw== X-Gm-Message-State: AOAM531SDibcQJhnfplcRJy5E+i80ynXuJ0Ani8k1XfAFfeIh+jLuQda gVvkzmilAQHEuj8KL4sfozPsRddNQZbo44VQQ+w= X-Received: by 2002:a25:ba44:: with SMTP id z4mr30401399ybj.476.1628514299333; Mon, 09 Aug 2021 06:04:59 -0700 (PDT) MIME-Version: 1.0 References: <20210804202118.25745-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20210808180143.6b3dc882@jic23-huawei> In-Reply-To: <20210808180143.6b3dc882@jic23-huawei> From: "Lad, Prabhakar" Date: Mon, 9 Aug 2021 14:04:33 +0100 Message-ID: Subject: Re: [PATCH v4 0/3] Renesas RZ/G2L ADC driver support To: Jonathan Cameron , Geert Uytterhoeven Cc: 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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 > > >