From patchwork Tue Sep 12 21:38:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13382199 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 35280EE3F37 for ; Tue, 12 Sep 2023 21:39:18 +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=eh6V6RDzrNCYK3H7ENpypl4aNs5fiPXX5zPknQOkeaM=; b=otpvi72IsBWMWt 2hUNfPwb+FFDFpJVIGgGN/JiExtueWs1psuuLQtLzY4CsqhGJjsMweRdHwRVU/WoedSdyMh00zRpe KmIe5e6Fez9yNLCMiC0jNm/xk/X0ds4hUHsOI9puJUE9N+c3BixkAHGZhWT+wy8wpr/4B+CtfAKhM kIO4nvdHDYz01MJa6jrzmXEfg8G1wYuiBmlkVu8nH6/w6De1r6YTtUqDgl/Kb9sqjr7HJcypKo2Se jwYxYkDerg0oWJaSfcyVahC81XbEMrc5EWD5gsm4FwHDGiTlqZmDryOKN5tbMOWDWkBVGlxg21d2Q GqC4Di3t+p1kIyGzM4Lw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgB5r-0048um-1V; Tue, 12 Sep 2023 21:38:47 +0000 Received: from mail-ot1-x335.google.com ([2607:f8b0:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgB5o-0048tw-2O for linux-arm-kernel@lists.infradead.org; Tue, 12 Sep 2023 21:38:46 +0000 Received: by mail-ot1-x335.google.com with SMTP id 46e09a7af769-6bf3850bcd2so399557a34.1 for ; Tue, 12 Sep 2023 14:38:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694554722; x=1695159522; 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=AwszalQokQ1NqrRpJWWhjsf7sOywVZ7OqQL5uK785v8=; b=SLzGupcqhSzmjpx/RDVBdeouoDbt7sWgyrQ0I1aFWK1lDx4ab8znmgBkka3C4Kmd64 MqfeMdvHkpDr/B8oDBX6z9YdDrzBZs+Ya0EU+JIqhgDLtM9wB7ZsatT1Pa19Mc36amm0 W7Ae+Fm5aCVTx93W8rnjNsFaK08O61aGHSZrFwuNrg9mZqgZlLtNBRBNX0hjdlMtc1E2 bdeuhAxzZ01fy7ovwuh5VKpeZLKa3214caWcEyRR/ir/TeY9iEHexGYmKGeAzMxXTASb y5y9EchOZTskNtBnjoBUOUrbqCCPSn5JwGZDzRHCmKwMqNAQm2aKE3ORWObcjGS2YtI2 +ByA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694554722; x=1695159522; 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=AwszalQokQ1NqrRpJWWhjsf7sOywVZ7OqQL5uK785v8=; b=rlzScQnYR87Fgc7rTtiBc36mD4VbDo+JsexloOT7oSmmeyucxh+mQYUXmrUnTuXYON 6poCVeZBY+HOY/2HgWpMlg0Ohd9CTyoA6gedsXffVZ3YOWJvFEsxfP7twZbibj+JQ7O3 6paYHYP2ShZeGaCkSU6kI9aS4kaj4/UaWp6cmDIZheLOF6f4jNaEShHaOSWQelEzaWTU W9l17SJ/OJGIrmlwR2Qm4zWZAZgKjz9P0N7Q8AJXAWOONCXoqXnW+KJ0u8cpTunpK+AJ Y9z0uJAwhsVBgWqtMf85vqduFrOe/S0NOJHm45QD798eOUhXkPCD4ysn0AcOc4DSR3tB EYgg== X-Gm-Message-State: AOJu0Yy5KyD7zcUQ4xCjNEmlZIwtSbuvfklLWqByFlF3PrjQCdyEEmNO PeRoHHsFdamWQTWDH3iuroazDZ//7rI= X-Google-Smtp-Source: AGHT+IHTLUyu7Illrd/PcYVHgJVob3ReLRo4UKtech6u3u+9+KFFfHP+nEZ47gbF1ADl0vsvWb8BVA== X-Received: by 2002:a05:6830:3546:b0:6bd:6d51:e9e5 with SMTP id bf6-20020a056830354600b006bd6d51e9e5mr1146637otb.0.1694554722550; Tue, 12 Sep 2023 14:38:42 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:676a:5a77:75a8:efc8]) by smtp.gmail.com with ESMTPSA id j14-20020a9d7d8e000000b006b881a6518esm4415264otn.10.2023.09.12.14.38.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 14:38:42 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: linux-arm-kernel@lists.infradead.org, Fabio Estevam Subject: [PATCH v2 1/2] ARM: dts: imx6ul-tx6ul: Use preferred i2c-gpios properties Date: Tue, 12 Sep 2023 18:38:36 -0300 Message-Id: <20230912213837.1804113-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_143844_775453_11898D49 X-CRM114-Status: GOOD ( 11.85 ) 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. This 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 --- Changes since v1: - Fix typo in commit log. 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:38:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13382198 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 27FD1EE3F37 for ; Tue, 12 Sep 2023 21:39:13 +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=aYvZ7FKaZhqXsiT5SEwvlnzymnOVlVRb6S1RU9KRI4A=; b=bs+m70ylaapeq8 BgQrZ7DLz0o6uxp+ycWdaj8N3srHniIOgZNO6vxzz/6apDNTTjCuoXYRZPuMz87/62ZZ/drP6PYIg WPUANb2hqDJV6x1bJYfQihK6s4Wo/jKKAnx8ia+FY4LZfoBHVr+jILmx1I9H8PXq6sYJakGSlQIdr fcK7IfkMxG6z/jx15xFkQ4VN0Iw0VuyhFnQZURZcMeLohZV6ZIfPNK+A8G4QwnWhhXbxY2VZ2e5kW SssfkibxNqn7yrvopXWBLbyKTpqFEINhvmrW7yzDUUHdEOWcqf2MXLm5Ab3Qi+CzkeNG4pAEyBAWO pXWepWKvndQPrXOC6TUQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgB5r-0048v1-37; Tue, 12 Sep 2023 21:38:47 +0000 Received: from mail-ot1-x335.google.com ([2607:f8b0:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgB5p-0048uN-0f for linux-arm-kernel@lists.infradead.org; Tue, 12 Sep 2023 21:38:46 +0000 Received: by mail-ot1-x335.google.com with SMTP id 46e09a7af769-6bc9353be9bso1047852a34.1 for ; Tue, 12 Sep 2023 14:38:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694554724; x=1695159524; 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=rfj9pAY5jMQha0/apEQW8rCe8NOUath9j9ddenVr5NE=; b=b/KMzpPLahueacyenOZCM16wKyLniW9/c6xpn5uNztHCqrAFFtUGLSqmhbuWNTRy4t Hc27LfNPVJCF5aggmtAdFQYgAqlJJCgXgu4O3rE6LjkMNMCbWxYSYPdJv7CjNKOGMMov 4f4CW9iMjBuIOHjh7a+1YfJB/WDAWBWpvCoel0r5ZbW3zOTntQMR+LbCD05pyoTrWuWJ a/2lrd7L/HW5K6P/zYCx7w1tU9mtzpCnDSIGyjBhluMjcMeOBq8A3Aq6hkxf5SoQRL4A IBtW8RFlqBCnSI3sPXzKXPl2tPg8mjTJhW8wTTAS+hAcrxb4arDaQEveR6ne37zxCEAE fOlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694554724; x=1695159524; 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=rfj9pAY5jMQha0/apEQW8rCe8NOUath9j9ddenVr5NE=; b=Zu7jqQW3XtgsLTtjFO775LyQHBZN7r9PqWnx8y1LPt2m76JYPD9/o4eEAI+MwacC0y 89cmWMtdY3Db03qqBB/RaLn0HanENoePQM4DNBPrjjWoA6fCQkfbRWJ/NGUjmY1GMyfC jh+PNn9bIyrfw5FONEJhsL5gAeL74KSeWRjkYfzyZmlzT0M8xwd5YOiFIneDrxQ65+WB yisC7mJk1yCphGW9qlArbQMR6utqlpMm4DSmUFIEGairkJms1/aaeVT8Z/0S78uJIYsG PozHJ4q77JT7VRcJFlE4JaSZndG9ZNzR2wnfes9Ur6VyaO6UV9dUNztSuqv3IgHxp8xe iDoA== X-Gm-Message-State: AOJu0YzCQJy4P1CRRcAEZUjQF7Xws45HfIenjqFcCl2hkPkZPHg2vmp2 e4p+yZDrClqfnPqlSSTkM4ga5LjBmkA= X-Google-Smtp-Source: AGHT+IFfFGhGQylllzcq7RXQGgJc24MHq2N30neNZCuEJSC65Ts3qTMBcE0wjZUCfl9OhruTHV2URA== X-Received: by 2002:a05:6808:3247:b0:3a9:e8e2:579d with SMTP id cc7-20020a056808324700b003a9e8e2579dmr872824oib.2.1694554724304; Tue, 12 Sep 2023 14:38:44 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:676a:5a77:75a8:efc8]) by smtp.gmail.com with ESMTPSA id j14-20020a9d7d8e000000b006b881a6518esm4415264otn.10.2023.09.12.14.38.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 14:38:43 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: linux-arm-kernel@lists.infradead.org, Fabio Estevam Subject: [PATCH v2 2/2] ARM: dts: imx51-zii-rdu1: Use preferred i2c-gpios properties Date: Tue, 12 Sep 2023 18:38:37 -0300 Message-Id: <20230912213837.1804113-2-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230912213837.1804113-1-festevam@gmail.com> References: <20230912213837.1804113-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_143845_240760_37736C5F X-CRM114-Status: GOOD ( 13.40 ) 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. This 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 --- Changes since v1: - Fix typo in commit log. 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";