From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (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 0DF612BD03B for ; Wed, 30 Jul 2025 13:52:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753883566; cv=none; b=I5iGA193rNGggpw3+EajkhCgLm1ni3JHHyt5kv050ultO+3s6uhPLtgjKjuv6/TCzFjgM90NNEJEz3fyQfUtwhjH0wbAEggQb8gni5JGm8siNXdSQlKSg0ttzZzBH7xxAgAFttop7mAlrNrhA+H0j6WTuk15hA5iRQIRBZUW9kk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753883566; c=relaxed/simple; bh=n+/Al/hya7iKccfkk2/acBwTs2umvyAH+cTmAiASgng=; h=Mime-Version:Content-Type:Date:Message-Id:To:Cc:Subject:From: References:In-Reply-To; b=REZLHlFLu+thvjg/Xlfysv0FQPMYoLjiGi8MhEYqNjZiyl66z7wxwqj9zKSjI5r+PAspAuqH/mtLjvfvkBB2DPYYTfnsFat0GmiFunW/GUqpKCqwWHB2O1eus88Kr3oTPDQsLcjdOy0ngKw8AaufCujycxN2/9bziar8K8ks1Sk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=CL1axfhY; arc=none smtp.client-ip=209.85.208.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="CL1axfhY" Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-60789b450ceso12958766a12.2 for ; Wed, 30 Jul 2025 06:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1753883562; x=1754488362; darn=vger.kernel.org; h=in-reply-to:references:from:subject:cc:to:message-id:date :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+rp5BOhOSI3hJlfQlyw0n/QrQz57EFsvEJK12JX37JM=; b=CL1axfhYUp1p32DMTs16tlR8K9euMFnYh3Lyy0ktI66sxaftJLwnl4StwvpuK+dmB6 qj9me9NS/KdvKxvB6LjiDEo0OVy3iAem4nVF7i71v1pYm1iQaXggYrdcqWyeXoqLeUwA dPWbrG7qTFssU1wA91c9oQ0ptr1DtaUk9nq6/DpNctscUhmdv7PUTFK+IDyI+hrBLujk Cl4kxoxwrDk9tDCB48xUmX7JwG7TWCV0wUiiBidlP2uwhjgUL0IGrEWOnKDVZcHI0eAD LhyB7CmIvxBPXuqisPYV+aue1/IFw38mEoEnrjyvq1P3pe/5UApI3JKssgEn9ez+fsGN APPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753883562; x=1754488362; h=in-reply-to:references:from:subject:cc:to:message-id:date :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+rp5BOhOSI3hJlfQlyw0n/QrQz57EFsvEJK12JX37JM=; b=slWHqppxTUnvz/G8qnj1+WtXXaQEHk8l3y9B0aguqsh/AE6Vvg/VWiBioHJQkxxh+b 8nN9BEH+Geg6paEqzoOC3RAntL8RANnougWwAFYLjv0hbo9qxQfebQ9Xne32sTTg1gDE L4QF4JLCI/bpjwHIUdHeeQJ8a4P2IgXf0bHq0U3QfYEkGzwgLY2phPJ5SYHx1Jiob7lm lselJOPZphUWpwH6Q+ujPA/Syb52Ju/kvr0m0C3pQ89NEuF2h0S2gF/brNBt/fmfextM VQaOQxWUWTP8XNmcKwZ/tuWjXHA4/DqXvZp4Ks6KgRl23mn3OLydA3SoDYAhOqc2JsLY +Siw== X-Forwarded-Encrypted: i=1; AJvYcCUuKwXivw7vCVDIvpq3YWfHTuPNsj89VXoxGTfFxQ064oIWP2ZBWwxTLzIZSn2/Q8e8D5QjY03x5n8t@vger.kernel.org X-Gm-Message-State: AOJu0Ywdr0y8h+CJhYyLP8JhD+ov1WhEyoMf6wIvooPGEmyJiCHJX7Ci NhIo0YDfHfO831dEWahR4dr7pkWsr8OpSCh0zapC2uQhaFGcMcegvYS1oGFyv3qjWxc= X-Gm-Gg: ASbGnct4AX0Xpiei5wQ+S8dhMjia80TAdVnVy53Uz/BSr6Jifc5r0Ka6UBXvAu8KbbS ouyaCL8QbO4+qRvukkPUpan+Yu6NC5yooSmDfMOnhF4ESyWwsExNHC55MJ4yCEEwVrPfl8HgxPR PJGP+FUtiEZgOAOsNNPKqobcfgx1Tg/ACP6VdvhzrZevvFlynZNz+JY+Y8dtjGzJifFiDGszhew hhuRdY3xYfl9Kw7EJNmxEAZg4+zVPeagDSZCH0ShS3GPJggwIECmZ0/W7E5yafkinMbGhFKVGGk 4U7YkAy7zlMxIwyi0/cmV8owUwClf4WgwamJp5hbXwFGTAJrhBRsD1GiKqW0WJv/tNlCcPuZG3z GmerRJ1E/KiuA5gcZi3sO11jvVSM= X-Google-Smtp-Source: AGHT+IHmHFD7kf9axGR7OqSKqgBDA0mgn8z8jZ8b9IsKFZAES+c1F4OBGbCYGQRGpeMsepIGLtvF1g== X-Received: by 2002:a05:6402:40c5:b0:615:9b3c:5918 with SMTP id 4fb4d7f45d1cf-6159b3c5954mr1538590a12.1.1753883562203; Wed, 30 Jul 2025 06:52:42 -0700 (PDT) Received: from localhost ([2001:4090:a244:83c4:a15:2832:36af:7a70]) by smtp.gmail.com with UTF8SMTPSA id 4fb4d7f45d1cf-6158ab9d0dbsm1108310a12.60.2025.07.30.06.52.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Jul 2025 06:52:41 -0700 (PDT) Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: multipart/signed; boundary=166989f9f9a66e3cb36fa7f8ad6c45ebf369d74034ef3f270c152a3ef9d3; micalg=pgp-sha512; protocol="application/pgp-signature" Date: Wed, 30 Jul 2025 15:52:33 +0200 Message-Id: To: "Michael Walle" , "Jon Cormier" , "Jerome Neanne" Cc: "Job Sava" , "Krzysztof Kozlowski" , "Lee Jones" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Julien Panis" , "Dmitry Torokhov" , , , Subject: Re: [PATCH 1/3] dt-bindings: mfd: Add power-button option for TI TPS6594 PMIC From: "Markus Schneider-Pargmann" X-Mailer: aerc 0.20.1 References: <20250520-linux-stable-tps6594-pwrbutton-v1-0-0cc5c6e0415c@criticallink.com> <20250520-linux-stable-tps6594-pwrbutton-v1-1-0cc5c6e0415c@criticallink.com> <20250521-wandering-tested-porpoise-acbef7@kuoka> <20250529-wise-tremendous-stork-a7d091@kuoka> <0fb4b411-1b27-43fc-8d48-e5220fc85478@kernel.org> In-Reply-To: --166989f9f9a66e3cb36fa7f8ad6c45ebf369d74034ef3f270c152a3ef9d3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Hi, I think my mail wasn't sent properly, so here we go again: On Mon Jul 21, 2025 at 8:42 AM CEST, Michael Walle wrote: > [+ Jerome and Markus ] > > Hi, > >> > > > Someone knowing the device should come with arguments whether >> > > > other states for this are useful at all. Or not useful and then ar= gument >> > > > that in commit msg for example. >> > > The other states are not useful for the kernel. Only the push button >> > > has a need for an interrupt handler. The other states the PMIC handl= es >> > > on its own. >> > > >> > > What exactly do you want me to change? >> > >> > Because the driver isn't setting the configuration anyway, wouldn't >> > it be possible to read the config bits (Register 0x3c, bits 7-6) to >> > figure out whether the pin is configured as power-button instead of >> > having this property? >> > >> > I mean, the correct config is likely stored in the NVM anyway, and >> > reconfiguring it to another value seems unlikely. >> Currently, the TPS MFD driver only loads the power button driver if >> the flag is set. We could put that discovery code in the MFD driver, >> but what if the system designer doesn't want the power button driver? > > The device tree is not for configuration. The designer can just > ignore the input event in that case. > >> I'm not sure auto detecting it makes sense. > > Why? > >> We are basing this on the other TI PMIC drivers and how they are >> configured. I'm not sure I want to reinvent the wheel, so to speak. > > That was never a good reason. Maybe there was a reason for the > TPS65219. Markus? Jerome? I haven't found anything in the commit > messages or cover letters. Only that it is "optional". Not sure what > that means. According to the TPS65219 datasheet, that pin if not > used shall be configured as EN and be connected to VSYS. I don't think the TPS65219 has a config register to detect if the pin is a power-button that's why a devicetree description was necessary. Looking at it now, it should probably have been an enum for TPS65219. It is not relevant to any software but it is not describing the configuration fully. Best Markus --166989f9f9a66e3cb36fa7f8ad6c45ebf369d74034ef3f270c152a3ef9d3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIcEABYKAC8WIQSJYVVm/x+5xmOiprOFwVZpkBVKUwUCaIojoREcbXNwQGJheWxp YnJlLmNvbQAKCRCFwVZpkBVKUwQ+AQCCSckOjQFmKhWjtgebU+FH8Kv6EqNOhk12 kbOkJ/ZVqwEA3K1IyehD1qEqHEZwyCvmd2D9lIEd1pazKofQxtaTygo= =YrKw -----END PGP SIGNATURE----- --166989f9f9a66e3cb36fa7f8ad6c45ebf369d74034ef3f270c152a3ef9d3--