Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp29682pxt; Wed, 4 Aug 2021 14:51:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoTUH9WZMKJoN9DWct/4BprcfwIrMXvftl95lh5+JyOTnKejfptPB3U+T4bCffLDNEL++5 X-Received: by 2002:a17:906:30d8:: with SMTP id b24mr1231294ejb.358.1628113879862; Wed, 04 Aug 2021 14:51:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628113879; cv=none; d=google.com; s=arc-20160816; b=DHWOMj/lEuFJnrJ1SUbi6tk1+JHw3kqDI4klxBT2raxyO+ipCYa01LdyVfK108JGAa RSJbp/5+MpphoCr1sI72T8rr2yw56Hqitu14N5MdpqVUicocY//uknDOrefDzpQdrskQ nymk/5XPNFWiqWAbWpYzFsHwM19yZdnEvNrvy4TwKNQ2qRtcKXFkNeL30iwFIadCAT7N DjPY0S25j/vlEZI5DEpghKI7UVcM9ZRa4w8d5Bi5pQd4lkF93HdyHIFBehhsiAQ0j2vc 03i6W1s3EX4HXhgrpZh9ADB2SGhDs4MbF+8oiA0lkpnZgz1Z9jxC9ml7T9mfz+/cZXig PtPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=WQD0TPDPy1BWGlZeG6DJJdGhAxItEMFN04rvW+5CWnc=; b=Bgf5PeyUzaPGYt1Z06zkln0rgeNGjDmmtMNHjrUCA/OK1u0MYuK4tjCcCTEvkWSaym XPC/5fwi2ghDJMqPTN/cPJkgGfwGu8m3tBmnqeLUZi8bHo81GWhke6DMbAAcuZVyiRrK EB/IXEWU5fhQdVxJZ/vmpzc+LGaiataOBjdmCeE4JRxvn2j5NkMzwjQr9xt4QVhNR9IX lRN5K0x2iPCyxjGpbM0+oK0oIpKCGyIjpkF36u97t7cRPRAoGL7iF9L5xMtrpQ0jYrLY Y1fbqEDS7Z6FwtukglbQFUztQPHAqzPgLzUz7OxIrIMw3CuJ78A+Jh1xMcw33cT4hl9W EoNA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz9si2170653ejb.406.2021.08.04.14.50.55; Wed, 04 Aug 2021 14:51:19 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240782AbhHDUZX (ORCPT + 99 others); Wed, 4 Aug 2021 16:25:23 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:13749 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S237196AbhHDUZX (ORCPT ); Wed, 4 Aug 2021 16:25:23 -0400 X-IronPort-AV: E=Sophos;i="5.84,295,1620658800"; d="scan'208";a="89824500" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 05 Aug 2021 05:25:08 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id A5A7940E2584; Thu, 5 Aug 2021 05:25:05 +0900 (JST) From: Lad Prabhakar To: Jonathan Cameron , Geert Uytterhoeven , Rob Herring , Lars-Peter Clausen , Magnus Damm , Philipp Zabel , Alexandru Ardelean , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Prabhakar , Biju Das , Lad Prabhakar Subject: [PATCH v4 0/3] Renesas RZ/G2L ADC driver support Date: Wed, 4 Aug 2021 21:21:15 +0100 Message-Id: <20210804202118.25745-1-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi All, This patch series adds ADC support for Renesas RZ/G2L family. Patches apply on top of v5.14-rc2. 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 -- 2.17.1