From patchwork Tue Sep 12 21:36:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13382194 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3001BEE3F37 for ; Tue, 12 Sep 2023 21:37:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=EBLeFJO8y3C/K5UeDmKTLN3e3GTb3fa43vARGjKfeYQ=; b=QfopqVgQ/qF/j3 WiwIodQa6s1Nug3YhakIvQvE/D+Yf6L/TY4jWIKquKcJiRlAEm7U6v2sGR3b3W4GRvn0D2otEkE5o ETG5GIcESJhEdBxoHXp5R7J8J5ADm7TRhOy5jGAAWfxlqwiNWLW5L3QnVachO4ONZBi0ApxGTjfyq YztogSFAK2LAq6NQZRIx+KyHD0YptVhRpdNJuwzGqflEz5qXhrbi8KQvuxFmvjRlmyCn/FrZ+MePf G6jHC2np6Db9l6ooLgBCk+oJ4J0vhvlo311OiWP8e0txscqA4wjNHXku3eYh567m/5zmUvGzck/Es 6BqiOUAHhx5rf1OxbUEA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgB45-0048iB-0r; Tue, 12 Sep 2023 21:36:57 +0000 Received: from mail-ot1-x32a.google.com ([2607:f8b0:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgB41-0048hR-1g for linux-arm-kernel@lists.infradead.org; Tue, 12 Sep 2023 21:36:55 +0000 Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-6bf106fb6a0so1048491a34.0 for ; Tue, 12 Sep 2023 14:36:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694554610; x=1695159410; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=2uvmAhAwA1OSdTMVxVAjpKN9xFUM356ZQVD0Yd7U7Ck=; b=G/2vuyLXuBtRfKC7IUxpgoD+rPD+BZu6w2RLP8JU7ZGONUPUDEtG3xm37mIypq8y0c 6aCVLc9h43KjfN3duIyWR7SpUo/taU3YM/eGU22DDVNVc6CTmM5LkgaDF/eWlnpxIZ4B fIatOstYye1kbGsp/V3qoSq1Jl4ux9s8bZaOdgXMSyUGu9tQPAChfDAme2/PkB43SAsX yypie5cjPB2IHvU81M9KpaEpC4Mk+r1Cs0GNMOeWiNjs59IkQ1tib7ZHqv5S3R0JlPtk bewew+6gAKo69uMpq5NkYSoouQUrUZZ5KscKiG8rCRH78ADQSTlPzdRwb4n0y/Me3pd+ 0T+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694554610; x=1695159410; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2uvmAhAwA1OSdTMVxVAjpKN9xFUM356ZQVD0Yd7U7Ck=; b=pNtg41kmW1QDNMnUgWmCgzI41OtwCb97IOWmQT0vZRQafm5kxglwgWQVRJVh5Mfypl 570gjiziE4aMGSPttGf3yUsGr7rw9tDhqN3efCjjmhq2VmQ5mbz76r6QowOBh5fwdlgk GDlTBezCb+hfyTCFN2nhCOm5bmnBHAZtTcY7W+a6I80xWxAt08flrFYuW+Jsk9P3bAHA OGFq1IixuFu4qX287YVqujU+OedjLtCIPk0tWXyEBsRynb3S2KJlo3gksVr6RA/r5/k3 SrmGgjyndfB04GqZIVDrxm/gGLLaX2QGiSlAquggsDdSYIz1KIJJShAr59lnLedQ52oV 80Sg== X-Gm-Message-State: AOJu0YzvuMHbXQ41YyqG4n1VwZ001CZ/VD1ZnuMIJv5T+RaQQcSQGeW7 Z/xSsl7eYkKmibAtdd7LTgI= X-Google-Smtp-Source: AGHT+IFxo6lCxwxq0TgqnVU6wLfG0HhwRjs8uOY5na14RV5SgzX3vmvHvS93s4g0c10UbQSY0Ms9rQ== X-Received: by 2002:a05:6808:1a19:b0:3a7:2eb4:ce04 with SMTP id bk25-20020a0568081a1900b003a72eb4ce04mr1139955oib.5.1694554610730; Tue, 12 Sep 2023 14:36:50 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:676a:5a77:75a8:efc8]) by smtp.gmail.com with ESMTPSA id bk17-20020a0568081a1100b003a84c946bd1sm4587909oib.55.2023.09.12.14.36.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 14:36:50 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: linux-arm-kernel@lists.infradead.org, Fabio Estevam Subject: [PATCH 1/2] ARM: dts: imx6ul-tx6ul: Use preferred i2c-gpios properties Date: Tue, 12 Sep 2023 18:36:44 -0300 Message-Id: <20230912213645.1803914-1-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230912_143653_556939_966D62E9 X-CRM114-Status: GOOD ( 11.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The 'gpios' property to describe the SDA and SCL GPIOs is considered deprecated according to i2c-gpio.yaml. Switch to the preferred 'sda-gpios' and 'scl-gpios' properties. Thsis fixes the following schema warnings: imx6ul-tx6ul-0011.dtb: i2c-gpio: 'sda-gpios' is a required property from schema $id: http://devicetree.org/schemas/i2c/i2c-gpio.yaml# imx6ul-tx6ul-0011.dtb: i2c-gpio: 'scl-gpios' is a required property from schema $id: http://devicetree.org/schemas/i2c/i2c-gpio.yaml# Signed-off-by: Fabio Estevam --- arch/arm/boot/dts/nxp/imx/imx6ul-tx6ul.dtsi | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/nxp/imx/imx6ul-tx6ul.dtsi b/arch/arm/boot/dts/nxp/imx/imx6ul-tx6ul.dtsi index 6bd90473050b..1db146ac1c17 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6ul-tx6ul.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6ul-tx6ul.dtsi @@ -114,10 +114,8 @@ i2c_gpio: i2c-gpio { #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c_gpio>; - gpios = < - &gpio5 1 GPIO_ACTIVE_HIGH /* SDA */ - &gpio5 0 GPIO_ACTIVE_HIGH /* SCL */ - >; + sda-gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>; + scl-gpios = <&gpio5 0 GPIO_ACTIVE_HIGH>; clock-frequency = <400000>; status = "okay"; From patchwork Tue Sep 12 21:36:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13382195 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C022FEE3F38 for ; Tue, 12 Sep 2023 21:37:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=emklEGYvWYX8JWtFTf0dRaFSYkqZv8SHzMQ4qq8Q9lE=; b=Pebw8/cPjoLBL0 mXvlFOYBsg/A2dP4E3pVVVf14rAlNbZx192rAbTK7xtiD8xXsGzSC3QAZYJxJ7/AtGP6M1S1nciLB oWw4ZjWn+zG1PCn8TtRWOyFqygqZT0PRn5O4qcSsB+fX0oo/SD38g8+6uTYJiYpk4U/vbfrptRwGW 2OkvT34K0Dhz7MqvAK2DiV1wcNgHTJ8fm0pxUV7AsW7xVy0Rqk8P83v4BOWEV5TWt3Ze9SiRYX3jx 9l+ruwusUVtns0d2qOgS+gKHxemip5QAQkPxl+nR5LiCOQLwQjQNvt/mdTvquGvcaxWviWnON6jKW Yncj5b0Phj1l8xXDs9xA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgB47-0048iZ-2o; Tue, 12 Sep 2023 21:36:59 +0000 Received: from mail-ot1-x333.google.com ([2607:f8b0:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgB42-0048hU-2H for linux-arm-kernel@lists.infradead.org; Tue, 12 Sep 2023 21:36:56 +0000 Received: by mail-ot1-x333.google.com with SMTP id 46e09a7af769-6c09f50ae00so400734a34.0 for ; Tue, 12 Sep 2023 14:36:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694554612; x=1695159412; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9uiDc9V1JNTaiKt3o4Fs+d07n/1mTmLw6jJYBQu4wZs=; b=RFo888Wodh2RXJRodOpxz2lriLATwdQVg65yzcKYOcA2IGSNTWZBMYTukk8HDOCvF/ +srrF6AakHp1ffN5fpPmT20rYPItOrncPwwCANhJgJhIzEJVIK+73UkRo47KeprkCS2E qAMHM70tFQY9aXRCSh8SWGgwjqdX9j7/O6SGZuCmFkvURK/7oZqsdG6muYlGydGD4LsA Mivb+b6tXrqLakYW3C7QQCZHpdY6Hiz9tMslPrIiFjDLRSKwkvfBCX7OI0gegon/j41m isPNSindGI4l1Nv031EmpLwb0dKzJ+gaMA8fDpCjImrUHfAButcZ9IOL+KDXkS8M5zul kTcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694554612; x=1695159412; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9uiDc9V1JNTaiKt3o4Fs+d07n/1mTmLw6jJYBQu4wZs=; b=iNEz2YY643PdA8fH9jfKUe4YIFyetaX1230dM/BGKShFSYK4KC7qxZ1UpVZBNCj6z6 Smm8+vPhgEHPr8BIyKCx6lxZzS76hL95gwhRN+NtxjA9gsUj2ZQcZ+zLB0Q1mSJFU+S9 KH8U7bOXCsZ3SYqQFnCqMN/uSdFJSi/WsqZyGGV/PMm0vV878mpt5nYprtLngDUe+a0w AccN3acF6gx4MDPgqWV5U3AC9f+m4Jl6U+cUUbXAv8GEOW+uU1aE5dORDgTi5kPL3xAJ yntO2a0/1i6QG1Hbw0hDfEvDJYV0DrERXT9n3qSY5MVQFi8Aag6Z4Wr/vxaz2or95GLq GWvg== X-Gm-Message-State: AOJu0Yxm5IwsH+vezYhh4pMq5RSvWj8EywITnxtGpbkRNkBb8nw45AoM xm8nGxsu3KCDtHq2yq328SonNHK0vAY= X-Google-Smtp-Source: AGHT+IHhZlUv9IhSH8V8R+27zqy11+Ji2jOnbNfTkgwbK3Fegwm41wr17LAXr/V2xVnjQXm/1GJ+Gw== X-Received: by 2002:a05:6808:218b:b0:3a1:d457:83b5 with SMTP id be11-20020a056808218b00b003a1d45783b5mr959551oib.3.1694554612573; Tue, 12 Sep 2023 14:36:52 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:676a:5a77:75a8:efc8]) by smtp.gmail.com with ESMTPSA id bk17-20020a0568081a1100b003a84c946bd1sm4587909oib.55.2023.09.12.14.36.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 14:36:52 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: linux-arm-kernel@lists.infradead.org, Fabio Estevam Subject: [PATCH 2/2] ARM: dts: imx51-zii-rdu1: Use preferred i2c-gpios properties Date: Tue, 12 Sep 2023 18:36:45 -0300 Message-Id: <20230912213645.1803914-2-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230912213645.1803914-1-festevam@gmail.com> References: <20230912213645.1803914-1-festevam@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230912_143654_741052_805757DD X-CRM114-Status: GOOD ( 13.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Fabio Estevam The 'gpios' property to describe the SDA and SCL GPIOs is considered deprecated according to i2c-gpio.yaml. Switch to the preferred 'sda-gpios' and 'scl-gpios' properties. Thsis fixes the following schema warnings: imx51-zii-rdu1.dtb: i2c-gpio: 'sda-gpios' is a required property from schema $id: http://devicetree.org/schemas/i2c/i2c-gpio.yaml# imx51-zii-rdu1.dtb: i2c-gpio: 'scl-gpios' is a required property from schema $id: http://devicetree.org/schemas/i2c/i2c-gpio.yaml# Signed-off-by: Fabio Estevam --- arch/arm/boot/dts/nxp/imx/imx51-zii-rdu1.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/nxp/imx/imx51-zii-rdu1.dts b/arch/arm/boot/dts/nxp/imx/imx51-zii-rdu1.dts index 5d4b29d76585..7cd17b43b4b2 100644 --- a/arch/arm/boot/dts/nxp/imx/imx51-zii-rdu1.dts +++ b/arch/arm/boot/dts/nxp/imx/imx51-zii-rdu1.dts @@ -119,8 +119,8 @@ i2c_gpio: i2c-gpio { compatible = "i2c-gpio"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_swi2c>; - gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>, /* sda */ - <&gpio3 4 GPIO_ACTIVE_HIGH>; /* scl */ + sda-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; + scl-gpios = <&gpio3 4 GPIO_ACTIVE_HIGH>; i2c-gpio,delay-us = <50>; status = "okay";