From patchwork Sun Nov 15 19:29:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 324359 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp2809679ils; Sun, 15 Nov 2020 11:33:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJxYx/lAHH5YExstHmeQJT0RSt+mXXRDIukrvY2QHAtuQtE2R8ZYZvC4ES+hMJEaXUnQ1bPl X-Received: by 2002:a05:6402:1281:: with SMTP id w1mr13180513edv.353.1605468815103; Sun, 15 Nov 2020 11:33:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605468815; cv=none; d=google.com; s=arc-20160816; b=HzTho0f1bClqRdGAmh2p2i+/XdUNpU0bu2FbmasvwL7qe9gfS/woeQo51QuTlLQaJf JHjjykInLbcntfM05Tif+/GKfpyPbCFzBraQ5LHOOmXhv4LsclKmQXn97gNIhPkigUX7 1Pk1vdW5QcbW3I8q9SKnjEhqCnC0vI4qA/Wl9Q3L3NT8HquTLFz7EwtB5iFU1I+yyfFX cyzDugieB2uZ2DbW/bmS/nzXSaOqX63Jb2XdUgy4AAIsI93rAiTtx+kNQR8lqVPXF+/f oWBm6mVl4iEFUt3R+/KyMuUCwB8/x8NoAZEWR0E37ymLGHkP8JeFHxLbm9grR0biR1UQ Awug== 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:date:subject:cc:to:from :dkim-signature; bh=Ix13n1OBnWSZKRdLWcnME5zrFesJdQa1iHIUW49tz+Q=; b=vuRoXJnNFKW+sb+FOLf6/h2EJdYyLmvV4fJIR623igjwCgnxfO+C47Io3A4SNeW1xi ggU0D1i0O44ck3OcGq445Ti0l384QnEcmHiJ5PmoLalWFL76FjgFuIIefGG4391v27Ht FUyNBux3RFdgAJbb+vW2ja3tuJscn9QONOa39ymO+SaqCvzxUW57+m0dPtnmiaQwgks0 WLMslItMs5spt5pwZJqq1pYNc181FuYQKyrAFl0ZCr4VWahCosiLqCY3RDZeqvIcqf1d gocr7A4pwBtqaMS4kHpRHl2yJL0SBqIqu2B8vMSfT1YIbupA5hctnRBorxdMfDfZiFwx tlFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="FjnY8I/c"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 bu4si1137887ejb.195.2020.11.15.11.33.34; Sun, 15 Nov 2020 11:33:35 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="FjnY8I/c"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1727809AbgKOTcD (ORCPT + 6 others); Sun, 15 Nov 2020 14:32:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:33936 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726923AbgKOTcC (ORCPT ); Sun, 15 Nov 2020 14:32:02 -0500 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B0B7622450; Sun, 15 Nov 2020 19:32:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605468722; bh=Y9VRZv8QmXJaUps1gLHyOqX1ST1UIegXHzcwBj9wxfw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FjnY8I/cMkmpQkM0CTfJNB5SvFH4ttyt90efwXx/arz+J8Xe5MPpV8ltwClgU0kLI 462J/mBkiqm1hC3/vDoLsIXl/eO/PxO5uZPj0p8iVrEq0hLPn8xIWGkwo42UW+QN/h ZEo3Iv8HssGRu7trccEZUUxmolRMqU9oKBJ5cya8= From: Jonathan Cameron To: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: robh+dt@kernel.org, Jonathan Cameron , Rob Herring , Andy Gross , Bjorn Andersson , Jishnu Prakash Subject: [PATCH 1/9] dt-bindings:iio:qcom-spmi-vadc drop incorrect io-channel-ranges from example Date: Sun, 15 Nov 2020 19:29:43 +0000 Message-Id: <20201115192951.1073632-2-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201115192951.1073632-1-jic23@kernel.org> References: <20201115192951.1073632-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron io-channel-ranges is a property for io-channel consumers. Here it is in an example of a provider of channels so doesn't do anything useful. Recent additions to dt-schema check this property is only provided alongside io-channels which is not true here and hence an error is reported. Signed-off-by: Jonathan Cameron Reported-by: Rob Herring Cc: Andy Gross Cc: Bjorn Andersson Cc: Jishnu Prakash --- Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml | 3 --- 1 file changed, 3 deletions(-) -- 2.28.0 Reviewed-by: Bjorn Andersson diff --git a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml index 7f4f827c57a7..95cc705b961b 100644 --- a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml +++ b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml @@ -48,8 +48,6 @@ properties: description: End of conversion interrupt. - io-channel-ranges: true - required: - compatible - reg @@ -249,7 +247,6 @@ examples: #address-cells = <1>; #size-cells = <0>; #io-channel-cells = <1>; - io-channel-ranges; /* Channel node */ adc-chan@39 { From patchwork Sun Nov 15 19:29:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 324360 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp2809689ils; Sun, 15 Nov 2020 11:33:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzoalAXMyLhSqmEFRwu0ggZc/XWyVVXSLyH0IgfWKe+RBhglOTIgyN6lMppIfSxMIO9LWTI X-Received: by 2002:a50:fd8b:: with SMTP id o11mr12751181edt.156.1605468816069; Sun, 15 Nov 2020 11:33:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605468816; cv=none; d=google.com; s=arc-20160816; b=quo0TcSydV6rNh8D8d51gbWmqCRbHvEBx9jqFy+TWPxmX3cDuYu/DKULDqu47UG8n5 a1jLSq9r29ntKhpEF9KXiOtKYijaGaHUXwd/cJgneQ8Xm917jGar2nyMpYbYvW1lFDrh 99w99B1SVHZSD+A0T4UZmgGCsr7w9rFoxx80PlsOQBfho2EuhfDuPJpQJqLBBhQAf09l EHDR6VbHSyk3Gs9ibKlumJ2/znqOKJcQgjVNxDGqq6rlKtk6lJlYfKhXE7yB6smMkhKB OI2Tl43dwzH8IzhCGwMklUv4PtfyZEm2W+NoMBGkgZw1s9JqpxGvPAaLC+uu8furT4QQ c1Dg== 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:date:subject:cc:to:from :dkim-signature; bh=3Hwahjp2Awl0qwg2szaoKv4TDGaCf2pcDAkug8P9Vzc=; b=Y9X4M9u6xEo7Rm3VNaogfLH8y/TAjV/GC95zoJcpKUWUf3aOYLs2kVlMcbubSPcN3N vRYGvwsyXygHmNQAVbvlo3CExLm/fACKgldu2ZB/mJhYUpjCY/NgBR/Ubt2cIi04fRQT jxMsJgfTk0r0SmqMf1PdymDH7P/j9Mx8VrbqQaQluKnO+FdmF/g90WhpA0hZoRBCmHEG jaHzTIeQp2furW+6bL13hf2wSZ79rkPH8TM51Bgtg3eUgfIIlEl7t5d2GUFteMG531vn TlWW/Yqhghdf7m5wHvc1fBimpwP1Xmegbcu4SPbx1Mi/qR0MpmopCfuRc0zCb/hpOCiI WxNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gE3DpyVo; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 bu4si1137887ejb.195.2020.11.15.11.33.35; Sun, 15 Nov 2020 11:33:36 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gE3DpyVo; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1727811AbgKOTcE (ORCPT + 6 others); Sun, 15 Nov 2020 14:32:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:33958 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726923AbgKOTcE (ORCPT ); Sun, 15 Nov 2020 14:32:04 -0500 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B729B2417E; Sun, 15 Nov 2020 19:32:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605468724; bh=5fY4eeo9CrRYbF8Nlf9tRn8nQcFcZJBg4wDkbHq0/ig=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gE3DpyVoqa1TyoXadHx70cfvLVhq109IFbxAcAxYgocrsVt0isbTS8lyeTIOMOh09 n1mH79mdqMMdCLvvYtWGvL4OKRgn4dzyqf8LB7nqACZTgbAnjKzz0i/qMkbcfD/O43 Z/QuVCAGZL+lfMYiTaOWTZl46CsiQuzTzW5l7LoA= From: Jonathan Cameron To: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: robh+dt@kernel.org, Jonathan Cameron , Rob Herring , Krzysztof Kozlowski Subject: [PATCH 2/9] dt-bindings:iio:samsung, exynos-adc: drop missuse of io-channel-ranges Date: Sun, 15 Nov 2020 19:29:44 +0000 Message-Id: <20201115192951.1073632-3-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201115192951.1073632-1-jic23@kernel.org> References: <20201115192951.1073632-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron io-channel-ranges is a property for consumers of io-channels, not providers. Hence it is not relevant in this binding or the examples given. Recent changes to dt-schema result int his being reported as an error as a dependency is enforced between this property and io-channels. Signed-off-by: Jonathan Cameron Reported-by: Rob Herring Cc: Krzysztof Kozlowski --- .../devicetree/bindings/iio/adc/samsung,exynos-adc.yaml | 4 ---- 1 file changed, 4 deletions(-) -- 2.28.0 Reviewed-by: Krzysztof Kozlowski diff --git a/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml b/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml index 5ebb0ab250bd..c65921e66dc1 100644 --- a/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml +++ b/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml @@ -49,8 +49,6 @@ properties: "#io-channel-cells": const: 1 - io-channel-ranges: true - vdd-supply: true samsung,syscon-phandle: @@ -130,7 +128,6 @@ examples: reg = <0x12d10000 0x100>; interrupts = <0 106 0>; #io-channel-cells = <1>; - io-channel-ranges; clocks = <&clock 303>; clock-names = "adc"; @@ -156,7 +153,6 @@ examples: reg = <0x126C0000 0x100>; interrupts = <0 137 0>; #io-channel-cells = <1>; - io-channel-ranges; clocks = <&cmu CLK_TSADC>, <&cmu CLK_SCLK_TSADC>; From patchwork Sun Nov 15 19:29:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 324361 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp2809695ils; Sun, 15 Nov 2020 11:33:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzUXO7tFxgsdGRe3jkV5EHhvy8e4QuaLOXAa99b0Z6Fep5WaWxEZdqTui8dNxrpvxsNKspA X-Received: by 2002:a17:906:19c3:: with SMTP id h3mr11606686ejd.395.1605468816722; Sun, 15 Nov 2020 11:33:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605468816; cv=none; d=google.com; s=arc-20160816; b=zP21L2m9NHvNc9EVjj5Oq4CIyKp55H0EEsNZNlm85N4MeR2WrA59v1F14R1ixtTirY sGOPYrfPsDoGrmHY6g8oppPp+5X41GuaSuJpUR0a5J2ImtFqts8hfLzqsfclWrgxj0NL AqjB1YuBJLrKqY9oq8Y1Lt/fGd8Ng2aZwPFwkjrO3wTixFbjBZwQMlryU99AzKK7En+u V5WUJjvdYVrm28ssygStIYckrpRab1h2sNKGeKMZNBi5bjYV9rAHgzLf+EYKL+zOQicQ IlVQTZjV9kThPrqeMNUZbyhVzDdrh06A5i7xwd6ShJMWU0Jo8kxDoq4pTjuXMaFN4tLw SE4g== 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:date:subject:cc:to:from :dkim-signature; bh=9kx9jYpixQUgIW9Loe7gdTyGbj0Zk9yxYPksO9ryMfo=; b=JWa7djzzZsrHeL4W19/SBp6Hp7yUqrAoIP4AJOklZNjOgLTpa3ohdeVsmwIpTbDT+S kicd1bZDORbKz/f5UhkOWqt0vidVia6K3cqMI9yOyMro9nJPKrdAWj9s7rsrFQaHhmzl rQQo7uu7SWlo/eEltZS/LYiD17JjYiGL1Xc4gYco+FpDu2m4wz9wnZfGDzMij7b165as F/c1zRKI5+6TEwolvvERWc9bIsGirLDxxsiQXYRwmONxFNvZu99M0gWaFKnNAg7sLKXx UOU5DAxDSRUeNvbUA1L41QUBaOOBGC0T5QMDz+eroqrzdJdGLv/ilJnlKsmDdhxe5AF0 S7xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lHt65GJE; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 bu4si1137887ejb.195.2020.11.15.11.33.36; Sun, 15 Nov 2020 11:33:36 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lHt65GJE; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1727815AbgKOTcG (ORCPT + 6 others); Sun, 15 Nov 2020 14:32:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:33976 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726923AbgKOTcG (ORCPT ); Sun, 15 Nov 2020 14:32:06 -0500 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7A5582417F; Sun, 15 Nov 2020 19:32:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605468725; bh=bvLxYjGb0ESyOfmh5/AmeZXqHUg0YeOtUAUB/hHekQ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lHt65GJEJZ76VpgxM2WSZkuV8He4tsPcC6NvQytNxJ3xUjDu6LrikywZhQ8fv4z9D 9+UyE8xOAKX0dd4c8l60bzQjgB8wYgpJp7fp18P9JFdGHNDamwxarzOfy4Qf+MCCxo HOQttwboxz3blH2VYC+UiUuiVQq6+8iRdNoeLT1w= From: Jonathan Cameron To: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: robh+dt@kernel.org, Jonathan Cameron , Florian Fainelli Subject: [PATCH 3/9] ARM: dts: Cygnus: Drop incorrect io-channel-ranges property. Date: Sun, 15 Nov 2020 19:29:45 +0000 Message-Id: <20201115192951.1073632-4-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201115192951.1073632-1-jic23@kernel.org> References: <20201115192951.1073632-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron This property applies to consumers of io-channels. In this case we have a provider so the property is not used. Not dt_schema will now detect this as an error due to a dependency between this property and the io-channels property. Signed-off-by: Jonathan Cameron Cc: Florian Fainelli --- arch/arm/boot/dts/bcm-cygnus.dtsi | 1 - 1 file changed, 1 deletion(-) -- 2.28.0 diff --git a/arch/arm/boot/dts/bcm-cygnus.dtsi b/arch/arm/boot/dts/bcm-cygnus.dtsi index dacaef2c14ca..0025c88f660c 100644 --- a/arch/arm/boot/dts/bcm-cygnus.dtsi +++ b/arch/arm/boot/dts/bcm-cygnus.dtsi @@ -591,7 +591,6 @@ touchscreen: touchscreen@180a6000 { adc: adc@180a6000 { compatible = "brcm,iproc-static-adc"; #io-channel-cells = <1>; - io-channel-ranges; adc-syscon = <&ts_adc_syscon>; clocks = <&asiu_clks BCM_CYGNUS_ASIU_ADC_CLK>; clock-names = "tsc_clk"; From patchwork Sun Nov 15 19:29:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 324362 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp2809700ils; Sun, 15 Nov 2020 11:33:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJziT7/F8XYvtbXczClgPwpK9TYyKW/2UhAtoA9KivPZGC84qcVmQOEgX4/8YtelrmigPN0z X-Received: by 2002:a05:6402:3064:: with SMTP id bs4mr13008304edb.258.1605468817469; Sun, 15 Nov 2020 11:33:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605468817; cv=none; d=google.com; s=arc-20160816; b=N97RLBrDrOdIk5EWaefaWKSEdrsViSbnJyi8xpclsdsq2esWiLhbp9C8+sBMvE0ZCb 9AWC/R8wXhQpnw2DikG0XsGXMTMH3huyVny23APmU0uMk7+vVIy1AtYxM9V44R12qD0u rsjfDCZkDTG0b50118AWA+n/FD0fsJaMNUXcbonA1/2RejbHt+x1eAXwexC0EoiWDjiU HDPi72oJz01AfgjR4kQTcCzKboHRHNa0vnC/YqODKTPSq1MYwJQCHhcEgh3wAKSGDJyw NF9LJfsy4RN07EtiJ6KC51XNQGX+t6t3bYKZ4cPjojauAkxnfTDqgn+rl5C1o/3ZSXTs lgSQ== 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:date:subject:cc:to:from :dkim-signature; bh=ZqkbzSoQ6/HhopsNKV0F4Z1Ovk0gYWTrG/i7VSFKY6o=; b=MdVRC7Bk+93DQrBfinX/A/qytdnwnSRklvhUxqjwlRBofN1DbkGXx0hzZne7sXHwq7 vgefBp2eQmHLgUoBzBX5XJT5B9//u1KZ06qFLqzVPToez4f/L8yfpGQ5Xgyt/XEmvG7d afYYgeNGCFTedWr1nwXAc7ql6EGOz6GIxKEWnbVOpm87R8x9dViVdCzL9sfFUoJVVOXX X2eQFmdRaKwHlYJcLnXgA+X0ZXPeLgeCM1nWsF1EsQfAwnrqwftEbjPeDxUeWp1QCNOU guKBAW8OtUaS6jm9cZVOHlapCvR1Bc84N7FDT7KDm8JCbbalEB6MLzE7B/Bi86Vssu6T dIEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tsmJnbvW; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 bu4si1137887ejb.195.2020.11.15.11.33.37; Sun, 15 Nov 2020 11:33:37 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tsmJnbvW; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1727822AbgKOTcI (ORCPT + 6 others); Sun, 15 Nov 2020 14:32:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:33990 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726923AbgKOTcH (ORCPT ); Sun, 15 Nov 2020 14:32:07 -0500 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0F706238E6; Sun, 15 Nov 2020 19:32:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605468727; bh=OwGWd3NHSyxIgpZkw6VPdhPHWtFfwz9xDkexRakgkbA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tsmJnbvWp1czk4RW3dYSN2MSX88EEmDIFO8p7SPt+3vleXSOM0qosKa8DrFGhdHBW cVGx2j0JjPczy5ZXE7iLhejSYB/s5IuHrmIqNAr8SftGU+Snq6AjiB6GkmHF/N1olA o21+bs3J6Lmfxe23hvKs9qrm0vsuSue0d3C3H3Q0= From: Jonathan Cameron To: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: robh+dt@kernel.org, Jonathan Cameron , Krzysztof Kozlowski Subject: [PATCH 4/9] ARM: dts: exynos: Drop incorrect use of io-channel-ranges Date: Sun, 15 Nov 2020 19:29:46 +0000 Message-Id: <20201115192951.1073632-5-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201115192951.1073632-1-jic23@kernel.org> References: <20201115192951.1073632-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron This property is only relevant to consumers of io-channels, not providers. All these dtsi files have it alongside #io-channel-cells which indicates they are providers of io-channels, not consumers. Note that dt_schema will now flag this up due to a dependency between this property and io-channels. Signed-off-by: Jonathan Cameron Cc: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos3250.dtsi | 1 - arch/arm/boot/dts/exynos4412.dtsi | 1 - arch/arm/boot/dts/exynos5250.dtsi | 1 - arch/arm/boot/dts/exynos54xx.dtsi | 1 - 4 files changed, 4 deletions(-) -- 2.28.0 diff --git a/arch/arm/boot/dts/exynos3250.dtsi b/arch/arm/boot/dts/exynos3250.dtsi index a1e93fb7f694..2dcc6b848937 100644 --- a/arch/arm/boot/dts/exynos3250.dtsi +++ b/arch/arm/boot/dts/exynos3250.dtsi @@ -439,7 +439,6 @@ adc: adc@126c0000 { clock-names = "adc", "sclk"; clocks = <&cmu CLK_TSADC>, <&cmu CLK_SCLK_TSADC>; #io-channel-cells = <1>; - io-channel-ranges; samsung,syscon-phandle = <&pmu_system_controller>; status = "disabled"; }; diff --git a/arch/arm/boot/dts/exynos4412.dtsi b/arch/arm/boot/dts/exynos4412.dtsi index e76881dc0014..a9df16015fef 100644 --- a/arch/arm/boot/dts/exynos4412.dtsi +++ b/arch/arm/boot/dts/exynos4412.dtsi @@ -274,7 +274,6 @@ adc: adc@126c0000 { clocks = <&clock CLK_TSADC>; clock-names = "adc"; #io-channel-cells = <1>; - io-channel-ranges; samsung,syscon-phandle = <&pmu_system_controller>; status = "disabled"; }; diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index bd2d8835dd36..c43e99b6c1cc 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -844,7 +844,6 @@ adc: adc@12d10000 { clocks = <&clock CLK_ADC>; clock-names = "adc"; #io-channel-cells = <1>; - io-channel-ranges; samsung,syscon-phandle = <&pmu_system_controller>; status = "disabled"; }; diff --git a/arch/arm/boot/dts/exynos54xx.dtsi b/arch/arm/boot/dts/exynos54xx.dtsi index 8aa5117e58ce..18a7559054dc 100644 --- a/arch/arm/boot/dts/exynos54xx.dtsi +++ b/arch/arm/boot/dts/exynos54xx.dtsi @@ -101,7 +101,6 @@ adc: adc@12d10000 { reg = <0x12d10000 0x100>; interrupts = ; #io-channel-cells = <1>; - io-channel-ranges; status = "disabled"; }; From patchwork Sun Nov 15 19:29:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 324363 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp2809710ils; Sun, 15 Nov 2020 11:33:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/w+Rr9hX7/L5OllIA2CsFLjz/+T9ARpTB6anbyN8NoyZhY7eNEXJgJ0LtB9XTq6i+drmY X-Received: by 2002:a17:906:f1d8:: with SMTP id gx24mr11377194ejb.73.1605468818150; Sun, 15 Nov 2020 11:33:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605468818; cv=none; d=google.com; s=arc-20160816; b=O1UoNRKQQJ4xWii5X9XNYkL4mQRZaINS+o7z1de8d1Ad05x/D79gizntkYkS+eoB9l SmjwOtalFXzHlDIyUjz9g2SmN3lFwhyeK28RznBMSTANU9dN6hlvO6nIfFadFsN3zPeG HRVvAJ82p15Ibu3TC/Pyj7UQLPQHrem7OL4OX7GrPGEFInGQrG15zV0gvmfko71C5iES bKysWV/ZeLjY1Ctnx/RECyAt6dSEsd725jCyvuVMh6Mb8/uWnZyzyzxFl8YYyqTN+Ukb xZYz+v3kGXKsSojwbRy4BWNQxPDLTbjlyYAOF4nGt3mpXXYx+inDy6+SJQ7XC5wxIyAV nF5g== 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:date:subject:cc:to:from :dkim-signature; bh=CNYNHZG6evSZ7IVLTls3q9ayik5L95PF1vtg2DQhvVM=; b=RrtwSuG6vutObC+mWfq+v9+C3LZDAd53TJe08SLr5AwQE6ZlcAPLWpf5VkGd1QC1l4 SKqCv55afDaK3wJKhoIQBwMv+CaCscSqg82F+4cBAdIz8lU5Jv4lKRzKDdxPPoKqu8b7 LEC3e05Thnkc7KQnOKOyudFv+qIkYxfvEKFkrAlcnSvLrmtI/aqvCI3HACFhWui1DPVv ihjXn5gAxsGZ73530wSVmokQD6wx5sS/K7Wkp37/N3ZO+aJN6++ZMv6idKUgnsHmmsNH UEbK+OB1mVPv5IWUcLb+Wqn8tdzdL0rZ9DEQmq1ZdIy++ksFVt+fad8ns/ZnGSHtgaOa k1gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bvfGXOZu; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 bu4si1137887ejb.195.2020.11.15.11.33.38; Sun, 15 Nov 2020 11:33:38 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bvfGXOZu; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1727825AbgKOTcK (ORCPT + 6 others); Sun, 15 Nov 2020 14:32:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:34000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726923AbgKOTcJ (ORCPT ); Sun, 15 Nov 2020 14:32:09 -0500 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9BFA922453; Sun, 15 Nov 2020 19:32:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605468728; bh=EygQxIRuhbt1ue+G0jOWi99anW905/Chac5nTAS9+tY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bvfGXOZu+HrkThdEC2OpyNpOLHHJkDU0MTOBkX33kyvNQ8nV7P6tCqi63/Ynf7IDx aI6dZrUZaRyC71Jdbi0faEftTQhCeZG67Zd5z4O8ZQC92RE6bdg7PNUahwAi93FzPv YWL0wal9yfvdcd4vA9F4UBZcOFDtMw83oBr+zUns= From: Jonathan Cameron To: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: robh+dt@kernel.org, Jonathan Cameron , Krzysztof Kozlowski Subject: [PATCH 5/9] ARM: dts: s5pv210: Drop incorrect use of io-channel-ranges property. Date: Sun, 15 Nov 2020 19:29:47 +0000 Message-Id: <20201115192951.1073632-6-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201115192951.1073632-1-jic23@kernel.org> References: <20201115192951.1073632-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron This property is relevant to consumers of io-channels. Here it is used by a provider. dt_schema will now report and error as this property must be in the same node as io-channels and it is not here. Signed-off-by: Jonathan Cameron Cc: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210.dtsi | 1 - 1 file changed, 1 deletion(-) -- 2.28.0 diff --git a/arch/arm/boot/dts/s5pv210.dtsi b/arch/arm/boot/dts/s5pv210.dtsi index 2871351ab907..353ba7b09a0c 100644 --- a/arch/arm/boot/dts/s5pv210.dtsi +++ b/arch/arm/boot/dts/s5pv210.dtsi @@ -149,7 +149,6 @@ adc: adc@e1700000 { clocks = <&clocks CLK_TSADC>; clock-names = "adc"; #io-channel-cells = <1>; - io-channel-ranges; status = "disabled"; }; From patchwork Sun Nov 15 19:29:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 324364 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp2809714ils; Sun, 15 Nov 2020 11:33:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJzM5+IHmmB66DJW+/970fOT072dEGMyVPOEdfUVqzugRn1QChR9pdlAjC+52xGgPtP3QhNG X-Received: by 2002:a05:6402:1114:: with SMTP id u20mr12028927edv.377.1605468818761; Sun, 15 Nov 2020 11:33:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605468818; cv=none; d=google.com; s=arc-20160816; b=JPCmszmYU8aylDuNKq3iuuJHTVb0e3JxvLwQ+0jYGRA0GIozdCZHDYfLrq0qr7Y1SP vqvsQnkwPT2RoUqRlMUlTR3aEfyMb9dOGoKaTP+CIf2uLJNT+0PMn0FkDuAwTGSKessN 4iDqpMSY/U0WjIxHqBOfOIj0G2Wm87wTiw8wBqDjHpHdGul0ohfY0SIAqRD4HqOmwlr8 DFNHNX95rURmk0VFtPPdOwAkJBCaPar/dF+i83POsuVHF8Lb5EHIq2vG5K6COFMO4mZl 8ma0nvXZKpEY/AwL5WP6cCG3CCvhODE5HrIUyym1ZKfvAmboBcNTCe0oDIPOfzSIBVdB E3/g== 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:date:subject:cc:to:from :dkim-signature; bh=v4zOjd69wB1LSsTLSS+b294sqXnum5sMTstd0hYpzPQ=; b=D4lgeqdQCEdIgMyenmyh3YaW1XBWTms8Zn5kGR2SszyVjMNZupIKdonLoFIMRAK8QK F4jnTfoaH0sQ6pbz0KBopQfbRf0kNnkDAd0ZNiLl8/qBwNuFv7SoQwNhLsT6cg4RXMBz CpjMHgohoqCVN12OnAEXDXk8T4pEV/JdUVwsNv37nOtnxUmN9lJ9WT3MqxHtejkeYOAO JWa7aKnx4oXhHiJjp16MZTXnV6khWRf6KGG1lk3IuWbCj0HG0awohnnHs907TQhTogL6 L6Irr3Vb9XA2DU2npkGviK4moQ6itH2IocpDEOJr/Ws4fuOGSuGsXol/Es2P4Z3wIZtk T2Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PmyfKjVc; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 bu4si1137887ejb.195.2020.11.15.11.33.38; Sun, 15 Nov 2020 11:33:38 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PmyfKjVc; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1727842AbgKOTcL (ORCPT + 6 others); Sun, 15 Nov 2020 14:32:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:34014 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726923AbgKOTcK (ORCPT ); Sun, 15 Nov 2020 14:32:10 -0500 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2E77B22450; Sun, 15 Nov 2020 19:32:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605468730; bh=x71USCiHj/GQY0jK4FvaaciNOHo6Au4EPLPmumf7GyQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PmyfKjVc/PsBbRPrgZo/RXBK1rZ3UiMRaEwzD1Ph7azHx3eyCaGf3j/S4uZkIMbyx QwMfXCJHa/S9udvCMSSb6JFLfpXAbONWEUHsfVlFogYaCgHKSYRI9BcVy4o9EovfYC Tv3+2lYWzTBuq96CsmutcXDo7qhG/N2JnEfxbcZY= From: Jonathan Cameron To: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: robh+dt@kernel.org, Jonathan Cameron , Andy Gross , Bjorn Andersson Subject: [PATCH 6/9] ARM: dts: qcom-pma8084: Drop incorrect use of io-channel-ranges Date: Sun, 15 Nov 2020 19:29:48 +0000 Message-Id: <20201115192951.1073632-7-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201115192951.1073632-1-jic23@kernel.org> References: <20201115192951.1073632-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron This property is used by io-channel consumers, not providers so should not present here. Note dt_schema will now detect this error as there is a dependency between this property and io-channels. Signed-off-by: Jonathan Cameron Cc: Andy Gross Cc: Bjorn Andersson --- arch/arm/boot/dts/qcom-pma8084.dtsi | 1 - 1 file changed, 1 deletion(-) -- 2.28.0 diff --git a/arch/arm/boot/dts/qcom-pma8084.dtsi b/arch/arm/boot/dts/qcom-pma8084.dtsi index ea1ca166165c..e921c5e93a5d 100644 --- a/arch/arm/boot/dts/qcom-pma8084.dtsi +++ b/arch/arm/boot/dts/qcom-pma8084.dtsi @@ -68,7 +68,6 @@ pma8084_vadc: vadc@3100 { #address-cells = <1>; #size-cells = <0>; #io-channel-cells = <1>; - io-channel-ranges; die_temp { reg = ; From patchwork Sun Nov 15 19:29:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 324365 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp2809719ils; Sun, 15 Nov 2020 11:33:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJx3gsVJOC3VyHF4Sa3nTCvdflNIy6VAttyOR7zny+Hm9erocsKcJb+8JagX73BFJQLwHpBk X-Received: by 2002:a17:906:13d6:: with SMTP id g22mr12216333ejc.240.1605468819380; Sun, 15 Nov 2020 11:33:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605468819; cv=none; d=google.com; s=arc-20160816; b=kbcM2LWGTZ7Df5kC7HiQqS5kyWUMJVU2OmiX6Xm6dasJRddEDqRE5u/cPgFCQzXcw+ xSi8Q/lIvMuPPPcH6TMHpBg9UQOL8JRcXLPwThFm5n1JmzxY3PKq59rvP+3TvOdEboqu XFVJEBddq1OY2UF3diX82+liOZrlMR2fmYl6Zdf7GQMDBXDRXdnzamagpRoYgTkEOkjz 4vahrOnUC/uTUjJlDHzZNV1tJF+T+6qqnDLBi5noA0ytxwh+A4VA51jpLRDR184bvrUW f2GuvyMftrcrIVf3JRJcAvneun0NVr2YuaZqdfFghdBJ7+CqfhlLH0jZ2hBLi/KWpUyR RjVA== 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:date:subject:cc:to:from :dkim-signature; bh=GNWKOUYX+ZUjpqtjfitAFnW+GgRkLX6Oe/qgT3F7itg=; b=ohz/xRYYY1igc9UgwghV4muxzeM0bDin86JxsQqxFznzCXCmjgFFHRB7mHAsxtEUaB DY0TgQ0c1JjIE1sDR7Y0qUmV7+TRRfobjA+ksTt49j8bue/w1CDHQkhT+OuoKv+P1kss KpHL6g80DRV+FtI7pPfJFZWeQMPV7+vFrIHbXNV83ISPVAomeJvUqP4/g/iBjADovbo3 NXvrJwstkrAf361HBUJrrFKl6pQLnuzLvQt6tWLG/1qPLPYyQKLxBYEuCuXG8fTdGnlZ K0GInhLlI2xv9UplBjvO665AlW7GwACmLu1oC+57znPPyMF0T9TVtpw4mTFk5ddAOxBQ xCiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=U5SwWYWu; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 bu4si1137887ejb.195.2020.11.15.11.33.39; Sun, 15 Nov 2020 11:33:39 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=U5SwWYWu; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1727843AbgKOTcM (ORCPT + 6 others); Sun, 15 Nov 2020 14:32:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:34030 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726923AbgKOTcM (ORCPT ); Sun, 15 Nov 2020 14:32:12 -0500 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DFBE922384; Sun, 15 Nov 2020 19:32:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605468732; bh=9K6SJF2DPcYP95bCSQS5MwGaGuNC39mHRymwVDL/LaE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U5SwWYWu/7mh0rCtohgZYikZl7vMPJbrFNQ5NVDwP1Yxbw4jkuaodub8Okx+lP7+N 5FSaawtrBkIHtNJvcp+QoCQVmCVcEC6kCxJnmzan0wCGCnJCclBAZs8NEIHXnf6YeM UoFMSkFmSM4OT+UKzMxXvbwsoTI/p+SDInhm1KPg= From: Jonathan Cameron To: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: robh+dt@kernel.org, Jonathan Cameron , Krzysztof Kozlowski Subject: [PATCH 7/9] ARM: dts: s5pv210-aries: Drop unneeded io-channel-ranges property. Date: Sun, 15 Nov 2020 19:29:49 +0000 Message-Id: <20201115192951.1073632-8-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201115192951.1073632-1-jic23@kernel.org> References: <20201115192951.1073632-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron This property is only useful if a node has children as it allows them to then use io-channel properties in the parent. Here there are no children. This is harmless, but we are planning to shortly drop this property as it is rarely used correctly and there is little reason it would ever be needed as we can just provide the io-channels property to any child nodes that need it. Signed-off-by: Jonathan Cameron Cc: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-aries.dtsi | 1 - 1 file changed, 1 deletion(-) -- 2.28.0 diff --git a/arch/arm/boot/dts/s5pv210-aries.dtsi b/arch/arm/boot/dts/s5pv210-aries.dtsi index bd4450dbdcb6..1ad9582db1ee 100644 --- a/arch/arm/boot/dts/s5pv210-aries.dtsi +++ b/arch/arm/boot/dts/s5pv210-aries.dtsi @@ -589,7 +589,6 @@ gp2a_shunt: current-sense-shunt { io-channels = <&adc 9>; shunt-resistor-micro-ohms = <47000000>; /* 47 ohms */ #io-channel-cells = <0>; - io-channel-ranges; }; }; From patchwork Sun Nov 15 19:29:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 324366 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp2809728ils; Sun, 15 Nov 2020 11:33:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxD2c935GZzwPd0taik9d+Etae449RBVakH/wDIRo++S8qveHBZsWL/phhBh8IVD9sGxhVP X-Received: by 2002:a17:906:2602:: with SMTP id h2mr7704798ejc.358.1605468820272; Sun, 15 Nov 2020 11:33:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605468820; cv=none; d=google.com; s=arc-20160816; b=upPqab7oMj1CWmI1+kDxUSJeo5edPZEWkt46XTHWqlkN2MgdWveU7s47zs3M1OokL0 WcvgyXcVfWO0/bqdj7i3rlzIdXKNjGhxItpprM2L4LJWXz0ist1vlXnOsA/cyHJmswtn EIU3EO1ZTJeWBJOmRNhXwbuYIU5EfYwmZz1+7J9aW08sjCriMCXzwE57th6dd87CnSh7 R+VrY49vCJFj8ikwl3zpki98VDK3lGX8/UXDqoh/gwPUriNCnOVUvTDS2eav/KjWWgju fdKu7wdyKIpSPE2wl8OboyxFItbHS0WJzTLkIR7lKHbnxBIRHRgFrRFdXKzwc4wlceXo 0LbQ== 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:date:subject:cc:to:from :dkim-signature; bh=2KqaDPVWo59bGTssoUppvYtoENBDvra7eT/UnVFvwq0=; b=ZU9ubDAZ5B2n1erxpsoU1HjCKED8XdW9TTaaWdCBb2tCEqyr152OS9I7BCiBpdaowa rJC2OMeIvKzYjgzOULVxdrS/7oAyu/F6bwmyxtK2UJ6AQRYmFYpJlTz4KHKI4E2Av+Kf M+9DkRlOTWVIge5xHwr9XSUq6WpiXZZqSKJX1lStbzgUVXuwAqVQJe0necJD5wPV0ng+ gVruGx1EG4o0wrHB0we/AucFktnhFmjwmBkTCueLSkC9vGyrmUV1OUy7L1Lth8o934mp EhD61vBhZ8q9vB3evZ3QgRO0hKJsq2GD/HVbz5uXqDLQB47gjK3W3wXwqV9MH7I4Lo7z r5zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Walhpthl; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 bu4si1137887ejb.195.2020.11.15.11.33.40; Sun, 15 Nov 2020 11:33:40 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Walhpthl; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1727849AbgKOTcO (ORCPT + 6 others); Sun, 15 Nov 2020 14:32:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:34050 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726923AbgKOTcN (ORCPT ); Sun, 15 Nov 2020 14:32:13 -0500 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7350124170; Sun, 15 Nov 2020 19:32:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605468733; bh=qg7S1FYh+40H4HhjM4ldZ9PsZ0Izqr4zzHGY0I4mLyk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Walhpthl8BjFhAjx5iuwb9HpKPxp4OEaSIT0aYJBPypDKznqw3lptkJpkUtnuAHFD uhvDM0MSZFdjhtfWmdpVS8pwU3H0guEmz8h+mWKDazWw7QmhczK3evW1OrY9DUIHAy QWvHYMAbr4KMqoB+jzf/9LtITterFHpYwWHL/iFk= From: Jonathan Cameron To: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: robh+dt@kernel.org, Jonathan Cameron , Krzysztof Kozlowski Subject: [PATCH 8/9] arm64: dts: exynos: Drop incorrect use of io-channel-ranges property. Date: Sun, 15 Nov 2020 19:29:50 +0000 Message-Id: <20201115192951.1073632-9-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201115192951.1073632-1-jic23@kernel.org> References: <20201115192951.1073632-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron This property is for consumers of io-channels. Here it is used in providers of those channels. Note dt_schema will currently flag this as an error due to a dependency between this property and io-channels. Signed-off-by: Jonathan Cameron Cc: Krzysztof Kozlowski --- arch/arm64/boot/dts/exynos/exynos5433.dtsi | 1 - arch/arm64/boot/dts/exynos/exynos7.dtsi | 1 - 2 files changed, 2 deletions(-) -- 2.28.0 diff --git a/arch/arm64/boot/dts/exynos/exynos5433.dtsi b/arch/arm64/boot/dts/exynos/exynos5433.dtsi index 8eb4576da8f3..ac33372f611b 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433.dtsi @@ -1445,7 +1445,6 @@ adc: adc@14d10000 { clock-names = "adc"; clocks = <&cmu_peric CLK_PCLK_ADCIF>; #io-channel-cells = <1>; - io-channel-ranges; status = "disabled"; }; diff --git a/arch/arm64/boot/dts/exynos/exynos7.dtsi b/arch/arm64/boot/dts/exynos/exynos7.dtsi index b9ed6a33e290..1f59e437e606 100644 --- a/arch/arm64/boot/dts/exynos/exynos7.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos7.dtsi @@ -567,7 +567,6 @@ adc: adc@13620000 { clocks = <&clock_peric0 PCLK_ADCIF>; clock-names = "adc"; #io-channel-cells = <1>; - io-channel-ranges; status = "disabled"; }; From patchwork Sun Nov 15 19:29:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 324367 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp2809734ils; Sun, 15 Nov 2020 11:33:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJz2VI2tczwoFf7XWcewdVzIqvjp22LnITE6LP7a8ZnLxIeFwtdH4ESGi/838Nkixi7IDrN4 X-Received: by 2002:a17:906:19c3:: with SMTP id h3mr11606854ejd.395.1605468821019; Sun, 15 Nov 2020 11:33:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605468821; cv=none; d=google.com; s=arc-20160816; b=LXeJHOnzg4yhrfmeO9doonR0qHESX16V9Z8Eh4qQCsd5lZxHO46FmermrErkKCw4WC bwAuWvVs6YJRimWdZwPdNBy+q8L4bGicCtmFwwDglpFmjjKovtVTUNf0cioX4idU6rQp DvhAD/Fejnjii7col5hHJWPFobqC9rVFDxUVehlH8y3sZSvRwvZvB63pfZ5NyTlxWVj5 /bhPy4nDbeu5cE4AoE156Z9McNHMJ5m9XUbPMHEWK28EVC0sAtfH9UrHtPBdJ/IrWrVa nY8LQrHjP3Zab9hVpDJj2AE2CgIVhNNYeY3hN9ZnzhpN0V+GlwKnVBG0SJKn81u/itvE jPfA== 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:date:subject:cc:to:from :dkim-signature; bh=CDVgX2Itj3hIRvL/eifx/JfhrKCo6usxWmd1bHzZ0pQ=; b=PWTJvwaO6bx4SD34AFwNQfA8kvEaToXSzoUqFtTeA9IaWS6mrDO5SHdlbIArLZqr39 GZGfGM+8LWu/6kU7evOb0U3kRnNA+8fREiJz7C31Co2ljBRt9EMGF3smBBFNz6KdFIBY XPHAD/HHz20XmUbYjq7Fx3VoLoWDD++6HR3ualoZwlkAtPoDVnn52Re+QDR0qZCM0r3R QWTbEc/lWHl3/6r1W11Y8YFQeAvPcvVkU0OIanYo6+Kx8E7PWp40EAtdqFTYVzFx5cJ3 hnH86jW1jfApvyjg8G1pLNZBX8HI6OgwYSgbMHBEzZyFpqwIDGu9IPYKdm70LsMHuPAX 9dxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IMQZo7ii; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 bu4si1137887ejb.195.2020.11.15.11.33.40; Sun, 15 Nov 2020 11:33:41 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IMQZo7ii; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1727854AbgKOTcQ (ORCPT + 6 others); Sun, 15 Nov 2020 14:32:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:34076 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726923AbgKOTcQ (ORCPT ); Sun, 15 Nov 2020 14:32:16 -0500 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 093B0238E6; Sun, 15 Nov 2020 19:32:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605468735; bh=ErJov3gozQbcXRWPQ/ExCFfzkMh9py6GNRxpW3I4Dyw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IMQZo7iiN9bX+UpHwQTM+8TlQe73QrxY7IAvT0Lo1E9nFVBKV4oMRXQL5+0D1ty3g gyE/niTL0fVhcY8PXeaVsjYaZ864QtSJzwG2oqqKF7OROum5JSmZrgeGie8yMKy3+/ Ko3rrnEiXb7Xih6VUPFSBZG1ihMonan1agWgKkuU= From: Jonathan Cameron To: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: robh+dt@kernel.org, Jonathan Cameron , Guenter Roeck , Lars-Peter Clausen Subject: [RFC PATCH 9/9] iio: inkern: Drop io-channel-ranges dt property support Date: Sun, 15 Nov 2020 19:29:51 +0000 Message-Id: <20201115192951.1073632-10-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201115192951.1073632-1-jic23@kernel.org> References: <20201115192951.1073632-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron This property has been almost exclusively missused in mainline and we don't actually have any instances of it being necessary. As such Rob Herring suggested we just drop it and I can't immediately see any reason to disagree. If anyone has an out of tree dts file that makes use of this then let me know. I'm not against keeping the code, but documenting it as a deprecated property not to be used in new dts files. Note build tested only. If someone could give it a sanity check on a platform that uses this interface that would be great. If not I'll mock something up before applying this. Signed-off-by: Jonathan Cameron Cc: Guenter Roeck Cc: Lars-Peter Clausen --- drivers/iio/inkern.c | 49 +++++++++++++++----------------------------- 1 file changed, 17 insertions(+), 32 deletions(-) -- 2.28.0 diff --git a/drivers/iio/inkern.c b/drivers/iio/inkern.c index ede99e0d5371..85a6f6103ee9 100644 --- a/drivers/iio/inkern.c +++ b/drivers/iio/inkern.c @@ -184,40 +184,25 @@ static struct iio_channel *of_iio_channel_get_by_name(struct device_node *np, const char *name) { struct iio_channel *chan = NULL; - - /* Walk up the tree of devices looking for a matching iio channel */ - while (np) { - int index = 0; - - /* - * For named iio channels, first look up the name in the - * "io-channel-names" property. If it cannot be found, the - * index will be an error code, and of_iio_channel_get() - * will fail. - */ - if (name) - index = of_property_match_string(np, "io-channel-names", + int index = 0; + + /* + * For named iio channels, first look up the name in the + * "io-channel-names" property. If it cannot be found, the + * index will be an error code, and of_iio_channel_get() + * will fail. + */ + if (name) + index = of_property_match_string(np, "io-channel-names", name); - chan = of_iio_channel_get(np, index); - if (!IS_ERR(chan) || PTR_ERR(chan) == -EPROBE_DEFER) - break; - else if (name && index >= 0) { - pr_err("ERROR: could not get IIO channel %pOF:%s(%i)\n", - np, name ? name : "", index); - return NULL; - } + chan = of_iio_channel_get(np, index); + if (!IS_ERR(chan) || PTR_ERR(chan) == -EPROBE_DEFER) + return chan; + else if (name && index >= 0) + pr_err("ERROR: could not get IIO channel %pOF:%s(%i)\n", + np, name ? name : "", index); - /* - * No matching IIO channel found on this node. - * If the parent node has a "io-channel-ranges" property, - * then we can try one of its channels. - */ - np = np->parent; - if (np && !of_get_property(np, "io-channel-ranges", NULL)) - return NULL; - } - - return chan; + return NULL; } static struct iio_channel *of_iio_channel_get_all(struct device *dev)