From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (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 ACB8C2BE7C3 for ; Fri, 19 Sep 2025 19:52:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758311549; cv=none; b=fIwGtJnDQz67QufHkCRTUk06SKRxi3Ag8l/3RWn9Y17BNuNfuEwt8v44MO1F2uS1UiGZTV9mtAC5HG12K8cNCtowRlplH1gcfgHH/5sysfuhmqf8s/WozxfTOfqFhr4G2wUtMDSYRLzMR6RZpiqRDSk/7Ndn6/OeqjFN+cXiHoE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758311549; c=relaxed/simple; bh=7BNN/+6O9B5eINKNRJxGqr5Cq/Dm4JwptewHXdKQIbE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OGUWf3XYhLqcE+b8PZbonsHs1eoqMwqko3TzOk5IcGUi8Gh66gJDMuNklZ+9Y7FYBKH+D/hsH0cp6dp/357Rfz6KEgZf0hQVcKq1KSF0kTMl6M9wZFKfJe17HA1xmavAg0ztAjXstk6LLRx8BKbTC/O2b22/jsgYEyteeRwACkY= 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=XguB15u1; arc=none smtp.client-ip=209.85.214.180 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="XguB15u1" Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-2445826fd9dso30113875ad.3 for ; Fri, 19 Sep 2025 12:52:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758311546; x=1758916346; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=0ksb2nXkV2vduJHijEyrj53A5/36Sjs0B083iUbWv3U=; b=XguB15u1tXiIdmYjedxVhyM0Oa7/Wenq1kXtTjBgdhq/bitlSZyFGKX4Q+UgFqfJ9k MXTA3uOZdFl82hdGRXb+JNjwMkjVgkE3YtHOtHezpbTGHnctwgO9P0osXw3dFFAHoiHu NIWXkzN2pnbupFhgxgCdLB45xSUP8EJ7DZHm1+y+k4BY3C2CRSnCCyHY/P5jPjbs5p9P qhQrexH7god+RJR+uKGX3dbaxy8Fr6+/Cu6Y6lQiXAo3wlxlZc5goWZgvIem9FnO4poO I1zzUASdin2Nf+kuav1c/tnQQQnGf1RVZnNC2T7pIC5TTM21Q7Uj0viPZk0waPADzcxW lqUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758311546; x=1758916346; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=0ksb2nXkV2vduJHijEyrj53A5/36Sjs0B083iUbWv3U=; b=ZwJlfPM6hffMCtjKrVg1ztwB8xr796YYan+qoa7BzvAMGwfXk5sjYEpxJZ0tU514bA QHDHIENj6tptVpwWMcIrlJv1RYQnU9tnQDufmSVo/w4lncnZV6DYHg3s3Y/106Dg7qhA POx8BYS5pb5QXi96wA5YdKiS5dsuUprwcMrWU5k3JxjrFdhv9W9zS3O9feaM9F+OIfnI tQ6VcwT49UPuJg2dsKKkie8Tyft0wnIUhgvafRKkvFmJX3Sqbj5OavVOSmdIBH4INFwe D7nxSQ0QB44lNk9LP34sxCdYYmURgC4nRybkXYuk6BY0A5No22uj36zRg5lwTUnqZG9b JgOw== X-Forwarded-Encrypted: i=1; AJvYcCUV9AroL3Az0X3OGvQ1WT7GDmWMx8Z+nGeb8wKEEq8lvIsJtbDiEySe6a6qtTb+IAj/G7wi+2Z6o9Q=@vger.kernel.org X-Gm-Message-State: AOJu0YzeVKv1JeGj6rUnldycgvlVCBY21rbKxB3Rdqk2w4cVLcRxeQSt cge9XnCjBxFe7oS3eLmChK6znB3Y5jUPEM0ZCK/7/Q7WeMWW8jX0RXe3 X-Gm-Gg: ASbGncsFrEYFEFT9d6tutUKNxaGThnwWZtYhxqvJxvjw3rsJH1tEfipUX6iPp/eB9C+ /J0HvccMSRqh+b4SNQbbnUk/xoi64aiZIN8M3K3MMxmJdpvC6bXtl27wV237qPf5YxiWuAoPIl+ p1gAcSNtzZdErnGr2wh3YosKKusuimb+HIqDVsRjAQJSSFE4rV5+olcDMZJHL2f30xFt2F8O3B+ NKzlq9cfYMk+135cVlfA6PZEl/KkA6Efs/qKJNPQOK/SeIV8hccmaRxSbfzgFDznZEBtmDEQzE8 3P2mUgLvD2iH/Qhsl9NqyM7Yu1A04AH2QKVbUNvv9rj9/4ial+EkKiuXIGSXnf5vIrM1wr0WMeU LkaHPHn2eW5PrS5X76Ni/QfQpZwwymAc= X-Google-Smtp-Source: AGHT+IHYbvRT0GxDchBu+SAI5IC3ONMAwpARuUEl29/WtzEddjc5bnwSs5bvc5dFwtpfoAvT/5aEWA== X-Received: by 2002:a17:902:fc45:b0:269:4752:e26a with SMTP id d9443c01a7336-269ba57fa03mr73047415ad.57.1758311545931; Fri, 19 Sep 2025 12:52:25 -0700 (PDT) Received: from localhost ([2804:30c:b65:6a00:ceaa:2ed0:e81e:8f51]) by smtp.gmail.com with UTF8SMTPSA id d9443c01a7336-26cbd206904sm21775175ad.0.2025.09.19.12.52.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Sep 2025 12:52:25 -0700 (PDT) Date: Fri, 19 Sep 2025 16:53:09 -0300 From: Marcelo Schmitt To: Conor Dooley Cc: David Lechner , Marcelo Schmitt , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, jic23@kernel.org, michael.hennerich@analog.com, nuno.sa@analog.com, eblanc@baylibre.com, andy@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, corbet@lwn.net Subject: Re: [PATCH v2 2/8] dt-bindings: iio: adc: adi,ad4030: Reference spi-peripheral-props Message-ID: References: <5c1c448e3e731fc013e1e3b3fdcbc31f806d41fe.1758214628.git.marcelo.schmitt@analog.com> <20250919-paramount-headstand-c9b5d4d03c58@spud> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250919-paramount-headstand-c9b5d4d03c58@spud> On 09/19, Conor Dooley wrote: > On Thu, Sep 18, 2025 at 02:39:01PM -0500, David Lechner wrote: > > On 9/18/25 12:38 PM, Marcelo Schmitt wrote: > > > AD4030 and similar devices all connect to the system as SPI peripherals. > > > Reference spi-peripheral-props so common SPI peripheral can be used from > > > ad4030 dt-binding. > > > > > > Signed-off-by: Marcelo Schmitt > > > --- > > > Documentation/devicetree/bindings/iio/adc/adi,ad4030.yaml | 2 ++ ... > > > @@ -20,6 +20,8 @@ description: | > > > * https://www.analog.com/media/en/technical-documentation/data-sheets/ad4630-24_ad4632-24.pdf > > > * https://www.analog.com/media/en/technical-documentation/data-sheets/ad4630-16-4632-16.pdf > > > > > > +$ref: /schemas/spi/spi-peripheral-props.yaml# > > > > I think this is already referenced for all child nodes of a SPI > > controller because of pattern matching of: > > > > patternProperties: > > "^.*@[0-9a-f]+$": > > type: object > > $ref: spi-peripheral-props.yaml > > > > in Documentation/devicetree/bindings/spi/spi-controller.yaml > > > > So perhaps not strictly necessary? > > > > Would be curious to know if there is some difference. > > I think it's good form if you're actually referencing the properties. I > don't know if it actually makes a difference in the end result of > dtbs_check but it may in terms of making sure properties in this binding > are properly typed when it is tested against. In this case, it appears > you're only looking at uint32 properties so it mightn't have any impact. > Rob would know for sure. > There's no difference, at least on dt_binding_check output. Initial idea was to allow using properties from spi-peripheral-props.yaml, but they are already available through the pattern in spi-controller.yaml. If the noise doesn't worth it, I don't mind dropping this patch. Thanks, Marcelo