From patchwork Tue Nov 17 14:06:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Belloni X-Patchwork-Id: 11912405 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=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no 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 D67F7C56202 for ; Tue, 17 Nov 2020 14:09:02 +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 7C2B420729 for ; Tue, 17 Nov 2020 14:09:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="t1hdMWqw" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7C2B420729 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=jh1SeS0xQy24z0cp70ds+qARLufVBrXFBab451W0H70=; b=t1hdMWqwaRY4eH0eMADFzwsJmp +LlryrfbEAbKp2m8eAOBJXWjwxEz7NR6WoAsOyOEtBbVB0JroA7OhPrNlOJ82wI8um+h26JhjU/rr b+TozayYQnwId6v8F0kSwo54wxEfnxmsKLczXmpkrgUPeQVBN6ZU/Y+hWu/m/yhl95FXCqRWm0sTX JMZwIRZYlsCQCJKa7EYgouZMD1MsYkdhFKlRSGNH9wM5KXbKBtRDyh9DfzvcASbB4zRntCvc4lcWT mV41gvZDCo3vdaqmwnb8gx1etYlIkJ3TRfW1VBDTauzd+zHp+pbPt2JOaYHLfueba4dkrsw2LCZvh x/pv+RrQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kf1do-0001DK-MO; Tue, 17 Nov 2020 14:07:28 +0000 Received: from relay9-d.mail.gandi.net ([217.70.183.199]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kf1dk-0001Cd-QQ for linux-arm-kernel@lists.infradead.org; Tue, 17 Nov 2020 14:07:25 +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 relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 4FBFAFF819; Tue, 17 Nov 2020 14:07:20 +0000 (UTC) From: Alexandre Belloni To: Jonathan Cameron Subject: [PATCH v2 00/11] iio: adc: at91_adc: cleanup DT bindings Date: Tue, 17 Nov 2020 15:06:45 +0100 Message-Id: <20201117140656.1235055-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-20201117_090724_984532_C0717736 X-CRM114-Status: GOOD ( 10.24 ) 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. There are also other cleanups, like removing platform data support, this was pending for a while. 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 (10): iio: adc: at91_adc: remove platform data 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 iio: adc: at91_adc: remove forward declaration 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 | 351 +++++++----------- include/linux/platform_data/at91_adc.h | 49 --- 10 files changed, 256 insertions(+), 501 deletions(-) delete mode 100644 Documentation/devicetree/bindings/iio/adc/at91_adc.txt create mode 100644 Documentation/devicetree/bindings/iio/adc/atmel,sama9260-adc.yaml delete mode 100644 include/linux/platform_data/at91_adc.h