Received: by 2002:ab2:5d18:0:b0:1ef:7a0f:c32d with SMTP id j24csp230859lqk; Sat, 9 Mar 2024 07:35:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWYHeTPvE4wIAJumQG0VYEpHsZCyDgE0DVzlL04YKHMA20D1Z/7cndhSnvEb8O2Z4KdWckxZmvg34bMj4GgUlEaAZzpUnSc+XuGHA7b7w== X-Google-Smtp-Source: AGHT+IG+lwNMcCz+obj38YZuS4a2lvXtnNKVoRQNl8t7W2HOonu/FMrRHYPCIMODnyysWijqtUwA X-Received: by 2002:a0c:f743:0:b0:690:be35:cf79 with SMTP id e3-20020a0cf743000000b00690be35cf79mr3763552qvo.26.1709998539808; Sat, 09 Mar 2024 07:35:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709998539; cv=pass; d=google.com; s=arc-20160816; b=a17jidSvOhMTEQCtM+xjQa5e0HvqXfeiQmUw90+PAOjJEFfYzLTLKH11y+15YhwD/A cPLbK5L/eCVmbg6dAJd4H9iNSP/btBYnHxs8bVdhAmHreP4BWsT04Y96iGHxoZucWbsk z+9s9PNON1HNrRFOAOXICrMatl7nSYW2vhLsg2k88Sriluq4D+XG6yF6OjzuiCqU2vsJ xppUuxO7m46u549WegfhbZxu4JICQgmvrTKaEXRm8dnmKZojH5Bdzzms7d30P9UorvCG iPaOy+zPBzZA8unstIAeVX2n/3m3LYxONCkAlGpGxJk9jlfx8/JhBmY9EjXU+XjXzJcr NCKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=wa3LdvNtGx6OdWsIJ5+6Y7D2gSg3s0jdigbYfnOKfnY=; fh=+m9lFWzVyv9hBznoeWwqCT5yhzLFT6SEKWRrSu9fzxk=; b=mw4iyHb1xKtHozZv2mvOZWyTedism87Xn8ViJ1AqFVGWMRx0AGpV8mIL9hixBL+D8a SuEhFpgrjvuFs0olvF9qcTJD+mz3i6pUWa3itJ7KFl5x68OfmS9bgZAOmQQbbDvDP+ay 81QDZ2buBhrBnLSYwE5B6BytEwsUozD3x5yLmgUr0OcysYSAXnEG+aqZIYxjIc0wa2Yu jqkb3bDYTZ/hfjXCEI39nUOCwO+93Jsy+ymEOdGLa9g//Oc8I2kOLPUeF3mszHMwiIvJ DPgU+Cdv8FSozX9XrleEotUmW5SiZTvvHGUteqYtPXy4VIQ7a2wIPdrj67qa8Z62tgKP dqwA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CHVzgPv6; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-97941-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97941-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id mc6-20020a056214554600b0068cb23ed4f8si1725233qvb.316.2024.03.09.07.35.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 07:35:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97941-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CHVzgPv6; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-97941-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97941-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3BBB31C20D58 for ; Sat, 9 Mar 2024 15:35:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D01B446B6; Sat, 9 Mar 2024 15:35:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CHVzgPv6" Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (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 97E974437C; Sat, 9 Mar 2024 15:35:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709998531; cv=none; b=Yw1j7HYmpifhDjk1uLFMSt2uQBJyTUnARUg0fW6rOwQycwx6EQK+dFcrCpfHwWLLJLwKcrlaFtYH2R03XBWqpLjciWbscfkUBeDd3pL5wMlyZFEF/LxXHOw3LuwwcmW3jnp+ul6BNp6HbmuBZBkPfvflKJOcXseEjEYboevLgRI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709998531; c=relaxed/simple; bh=CRC/rrrJ/5B0sx4IXLiEKrjaDPVV+p8XAikEkWmkxaE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=IbgQYbZMpKCfFbnksZMwRxoq0U4j10802/jsKN4fsI+LCo4raRbmOpv22x/S96i7qQYgw/pdjYspTsHVWcyvgb6wH2ho7rmDUq7yRh+mBD4iID/18i5tTtNCuqRXPj61xrkzleaSNKJDUsjCbobWgVA1sPl4xdyORYWTyGuAAuA= 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=CHVzgPv6; arc=none smtp.client-ip=209.85.208.44 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 Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-5673b5a356eso3319100a12.0; Sat, 09 Mar 2024 07:35:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709998528; x=1710603328; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=wa3LdvNtGx6OdWsIJ5+6Y7D2gSg3s0jdigbYfnOKfnY=; b=CHVzgPv6oJIyVisJkc5PwM4QsmirRGR42clSccGCc8JcA/20qr8xpb9sH9IlHB0R2/ m8y20q+PJMOSIzdE93WVwNpt6F9+XmHck3YWsUOk7PBvpjVX60ZFdrytVzqwzfumNnzn Nl81XEYrUe8OLfevwaORet5QzjjmGqRkPL3wAMmmVecXJi6Vl0rtAN7Wyus28b+2sC9z 3X7Jdh57QsXcg+XrR5LA0MLXLpDgoRMly4CHnpan7+ZLs3v+3pN8NYnbJNLR/YUSjk4k SOGKoA7xC5bnQ9V1FOBC64CdCaSZe/zFFpVbuc+lBm8zEEiNhZZNrhnC3P/5FAD/s/1V vCFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709998528; x=1710603328; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wa3LdvNtGx6OdWsIJ5+6Y7D2gSg3s0jdigbYfnOKfnY=; b=grlEJmA588+xV8gQIyMBzY4LSUAq7ZIwFJNElcjLA3z/5gLSpwZh7WzpxClw3Cg45e uE8T/+R8M86R9+xBxdTFJ6MZAw4Zm2mxybuSN/krSYc2otNVihjHMEHw1YfBgHrc3NvX HdaF/RIu8/bpbjxfx1JLYouE4aNggWBVqBRgHk59Itpg7RgnObJqQf7eMfl/p0iUPnO+ 43GEalX+b6MI+QuH4MeS9+VftuHYtWRLNatxIyrrElEHyKxxrub4uVvW2/uApBwtp4tw sbtMmR5I2Rf//qH9PhXtKqksN+lU2ZfJuQ67Q4mInp+g9W2qCLjZ0EkWQTAPqCBAnmvG Hivw== X-Forwarded-Encrypted: i=1; AJvYcCWH9yeE8944LRwJvitRsKN3HfC4Xa0J5uEIYm/IoGdPjhAPLIO1ZAzW4m4V9Fy5KZAHEbUMpFCyxNkhwKfZNxLkDUVSPyTv5UiA9K28 X-Gm-Message-State: AOJu0YyE2bwVwJFCmFs3sB+WTJoOAJA3PPNbT2OMNSo4zrbFSjT7H52m pTXwBUlhqyCMDqWMc4fc1S2niAxwY/vkX+65TtHfGC5ZFGoS2yK3Qlr/5sN9juU= X-Received: by 2002:a17:906:11cc:b0:a44:5477:bb46 with SMTP id o12-20020a17090611cc00b00a445477bb46mr1050705eja.61.1709998527769; Sat, 09 Mar 2024 07:35:27 -0800 (PST) Received: from ?IPV6:2a02:8389:41cf:e200:3599:7594:d284:9242? (2a02-8389-41cf-e200-3599-7594-d284-9242.cable.dynamic.v6.surfer.at. [2a02:8389:41cf:e200:3599:7594:d284:9242]) by smtp.gmail.com with ESMTPSA id lg12-20020a170906f88c00b00a4432543b21sm988958ejb.198.2024.03.09.07.35.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 09 Mar 2024 07:35:27 -0800 (PST) Message-ID: Date: Sat, 9 Mar 2024 16:35:21 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: trivial-devices with vdd-supply: true Content-Language: en-US To: Krzysztof Kozlowski , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <1ee8fc6f-5299-4ba5-bb61-14b4351c0708@gmail.com> <7856f1b7-e12a-4530-82c5-416ec66e1885@linaro.org> From: Javier Carrasco In-Reply-To: <7856f1b7-e12a-4530-82c5-416ec66e1885@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 09.03.24 16:00, Krzysztof Kozlowski wrote: > On 09/03/2024 13:22, Javier Carrasco wrote: >> Hi, >> >> I am trying to figure out the current policy to add trivial devices >> (I2C/SPI devices with at most one interrupt) to trivial-devices.yaml or >> include a dedicated file. >> >> Apparently, bindings for the same sort of devices where "vdd-supply" is >> provided require their own file, and I wonder why there is no >> "vdd/supplied/whatever-trivial-devices.yaml". >> >> Instead, files with trivial bindings + "vdd-supply: true" are added on a >> regular basis. That property is not saying anything specific about the > > Anything needing supply is not really trivial anymore, because we want > the supply name to match more or less what's in datasheet. > That seems to be the case for devices with multiple supplies, but for a single supply "vdd" seems to be preferred over any name in the datasheet like "vcc", probably due to a copy+paste effect? > Solution is sometimes to allow generic "power-supply", like panels have, > AFAIR. If you have new device, just add new binding for it or add the > device to existing binding with very, very similar device. > > See also: > https://lore.kernel.org/all/YUz+psAILnF5L5GH@robh.at.kernel.org/ > https://lore.kernel.org/all/20210921131804.GC1864238@roeck-us.net/ > https://lore.kernel.org/all/CAL_JsqKJgvK8g+zbzLCBxnKbgAioBcdHWNAvqe4Z9BzkNMwPpA@mail.gmail.com/ > > >> device beyond that it needs a supply, which is very common. Is that >> intended and no more generic bindings are desired? >> >> On the other hand, trivial-devices.yaml includes several devices that do >> require a single supply (e.g. several sensors), but it is not explicitly >> documented. Did the requirement of providing vdd-supply arise after >> those devices were added to trivial-devices? I think that some devices > > You would need to analyze the history... requirement of providing > supplies was kind of always. Just like trivial devices were. > >> that were added to trivial-devices in the last months could have also >> had a vdd-supply property, so I am not sure about the rules to choose >> one way or another. > > https://lore.kernel.org/all/20230505204810.GB3506915-robh@kernel.org/ > > Best regards, > Krzysztof > Thank you for the references. In that case a device in trivial-devices.yaml is better than no bindings at all, but if a supply is required (which is often the case), dedicated bindings or addition to existing bindings from a very, very similar device is better. Best regards, Javier Carrasco