Received: by 2002:ab2:5d18:0:b0:1ef:7a0f:c32d with SMTP id j24csp212503lqk; Sat, 9 Mar 2024 07:00:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWGK7hsM8XmWVbEypXf8vdGeBg3aqim5Ud5MzV5KKD0FfoCu8kjL2GVcIZku0JxPPUQ5iMk9UZBZw5coOSHm1znFQ68evKlI+eknrIqIQ== X-Google-Smtp-Source: AGHT+IE2AP+OTmYsJYS40kWIurc3ZajGW/oDwXMOwFuVtOa/B1UDG1lmRXhWg8HoSoavFQBf8jpZ X-Received: by 2002:a50:cc83:0:b0:565:e4b7:e784 with SMTP id q3-20020a50cc83000000b00565e4b7e784mr1156037edi.40.1709996441519; Sat, 09 Mar 2024 07:00:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709996441; cv=pass; d=google.com; s=arc-20160816; b=dzy3r2b2srBZ39f1sP2e/MaZSeZfsjp1KAZboeeAELcUERo0BExW4eGBK93hsLYIRo /CfNs8JsaexXBQfVekJi8OWd+YXghHEKdLKLgxHSWyBSTne+kQdo2Rnv0wxguH3OAhhx C5f1sU1jeMQKclIrxHcZmazQewJN8n7zXgskUGqoE5xVSnSBFeyDVlYG1a++0Nuox+AD 9P3qqKLm8/SZa5Vq0c8VbG19TC/36VkEuBtT8c0qI4UEC4sPXN448+OXgZrsWyNyf5pS 1eCn1wkqSeQiy8b2Kaek758HCxOT5L1FM5LqaennSwpRo733az6XBp3w538yIkFDuMbS TClg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=OnfRxqBj01Ms+OYJOxmdm9ZV/lLNiKHxQ8hOUSQ50uI=; fh=xsSA8BFfTvmsuVFzZROTGsiQHKgy2hl1f9yARBRN790=; b=PySowCQ4EMLbditlBa1+Lqg4DIvQZlAhN1tYIzjv986n8B6gWjiJnEHm+3Lpn6TcXE Hd5umgtLkyGAYUxoTMFVuPjL5fCxkj3sBHBmiyLMezN+VSXeHslS44rbvxp95s2y4hQa n5xCM87fQGMvVVvqFkPE/PH2L63Ujw69Icp6k5pIqbE4pAye/IJvY2NVvxgenBj6rIil 6oAAECgdGMQNgyzr/SgRGUQj+yrs2/57TEl71ywuLtJRL6cNbgyXk9X7x+ZHZm7MFPOS IhEhyhnu/LxE7cbatdOuUbVNrXrnzssiaVCHT1SCL6OU85l+COhUaSTWAlPKNVfvEWPb 81Qg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LM8SEfaR; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-97927-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97927-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w7-20020aa7dcc7000000b0056837fa57c5si824893edu.349.2024.03.09.07.00.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 07:00:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97927-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LM8SEfaR; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-97927-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97927-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9C4AC1F2162F for ; Sat, 9 Mar 2024 15:00:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD2DE43ADE; Sat, 9 Mar 2024 15:00:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="LM8SEfaR" Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 0F3263FB9F for ; Sat, 9 Mar 2024 15:00:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709996430; cv=none; b=L+hfeeUT/F1slh+pam5Lxt7b4fmcotsYCXolUkofEHo1v16Wi8bTb2mn6DfIPnncxQwvGayqSi/OTNlFERjdfzDBKHmCPBgTIlYn7L+ofKNbfjRz6nF0CLXVC/EVexiDuqjbIDPi2Zs0sV+t7OkHJjKMFkVP6hYC3j2qZn0E61M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709996430; c=relaxed/simple; bh=OvfWJNJDU81omg1NmON18Hw3qmdbiI8lTYPpBXiEqVA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=NQXQC+8imq9Pumxe4m/dM+C8D/sBjgprd7/FsSvFHRN6m+zaeKnJ4dsD6QUxkX+RnVT8nQxQ1PKtEAakRliKzqWqil5VTyGg10IyxcqZpNFyf44LpfIVSUKzF+D4UnOr/P1T9wtnVzubeGxMoDlltYrKY3iima7NwDiqVrqWwU4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=LM8SEfaR; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a4467d570cdso210227566b.3 for ; Sat, 09 Mar 2024 07:00:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709996427; x=1710601227; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=OnfRxqBj01Ms+OYJOxmdm9ZV/lLNiKHxQ8hOUSQ50uI=; b=LM8SEfaRNEFmVBwxfWHayo/SNWL0VgckVZS2TBOr0+PSpGLlwzmB/wcoBwEaGsE924 5ELs+XdpzGP2YPqoHyhBACgyshYXIjWpbFm7WXZ22DDPpEYZsL701e9PfwaUfH6SPKml RhoF4eFwoAkpoCbFkqFxP3rFauQlg3Pa66kn3fx8H/atYVV2OpVE2FpzmHu/TGGueTIo InUfH8spCfDw6E8GlDfPquOuo0qt4wg30NjOOKpHx18pplHFsp8jygf8k2sXPFaed82b xDdntyN/QeeKBq1oBbZxYOj9url1QmPKTRI1ER4/dILB0REnzziBQ2fbIgYaulQMdWnk S2fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709996427; x=1710601227; h=content-transfer-encoding:in-reply-to:autocrypt: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=OnfRxqBj01Ms+OYJOxmdm9ZV/lLNiKHxQ8hOUSQ50uI=; b=WDGzVXaCzWx1NHHSqoiAV0HPv29wLspYzWBHJAS/iVzxMi/WMUYZHDjQpI2oZZ1UVL qBNJGyg0Z2ISGhh3gfxZ3iu8ezZpG2Xvrt4bp+v64HwjsOWI07TNawro2YLueSvs0dYq ST+T4Y2YMSETDfi015qhPHHA9nwjkykTJ25OlJI4ThqYHumvqgBu32h0aLzAHzv62kbm HwuI8vzXsqA7ThC7XTQZRqUcNY0hIKSmStPWmZzL7+q9sK1cs/I2biITrOGJtn7X5uzI RoPlFSWV6isA6K2CMEf2+4lovqzCaOcpxp7hQV1/h0+QDUcRwG2BNiL8+WEkYflmZ7mp N//w== X-Forwarded-Encrypted: i=1; AJvYcCVqBqwmjinlrWNfiNVlTiFo79qWzRf2VDJ6K489q5D0u8pJD4NVgIjV/hUrUPu7JQGdKHwkp6jLJnu8zOrLqeOsHu9Iz4V4W997f7JI X-Gm-Message-State: AOJu0YwJyl/coRovhXipR5Bt3s3mft9NcYWcBWE3O6D2obv2h2bvaSUW IJ/6sadwedV3TvblirUFcVm8CmCfdLhqRPbs6w51pZiuB6fj4lRWRtkHpvtR3L8= X-Received: by 2002:a17:907:a783:b0:a44:e90d:c091 with SMTP id vx3-20020a170907a78300b00a44e90dc091mr1022435ejc.59.1709996427305; Sat, 09 Mar 2024 07:00:27 -0800 (PST) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id gq14-20020a170906e24e00b00a3d2d81daafsm973998ejb.172.2024.03.09.07.00.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 09 Mar 2024 07:00:26 -0800 (PST) Message-ID: <7856f1b7-e12a-4530-82c5-416ec66e1885@linaro.org> Date: Sat, 9 Mar 2024 16:00:24 +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: Javier Carrasco , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <1ee8fc6f-5299-4ba5-bb61-14b4351c0708@gmail.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmF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DWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <1ee8fc6f-5299-4ba5-bb61-14b4351c0708@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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. 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