From patchwork Sat Nov 28 22:28:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Belloni X-Patchwork-Id: 11938671 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=-11.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT 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 DFACAC63777 for ; Sat, 28 Nov 2020 22:30:21 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 87D88221FD for ; Sat, 28 Nov 2020 22:30:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="oxQ5tCw0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 87D88221FD Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=VUcjXvbWQT64da3R2MemIgnGF4PBAWIQKcR8vgj7mkk=; b=oxQ5tCw0SxMVfc4TRA838o42S1 FIoHMhIA7doWS09gkWc4mbKmUPlrZ+WV/QxwPe+KX0OJByMgPsvyklPS/OrHwInC2DZISEilgFx0s oloMVfp52LnbLqw8L16xc7e5PQ9udAVFNo61pl0Odk8V9hcpnBzsD5z67bIz+NPQ9JrdshDyNPRJC 9Zipsq+ovfS+ZUpR4n9wuhaIfjl/cujCQtTrvWr39ONmcRDruJmLBodRNzRch0+yVxrAJIshi+f4O BRfm8Lj/Xw6eZ3eXKsXb4RDedRGrcm1pKaYDh8flIBzPhr3Gn8FkB8c++Bf2rYkRLy/bzHTAP6pZN xJEuXQgg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kj8hm-00080J-Ks; Sat, 28 Nov 2020 22:28:34 +0000 Received: from relay8-d.mail.gandi.net ([217.70.183.201]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kj8hi-0007yX-FL for linux-arm-kernel@lists.infradead.org; Sat, 28 Nov 2020 22:28:31 +0000 X-Originating-IP: 86.194.74.19 Received: from localhost (lfbn-lyo-1-997-19.w86-194.abo.wanadoo.fr [86.194.74.19]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id DD1C41BF203; Sat, 28 Nov 2020 22:28:25 +0000 (UTC) From: Alexandre Belloni To: Jonathan Cameron Subject: [PATCH v3 00/10] iio: adc: at91_adc: cleanup DT bindings Date: Sat, 28 Nov 2020 23:28:08 +0100 Message-Id: <20201128222818.1910764-1-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201128_172830_681051_11ACACB2 X-CRM114-Status: GOOD ( 11.80 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Alexandre Belloni , Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Ludovic Desroches , Peter Meerwald-Stadler , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello, This series cleans up the at91_adc devicetree bindings. This mainly moves back the resolution options and names and the triggers description back in the driver. Changes in v3: - rebased on the togreg branch of iio.git - dropped "iio: adc: at91_adc: remove forward declaration" as it was already done in tree - Reworked patch 1 from "iio: adc: at91_adc: remove platform data" to "iio: adc: at91_adc: remove at91_adc_ids" Changes in v2: - separated out the dt-binding change to give a chance to Rob to actually review them. - Dropped "iio: adc: at91_adc: use devm_input_allocate_device" - Collected tags - use of_device_get_match_data instead of device_get_match_data - include backportable sam9rl trigger fix Alexandre Belloni (9): iio: adc: at91_adc: remove at91_adc_ids iio: adc: at91_adc: rework resolution selection dt-bindings:iio:adc:remove atmel,adc-res and atmel,adc-res-names iio: adc: at91_adc: rework trigger definition dt-bindings:iio:adc:remove triggers iio: adc: at91_adc: merge at91_adc_probe_dt back in at91_adc_probe ARM: dts: at91: sama5d3: use proper ADC compatible ARM: dts: at91: at91sam9rl: fix ADC triggers ARM: dts: at91: remove deprecated ADC properties Jonathan Cameron (1): dt-bindings:iio:adc:atmel,sama9260-adc: conversion to yaml from at91_adc.txt .../devicetree/bindings/iio/adc/at91_adc.txt | 83 ----- .../bindings/iio/adc/atmel,sama9260-adc.yaml | 121 +++++++ arch/arm/boot/dts/at91sam9260.dtsi | 25 -- arch/arm/boot/dts/at91sam9g45.dtsi | 27 -- arch/arm/boot/dts/at91sam9rl.dtsi | 25 -- arch/arm/boot/dts/at91sam9x5.dtsi | 28 -- arch/arm/boot/dts/sama5d3.dtsi | 26 +- arch/arm/boot/dts/sama5d4.dtsi | 22 -- drivers/iio/adc/at91_adc.c | 294 +++++++----------- 9 files changed, 237 insertions(+), 414 deletions(-) delete mode 100644 Documentation/devicetree/bindings/iio/adc/at91_adc.txt create mode 100644 Documentation/devicetree/bindings/iio/adc/atmel,sama9260-adc.yaml