From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4DF22C433EF for ; Wed, 15 Sep 2021 09:19:14 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0E0E761214 for ; Wed, 15 Sep 2021 09:19:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0E0E761214 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:CC:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=RTtwUpMh6805l+yUSaOE+ur/HGe8bDFTrx3SH4IkS1U=; b=Gshe6Q3aJLSxq7iOcZTMtw6W0D HRevSeUBYaBAFVHada6ZgGIiZNV1s76OE9iiVWbgrFNREsDfI5d+PTV1lieDZxRWbo20eAUw0sHoM hkdNVZ81QuOAtqiUx8VeOzcAwZ7zQF20BDuRgp4muo54gSrDMCVK/zydFR0GqOc2OLTbhP613WNky z4XfBNlGEH9r1/+1A+c4qX4hR8tf+W+pa2Bt85ffT31eRifXI4U4n3PAg7dPHVAOeKZBOrJ0DXM2f o5UB8mWZw7svK4PhNtK8inHALBI3KaAQsaEVjvY2NUVn/1fdI54oAKjGUs4ZTa+qJQ9jX1Ly7mNu0 Z48C9wLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mQR29-008e0E-6J; Wed, 15 Sep 2021 09:16:49 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mQR21-008dyf-7D for linux-arm-kernel@lists.infradead.org; Wed, 15 Sep 2021 09:16:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1631697402; x=1663233402; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=ma3zWFkcsN2tpkbu/znu1sGgtZMKILZTHWWwXdz7ISg=; b=f5D4lx5PyLNiSNjf/Cd3RWxcc3nQ+DMkd5VMOEYKJhMD0qOl1/fRrRRa AgRwoNZefwONZFOKQYobdkKaIvtYbsF2KQIEV4YhU/DTPp1dgGRJ4TcKQ t/FIaM9Ydb0L5k45pBcrE9QFJhIRhfEl4WrVN6LMtA8K580bN16JA1Sju JU+5x9MpU+EAcApYB6mWEOsNcANZlKi/hgi4F9Vi4/kBKcxRYI6t3cqZH Bil0+cGKblEKtOCMMMj6dLzoi9DP9HAkh5dJxvEIvGCfKJpLa5MDTe2BW 581gshYatJR0+JWRPe4unKQ3Gly3cMxFxeIvpbQOCq7rRfjgKPq1wW8jw A==; IronPort-SDR: rpgf4GtRNa4J7nAJhUlrY+75yDLN2BLA9DGrUJJZvIB9lQ++uBK5pwJCiuhshfNKPG4JmphAGh LMyu+xMtF5lOxgwKVcoJ/GcaHiuwH0JBjrzINaiUpiG0mS97LB6+4aZg4w6S9UDEDCc4E2Ft9j SXSheqpFGYgWNsYxo6hQN51T6ydMDITajLjjqhafp8V2a3bl9wQvPNX/a4hJjNECLyxMe9xeKQ RXLe3DOn4IJ6a/ArXbR1Z9hOsGMZc2zZvtwZE5I71+H7n2eWivpb+nHg24hBnEpMUjXtcCIkMc lRcZp4c1ACcCVfEDnmqkSvWF X-IronPort-AV: E=Sophos;i="5.85,295,1624345200"; d="scan'208";a="136033834" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 15 Sep 2021 02:16:39 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Wed, 15 Sep 2021 02:16:38 -0700 Received: from [10.171.246.91] (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Wed, 15 Sep 2021 02:16:36 -0700 Subject: Re: [PATCH v3 00/10] iio: adc: at91-sama5d2_adc: add support for sama7g5 To: Jonathan Cameron , Eugen Hristev CC: , , , , , References: <20210901123013.329792-1-eugen.hristev@microchip.com> <20210905112805.3e11c2dd@jic23-huawei> From: Nicolas Ferre Organization: microchip Message-ID: <6d85626b-46e0-0b06-c2c3-014ccd5aaa32@microchip.com> Date: Wed, 15 Sep 2021 11:16:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210905112805.3e11c2dd@jic23-huawei> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210915_021641_315114_872F1DB0 X-CRM114-Status: GOOD ( 25.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 05/09/2021 at 12:28, Jonathan Cameron wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > 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. v3 9-10 applied to the at91-dt branch for 5.16. It will go through the arm-soc tree. Thanks, best regards, Nicolas >> 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(-) >> > -- Nicolas Ferre _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel