Devicetree
 help / color / mirror / Atom feed
From: Jishnu Prakash <jishnu.prakash@oss.qualcomm.com>
To: sashiko-reviews@lists.linux.dev
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 1/4] arm64: dts: qcom: Add header file for ADC5 Gen3 channel macros
Date: Tue, 7 Jul 2026 19:00:14 +0530	[thread overview]
Message-ID: <d8f56740-5274-496f-b77d-8d3790789ebb@oss.qualcomm.com> (raw)
In-Reply-To: <20260614081244.C2AD81F000E9@smtp.kernel.org>

On 6/14/2026 1:42 PM, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Low] Devicetree binding headers for shared hardware components must be placed in `include/dt-bindings/`, not architecture-specific directories.
> --
> 
> commit 7bed566fe71218ad2ab3cd2babe147ee1d601536
> Author: Jishnu Prakash <jishnu.prakash@oss.qualcomm.com>
> 
> arm64: dts: qcom: Add header file for ADC5 Gen3 channel macros
> 
> This commit adds macro definitions for ADC5 Gen3 virtual channels to be
> used in devicetrees and ADC channel reg properties.
> 
>> diff --git a/arch/arm64/boot/dts/qcom/qcom-adc5-gen3.h b/arch/arm64/boot/dts/qcom/qcom-adc5-gen3.h
>> new file mode 100644
>> index 0000000000000..aa8e54d7e786a
>> --- /dev/null
>> +++ b/arch/arm64/boot/dts/qcom/qcom-adc5-gen3.h
>> @@ -0,0 +1,88 @@
>> +/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */
>> +/*
>> + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
>> + */
>> +
>> +#ifndef __DTS_ARM64_QCOM_ADC5_GEN3_H__
>> +#define __DTS_ARM64_QCOM_ADC5_GEN3_H__
>> +
>> +/* ADC channels for PMIC5 Gen3 */
>> +
>> +#define VIRT_CHAN(sid, chan)			((sid) << 8 | (chan))
> 
> [Severity: Low]
> Should this header be placed in include/dt-bindings/ instead of an
> architecture-specific directory?
> 
> Devicetree binding headers defining ABI constants for reg values typically
> reside in include/dt-bindings/ like include/dt-bindings/iio/adc/. Placing
> the header in arch/arm64/boot/dts/qcom/ prevents cross-architecture sharing
> and can break dt_binding_check validation, as the schema tooling expects to
> include these headers from the standard dt-bindings location.
> 

Based on this discussion earlier: https://lore.kernel.org/all/d10e2eea-4b86-4e1a-b7a0-54c55907a605@oss.qualcomm.com/,
these ADC channel definitions should be placed in the dts folder instead of
dt-bindings folder as they are hardware constants meant to be directly
written into registers and not ABI constants.

Thanks,
Jishnu


> [ ... ]
> 


  reply	other threads:[~2026-07-07 13:30 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-14  8:05 [PATCH v2 0/4] Add ADC support for lemans, monaco and hamoa Jishnu Prakash
2026-06-14  8:05 ` [PATCH v2 1/4] arm64: dts: qcom: Add header file for ADC5 Gen3 channel macros Jishnu Prakash
2026-06-14  8:12   ` sashiko-bot
2026-07-07 13:30     ` Jishnu Prakash [this message]
2026-06-14  8:05 ` [PATCH v2 2/4] arm64: dts: qcom: lemans-pmics: Add ADC support for PMM8654au Jishnu Prakash
2026-06-30 12:04   ` Konrad Dybcio
2026-07-07 13:31     ` Jishnu Prakash
2026-06-14  8:05 ` [PATCH v2 3/4] arm64: dts: qcom: monaco-pmics: Add ADC support for PMM8620AU Jishnu Prakash
2026-06-14  8:15   ` sashiko-bot
2026-07-07 13:30     ` Jishnu Prakash
2026-06-30 12:02   ` Konrad Dybcio
2026-06-14  8:05 ` [PATCH v2 4/4] arm64: dts: qcom: hamoa-pmics: Add ADC support Jishnu Prakash
2026-06-14  8:17   ` sashiko-bot
2026-07-07 13:31     ` Jishnu Prakash
2026-06-30 12:01   ` Konrad Dybcio
2026-07-07 13:31     ` Jishnu Prakash
2026-07-11 19:41   ` Bjorn Andersson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d8f56740-5274-496f-b77d-8d3790789ebb@oss.qualcomm.com \
    --to=jishnu.prakash@oss.qualcomm.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox