From patchwork Thu Nov 30 17:16:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 748669 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6365556456; Thu, 30 Nov 2023 17:16:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="d/g5oOz2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 137BAC433CB; Thu, 30 Nov 2023 17:16:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701364613; bh=NP5nEKKAbqzx7TvXe3SZBdwhS28a3lTCzwA7uNU8zG4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d/g5oOz2xuqaGz9szs6S3Gitcw056NUkC39XnJcmxlvIVI/n+f7IUFgBXTvPB/wqA fDqkxRnyKPIyfEPYQFVswnTj5a91wOE5Qdm4OexMXpgco6pwUlKlz5E9zFxdSF1JpU aOy6W4GzWi8FOuS7OSRi1Qc1tGmdjE4l27Y8Y0FxRkzicHFZofLDTWHPL6TYdHqL/F zNEC2g1PdGL3ldp5UInOaA/mbd8886I7DrYsc37qYNhKH88IQfIdL3NnVwTOjE3cAh KKS+IGbHzgNJ5S4HSazLGs1GTgjGU3BEEwEImxW8dnz49wMmB5j/cIcsRiBgupS7LX DAfQ9/9jnBHFA== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1r8kfG-0003Cg-1L; Thu, 30 Nov 2023 18:17:26 +0100 From: Johan Hovold To: Jonathan Cameron Cc: Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 1/6] dt-bindings: iio/adc: qcom, spmi-iadc: fix reg description Date: Thu, 30 Nov 2023 18:16:23 +0100 Message-ID: <20231130171628.12257-2-johan+linaro@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231130171628.12257-1-johan+linaro@kernel.org> References: <20231130171628.12257-1-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The IADC register is just the base address in the SPMI PMIC and does not include any length. Signed-off-by: Johan Hovold --- Documentation/devicetree/bindings/iio/adc/qcom,spmi-iadc.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-iadc.yaml b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-iadc.yaml index 73def67fbe01..e0e0aa9d5d5b 100644 --- a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-iadc.yaml +++ b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-iadc.yaml @@ -25,7 +25,7 @@ properties: - const: qcom,spmi-iadc reg: - description: IADC base address and length in the SPMI PMIC register map + description: IADC base address in the SPMI PMIC register map maxItems: 1 qcom,external-resistor-micro-ohms: From patchwork Thu Nov 30 17:16:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 748670 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 41F3E537FA; Thu, 30 Nov 2023 17:16:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RdG7j/lI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11242C433C9; Thu, 30 Nov 2023 17:16:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701364613; bh=4MvuIkotlM5v0azTQRz27GQ7u2cpqGPTVAW6vocygAw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RdG7j/lIAxBP7TZ8CJ1EyZJIdXgVdM05abTwVJ/edPcsRn59jedppdTJPM3i7bv6j U9THyxyINKw09aXL8XurqtVdLZuMg3r5D70aNkP5LeG2JQr1uV+zknK4FGf+lcXNyM qGIBp9LLGMTZ80l4nt6ml9S3KS6BVD1BZJd1vRhaIRrXYPBENDBBxIvre1Q+Tk2iau jeyU4MKBSUa2hz0CfSkWAa3A44zMH5LpvODbgzNMgq050fSwIZCIGnKGFRKuLjpKMW DXBYweJq6oVBx7bgQZ4JM5hFiGVZij0+tvH3bjk/0/2/bFike3rfFMcIsj1CCCbK+2 UezkC/fgPX9Xw== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1r8kfG-0003Ck-1t; Thu, 30 Nov 2023 18:17:26 +0100 From: Johan Hovold To: Jonathan Cameron Cc: Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 3/6] dt-bindings: iio/adc: qcom,spmi-iadc: clean up example Date: Thu, 30 Nov 2023 18:16:25 +0100 Message-ID: <20231130171628.12257-4-johan+linaro@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231130171628.12257-1-johan+linaro@kernel.org> References: <20231130171628.12257-1-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Clean up the IADC example by adding a newline separator, dropping an unnecessary label and removing stray white space. Signed-off-by: Johan Hovold --- .../devicetree/bindings/iio/adc/qcom,spmi-iadc.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-iadc.yaml b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-iadc.yaml index 16889d2d3575..5ed893ef5c18 100644 --- a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-iadc.yaml +++ b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-iadc.yaml @@ -54,12 +54,13 @@ examples: pmic { #address-cells = <1>; #size-cells = <0>; - pmic_iadc: adc@3600 { + + adc@3600 { compatible = "qcom,pm8941-iadc", "qcom,spmi-iadc"; reg = <0x3600>; interrupts = <0x0 0x36 0x0 IRQ_TYPE_EDGE_RISING>; qcom,external-resistor-micro-ohms = <10000>; - #io-channel-cells = <1>; + #io-channel-cells = <1>; }; }; ... From patchwork Thu Nov 30 17:16:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 748667 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 959A556746; Thu, 30 Nov 2023 17:16:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KnEsVTJd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49647C4167E; Thu, 30 Nov 2023 17:16:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701364613; bh=9nLDbjfs+ETvIRCdX91WOICNCR5DUplnKXVMUpaXXB0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KnEsVTJdjSBUQaLPsCQL0d2FNDhsnCvl6hHPfUhJyz59OJTEAytUzQvzizXXw5cxU 6KH68/88eackPZ0fLFaAhHZ30S1oLoysIVlSp/a+yw6whuayJuy+rIk9iM9Zuj7GxW 5I/n7E43rVg3MoSfupdD9KU2yHQHaB/7+JRAGwemo7Y9dHTYAR9XONXXAOAgPCcYKj LJjtXYwvtsDRIGJbji+L9rwozmxwwWAY4BkOMbSYUHHsjbeM//6OFnrvHGoujquE4L DjF282SnZk3rKxPS4wurGq40mY0x6mYpS9cbchkbS7vZ7t5rRAUg0/iz9PVYet1u+i utUzEpQ5KkkuQ== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1r8kfG-0003Cr-2b; Thu, 30 Nov 2023 18:17:26 +0100 From: Johan Hovold To: Jonathan Cameron Cc: Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 6/6] dt-bindings: iio/adc: qcom,spmi-vadc: clean up examples Date: Thu, 30 Nov 2023 18:16:28 +0100 Message-ID: <20231130171628.12257-7-johan+linaro@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231130171628.12257-1-johan+linaro@kernel.org> References: <20231130171628.12257-1-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Clean up the VADC examples by dropping a comment, dropping unnecessary labels and adding newline separators. Signed-off-by: Johan Hovold --- .../devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml index eb02715bf691..40fa0710f1f0 100644 --- a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml +++ b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml @@ -239,8 +239,8 @@ examples: pmic { #address-cells = <1>; #size-cells = <0>; - /* VADC node */ - pmic_vadc: adc@3100 { + + adc@3100 { compatible = "qcom,spmi-vadc"; reg = <0x3100>; interrupts = <0x0 0x31 0x0 0x1>; @@ -284,6 +284,7 @@ examples: pmic { #address-cells = <1>; #size-cells = <0>; + adc@3100 { reg = <0x3100>; compatible = "qcom,spmi-adc7";