Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1932302pxb; Sun, 5 Sep 2021 03:52:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqeTGd7dkezljf3MY5GqrIb1TpgG4qktnfE6etU+XoVkwGwv04UqzXJc+73MKJzr/wtd5b X-Received: by 2002:aa7:c988:: with SMTP id c8mr8370793edt.351.1630839147258; Sun, 05 Sep 2021 03:52:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630839147; cv=none; d=google.com; s=arc-20160816; b=rebsPeW6GEWbtmgaubkUXSYn5i6dG6ZFlkXg7RrmX/hdly+JhrFR1edYe5n9mn70B4 ELCaujjfuSV5kfW8rdj9ngOI+2Miz4+tg0u3YiV0TpPi30JKMJohDIsJ9jr6qq57g+U6 ucpFDrPvNGdaa0y6mjHZcUoWcBWAIn2M/n/9e2Touprk/mfi3bbFaZVXkVzuI03OK7Cy lBC7fQhvqEe+4R9qoqPl1+ru/q9z0MPRqDb3AOK5MEkCoXCV5wbdFtTluCxlJcg7I41O bE4lUAFI/LunxL56vTbXYM0NicCIFEU5N9Kalqo+nxHJ2tP9gDrKYnjZ4ft7FcTFHUGu jKZg== 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=xUJm/n4U4SkuYRohmuZfIDGwu1SoPAVqxqQz+lGW6KU=; b=GHVB0j5O31ODVAZAqaN375HS5qJjAB5U4Tbt0DCg15oRe/EmjLpLvxFOAf0aH3aKYf EwQf6kXp0Ac2RN5uIoU6GbFRLFP2y0wvmmHF/QbAo4NfvuKGrA2oap7g76vD6gefc9+F ns3X1V2Xk2TflE01BqldOtFPAH5UFEhCJgTPB7Jv63kPy2+BpyAIXdslely+m6nWGQfX iUOdHRTqJblFebGEN3MkFuzuXM9zMMNoRoILQXIMu23hgJNPiTo9DSuSSkBvVk2lIgiQ R3Hb+0ElZFXPVDzdnY2my9eMzRh9ObksjLLJyq9z4RTM6bGoMS2mzqyex35SrjhaEtu4 Ocsw== 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 j7si5071091ejm.492.2021.09.05.03.51.50; Sun, 05 Sep 2021 03:52:27 -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 S237693AbhIEKZt (ORCPT + 99 others); Sun, 5 Sep 2021 06:25:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:54000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234907AbhIEKZt (ORCPT ); Sun, 5 Sep 2021 06:25:49 -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 4E45860FBF; Sun, 5 Sep 2021 10:24:42 +0000 (UTC) Date: Sun, 5 Sep 2021 11:28:05 +0100 From: Jonathan Cameron To: Eugen Hristev Cc: , , , , , , Subject: Re: [PATCH v3 00/10] iio: adc: at91-sama5d2_adc: add support for sama7g5 Message-ID: <20210905112805.3e11c2dd@jic23-huawei> In-Reply-To: <20210901123013.329792-1-eugen.hristev@microchip.com> References: <20210901123013.329792-1-eugen.hristev@microchip.com> 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 Wed, 1 Sep 2021 15:30:03 +0300 Eugen Hristev wrote: > Hi, > > This series adds support for sama7g5. > > The sama7g5 is slightly different from sama5d2, but has the same basic > operations. The register map is a bit different, so, I added some primitives > to differentiate between the two classes of hardware blocks (sama5d2-sam9x60 > and sama7g5). > > Sama7g5 has 16 channels ADC, no resistive touch, and extra features > (FIFOs, better oversampling , not implemented yet). > > It is a rework of the series initially sent here: > https://marc.info/?l=linux-iio&m=161461656807826&w=2 > > Changes in v3: > updates for the channel indexes ABI > minor nitpicks fixes > fixed krobot report v2 dropped, v3 1-8 applied to the togreg branch of iio.git and initially pushed out as testing for 0-day to poke at and to allow me to rebase after rc1 is available. Thanks, Jonathan > > > > Changes in v2: > > I reworked this according to review by Jonathan, meaning that first I created > a no-op patch that will convert the driver to a more platform specific data > dedicated type of driver. This adds various structures that hold things like > register layout and channel information. > After this I created few patches that implement the main differences between > sama7g5 and older products: the end-of-conversion new register. I added > helper functions to make code more easy to read and more simple. > One the last patches adds the layout and channels for sama7g5. > At this moment in linux-next, the DT for sama7g5 and sama7g5ek is present, > and the last patches add and enable this node in DT for this board. > > Eugen > > > > Eugen Hristev (10): > dt-bindings: iio: adc: at91-sama5d2: add compatible for sama7g5-adc > iio: adc: at91-sama5d2_adc: initialize hardware after clock is started > iio: adc: at91-sama5d2_adc: remove unused definition > iio: adc: at91-sama5d2_adc: convert to platform specific data > structures > iio: adc: at91-sama5d2_adc: add support for separate end of conversion > registers > iio: adc: at91-sama5d2_adc: add helper for COR register > iio: adc: at91-sama5d2_adc: add support for sama7g5 device > iio: adc: at91-sama5d2_adc: update copyright and authors information > ARM: dts: at91: sama7g5: add node for the ADC > ARM: dts: at91: sama7g5ek: enable ADC on the board > > .../bindings/iio/adc/atmel,sama5d2-adc.yaml | 1 + > arch/arm/boot/dts/at91-sama7g5ek.dts | 8 + > arch/arm/boot/dts/sama7g5.dtsi | 16 + > drivers/iio/adc/at91-sama5d2_adc.c | 594 ++++++++++++------ > 4 files changed, 432 insertions(+), 187 deletions(-) >