From patchwork Mon May 12 21:28:19 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cosmin Tanislav X-Patchwork-Id: 889569 Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C357429B79F; Mon, 12 May 2025 21:29:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747085360; cv=none; b=JWrvE7mSiEaWEM780mio9l3N39mZCrcpm6dQPBIZYGojhFVO4DSDzf3J9L0IywPfLyuWGAvR4j+GhgoHBTB2khzKVEAPpq6YvB5Mz0QdLadJA50s0fV9aTnVN3k5hvtTRbNpaOiAPcYd95AVnXluOwIxX5TR37XuicjtwX6Ntzw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747085360; c=relaxed/simple; bh=zfg+RJSUYWmDFrYgKmNlgJ0fy4URxTXC0G5qvYz8Cek=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ly7LZFEhrJ6yyrHsIZpfsDEF/nguJH8OCTG7pdtxrPgrO4+QtsUZdV0rvX561SuqfVlFsHGGU3zArUdRPqN46gCpfLTRc4zQFZBrPXe99HkMtI8XipqayVm27NbAncVX5SIpkESPQ7EZE79BG3YYFXtdT5tEwLfmcllyOHWZuos= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gDzRysbx; arc=none smtp.client-ip=209.85.208.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gDzRysbx" Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-5f7ec0e4978so1480612a12.1; Mon, 12 May 2025 14:29:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747085356; x=1747690156; darn=vger.kernel.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=+Az28+HlcLM0sL1av0MSi/fM4ZT2oYYKjFc0IsJNfl4=; b=gDzRysbxxGXlon18IN69U7WW3oAK6jaHU9UHwE4zgbWRDm/I5I9OIxhCp7RyqEakmH bxSjV0KUr5Nv1zTwbvlaGjYCW5f7L37G82t8ts+YTie9Fs6pJ6bCAZhT+J5pU7wAQT5F zjxIYtZv7cF4aFn7opRGelcalJTcKKRytWEb8CPDXudz2KEIh4JLLOfVyAJCG8hLy2wr 0bacewdBpmfpYurdKo8ahItG3lc9ucxsvfXOhQ34Y6Rh7mompj7beWTRx4ifpFVhE32i RX2P9BxmVjoUojV7mF9jFn6xp8Rs5xcmEKfHT+/V72cx2p9v+h0U6WK1dvdJGM9SmG/x i/VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747085356; x=1747690156; 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=+Az28+HlcLM0sL1av0MSi/fM4ZT2oYYKjFc0IsJNfl4=; b=uELKjpVlitQ9WUhVPzEMrn89CfBfGc5Ru1zwadO/ezjnVP2sB76GAGskjnSen9nc12 rWfEu/buTfcLg3onYhE+98fZOQ5VM1LSSnnmX+zE/vQ6k8sgUTQ2Ci26c//mhkdI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JFS9zkWButdAHqNfCiOvenfSZQ8dZyxDjHkMnY= X-Google-Smtp-Source: AGHT+IHxZimkUK3H+FypaTOTN70zLrjfhJRz1zTX6CpTIj/ujzs/pJwUigs4Bc+mQ5Ey6V2j7ED66A== X-Received: by 2002:a05:6402:40d6:b0:5fe:e999:e553 with SMTP id 4fb4d7f45d1cf-5fee999e5b8mr1117281a12.23.1747085355831; Mon, 12 May 2025 14:29:15 -0700 (PDT) Received: from demon-pc.localdomain ([188.27.128.5]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ad23a5552a6sm472861466b.30.2025.05.12.14.29.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 May 2025 14:29:15 -0700 (PDT) From: Cosmin Tanislav To: Cc: Cosmin Tanislav , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?utf-8?q?Niklas_S=C3=B6derlund?= , Julien Massot , Catalin Marinas , Will Deacon , Greg Kroah-Hartman , Liam Girdwood , Mark Brown , Linus Walleij , Bartosz Golaszewski , Bjorn Andersson , Geert Uytterhoeven , Dmitry Baryshkov , Vignesh Raghavendra , =?utf-8?q?N=C3=ADcolas_F_=2E_R_=2E_A?= =?utf-8?q?_=2E_Prado?= , Taniya Das , Liu Ying , Ross Burton , Elinor Montmasson , Eric Biggers , Hans Verkuil , Sakari Ailus , AngeloGioacchino Del Regno , Zhi Mao , Dongcheng Yan , Benjamin Mugnier , Kieran Bingham , Tommaso Merciai , Dan Carpenter , Ricardo Ribalda , Laurentiu Palcu , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, Cosmin Tanislav Subject: [PATCH v3 10/19] dt-bindings: media: i2c: max96712: deprecate enable-gpios Date: Tue, 13 May 2025 00:28:19 +0300 Message-ID: <20250512212832.3674722-11-demonsingur@gmail.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250512212832.3674722-1-demonsingur@gmail.com> References: <20250512212832.3674722-1-demonsingur@gmail.com> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The MAX96712 actually has a GPIO named PWDNB, which will put the chip in reset state when held low. Esentially, it works as an enable GPIO, but the naming is different. Deprecate the enable-gpios property, and add powerdown-gpios as the rest of the GMSL chips. Change the example to use powerdown-gpios. Signed-off-by: Cosmin Tanislav --- .../devicetree/bindings/media/i2c/maxim,max96712.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml index b345305acc4c..e38213209973 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml @@ -35,7 +35,13 @@ properties: description: I2C device address maxItems: 1 - enable-gpios: true + enable-gpios: + maxItems: 1 + deprecated: true + + powerdown-gpios: + maxItems: 1 + description: Specifier for the GPIO connected to the PWDNB pin. i2c-alias-pool: maxItems: 4 @@ -128,7 +134,7 @@ examples: gmsl0: gmsl-deserializer@49 { compatible = "maxim,max96712"; reg = <0x49>; - enable-gpios = <&pca9654_a 0 GPIO_ACTIVE_HIGH>; + powerdown-gpios = <&pca9654_a 0 GPIO_ACTIVE_LOW>; ports { #address-cells = <1>;