From patchwork Mon Sep 7 16:11:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11761533 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E09B159D for ; Mon, 7 Sep 2020 16:25:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C90AC21532 for ; Mon, 7 Sep 2020 16:25:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495928; bh=kA8UYqwwvl1jhQhlspmrYdcfKcMzh6l6VSdMPGeBWuE=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=oc3agrSCSMv1/+ZHOP3BO1dTP9rxe7sEalWtJZoPI8sW8JCMAw27yEzLtgpqFfc5D Mf8SPiGQc4OAkkfiRforHdVe8jte+GwMJOpcTnAxFljKmqILsrg9/ZhVzgE93wz+IS +V77BX5XqITIQPzs+Ci+30O2ZP0kaRUlcnUf+2+Q= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730273AbgIGQMc (ORCPT ); Mon, 7 Sep 2020 12:12:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:60778 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730259AbgIGQMU (ORCPT ); Mon, 7 Sep 2020 12:12:20 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 C751820757; Mon, 7 Sep 2020 16:12:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495140; bh=kA8UYqwwvl1jhQhlspmrYdcfKcMzh6l6VSdMPGeBWuE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZHzrPDfLcGKn97n0Gxq++gyxmTSFHfBIT21e2wfJZGkv3gY+Rj/jixhYdec2zzumj s0n9f4k8HFlLPZbhMIw5WfXBsnuDsDBJwdUGmLI6SDCyNrwZsYWgOlRz/n+sGIg9VB gazM7/e3slTF9HAs7T63IAcFbWvHNakMc958tqgs= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?q?Pawe=C5=82_Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [PATCH 01/25] dt-bindings: samsung: pmu: document S5Pv210 Date: Mon, 7 Sep 2020 18:11:17 +0200 Message-Id: <20200907161141.31034-2-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Add compatible for the Samsung S5Pv210 SoC PMU. Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/samsung/pmu.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/samsung/pmu.yaml b/Documentation/devicetree/bindings/arm/samsung/pmu.yaml index edbe8c69387b..17678d9686c1 100644 --- a/Documentation/devicetree/bindings/arm/samsung/pmu.yaml +++ b/Documentation/devicetree/bindings/arm/samsung/pmu.yaml @@ -24,6 +24,7 @@ select: - samsung,exynos5420-pmu - samsung,exynos5433-pmu - samsung,exynos7-pmu + - samsung-s5pv210-pmu required: - compatible @@ -40,6 +41,7 @@ properties: - samsung,exynos5420-pmu - samsung,exynos5433-pmu - samsung,exynos7-pmu + - samsung-s5pv210-pmu - const: syscon reg: From patchwork Mon Sep 7 16:11:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11761531 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 52A6B13B1 for ; Mon, 7 Sep 2020 16:25:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3057020757 for ; Mon, 7 Sep 2020 16:25:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495928; bh=mmrbMHMlywRamMbAoD8m1NVZ3xc1llmLdf9vpJqmSWo=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=cxmXiMrT03yaKCz2nrU8sCX9ffyqUOqyirrwMUD+STOZBc5+Cvgz2iBiyCIueC3s7 slOVnVslxyCvbcQrP8hYo/1KXDyMi8QKkRVt+ZlWS9j2AjZR7IZFj7FPw92SZYNXQC BtiaDjKCACRBZHCipVQDYdQvdKO3ro6mP2AuC5FQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730315AbgIGQMm (ORCPT ); Mon, 7 Sep 2020 12:12:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:60894 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729931AbgIGQMa (ORCPT ); Mon, 7 Sep 2020 12:12:30 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 E9171206E6; Mon, 7 Sep 2020 16:12:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495149; bh=mmrbMHMlywRamMbAoD8m1NVZ3xc1llmLdf9vpJqmSWo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Hxu6rgxfiW5iKv9B71dOEX1kzrSB+ZYt+jhvfDbkfRFnmnvS6eX2DH/XPC4N3lKpu /PgWsiwEnSuoQx8iUkpRVrFOYYn0uFjBMWSd1s4UXaTA9DNVQxGibJkseL5//NfLG9 Eyb3VQ6NgnRYkwyP7nrUpwzH/UwHSLEBjRIPMdzQ= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?q?Pawe=C5=82_Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [PATCH 02/25] dt-bindings: iio: adc: exynos-adc: require second interrupt with touch screen Date: Mon, 7 Sep 2020 18:11:18 +0200 Message-Id: <20200907161141.31034-3-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The ADC in S3C/S5P/Exynos SoCs can be used also for handling touch screen. In such case the second interrupt is required. This second interrupt can be anyway provided, even without touch screens. This fixes dtbs_check warnings like: arch/arm/boot/dts/s5pv210-aquila.dt.yaml: adc@e1700000: interrupts: [[23], [24]] is too long Signed-off-by: Krzysztof Kozlowski Acked-by: Jonathan Cameron --- .../bindings/iio/adc/samsung,exynos-adc.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml b/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml index cc3c8ea6a894..89b4f9c252a6 100644 --- a/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml +++ b/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml @@ -41,7 +41,10 @@ properties: maxItems: 2 interrupts: - maxItems: 1 + description: + ADC interrupt followed by optional touchscreen interrupt. + minItems: 1 + maxItems: 2 "#io-channel-cells": const: 1 @@ -107,6 +110,16 @@ allOf: items: - const: adc + - if: + properties: + has-touchscreen: + true + then: + properties: + interrupts: + minItems: 2 + maxItems: 2 + examples: - | adc: adc@12d10000 { From patchwork Mon Sep 7 16:11:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11761523 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 00FF513B1 for ; Mon, 7 Sep 2020 16:25:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D0FED20757 for ; Mon, 7 Sep 2020 16:25:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495919; bh=huRRtVQAV4kXuTBNP9D6urMFzmt8KLZCSNdWyYF4x5A=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=VmtwuYFTpVwmOd0KVtbekejYwgYWTZhBAILrdGhckJfnJo+sHtDC09RS8/vUJcypJ Vph1qoy0RSk6aRP2KsEPcRKlfEWqAtHDKkuvP7AyEFdfe7qe/mgWrMExl4vI0kSZnM DFXTnhuLw9IfKV10tTx12KU7u/FY88WCWJrH0tZI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730330AbgIGQMn (ORCPT ); Mon, 7 Sep 2020 12:12:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:60964 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729937AbgIGQMg (ORCPT ); Mon, 7 Sep 2020 12:12:36 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 1270421789; Mon, 7 Sep 2020 16:12:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495155; bh=huRRtVQAV4kXuTBNP9D6urMFzmt8KLZCSNdWyYF4x5A=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AAhaIjLCHPgSP4hTnbUU5WAX8BN7tc0jQNKZB7arK9c5SQ+dauvzHVbRJp1wFjsaD OfpmxIivh9T65EjT7ZKDeaMqKx2zM954N46rSbigDf7q82Vjb6kJUpOqXTWMMMOGt6 5iqhY+vqX8A2YEuZNS8SXqs9wlQWvLjBVGqvOOt0= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?q?Pawe=C5=82_Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [PATCH 03/25] dt-bindings: iio: adc: exynos-adc: do not require syscon on S5Pv210 Date: Mon, 7 Sep 2020 18:11:19 +0200 Message-Id: <20200907161141.31034-4-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The ADC in S5Pv210 does not have ADC phy registers in separate block for which syscon would be needed. Remove this requirement to fix dtbs_check warnings like: arch/arm/boot/dts/s5pv210-fascinate4g.dt.yaml: adc@e1700000: 'samsung,syscon-phandle' is a required property Signed-off-by: Krzysztof Kozlowski Acked-by: Jonathan Cameron --- .../devicetree/bindings/iio/adc/samsung,exynos-adc.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml b/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml index 89b4f9c252a6..75174af72288 100644 --- a/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml +++ b/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml @@ -81,7 +81,6 @@ allOf: - samsung,exynos-adc-v2 - samsung,exynos3250-adc - samsung,exynos4212-adc - - samsung,s5pv210-adc then: required: - samsung,syscon-phandle From patchwork Mon Sep 7 16:11:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11761527 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1652559D for ; Mon, 7 Sep 2020 16:25:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E87C9217BA for ; Mon, 7 Sep 2020 16:25:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495926; bh=oQutU7eoT4DFfkecRuD/WmWdYMLZJlQ9/R4YqBUhAgU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=2IDCBTljmWbdse4mZ/cqFNPLM7yvFZbABNR3X423MtqnGxNbIVYXQAzbXNcZgYp+H 1p1bhuxztevtWMA3qGRQtrIzEDl24fjatA/2ShyYep1nh28dTCpwkFhjt3QNxm5oQK uUs4jm5ypJ3n2zmNI2qcV3OBHlp8ICqatag3PyXQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730553AbgIGQZR (ORCPT ); Mon, 7 Sep 2020 12:25:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:32814 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730333AbgIGQMn (ORCPT ); Mon, 7 Sep 2020 12:12:43 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 18BEF207DE; Mon, 7 Sep 2020 16:12:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495163; bh=oQutU7eoT4DFfkecRuD/WmWdYMLZJlQ9/R4YqBUhAgU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SHYWhNyqz/iY+3timtuojVIEZ3CNEAJ+Fr/n8RMz5apc1CZua9Lz/KBPEpWoebFc+ wqfw7dVGNSrjBREcVT7le9oozJm/yf9NOkC3Q8aCVrwq2/zxX2eXAqymf4ddfPDUAY 49a7cLoKYppZ3Wm0viNQsmDEMfAN10/9l+TW4jjw= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?q?Pawe=C5=82_Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Cc: stable@vger.kernel.org Subject: [PATCH 04/25] ARM: dts: s5pv210: fix pinctrl property of "vibrator-en" regulator in Aries Date: Mon, 7 Sep 2020 18:11:20 +0200 Message-Id: <20200907161141.31034-5-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Fix typo in pinctrl property of "vibrator-en" fixed regulator in Aries family of boards. The error caused lack of pin configuration for the GPIO used in vibrator. Fixes: 04568cb58a43 ("ARM: dts: s5pv210: Disable pull for vibrator enable GPIO on Aries boards") Cc: Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-aries.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/s5pv210-aries.dtsi b/arch/arm/boot/dts/s5pv210-aries.dtsi index a3f83f668ce1..6ba23562da46 100644 --- a/arch/arm/boot/dts/s5pv210-aries.dtsi +++ b/arch/arm/boot/dts/s5pv210-aries.dtsi @@ -59,7 +59,7 @@ gpio = <&gpj1 1 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; - pinctr-0 = <&vibrator_ena>; + pinctrl-0 = <&vibrator_ena>; }; touchkey_vdd: regulator-fixed-1 { From patchwork Mon Sep 7 16:11:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11761519 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D231A59D for ; Mon, 7 Sep 2020 16:25:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B8D47217A0 for ; Mon, 7 Sep 2020 16:25:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495911; bh=Bhn6KRdaULsG9pRYzH7uLvigiJIcrPVsqWuLDn7U+iA=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=kIKxZjBWfHMY6ePoIplnLZnja+Z0IO0dzY5iRbYdegZD/A3DFX2f1vq5tuxfDucAX rhWLke+1M2FA7tma47tXZ8mEcjZw5AzeufW2iMB9jXuZG8irEDO1WLH/9E74FyGIWs FuwAIQ3RxPDMoEo1x/mFk3yCnKGbK/ViWR/HlMFI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729952AbgIGQZI (ORCPT ); Mon, 7 Sep 2020 12:25:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:32894 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730362AbgIGQMt (ORCPT ); Mon, 7 Sep 2020 12:12:49 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 5FE4C20757; Mon, 7 Sep 2020 16:12:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495169; bh=Bhn6KRdaULsG9pRYzH7uLvigiJIcrPVsqWuLDn7U+iA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=CefOpdUYTiwOy83U+E/kcagZtJuDYKM3vHG4RXnwsLRQKXLKzEfdM49z2gS2XzlIF 8GFAchq+g6UQcSx6eSYMSNlridJoSBjbflQgDK2echbPZEYMWPOgODBGgQDNGXRilG lTozH74eKjnnYv7+TRzUujQbXA4Z96ZZeNRqtCrA= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?q?Pawe=C5=82_Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [RFT 05/25] ARM: dts: s5pv210: remove DMA controller bus node name to fix dtschema warnings Date: Mon, 7 Sep 2020 18:11:21 +0200 Message-Id: <20200907161141.31034-6-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org There is no need to keep DMA controller nodes under AMBA bus node. Remove the "amba" node to fix dtschema warnings like: amba: $nodename:0: 'amba' does not match '^([a-z][a-z0-9\\-]+-bus|bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' Signed-off-by: Krzysztof Kozlowski Tested-by: Jonathan Bakker --- arch/arm/boot/dts/s5pv210.dtsi | 49 +++++++++++++++------------------- 1 file changed, 21 insertions(+), 28 deletions(-) diff --git a/arch/arm/boot/dts/s5pv210.dtsi b/arch/arm/boot/dts/s5pv210.dtsi index 1b0ee884e91d..84e4447931de 100644 --- a/arch/arm/boot/dts/s5pv210.dtsi +++ b/arch/arm/boot/dts/s5pv210.dtsi @@ -128,35 +128,28 @@ }; }; - amba { - #address-cells = <1>; - #size-cells = <1>; - compatible = "simple-bus"; - ranges; - - pdma0: dma@e0900000 { - compatible = "arm,pl330", "arm,primecell"; - reg = <0xe0900000 0x1000>; - interrupt-parent = <&vic0>; - interrupts = <19>; - clocks = <&clocks CLK_PDMA0>; - clock-names = "apb_pclk"; - #dma-cells = <1>; - #dma-channels = <8>; - #dma-requests = <32>; - }; + pdma0: dma@e0900000 { + compatible = "arm,pl330", "arm,primecell"; + reg = <0xe0900000 0x1000>; + interrupt-parent = <&vic0>; + interrupts = <19>; + clocks = <&clocks CLK_PDMA0>; + clock-names = "apb_pclk"; + #dma-cells = <1>; + #dma-channels = <8>; + #dma-requests = <32>; + }; - pdma1: dma@e0a00000 { - compatible = "arm,pl330", "arm,primecell"; - reg = <0xe0a00000 0x1000>; - interrupt-parent = <&vic0>; - interrupts = <20>; - clocks = <&clocks CLK_PDMA1>; - clock-names = "apb_pclk"; - #dma-cells = <1>; - #dma-channels = <8>; - #dma-requests = <32>; - }; + pdma1: dma@e0a00000 { + compatible = "arm,pl330", "arm,primecell"; + reg = <0xe0a00000 0x1000>; + interrupt-parent = <&vic0>; + interrupts = <20>; + clocks = <&clocks CLK_PDMA1>; + clock-names = "apb_pclk"; + #dma-cells = <1>; + #dma-channels = <8>; + #dma-requests = <32>; }; adc: adc@e1700000 { From patchwork Mon Sep 7 16:11:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11761505 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8DBBB13B1 for ; Mon, 7 Sep 2020 16:24:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 76836207DE for ; Mon, 7 Sep 2020 16:24:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495876; bh=qDYGfZ3RmLMzEdL/D31BVomLhzU4Yf8Q9HdCrkY+B7M=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=HpXB+2H5NjzAcB2w1dAoQ00lS6t6I9+wHVomlty+H52LAKbfYdYdkRDzPDo1EvP5h NsJmSSICqyII47aHNVatjKBDv9P/JuV+M84ttLIqDKZOrAZI+/t840IR10x2kQFuv9 0lezBmT1UYGab2MdyxbzpWsSbUPquaKZlbQ9gqqM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730378AbgIGQNH (ORCPT ); Mon, 7 Sep 2020 12:13:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:33014 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729937AbgIGQM4 (ORCPT ); Mon, 7 Sep 2020 12:12:56 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 C4039206E6; Mon, 7 Sep 2020 16:12:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495175; bh=qDYGfZ3RmLMzEdL/D31BVomLhzU4Yf8Q9HdCrkY+B7M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=2HlZYLGDXRkHSOlvKLZG4N1MYxjdg3kgFUw0boXQ+tQCu/eUQINFSNUd4gvaBfJml vQ6L90Mnr1qXXK/azSFdFF7j6CbTXhzC0BhYGaDIZ3Y0mVUtcRqRjt1z8GE8rjbEbu 3S3ak1/xNBLuZcOBZm8k3ASFgoZLMORPQTtLcF4Y= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?q?Pawe=C5=82_Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [RFT 06/25] ARM: dts: s5pv210: move fixed clocks under root node Date: Mon, 7 Sep 2020 18:11:22 +0200 Message-Id: <20200907161141.31034-7-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The fixed clocks are kept under dedicated 'external-clocks' node, thus a fake 'reg' was added. This is not correct with dtschema as fixed-clock binding does not have a 'reg' property. Moving fixed clocks out of 'soc' to root node fixes multiple dtbs_check warnings: external-clocks: $nodename:0: 'external-clocks' does not match '^([a-z][a-z0-9\\-]+-bus|bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' external-clocks: #size-cells:0:0: 0 is not one of [1, 2] external-clocks: oscillator@0:reg:0: [0] is too short external-clocks: oscillator@1:reg:0: [1] is too short external-clocks: 'ranges' is a required property oscillator@0: 'reg' does not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski Tested-by: Jonathan Bakker --- arch/arm/boot/dts/s5pv210.dtsi | 36 +++++++++++++--------------------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/arch/arm/boot/dts/s5pv210.dtsi b/arch/arm/boot/dts/s5pv210.dtsi index 84e4447931de..5c760a6d7955 100644 --- a/arch/arm/boot/dts/s5pv210.dtsi +++ b/arch/arm/boot/dts/s5pv210.dtsi @@ -52,34 +52,26 @@ }; }; + xxti: oscillator-0 { + compatible = "fixed-clock"; + clock-frequency = <0>; + clock-output-names = "xxti"; + #clock-cells = <0>; + }; + + xusbxti: oscillator-1 { + compatible = "fixed-clock"; + clock-frequency = <0>; + clock-output-names = "xusbxti"; + #clock-cells = <0>; + }; + soc { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>; ranges; - external-clocks { - compatible = "simple-bus"; - #address-cells = <1>; - #size-cells = <0>; - - xxti: oscillator@0 { - compatible = "fixed-clock"; - reg = <0>; - clock-frequency = <0>; - clock-output-names = "xxti"; - #clock-cells = <0>; - }; - - xusbxti: oscillator@1 { - compatible = "fixed-clock"; - reg = <1>; - clock-frequency = <0>; - clock-output-names = "xusbxti"; - #clock-cells = <0>; - }; - }; - onenand: onenand@b0600000 { compatible = "samsung,s5pv210-onenand"; reg = <0xb0600000 0x2000>, From patchwork Mon Sep 7 16:11:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11761515 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2167259D for ; Mon, 7 Sep 2020 16:24:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F35ED207DE for ; Mon, 7 Sep 2020 16:24:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495897; bh=GtKhtYeqhoFhkk4l+56UWm2i17dljFhd74agdK6C2Ew=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=DTeObOqAzvv4bzSNCGvZJdqEr87691uJzHMAZnlJ1LSqNC6PzjvFgoerCax5KM1ik jPaJ4xRZUAkRpPQO+DznfFLVgQZTTBVEozgsJcmFzjBE5VJTT/1639zUBq+MDCbebJ OgFguMQUHjtxvC5kyuV+l3tX3vu5rm2xinfBHmY0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729978AbgIGQYx (ORCPT ); Mon, 7 Sep 2020 12:24:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:33062 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729944AbgIGQNA (ORCPT ); Mon, 7 Sep 2020 12:13:00 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 4A91021789; Mon, 7 Sep 2020 16:12:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495180; bh=GtKhtYeqhoFhkk4l+56UWm2i17dljFhd74agdK6C2Ew=; h=From:To:Subject:Date:In-Reply-To:References:From; b=1HtKxRs+iHnNOY6R6jfZ5BjznDhzhDljRmRFsaA+oDVT7biI+paXbhSVSYefBbH5c RWilAlgGup9PDTDvQF4NK/kbiRwvTiMby/9/r43rcNd/ygb08hYwoCtEZwqCxI73ZM qiX3bUrZveJfPjCkY/XQ3Q39CjSsqM1f0oCdurnI= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?q?Pawe=C5=82_Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [RFT 07/25] ARM: dts: s5pv210: move PMU node out of clock controller Date: Mon, 7 Sep 2020 18:11:23 +0200 Message-Id: <20200907161141.31034-8-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The Power Management Unit (PMU) is a separate device which has little common with clock controller. Moving it to one level up (from clock controller child to SoC) allows to remove fake simple-bus compatible and dtbs_check warnings like: clock-controller@e0100000: $nodename:0: 'clock-controller@e0100000' does not match '^([a-z][a-z0-9\\-]+-bus|bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' Signed-off-by: Krzysztof Kozlowski Tested-by: Jonathan Bakker --- arch/arm/boot/dts/s5pv210.dtsi | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/s5pv210.dtsi b/arch/arm/boot/dts/s5pv210.dtsi index 5c760a6d7955..46221a5c8ce5 100644 --- a/arch/arm/boot/dts/s5pv210.dtsi +++ b/arch/arm/boot/dts/s5pv210.dtsi @@ -92,19 +92,16 @@ }; clocks: clock-controller@e0100000 { - compatible = "samsung,s5pv210-clock", "simple-bus"; + compatible = "samsung,s5pv210-clock"; reg = <0xe0100000 0x10000>; clock-names = "xxti", "xusbxti"; clocks = <&xxti>, <&xusbxti>; #clock-cells = <1>; - #address-cells = <1>; - #size-cells = <1>; - ranges; + }; - pmu_syscon: syscon@e0108000 { - compatible = "samsung-s5pv210-pmu", "syscon"; - reg = <0xe0108000 0x8000>; - }; + pmu_syscon: syscon@e0108000 { + compatible = "samsung-s5pv210-pmu", "syscon"; + reg = <0xe0108000 0x8000>; }; pinctrl0: pinctrl@e0200000 { From patchwork Mon Sep 7 16:11:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11761511 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9A23B13B1 for ; Mon, 7 Sep 2020 16:24:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 814D6207DE for ; Mon, 7 Sep 2020 16:24:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495879; bh=6BAvdsAwxvGCRAvXMQZS4I59p4w7Bxsi3s+90oUZ7fI=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=j3FyYK66EyryuoAkdLsedUiVXXgqrQ3YFgY6MgAn0wi76bEO339CIMwSpnBh5ROaR loTsSaiPlCPuxL5uuBRgTwv0b4g8poHWWMMg2nVfYY9m8+5WmSejvdE+ea+t6KvDhs DPVXOYL+LlvMpEvQ9Q9jkZN7Mzgw9gCtypupu43k= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730406AbgIGQYg (ORCPT ); Mon, 7 Sep 2020 12:24:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:33106 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730108AbgIGQNF (ORCPT ); Mon, 7 Sep 2020 12:13:05 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 7D91221897; Mon, 7 Sep 2020 16:13:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495183; bh=6BAvdsAwxvGCRAvXMQZS4I59p4w7Bxsi3s+90oUZ7fI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PS5JkxRIrPd7Ju/BO352HryeQX+LeigF4gQJqq6SFtYYyZXZ36gr5RJXAT/G7vt0a UDBSvv6GElJyGrS5tUECja051Sec+VgMzLdnRHohw9WmXVaaN0AoJe8OB7cWxhiWtu PLdVMMWorm+EgEZ8x5XXcde5sFb0Bvw9cBLzk5Vs= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?q?Pawe=C5=82_Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [RFT 08/25] ARM: dts: s5pv210: remove dedicated 'audio-subsystem' node Date: Mon, 7 Sep 2020 18:11:24 +0200 Message-Id: <20200907161141.31034-9-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The 'audio-subsystem' node is an artificial creation, not representing real hardware. The hardware is described by its nodes - AUDSS clock controller and I2S0. Remove the 'audio-subsystem' node along with its undocumented compatible to fix dtbs_check warnings like: audio-subsystem: $nodename:0: 'audio-subsystem' does not match '^([a-z][a-z0-9\\-]+-bus|bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' Signed-off-by: Krzysztof Kozlowski Tested-by: Jonathan Bakker --- arch/arm/boot/dts/s5pv210.dtsi | 65 +++++++++++++++------------------- 1 file changed, 29 insertions(+), 36 deletions(-) diff --git a/arch/arm/boot/dts/s5pv210.dtsi b/arch/arm/boot/dts/s5pv210.dtsi index 46221a5c8ce5..2871351ab907 100644 --- a/arch/arm/boot/dts/s5pv210.dtsi +++ b/arch/arm/boot/dts/s5pv210.dtsi @@ -223,43 +223,36 @@ status = "disabled"; }; - audio-subsystem { - compatible = "samsung,s5pv210-audss", "simple-bus"; - #address-cells = <1>; - #size-cells = <1>; - ranges; - - clk_audss: clock-controller@eee10000 { - compatible = "samsung,s5pv210-audss-clock"; - reg = <0xeee10000 0x1000>; - clock-names = "hclk", "xxti", - "fout_epll", - "sclk_audio0"; - clocks = <&clocks DOUT_HCLKP>, <&xxti>, - <&clocks FOUT_EPLL>, - <&clocks SCLK_AUDIO0>; - #clock-cells = <1>; - }; + clk_audss: clock-controller@eee10000 { + compatible = "samsung,s5pv210-audss-clock"; + reg = <0xeee10000 0x1000>; + clock-names = "hclk", "xxti", + "fout_epll", + "sclk_audio0"; + clocks = <&clocks DOUT_HCLKP>, <&xxti>, + <&clocks FOUT_EPLL>, + <&clocks SCLK_AUDIO0>; + #clock-cells = <1>; + }; - i2s0: i2s@eee30000 { - compatible = "samsung,s5pv210-i2s"; - reg = <0xeee30000 0x1000>; - interrupt-parent = <&vic2>; - interrupts = <16>; - dma-names = "rx", "tx", "tx-sec"; - dmas = <&pdma1 9>, <&pdma1 10>, <&pdma1 11>; - clock-names = "iis", - "i2s_opclk0", - "i2s_opclk1"; - clocks = <&clk_audss CLK_I2S>, - <&clk_audss CLK_I2S>, - <&clk_audss CLK_DOUT_AUD_BUS>; - samsung,idma-addr = <0xc0010000>; - pinctrl-names = "default"; - pinctrl-0 = <&i2s0_bus>; - #sound-dai-cells = <0>; - status = "disabled"; - }; + i2s0: i2s@eee30000 { + compatible = "samsung,s5pv210-i2s"; + reg = <0xeee30000 0x1000>; + interrupt-parent = <&vic2>; + interrupts = <16>; + dma-names = "rx", "tx", "tx-sec"; + dmas = <&pdma1 9>, <&pdma1 10>, <&pdma1 11>; + clock-names = "iis", + "i2s_opclk0", + "i2s_opclk1"; + clocks = <&clk_audss CLK_I2S>, + <&clk_audss CLK_I2S>, + <&clk_audss CLK_DOUT_AUD_BUS>; + samsung,idma-addr = <0xc0010000>; + pinctrl-names = "default"; + pinctrl-0 = <&i2s0_bus>; + #sound-dai-cells = <0>; + status = "disabled"; }; i2s1: i2s@e2100000 { From patchwork Mon Sep 7 16:11:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11761513 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 014F659D for ; Mon, 7 Sep 2020 16:24:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DB8AE20757 for ; Mon, 7 Sep 2020 16:24:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495893; bh=wpdHkjWJjuNWTZckDc5yTTA+zkcQQYAV5zyE6Evwps8=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=E5jqfe2OApjHAz6EwgbRVaWJPySRJsu8OdKQtIxqs35erFem8SwK8HaUtdv4ZrPq0 kvXokBkyo7mz5FiNHEsKNAl9rfiE4k+FVk6lgN0lCGqxacEhtJJKdm/7NTllmCen5B uNzq859irUOPzlAZbidepNH4qq/V5g+G2M/1NMD0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730352AbgIGQYf (ORCPT ); Mon, 7 Sep 2020 12:24:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:33164 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730004AbgIGQNH (ORCPT ); Mon, 7 Sep 2020 12:13:07 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 51A2321919; Mon, 7 Sep 2020 16:13:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495187; bh=wpdHkjWJjuNWTZckDc5yTTA+zkcQQYAV5zyE6Evwps8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TheR5lpMgTv+Xg8ocpJ4CTPM7Q79eP4d8ReEvNyh5YjFsqaQ9FWLyRzZGUXjZHyQJ TVOIKnsNj2hHZN+7uFTJFWOwLKy70ecYn3neIezmhtMEVG4C+Zz3pt/dkVPXPh1UGl rhQ/drqMntAmiPoBvCb9OOiYy5i83tBFMEK5uHdg= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?q?Pawe=C5=82_Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [RFT 09/25] ARM: dts: s5pv210: fix number of I2S DAI cells Date: Mon, 7 Sep 2020 18:11:25 +0200 Message-Id: <20200907161141.31034-10-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The bindings describe I2S DAI has 1 cells. This makes especially sense for i2s0 which registers two DAIs. Adjust the cells to fix dtbs_check warnings like: i2s@e2100000: #sound-dai-cells:0:0: 1 was expected Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-fascinate4g.dts | 2 +- arch/arm/boot/dts/s5pv210-galaxys.dts | 2 +- arch/arm/boot/dts/s5pv210.dtsi | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/s5pv210-fascinate4g.dts b/arch/arm/boot/dts/s5pv210-fascinate4g.dts index ca064359dd30..a6dc8a173af1 100644 --- a/arch/arm/boot/dts/s5pv210-fascinate4g.dts +++ b/arch/arm/boot/dts/s5pv210-fascinate4g.dts @@ -102,7 +102,7 @@ pinctrl-0 = <&headset_det &earpath_sel>; cpu { - sound-dai = <&i2s0>, <&bt_codec>; + sound-dai = <&i2s0 0>, <&bt_codec>; }; codec { diff --git a/arch/arm/boot/dts/s5pv210-galaxys.dts b/arch/arm/boot/dts/s5pv210-galaxys.dts index 560f830b6f6b..0eba06f56ac7 100644 --- a/arch/arm/boot/dts/s5pv210-galaxys.dts +++ b/arch/arm/boot/dts/s5pv210-galaxys.dts @@ -132,7 +132,7 @@ pinctrl-0 = <&headset_det &earpath_sel>; cpu { - sound-dai = <&i2s0>, <&bt_codec>; + sound-dai = <&i2s0 0>, <&bt_codec>; }; codec { diff --git a/arch/arm/boot/dts/s5pv210.dtsi b/arch/arm/boot/dts/s5pv210.dtsi index 2871351ab907..96e667ba1c3f 100644 --- a/arch/arm/boot/dts/s5pv210.dtsi +++ b/arch/arm/boot/dts/s5pv210.dtsi @@ -251,7 +251,7 @@ samsung,idma-addr = <0xc0010000>; pinctrl-names = "default"; pinctrl-0 = <&i2s0_bus>; - #sound-dai-cells = <0>; + #sound-dai-cells = <1>; status = "disabled"; }; @@ -266,7 +266,7 @@ clocks = <&clocks CLK_I2S1>, <&clocks SCLK_AUDIO1>; pinctrl-names = "default"; pinctrl-0 = <&i2s1_bus>; - #sound-dai-cells = <0>; + #sound-dai-cells = <1>; status = "disabled"; }; @@ -281,7 +281,7 @@ clocks = <&clocks CLK_I2S2>, <&clocks SCLK_AUDIO2>; pinctrl-names = "default"; pinctrl-0 = <&i2s2_bus>; - #sound-dai-cells = <0>; + #sound-dai-cells = <1>; status = "disabled"; }; From patchwork Mon Sep 7 16:11:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11761501 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A0BDD13B1 for ; Mon, 7 Sep 2020 16:24:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7C08D207DE for ; Mon, 7 Sep 2020 16:24:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495873; bh=IvIoj2K7TIRgwMp4PonToROYopW9M5mo7TeBE51xjo0=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=PbQCGStrYDxvs4VfJZk8BEHmLLVXsaEOYWMfa7yxVE2o/HYlLdodM/FPF5F5q/1ar 9jD6j40VwkHf1axYqjAj/Qj839mOjkw9cL0NQmCluV1tJ8vruBP4zlV4TjjJxeZl2t cxRA/cJfO4vuaVORk7+pNixhc7EL5RSoK9gBM6Yo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730560AbgIGQYV (ORCPT ); Mon, 7 Sep 2020 12:24:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:33208 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729924AbgIGQNK (ORCPT ); Mon, 7 Sep 2020 12:13:10 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 AE70221775; Mon, 7 Sep 2020 16:13:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495190; bh=IvIoj2K7TIRgwMp4PonToROYopW9M5mo7TeBE51xjo0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=nAA805Fqp3EYfc9xrjR3f18Q6EcfDrLkpSJ0h2oGbmmVqtFRrdA4GXxl0ndhqjxDs LiDEMZm+2eokreabKhc1ESbH/NZVLBv7Ih4ocMKXz2k3Gm06fRoHkuu2GU/R5+RDde T9K4fsf4K9f3Po0qyFcoQj/+XglB1tXFqqpMDUH8= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?q?Pawe=C5=82_Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [PATCH 10/25] ARM: dts: s5pv210: add RTC 32 KHz clock in Aquilla Date: Mon, 7 Sep 2020 18:11:26 +0200 Message-Id: <20200907161141.31034-11-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The S3C RTC requires 32768 Hz clock as input which is provided by PMIC. However there is no such clock provider but rather a regulator driver which registers the clock as a regulator. This is an old driver which will not be updated so add a workaround - a fixed-clock to fill missing clock phandle reference in S3C RTC. This fixes dtbs_check warnings: rtc@e2800000: clocks: [[2, 145]] is too short rtc@e2800000: clock-names: ['rtc'] is too short Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-aquila.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/s5pv210-aquila.dts b/arch/arm/boot/dts/s5pv210-aquila.dts index 14969b6529e8..eaeb0e921aaa 100644 --- a/arch/arm/boot/dts/s5pv210-aquila.dts +++ b/arch/arm/boot/dts/s5pv210-aquila.dts @@ -32,6 +32,13 @@ 0x40000000 0x18000000>; }; + pmic_ap_clk: clock-0 { + /* Workaround for missing clock on PMIC */ + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + }; + regulators { compatible = "simple-bus"; #address-cells = <1>; @@ -228,6 +235,11 @@ regulator-always-on; }; + ap32khz_reg: EN32KHz-AP { + regulator-name = "32KHz AP"; + regulator-always-on; + }; + vichg_reg: ENVICHG { regulator-name = "VICHG"; }; @@ -326,6 +338,11 @@ status = "okay"; }; +&rtc { + clocks = <&clocks CLK_RTC>, <&pmic_ap_clk>; + clock-names = "rtc", "rtc_src"; +}; + &sdhci0 { bus-width = <4>; non-removable; From patchwork Mon Sep 7 16:11:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11761387 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 767D213B1 for ; Mon, 7 Sep 2020 16:13:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 54BDC20757 for ; Mon, 7 Sep 2020 16:13:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495203; bh=INsnJaELqRYsET4RRsxOzKJWpIsKuNPsUd4VuZL+kig=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=HfjLVG7PYqpqs5uZ56oWoh0ZwQ6+acyzShPjOuDI20G0Dp46WANowNJGacIZ6AuAd AVcn3fh73jnfAJMiNUMBHsrWWsJSVesJIRxz3xiPJIiyo3PDZILkWP8ogBvRPVUZ42 I10tPwXzKnFv3MPYVLLcT5BL767Cw2w+dAQ1TPHA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730390AbgIGQNS (ORCPT ); Mon, 7 Sep 2020 12:13:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:33244 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730386AbgIGQNO (ORCPT ); Mon, 7 Sep 2020 12:13:14 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 0A703206E6; Mon, 7 Sep 2020 16:13:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495193; bh=INsnJaELqRYsET4RRsxOzKJWpIsKuNPsUd4VuZL+kig=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Z/xvc2E0pU0W7wifdwH6nXDDK8ZLaQVF/rtfD7l3/YbRIIv4MmQjtHbOq1pzT0vxg S3VFMWnUnNWGIJsMdsvlMyL81ZbDWE+ONNyxX1HXCnqttgNUzDX9gpj/uNgNXc3yOf 0I/Ce/wW1oqj/gjsaKhJcOpIpkjvCoHujfUXs1Xk= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?q?Pawe=C5=82_Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [PATCH 11/25] ARM: dts: s5pv210: add RTC 32 KHz clock in Aries family Date: Mon, 7 Sep 2020 18:11:27 +0200 Message-Id: <20200907161141.31034-12-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The S3C RTC requires 32768 Hz clock as input which is provided by PMIC. However there is no such clock provider but rather a regulator driver which registers the clock as a regulator. This is an old driver which will not be updated so add a workaround - a fixed-clock to fill missing clock phandle reference in S3C RTC. This fixes dtbs_check warnings: rtc@e2800000: clocks: [[2, 145]] is too short rtc@e2800000: clock-names: ['rtc'] is too short Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-aries.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/s5pv210-aries.dtsi b/arch/arm/boot/dts/s5pv210-aries.dtsi index 6ba23562da46..86c3b26fd21e 100644 --- a/arch/arm/boot/dts/s5pv210-aries.dtsi +++ b/arch/arm/boot/dts/s5pv210-aries.dtsi @@ -47,6 +47,13 @@ }; }; + pmic_ap_clk: clock-0 { + /* Workaround for missing clock on PMIC */ + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + }; + bt_codec: bt_sco { compatible = "linux,bt-sco"; #sound-dai-cells = <0>; @@ -825,6 +832,11 @@ samsung,pwm-outputs = <1>; }; +&rtc { + clocks = <&clocks CLK_RTC>, <&pmic_ap_clk>; + clock-names = "rtc", "rtc_src"; +}; + &sdhci1 { #address-cells = <1>; #size-cells = <0>; From patchwork Mon Sep 7 16:11:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11761497 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DD7C359D for ; Mon, 7 Sep 2020 16:24:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B701E20757 for ; Mon, 7 Sep 2020 16:24:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495860; bh=yx/xrKwi3d342OuVJ6+t5DVvoWKbXVtqclPlrgpbk3Y=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=QHoXwm4TScqM19K6xmwLdh4yix7IfbB+pGPqYUZumwda7karkaLUfSXK+H3BNtCZp ZFOWwe2o2v0aAoTqdgmvIyQqNJ9LO7rOEO4qN/VOP7BRJnxkETyBzpRK0UjZ4UOxXe nAEXJur+eXlZFMkGciaM+bLNhsik4lQCd62hbv24= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730401AbgIGQYB (ORCPT ); Mon, 7 Sep 2020 12:24:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:33292 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729937AbgIGQNS (ORCPT ); Mon, 7 Sep 2020 12:13:18 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 39503207DE; Mon, 7 Sep 2020 16:13:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495197; bh=yx/xrKwi3d342OuVJ6+t5DVvoWKbXVtqclPlrgpbk3Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AvZnRTKZawYE3HQooBh8Fj2d4hN/5dCV9Kt4ZgIPQouJdeq/+bazDiPaEgGeCW4V2 ZAPxuKbRNKpo88YfNvxNxs0DB2HO8xoKg2K9Yvv9rJ/EMc0EeuadiOKjDZxKkZJb3v EoDlBPgID3PfgjjKpnCeqwOFOa7Y0cgpEF6mPfNc= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?q?Pawe=C5=82_Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [PATCH 12/25] ARM: dts: s5pv210: add RTC 32 KHz clock in Goni Date: Mon, 7 Sep 2020 18:11:28 +0200 Message-Id: <20200907161141.31034-13-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The S3C RTC requires 32768 Hz clock as input which is provided by PMIC. However there is no such clock provider but rather a regulator driver which registers the clock as a regulator. This is an old driver which will not be updated so add a workaround - a fixed-clock to fill missing clock phandle reference in S3C RTC. This fixes dtbs_check warnings: rtc@e2800000: clocks: [[2, 145]] is too short rtc@e2800000: clock-names: ['rtc'] is too short Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-goni.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/s5pv210-goni.dts b/arch/arm/boot/dts/s5pv210-goni.dts index fbbd93707404..c8714bf0b6e4 100644 --- a/arch/arm/boot/dts/s5pv210-goni.dts +++ b/arch/arm/boot/dts/s5pv210-goni.dts @@ -33,6 +33,13 @@ 0x50000000 0x08000000>; }; + pmic_ap_clk: clock-0 { + /* Workaround for missing clock on PMIC */ + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + }; + regulators { compatible = "simple-bus"; #address-cells = <1>; @@ -224,6 +231,11 @@ regulator-max-microvolt = <1200000>; regulator-always-on; }; + + ap32khz_reg: EN32KHz-AP { + regulator-name = "32KHz AP"; + regulator-always-on; + }; }; }; }; @@ -308,6 +320,11 @@ status = "okay"; }; +&rtc { + clocks = <&clocks CLK_RTC>, <&pmic_ap_clk>; + clock-names = "rtc", "rtc_src"; +}; + &sdhci0 { bus-width = <4>; non-removable; From patchwork Mon Sep 7 16:11:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11761487 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C4CAE59D for ; Mon, 7 Sep 2020 16:23:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A297120757 for ; Mon, 7 Sep 2020 16:23:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495824; bh=ejtq/VIVsktLn4Dgw4vy86y+KtXeh8BqyiiI41C0oYM=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=1guXoCHQuOjkq9y4N6XOeVSmb4OZGp0cRxMEFRf1jR02hzh0bQEE74RXOEHYvTPvP EdsPh4Eifg12OPcwzLzopbtAkKCLxPSz5n26CdMNWfyDu/eEXXoTjR0lEZrO0Fs/kV mQjfCeZLMUeQ6h1mFD+hExx3RjCYY95uwgyr1OQE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730470AbgIGQV4 (ORCPT ); Mon, 7 Sep 2020 12:21:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:33378 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730389AbgIGQNV (ORCPT ); Mon, 7 Sep 2020 12:13:21 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 DEDE921897; Mon, 7 Sep 2020 16:13:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495201; bh=ejtq/VIVsktLn4Dgw4vy86y+KtXeh8BqyiiI41C0oYM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=nNkR14erhjM+1VUXixXRp1KJe6Zdmr2ez4f0PwcJ4p8eEzRNgNJ6DjxDty7fxYr+l 8fMvogRLvor3RRwwLPnT8HOvXMOTIYpMGsB37OvspsErCVf788XlVeXWIDYezWyeKm 0/5E7+5HVT2HJdrjsMXM7xpv07bIXaLPLVml5rjA= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?q?Pawe=C5=82_Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [PATCH 13/25] ARM: dts: s5pv210: add RTC 32 KHz clock in SMDKC110 Date: Mon, 7 Sep 2020 18:11:29 +0200 Message-Id: <20200907161141.31034-14-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The S3C RTC requires 32768 Hz clock as input which is provided by PMIC. However the PMIC is not described in DTS at all so at least add a workaround to model its clock with a fixed-clock. This fixes dtbs_check warnings: rtc@e2800000: clocks: [[2, 145]] is too short rtc@e2800000: clock-names: ['rtc'] is too short Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-smdkc110.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/s5pv210-smdkc110.dts b/arch/arm/boot/dts/s5pv210-smdkc110.dts index e5aec6c526fb..0c623b78af72 100644 --- a/arch/arm/boot/dts/s5pv210-smdkc110.dts +++ b/arch/arm/boot/dts/s5pv210-smdkc110.dts @@ -30,6 +30,13 @@ device_type = "memory"; reg = <0x20000000 0x20000000>; }; + + pmic_ap_clk: clock-0 { + /* Workaround for missing PMIC and its clock */ + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + }; }; &xusbxti { @@ -54,6 +61,8 @@ &rtc { status = "okay"; + clocks = <&clocks CLK_RTC>, <&pmic_ap_clk>; + clock-names = "rtc", "rtc_src"; }; &i2c0 { From patchwork Mon Sep 7 16:11:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11761393 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4931159D for ; Mon, 7 Sep 2020 16:13:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 275372177B for ; Mon, 7 Sep 2020 16:13:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495221; bh=hCa1lfqQh5Q/rKTvpN58exv+OgW3HLbegrw+Jx02Gwk=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=Ig0dGGisKXZM5X4xEY9B+JKVUv0683nsoDUmXDnXhnw1s86XJCGgXwr0wyUcLUnxc CG1niiTd4cw4fxdIznAZqcZxDu/ZO2T6gh32Std1PWWg9ahHtw2N98CYkTkzF940kf c4dYqwLnI5q0di58pfIniql88v7BqJsvmLWrhfro= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730409AbgIGQNk (ORCPT ); Mon, 7 Sep 2020 12:13:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:33540 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730318AbgIGQN3 (ORCPT ); Mon, 7 Sep 2020 12:13:29 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 8245A21919; Mon, 7 Sep 2020 16:13:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495208; bh=hCa1lfqQh5Q/rKTvpN58exv+OgW3HLbegrw+Jx02Gwk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=11vf3Va/Vc9DRGOMYZamRit9H9IEaPFZlD4LAQsKbOuFnIgs5e3GtwewKW1I2oeKQ Rv1+ghFjyP0D0KoS1Nh6hWQQkny+TSvbF+7I929kpmq7paymYBltUWHIJYWoTfPDYZ o7meOrUnNo8D2v0hoBc360jr9zQY0BXQj10xehOU= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?q?Pawe=C5=82_Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [PATCH 14/25] ARM: dts: s5pv210: add RTC 32 KHz clock in SMDKV210 Date: Mon, 7 Sep 2020 18:11:30 +0200 Message-Id: <20200907161141.31034-15-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The S3C RTC requires 32768 Hz clock as input which is provided by PMIC. However the PMIC is not described in DTS at all so at least add a workaround to model its clock with a fixed-clock. This fixes dtbs_check warnings: rtc@e2800000: clocks: [[2, 145]] is too short rtc@e2800000: clock-names: ['rtc'] is too short Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-smdkv210.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/s5pv210-smdkv210.dts b/arch/arm/boot/dts/s5pv210-smdkv210.dts index 84b38f185199..1f20622da719 100644 --- a/arch/arm/boot/dts/s5pv210-smdkv210.dts +++ b/arch/arm/boot/dts/s5pv210-smdkv210.dts @@ -31,6 +31,13 @@ reg = <0x20000000 0x40000000>; }; + pmic_ap_clk: clock-0 { + /* Workaround for missing PMIC and its clock */ + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + }; + ethernet@18000000 { compatible = "davicom,dm9000"; reg = <0xA8000000 0x2 0xA8000002 0x2>; @@ -147,6 +154,8 @@ &rtc { status = "okay"; + clocks = <&clocks CLK_RTC>, <&pmic_ap_clk>; + clock-names = "rtc", "rtc_src"; }; &sdhci0 { From patchwork Mon Sep 7 16:11:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11761471 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4BE7459D for ; Mon, 7 Sep 2020 16:21:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2965B207DE for ; Mon, 7 Sep 2020 16:21:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495703; bh=qgXqI4frisFwx8QzGcIa8tBsjc+jjvV/N85jzzXwX90=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=dUle528Izntbb3rgm30PPNBuNvin1AwHDKb2LQBGmfk/zTOOrHhWvJLm02EH/Vt9v B1ZASwc4jr4vyluBbf8qU79M8c5yUP0Mt7u0j7m96joCX4IBDuWhYevHgvkA75Khpq 1gtArR6Y+AraVhIqvKPzxutCxxs9iq+jVRB2umzY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730406AbgIGQNj (ORCPT ); Mon, 7 Sep 2020 12:13:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:33626 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729934AbgIGQNc (ORCPT ); Mon, 7 Sep 2020 12:13:32 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 A70CC20757; Mon, 7 Sep 2020 16:13:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495211; bh=qgXqI4frisFwx8QzGcIa8tBsjc+jjvV/N85jzzXwX90=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lhlP2atmwmPguVgSXCI4YIVL6tyzpJrfhphhFctmVThZToRl2T1f148DWmY1M5DQ0 lFOZ8f33+AhCk+PyHsR8HjoZZAIA92ghniWQ/nCufS+FPKNu0vuygIwsO+e3tPpgC2 44Z8Nnv673y51nyIV5Xlf0TGA1c22EEKDL7eYGVU= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?q?Pawe=C5=82_Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [PATCH 15/25] ARM: dts: s5pv210: add RTC 32 KHz clock in Torbreck Date: Mon, 7 Sep 2020 18:11:31 +0200 Message-Id: <20200907161141.31034-16-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The S3C RTC requires 32768 Hz clock as input which is provided by PMIC. However the PMIC is not described in DTS at all so at least add a workaround to model its clock with a fixed-clock. This fixes dtbs_check warnings: rtc@e2800000: clocks: [[2, 145]] is too short rtc@e2800000: clock-names: ['rtc'] is too short Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-torbreck.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/s5pv210-torbreck.dts b/arch/arm/boot/dts/s5pv210-torbreck.dts index cd25e72ccd84..e18259737684 100644 --- a/arch/arm/boot/dts/s5pv210-torbreck.dts +++ b/arch/arm/boot/dts/s5pv210-torbreck.dts @@ -30,6 +30,13 @@ device_type = "memory"; reg = <0x20000000 0x20000000>; }; + + pmic_ap_clk: clock-0 { + /* Workaround for missing PMIC and its clock */ + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + }; }; &xusbxti { @@ -54,6 +61,8 @@ &rtc { status = "okay"; + clocks = <&clocks CLK_RTC>, <&pmic_ap_clk>; + clock-names = "rtc", "rtc_src"; }; &sdhci0 { From patchwork Mon Sep 7 16:11:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11761475 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B75981599 for ; Mon, 7 Sep 2020 16:21:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9467F2080A for ; Mon, 7 Sep 2020 16:21:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495705; bh=mPBu7hsXZsbqx8IHuhKWUMJOlvFkEEFzPFZCMcnLurw=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=LRlD7Rv7KT+gBMWQ9a31qBUbrGl67+dMKnzr4KXd+Bmtb/rtf7ZyOaSFDvG/VKX7z U1bFkVWxpsLc1OxKl/BwhsNgMQkw6R/4KvG7jtl37C9jlCZNTi21r2j0Xmw0yAW6TX SP+Y1VSHf8aUle+zfr9dRBduKorRxMLaJS4P2AXA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730386AbgIGQNi (ORCPT ); Mon, 7 Sep 2020 12:13:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:33672 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729814AbgIGQNf (ORCPT ); Mon, 7 Sep 2020 12:13:35 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 2F3EB206E6; Mon, 7 Sep 2020 16:13:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495215; bh=mPBu7hsXZsbqx8IHuhKWUMJOlvFkEEFzPFZCMcnLurw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wCaOj2h9hpMr9boPIVg6KkQvdLfyS8BGRA+fXMLu6yFE9pKmBpG2KV+ONyCz4bFh8 HvYqtUahZJjly+s1wzupb/JyO202CNQ2fnm5xUJhdQlhIXXRYqnCUxkoE9x1RW+NQ6 mBwtLolELwY5wxBKZjxAU48b1JSeEsdN4uW4MIIs= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?q?Pawe=C5=82_Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [PATCH 16/25] ARM: dts: s5pv210: use defines for GPIO flags in Aquila Date: Mon, 7 Sep 2020 18:11:32 +0200 Message-Id: <20200907161141.31034-17-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Replace hard-coded flags with defines for readability. No functional change. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-aquila.dts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/s5pv210-aquila.dts b/arch/arm/boot/dts/s5pv210-aquila.dts index eaeb0e921aaa..25d4ab4a52c5 100644 --- a/arch/arm/boot/dts/s5pv210-aquila.dts +++ b/arch/arm/boot/dts/s5pv210-aquila.dts @@ -11,6 +11,7 @@ */ /dts-v1/; +#include #include #include "s5pv210.dtsi" @@ -50,7 +51,7 @@ regulator-name = "V_TF_2.8V"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; - gpio = <&mp05 4 0>; + gpio = <&mp05 4 GPIO_ACTIVE_HIGH>; enable-active-high; }; @@ -73,8 +74,8 @@ i2c_pmic: i2c-pmic { compatible = "i2c-gpio"; - gpios = <&gpj4 0 0>, /* sda */ - <&gpj4 3 0>; /* scl */ + gpios = <&gpj4 0 GPIO_ACTIVE_HIGH>, /* sda */ + <&gpj4 3 GPIO_ACTIVE_HIGH>; /* scl */ i2c-gpio,delay-us = <2>; /* ~100 kHz */ #address-cells = <1>; #size-cells = <0>; @@ -84,13 +85,13 @@ reg = <0x66>; max8998,pmic-buck1-default-dvs-idx = <0>; - max8998,pmic-buck1-dvs-gpios = <&gph0 3 0>, - <&gph0 4 0>; + max8998,pmic-buck1-dvs-gpios = <&gph0 3 GPIO_ACTIVE_HIGH>, + <&gph0 4 GPIO_ACTIVE_HIGH>; max8998,pmic-buck1-dvs-voltage = <1200000>, <1200000>, <1200000>, <1200000>; max8998,pmic-buck2-default-dvs-idx = <0>; - max8998,pmic-buck2-dvs-gpio = <&gph0 5 0>; + max8998,pmic-buck2-dvs-gpio = <&gph0 5 GPIO_ACTIVE_HIGH>; max8998,pmic-buck2-dvs-voltage = <1200000>, <1200000>; regulators { From patchwork Mon Sep 7 16:11:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11761479 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 565721709 for ; Mon, 7 Sep 2020 16:21:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3D95D21789 for ; Mon, 7 Sep 2020 16:21:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495706; bh=7bTN0f0lE7QfBgCe+mOlPQ+E9zInglLyP5r7Xld6UhA=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=aMhagwo5LfDh4LulVV7Dkffs7rQsfyMtTIGC/l79Rw61h8x1wppdg+H50lCjOLuDt DcDmOnOu/OIfqGjWWHk7kr39GFC0gYC5z27zocWI90Htx0mrtnnhfVEbM/DpfZRkmR Z80LFbSMfT3LZ4UkFz4whFInKb6PR5hJT185BNMg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730292AbgIGQVn (ORCPT ); Mon, 7 Sep 2020 12:21:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:33708 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730400AbgIGQNi (ORCPT ); Mon, 7 Sep 2020 12:13:38 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 6A057207DE; Mon, 7 Sep 2020 16:13:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495218; bh=7bTN0f0lE7QfBgCe+mOlPQ+E9zInglLyP5r7Xld6UhA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=JClYdcgN2y22FrpuQHSvBdXx3L0S6mI2Dz0D9YkIrYvStx0Yv9gP5p7yurTP2Xzkd uOfAC6yQ5TIQz3hBBKnTVtzx2sbIIfwiaNlhB4dpFH1+PJQO1kmb3zGgaXuNv/hGu4 ilhvHA6Zm1yGB+Cq/OhHSiTxdXdPsjzMcS4uye3U= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?q?Pawe=C5=82_Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [PATCH 17/25] ARM: dts: s5pv210: use defines for GPIO flags in Goni Date: Mon, 7 Sep 2020 18:11:33 +0200 Message-Id: <20200907161141.31034-18-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Replace hard-coded flags with defines for readability. No functional change. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-goni.dts | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/s5pv210-goni.dts b/arch/arm/boot/dts/s5pv210-goni.dts index c8714bf0b6e4..77d1c5144afd 100644 --- a/arch/arm/boot/dts/s5pv210-goni.dts +++ b/arch/arm/boot/dts/s5pv210-goni.dts @@ -11,6 +11,7 @@ */ /dts-v1/; +#include #include #include "s5pv210.dtsi" @@ -51,7 +52,7 @@ regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; reg = <0>; - gpio = <&mp05 4 0>; + gpio = <&mp05 4 GPIO_ACTIVE_HIGH>; enable-active-high; }; @@ -77,15 +78,15 @@ regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; reg = <3>; - gpio = <&gpj1 3 0>; + gpio = <&gpj1 3 GPIO_ACTIVE_HIGH>; enable-active-high; }; }; i2c_pmic: i2c-pmic { compatible = "i2c-gpio"; - gpios = <&gpj4 0 0>, /* sda */ - <&gpj4 3 0>; /* scl */ + gpios = <&gpj4 0 GPIO_ACTIVE_HIGH>, /* sda */ + <&gpj4 3 GPIO_ACTIVE_HIGH>; /* scl */ i2c-gpio,delay-us = <2>; /* ~100 kHz */ #address-cells = <1>; #size-cells = <0>; @@ -95,13 +96,13 @@ reg = <0x66>; max8998,pmic-buck1-default-dvs-idx = <0>; - max8998,pmic-buck1-dvs-gpios = <&gph0 3 0>, - <&gph0 4 0>; + max8998,pmic-buck1-dvs-gpios = <&gph0 3 GPIO_ACTIVE_HIGH>, + <&gph0 4 GPIO_ACTIVE_HIGH>; max8998,pmic-buck1-dvs-voltage = <1200000>, <1200000>, <1200000>, <1200000>; max8998,pmic-buck2-default-dvs-idx = <0>; - max8998,pmic-buck2-dvs-gpio = <&gph0 5 0>; + max8998,pmic-buck2-dvs-gpio = <&gph0 5 GPIO_ACTIVE_HIGH>; max8998,pmic-buck2-dvs-voltage = <1200000>, <1200000>; regulators { @@ -395,8 +396,8 @@ clock-frequency = <16000000>; clocks = <&camera 0>; clock-names = "mclk"; - nreset-gpios = <&gpb 2 0>; - nstby-gpios = <&gpb 0 0>; + nreset-gpios = <&gpb 2 GPIO_ACTIVE_HIGH>; + nstby-gpios = <&gpb 0 GPIO_ACTIVE_HIGH>; port { noon010pc30_ep: endpoint { From patchwork Mon Sep 7 16:11:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11761463 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 551CE13B1 for ; Mon, 7 Sep 2020 16:21:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2D16E207DE for ; Mon, 7 Sep 2020 16:21:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495699; bh=d6nxgR6+j5Zbg+AO77PXZlBaFeLEf/v+AR96N8SGLtY=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=a+S9cJDwyc9QJ/dEDKizmxg99P3MjfoCpzlBRn5AWdSc/4P+k6ZxTv7Bbzv50Hy1o vyBcHhHKi2hl9w5oVTOi2MajIhS2FJxFMfj3eR+n3awn6Yqt05v9DnKgyCKjLQeZcV /AhO7gFlgwl646v+gnQ2bBuDTv6of58c2UTbWl7c= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730412AbgIGQNp (ORCPT ); Mon, 7 Sep 2020 12:13:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:33784 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729814AbgIGQNm (ORCPT ); Mon, 7 Sep 2020 12:13:42 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 D9E0521556; Mon, 7 Sep 2020 16:13:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495222; bh=d6nxgR6+j5Zbg+AO77PXZlBaFeLEf/v+AR96N8SGLtY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wlKnIngE2WWDG6839i0blXgsE0TlBXqx138C9ZdkiD/Cz6DS292UAaPP1QMCpBiRc k3kJi32N4gxOigV+Ah2Bz5P/G5/KMyQnFL45sRkDwKQgh5tvCi3cJVEU0NMWWb7+Iw k0lPZhtEf95jRiU0nHUiNg8dA9IYo+wppUWb3Np0= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?q?Pawe=C5=82_Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [PATCH 18/25] ARM: dts: s5pv210: use defines for IRQ flags in SMDKV210 Date: Mon, 7 Sep 2020 18:11:34 +0200 Message-Id: <20200907161141.31034-19-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Replace hard-coded flags with defines for readability. No functional change. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-smdkv210.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/s5pv210-smdkv210.dts b/arch/arm/boot/dts/s5pv210-smdkv210.dts index 1f20622da719..1e1570d66d89 100644 --- a/arch/arm/boot/dts/s5pv210-smdkv210.dts +++ b/arch/arm/boot/dts/s5pv210-smdkv210.dts @@ -15,6 +15,7 @@ */ /dts-v1/; +#include #include #include "s5pv210.dtsi" @@ -42,7 +43,7 @@ compatible = "davicom,dm9000"; reg = <0xA8000000 0x2 0xA8000002 0x2>; interrupt-parent = <&gph1>; - interrupts = <1 4>; + interrupts = <1 IRQ_TYPE_LEVEL_HIGH>; local-mac-address = [00 00 de ad be ef]; davicom,no-eeprom; }; From patchwork Mon Sep 7 16:11:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11761439 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8859713B1 for ; Mon, 7 Sep 2020 16:19:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6FFA72080A for ; Mon, 7 Sep 2020 16:19:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495559; bh=XaZQTe1g93YjbbwMKI+XDVCFTgySS4Ksy5Om23OC0Sg=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=WBbIzNCtUBewYwsIxex1mL5hpGIkm54b9pQHqSB4puomiUpU367rANk+pirEDYY3R bYFl4ky0ObE1yqKz5MKp/kvaFiByPSOh+eA+DePlYJdw8pgapNnV+mtVbjxJME+3cP av0cLR+JYyyxzAK6IoLx8jRA71PGMZCiA2J26pRk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730432AbgIGQNw (ORCPT ); Mon, 7 Sep 2020 12:13:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:33824 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730422AbgIGQNs (ORCPT ); Mon, 7 Sep 2020 12:13:48 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 F05FA21775; Mon, 7 Sep 2020 16:13:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495225; bh=XaZQTe1g93YjbbwMKI+XDVCFTgySS4Ksy5Om23OC0Sg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cADlHFa1clb9r2CudarorQbJiQnfvy8IcyJTuV37YA6y1mAxT+rAm4gz+OWOUv0Lv 9+Z1xZtPk5tdhH8pY7JcoZOiAssfgP1mXbGt/qGsEIibtx2k42B0eJTEZT4B8d4gjg cDM2NpsUEhXBfmhPo0F2p0XxPan/kiuTVoNIk2h0= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?q?Pawe=C5=82_Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [PATCH 19/25] ARM: dts: s5pv210: use defines for IRQ flags in Goni Date: Mon, 7 Sep 2020 18:11:35 +0200 Message-Id: <20200907161141.31034-20-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Replace hard-coded flags with defines for readability. No functional change. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-goni.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/s5pv210-goni.dts b/arch/arm/boot/dts/s5pv210-goni.dts index 77d1c5144afd..20f1c2773805 100644 --- a/arch/arm/boot/dts/s5pv210-goni.dts +++ b/arch/arm/boot/dts/s5pv210-goni.dts @@ -12,6 +12,7 @@ /dts-v1/; #include +#include #include #include "s5pv210.dtsi" @@ -366,7 +367,7 @@ compatible = "atmel,maxtouch"; reg = <0x4a>; interrupt-parent = <&gpj0>; - interrupts = <5 2>; + interrupts = <5 IRQ_TYPE_EDGE_FALLING>; atmel,x-line = <17>; atmel,y-line = <11>; From patchwork Mon Sep 7 16:11:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11761447 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 74E2D13B1 for ; Mon, 7 Sep 2020 16:19:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5B37E207DE for ; Mon, 7 Sep 2020 16:19:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495580; bh=2r+P12MEW4n8TZv7IWA3L/5cznKkKx6Gr9KtqUPmiEk=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=wcTJ2lQXRd01car/FMfsLstLBtr+S/cYLcZighyaCUS/7Jbs9shrCT/zHeff8EluK vndjqseXX1MRodw83fFNdjEdxqcqKED59LYgDRD2ZIFwrPxpZ7MN0udQXBjhUUEhqP w15Te7OoDq4UUtMaUktJbe4EV9CkNMi8UTwGQiaQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730259AbgIGQTi (ORCPT ); Mon, 7 Sep 2020 12:19:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:33900 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730427AbgIGQNt (ORCPT ); Mon, 7 Sep 2020 12:13:49 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 06086217A0; Mon, 7 Sep 2020 16:13:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495228; bh=2r+P12MEW4n8TZv7IWA3L/5cznKkKx6Gr9KtqUPmiEk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oK+cr7fTgwPkYOEdgPxZMBnyzsrKXWDjUZ2s2Gz8eAdyX3WDPRMxcdVXWbYU+Q5Ub xNVqehm1Upzv5FOHtgfP4CcLU0xyB6DR/i/kDBUcLEc4IINL3a4zEDskzBiv2YFXhG kXc4KolRxMTZTXsr2+Xi7R3dTGYUf0ePCs/2Bx1M= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?q?Pawe=C5=82_Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [RFT 20/25] ARM: dts: s5pv210: move fixed regulators under root node in Aquila Date: Mon, 7 Sep 2020 18:11:36 +0200 Message-Id: <20200907161141.31034-21-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The fixed regulators are kept under dedicated "regulators" node but this causes multiple dtschema warnings: regulators: $nodename:0: 'regulators' does not match '^([a-z][a-z0-9\\-]+-bus|bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' regulators: #size-cells:0:0: 0 is not one of [1, 2] regulators: fixed-regulator@0:reg:0: [0] is too short regulators: fixed-regulator@1:reg:0: [1] is too short regulators: fixed-regulator@2:reg:0: [2] is too short Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-aquila.dts | 47 +++++++++++----------------- 1 file changed, 19 insertions(+), 28 deletions(-) diff --git a/arch/arm/boot/dts/s5pv210-aquila.dts b/arch/arm/boot/dts/s5pv210-aquila.dts index 25d4ab4a52c5..28e9e81bb2d1 100644 --- a/arch/arm/boot/dts/s5pv210-aquila.dts +++ b/arch/arm/boot/dts/s5pv210-aquila.dts @@ -40,36 +40,27 @@ clock-frequency = <32768>; }; - regulators { - compatible = "simple-bus"; - #address-cells = <1>; - #size-cells = <0>; - - vtf_reg: fixed-regulator@0 { - compatible = "regulator-fixed"; - reg = <0>; - regulator-name = "V_TF_2.8V"; - regulator-min-microvolt = <2800000>; - regulator-max-microvolt = <2800000>; - gpio = <&mp05 4 GPIO_ACTIVE_HIGH>; - enable-active-high; - }; + vtf_reg: regulator-0 { + compatible = "regulator-fixed"; + regulator-name = "V_TF_2.8V"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + gpio = <&mp05 4 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; - pda_reg: fixed-regulator@1 { - compatible = "regulator-fixed"; - regulator-name = "VCC_1.8V_PDA"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - reg = <1>; - }; + pda_reg: regulator-1 { + compatible = "regulator-fixed"; + regulator-name = "VCC_1.8V_PDA"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; - bat_reg: fixed-regulator@2 { - compatible = "regulator-fixed"; - regulator-name = "V_BAT"; - regulator-min-microvolt = <3700000>; - regulator-max-microvolt = <3700000>; - reg = <2>; - }; + bat_reg: regulator-2 { + compatible = "regulator-fixed"; + regulator-name = "V_BAT"; + regulator-min-microvolt = <3700000>; + regulator-max-microvolt = <3700000>; }; i2c_pmic: i2c-pmic { From patchwork Mon Sep 7 16:11:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11761441 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BDF281599 for ; Mon, 7 Sep 2020 16:19:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A5B562080A for ; Mon, 7 Sep 2020 16:19:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495559; bh=LCZiNPIu8jZhAFtcfPg9X65S8kNcPL3i2BZfvFXvaVM=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=Rcdf/d9yzI5koWdmt91hpQgqJDnfycairc1Ljo4PxcxE07Q8bObCQ+Ih9usKutCkS ccH0+nJmZ19QjRzyRB3s5iTBZcQo3ienhfPocVr26mUjCLcyJ24Xq/rIyZPhrZxZjp ODkq2dbMe1CAhYaX6iciJwVlfNQz4bNEzSAWjSAI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730321AbgIGQTS (ORCPT ); Mon, 7 Sep 2020 12:19:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:33922 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729986AbgIGQNw (ORCPT ); Mon, 7 Sep 2020 12:13:52 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 21C0921789; Mon, 7 Sep 2020 16:13:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495232; bh=LCZiNPIu8jZhAFtcfPg9X65S8kNcPL3i2BZfvFXvaVM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MpNx5OKX8ND25kEGqAv67cBNVnPCrNRD5idk6KCBbLRucUK8v6NwfjLaiItYc7f0R yWFxB1O6hVraOXJsqOsncVQAjr+K/UyRUc4UIRvzhmg/q5laLEja1dkjQagxVvmlxV p6uDmMsFLwLyYWAqilto+JEOA9DaW//5zSxuBbuo= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?q?Pawe=C5=82_Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [RFT 21/25] ARM: dts: s5pv210: move fixed regulators under root node in Goni Date: Mon, 7 Sep 2020 18:11:37 +0200 Message-Id: <20200907161141.31034-22-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The fixed regulators are kept under dedicated "regulators" node but this causes multiple dtschema warnings: regulators: $nodename:0: 'regulators' does not match '^([a-z][a-z0-9\\-]+-bus|bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' regulators: #size-cells:0:0: 0 is not one of [1, 2] regulators: fixed-regulator@0:reg:0: [0] is too short regulators: fixed-regulator@1:reg:0: [1] is too short regulators: fixed-regulator@2:reg:0: [2] is too short regulators: fixed-regulator@3:reg:0: [3] is too short Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-goni.dts | 64 +++++++++++++----------------- 1 file changed, 27 insertions(+), 37 deletions(-) diff --git a/arch/arm/boot/dts/s5pv210-goni.dts b/arch/arm/boot/dts/s5pv210-goni.dts index 20f1c2773805..eec6531e6ef8 100644 --- a/arch/arm/boot/dts/s5pv210-goni.dts +++ b/arch/arm/boot/dts/s5pv210-goni.dts @@ -42,46 +42,36 @@ clock-frequency = <32768>; }; - regulators { - compatible = "simple-bus"; - #address-cells = <1>; - #size-cells = <0>; - - vtf_reg: fixed-regulator@0 { - compatible = "regulator-fixed"; - regulator-name = "V_TF_2.8V"; - regulator-min-microvolt = <2800000>; - regulator-max-microvolt = <2800000>; - reg = <0>; - gpio = <&mp05 4 GPIO_ACTIVE_HIGH>; - enable-active-high; - }; + vtf_reg: regulator-0 { + compatible = "regulator-fixed"; + regulator-name = "V_TF_2.8V"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + gpio = <&mp05 4 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; - pda_reg: fixed-regulator@1 { - compatible = "regulator-fixed"; - regulator-name = "VCC_1.8V_PDA"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - reg = <1>; - }; + pda_reg: regulator-1 { + compatible = "regulator-fixed"; + regulator-name = "VCC_1.8V_PDA"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; - bat_reg: fixed-regulator@2 { - compatible = "regulator-fixed"; - regulator-name = "V_BAT"; - regulator-min-microvolt = <3700000>; - regulator-max-microvolt = <3700000>; - reg = <2>; - }; + bat_reg: regulator-2 { + compatible = "regulator-fixed"; + regulator-name = "V_BAT"; + regulator-min-microvolt = <3700000>; + regulator-max-microvolt = <3700000>; + }; - tsp_reg: fixed-regulator@3 { - compatible = "regulator-fixed"; - regulator-name = "TSP_VDD"; - regulator-min-microvolt = <2800000>; - regulator-max-microvolt = <2800000>; - reg = <3>; - gpio = <&gpj1 3 GPIO_ACTIVE_HIGH>; - enable-active-high; - }; + tsp_reg: regulator-3 { + compatible = "regulator-fixed"; + regulator-name = "TSP_VDD"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + gpio = <&gpj1 3 GPIO_ACTIVE_HIGH>; + enable-active-high; }; i2c_pmic: i2c-pmic { From patchwork Mon Sep 7 16:11:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11761431 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7EF2813B1 for ; Mon, 7 Sep 2020 16:18:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5B84C207DE for ; Mon, 7 Sep 2020 16:18:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495538; bh=lJTmDWXKg31GyIqyPqmh82OMpoVmcuqwnXsiJb+RucQ=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=B9m7Xu283T2sUeG26sWGVp0FKcEpYyocbS4XUElOZGPi1H31RF26XsoArjWR5Xjl+ CR0VnzeUv2E/+JWq7wsHm+cND9sRdpbM+DWBI6XW34xeH7OG7lErUnmt60CCarXwbR rxm5GUt6pgSgAWDHvMDXPS0TM2QBTSZ/EYeEA/uk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729952AbgIGQSy (ORCPT ); Mon, 7 Sep 2020 12:18:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:33966 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730321AbgIGQN4 (ORCPT ); Mon, 7 Sep 2020 12:13:56 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 78C0621897; Mon, 7 Sep 2020 16:13:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495235; bh=lJTmDWXKg31GyIqyPqmh82OMpoVmcuqwnXsiJb+RucQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=apbLCJlXZDFOcqmNdYWKAzYQ5IYHMZM0fzUr/YBo4a3tCRD9ELwNdyRu2pOZh1vmg PGXKryJQ5bXeTX23Z8mt93I/IOYHBsKxh+gsZ7z1XcmdKyWd8kWHxk+eQcH5hU52Fj GCRVfGx0ID0YL6dibhHWAaIw3bhpNRPBD3lKLQBo= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?q?Pawe=C5=82_Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [RFT 22/25] ARM: dts: s5pv210: replace deprecated "gpios" i2c-gpio property in Aquila Date: Mon, 7 Sep 2020 18:11:38 +0200 Message-Id: <20200907161141.31034-23-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org "gpios" property is deprecated. Update the Aquila DTS to fix dtbs_checks warnings like: i2c-pmic: 'sda-gpios' is a required property i2c-pmic: 'scl-gpios' is a required property Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-aquila.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/s5pv210-aquila.dts b/arch/arm/boot/dts/s5pv210-aquila.dts index 28e9e81bb2d1..8e57e5a1f0c5 100644 --- a/arch/arm/boot/dts/s5pv210-aquila.dts +++ b/arch/arm/boot/dts/s5pv210-aquila.dts @@ -65,8 +65,8 @@ i2c_pmic: i2c-pmic { compatible = "i2c-gpio"; - gpios = <&gpj4 0 GPIO_ACTIVE_HIGH>, /* sda */ - <&gpj4 3 GPIO_ACTIVE_HIGH>; /* scl */ + sda-gpios = <&gpj4 0 GPIO_ACTIVE_HIGH>; + scl-gpios = <&gpj4 3 GPIO_ACTIVE_HIGH>; i2c-gpio,delay-us = <2>; /* ~100 kHz */ #address-cells = <1>; #size-cells = <0>; From patchwork Mon Sep 7 16:11:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11761427 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9115159D for ; Mon, 7 Sep 2020 16:18:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7616C207DE for ; Mon, 7 Sep 2020 16:18:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495533; bh=jWL3HWcEEiNy/8rVC7of/uRNx5Tnyo1FPmlxmXCKRBs=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=PbH6K1jmoDNvh0yt9KuHampFa6OYVxtf/8sJvEPjxEUJAQVR6sCm/bjwsYHVlTNyi rBVitnEdLTtAIQ0mSMrbJWzENBzayv8+HWw7FtqAVAhtGWgNGNBUC997pKurPkJh9G T6P+iF5NfmP557Bea38YZt+Rv3AnEEZVHwdN9w14= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730447AbgIGQOE (ORCPT ); Mon, 7 Sep 2020 12:14:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:34004 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729893AbgIGQN7 (ORCPT ); Mon, 7 Sep 2020 12:13:59 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 1641D2177B; Mon, 7 Sep 2020 16:13:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495238; bh=jWL3HWcEEiNy/8rVC7of/uRNx5Tnyo1FPmlxmXCKRBs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iKLcR5zfkqvnazuCXr9yn7VqbcERxdWOIZBqIz9YdCR//HQh5G4biLwQe9jpFkztW jMEzjpnJlJ09LOpX92V8MZ6uxOQ7HXBuNvSglz/haWLZZiiesc1yIr5eUFpWP9ChEc Fi6sj66RzV9aDkequXlALLdESWA+dvlG3DOOZrKs= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?q?Pawe=C5=82_Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [RFT 23/25] ARM: dts: s5pv210: replace deprecated "gpios" i2c-gpio property in Goni Date: Mon, 7 Sep 2020 18:11:39 +0200 Message-Id: <20200907161141.31034-24-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org "gpios" property is deprecated. Update the Goni DTS to fix dtbs_checks warnings like: i2c-pmic: 'sda-gpios' is a required property i2c-pmic: 'scl-gpios' is a required property Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-goni.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/s5pv210-goni.dts b/arch/arm/boot/dts/s5pv210-goni.dts index eec6531e6ef8..ad8d5d2fa32d 100644 --- a/arch/arm/boot/dts/s5pv210-goni.dts +++ b/arch/arm/boot/dts/s5pv210-goni.dts @@ -76,8 +76,8 @@ i2c_pmic: i2c-pmic { compatible = "i2c-gpio"; - gpios = <&gpj4 0 GPIO_ACTIVE_HIGH>, /* sda */ - <&gpj4 3 GPIO_ACTIVE_HIGH>; /* scl */ + sda-gpios = <&gpj4 0 GPIO_ACTIVE_HIGH>; + scl-gpios = <&gpj4 3 GPIO_ACTIVE_HIGH>; i2c-gpio,delay-us = <2>; /* ~100 kHz */ #address-cells = <1>; #size-cells = <0>; From patchwork Mon Sep 7 16:11:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11761423 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C275759D for ; Mon, 7 Sep 2020 16:18:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A3CB32080A for ; Mon, 7 Sep 2020 16:18:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495532; bh=FvdcTxTqJSV8i1AoGBW4JbEg+c4jrac22rp1N0zL13c=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=YsKE3geZMLyxkNQg+xHHKQF0PRlW3AIMQQMypwElppS1JOKnMf3zaOvx59q92zMTk GmGDHNlmRMOsT5LoHou8AQ0cLTfYFwdZ5dMGna2GyiO2XYzi1QHatWnpBHv5/qL1W6 UgAXt/u4XMRQ04Du8jRrKgTiazLxbdpKHNo/Z0AI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730450AbgIGQOF (ORCPT ); Mon, 7 Sep 2020 12:14:05 -0400 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 S1729916AbgIGQOC (ORCPT ); Mon, 7 Sep 2020 12:14:02 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 2F8E8206E6; Mon, 7 Sep 2020 16:13:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495241; bh=FvdcTxTqJSV8i1AoGBW4JbEg+c4jrac22rp1N0zL13c=; h=From:To:Subject:Date:In-Reply-To:References:From; b=eFtiJjR1HcgO5wpmayaA/t8LIQDw5BSDdkGyRkZ6rWmwjvpQLkKMgv3ckFmNdnrDL 26hXfMqVjAZK6OPeE1FfK/kDTr8e4wVc4/qX/RLhgEwzLbtB16tMNxIaloiABJ7rBk uILe9GoqQRs2v727Sk2DGAN2bO9iXuEHo8qBxdok= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?q?Pawe=C5=82_Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [RFT 24/25] ARM: dts: s5pv210: align SPI GPIO node name with dtschema in Aries Date: Mon, 7 Sep 2020 18:11:40 +0200 Message-Id: <20200907161141.31034-25-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The device tree schema expects SPI controller to be named "spi", otherwise dtbs_check complain with a warning like: spi-gpio-0: $nodename:0: 'spi-gpio-0' does not match '^spi(@.*|-[0-9a-f])*$' Signed-off-by: Krzysztof Kozlowski Tested-by: Jonathan Bakker --- arch/arm/boot/dts/s5pv210-aries.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/s5pv210-aries.dtsi b/arch/arm/boot/dts/s5pv210-aries.dtsi index 86c3b26fd21e..bd4450dbdcb6 100644 --- a/arch/arm/boot/dts/s5pv210-aries.dtsi +++ b/arch/arm/boot/dts/s5pv210-aries.dtsi @@ -545,7 +545,7 @@ value = <0x5200>; }; - spi_lcd: spi-gpio-0 { + spi_lcd: spi-2 { compatible = "spi-gpio"; #address-cells = <1>; #size-cells = <0>; From patchwork Mon Sep 7 16:11:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11761417 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DA86459D for ; Mon, 7 Sep 2020 16:18:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C2F932080A for ; Mon, 7 Sep 2020 16:18:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495519; bh=bwtOi8QElP0mGjZhVUaaYJrre3PcACxIN1rrV3SxlNw=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=SoWyQmNCZeFLCzRer+bl+3L+0JYie9LA0+hgH0mInrMCFxY6GhOVCu1+3fejueZav Y85ZoN1+1kbbDO78UhMU8i7Kjpg0qF/tdrlbRjKFzjDycwd7f303nnYgTpSR1+MbO8 VLsR9xJQb9XPH2bcpO8++UEtTYncw+zrO/6HC8SE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730456AbgIGQOI (ORCPT ); Mon, 7 Sep 2020 12:14:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:34096 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730453AbgIGQOG (ORCPT ); Mon, 7 Sep 2020 12:14:06 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 2D1AB207DE; Mon, 7 Sep 2020 16:14:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495245; bh=bwtOi8QElP0mGjZhVUaaYJrre3PcACxIN1rrV3SxlNw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UYSZxr7VgfQX85+efnx0NAZinxygKy1kqfcI7NL163KkguKnH6Q6dd6fGPoc7+E0Z wxtyeFS25ChjYbXllL/KHWggeCnRQvDmF7P85PVn9/oUtIecD3rE+pknvEsLHJsstj R5STZXc7cq6FhMu0OvpuG97q4DvqJIDNW8EpzziY= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?q?Pawe=C5=82_Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [RFT 25/25] ARM: dts: s5pv210: align DMA channels with dtschema Date: Mon, 7 Sep 2020 18:11:41 +0200 Message-Id: <20200907161141.31034-26-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org dtschema expects DMA channels in specific order (tx, rx and tx-sec). The order actually should not matter because dma-names is used however let's make it aligned with dtschema to suppress warnings like: i2s@eee30000: dma-names: ['rx', 'tx', 'tx-sec'] is not valid under any of the given schemas Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/s5pv210.dtsi b/arch/arm/boot/dts/s5pv210.dtsi index 96e667ba1c3f..72fb9d9f7ba3 100644 --- a/arch/arm/boot/dts/s5pv210.dtsi +++ b/arch/arm/boot/dts/s5pv210.dtsi @@ -240,8 +240,8 @@ reg = <0xeee30000 0x1000>; interrupt-parent = <&vic2>; interrupts = <16>; - dma-names = "rx", "tx", "tx-sec"; - dmas = <&pdma1 9>, <&pdma1 10>, <&pdma1 11>; + dma-names = "tx", "rx", "tx-sec"; + dmas = <&pdma1 10>, <&pdma1 9>, <&pdma1 11>; clock-names = "iis", "i2s_opclk0", "i2s_opclk1"; @@ -260,8 +260,8 @@ reg = <0xe2100000 0x1000>; interrupt-parent = <&vic2>; interrupts = <17>; - dma-names = "rx", "tx"; - dmas = <&pdma1 12>, <&pdma1 13>; + dma-names = "tx", "rx"; + dmas = <&pdma1 13>, <&pdma1 12>; clock-names = "iis", "i2s_opclk0"; clocks = <&clocks CLK_I2S1>, <&clocks SCLK_AUDIO1>; pinctrl-names = "default"; @@ -275,8 +275,8 @@ reg = <0xe2a00000 0x1000>; interrupt-parent = <&vic2>; interrupts = <18>; - dma-names = "rx", "tx"; - dmas = <&pdma1 14>, <&pdma1 15>; + dma-names = "tx", "rx"; + dmas = <&pdma1 15>, <&pdma1 14>; clock-names = "iis", "i2s_opclk0"; clocks = <&clocks CLK_I2S2>, <&clocks SCLK_AUDIO2>; pinctrl-names = "default";