Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp352105rdb; Thu, 19 Oct 2023 06:31:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+bA6Iw2pRTtRg1MiaqFeAsfkbUU52S+tkkDQMiYnBWvyzt4siWxhSE00HUIPUZts3sKG4 X-Received: by 2002:a05:6358:72a6:b0:141:162:b0d8 with SMTP id w38-20020a05635872a600b001410162b0d8mr1639614rwf.30.1697722273093; Thu, 19 Oct 2023 06:31:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697722273; cv=none; d=google.com; s=arc-20160816; b=wHvQIv+PgpxXtrT7QbC+t2pkFArzx8Bf1VDosejvqslrVTyGUg8BA2JZMir3clsfI8 8J4Aef8+2QWxNGlz8uKI7Y+pKXXSzJcJvvz0D8ihWzT539qjQH76WevWpk+r7x6vxO49 WMq4CsOB+FTQQhetLUIQx+VZg1DwwtPt9Gu1DuxNbu3A3edkxrCJ5T/jiv+hBhxoQoBo UIZohXP5vHxNVkVHZQVfVrTzcNEP9teEvGeOpAFQCl/wlm4dO5ks8z5QO1QOeXXcix8G VkMNuQOWJZT4WQxO8VTD2P/3ZsnYgPBXqCSdwDIIFWOcNsIYG/m0895AsaEoZoUjUANc Y6+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=K7p6hKXquzEuK3VVgr+SAGS98BIcyCawYVt9gii/wPg=; fh=fSjSNUvdFTIfdB7Zf8uaYzde6/oyeZ4ouNwPef7Dnz4=; b=0ofQfOeqa/FziTwQlBpjdrSzMH4iZcFgYwyv87acXND4ziTtiSoKI/PKenu4YnOuWX WFNLWtoXBqHdwPKFw4MxSF4HpjxmybYL0nUAu5bzPb3c7afBQvbLxqKdhkz4MTN3J/GN PKchGlcb1AjzNjAuOOS8SfLTJQSojP/qU5uA06bXhNSOkV5UxOCWfpgOkX29ZMp4xc/h wZXx8ZF/7oz+VcBeVRiP+fKjbVx9aRAKYXnaqSG/FdJ31sx6VSEGcb7wqh3c8RQLOTBy +vW0ydGvkAC/SBEuFTxf4JBUjdGt4auO2Dl0TLMS4FcoMM6jl4hHUWGcnYuAbGn8XYgc bYbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nhaW9EKO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id z1-20020a056a00240100b0068ace3816d7si6467013pfh.387.2023.10.19.06.31.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 06:31:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nhaW9EKO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 2C25C807C868; Thu, 19 Oct 2023 06:30:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345767AbjJSNaK (ORCPT + 99 others); Thu, 19 Oct 2023 09:30:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235391AbjJSNaJ (ORCPT ); Thu, 19 Oct 2023 09:30:09 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9219911B for ; Thu, 19 Oct 2023 06:30:06 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-4083cd3917eso14921835e9.3 for ; Thu, 19 Oct 2023 06:30:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697722205; x=1698327005; 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=K7p6hKXquzEuK3VVgr+SAGS98BIcyCawYVt9gii/wPg=; b=nhaW9EKOrR74kVwEK/mDDSPuQP4kZKaLpX30Z9hC1Wg52239M2eHzAheGxnuhD1so4 F4CDgBSAvnmyg2VD/8NPyqcUfA7fxLQizJ3G8Y4e/NpjXUG+x/IYG/ut6O+lVpKlVaiY 8dYUZ/h0LJqPgAE8bkWYCfy88+8ns/YCT7VYVSnuK2v+OCxl5YBkI2ev8OoXSfTx6eWt QYqmjmgz9+KIUxcxoZ2diNTcl1e158/ik8Ep6Sn5mpQwUK610lYj3mHIIFUSoi9uTjyb YTwZ0VAeU6iW0mPXWX3DkTTJo9fi4OOOCl2T7Xvn0avfbysx4IjVSoqFTzHZRZ/cs6Fp S5QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697722205; x=1698327005; 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=K7p6hKXquzEuK3VVgr+SAGS98BIcyCawYVt9gii/wPg=; b=UgJLA+rBEbIIy+s+VIuaOTEEaSPy4D4c0rpKAl2LibGW5UdNKzmIdRhSRSe1iRdrPh muD8lDZWNJ4ri1fKUI2HmGFARcxB/fj2PCTiO6U3aSXJRq7qM8YOoHBoLPYL/DW6abcY 7dSdU/fA2ZSw80BgPbYPDSCVnIXQTIqfmiybkJVOo81A2Ii8oHhjvGpGqfP35H9XJnQ6 sjQs4ikhX3GilgOMnLT83QYCvTV5QGkSBWksdDMPxsc8QCkIVxXO2RcOFAaNWyU/D/SR iM63wOBVow2Clkk6Xh1KIkFN45ET5p/yPRvGj08+TcY1tzKEFQEj9Qo6iIDpLEXr89wR f7AQ== X-Gm-Message-State: AOJu0Ywo/wEHqZt2dHuR4S/7jfBfQLxclDIuXxZb6J+PxhX2EsJ89WNS 0Y0SShptcUCx7jiOFjpohULOnA== X-Received: by 2002:adf:f74d:0:b0:32d:8da0:48d0 with SMTP id z13-20020adff74d000000b0032d8da048d0mr1340000wrp.68.1697722204877; Thu, 19 Oct 2023 06:30:04 -0700 (PDT) Received: from [192.168.1.20] ([178.197.218.126]) by smtp.gmail.com with ESMTPSA id f5-20020a056000128500b0032d2f09d991sm4458749wrx.33.2023.10.19.06.30.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Oct 2023 06:30:04 -0700 (PDT) Message-ID: Date: Thu, 19 Oct 2023 15:30:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] dt-bindings: iio: light: Squash APDS9300 and APDS9960 schemas Content-Language: en-US To: Subhajit Ghosh , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231019080437.94849-1-subhajit.ghosh@tweaklogic.com> <472aa31d-7d6c-41df-86e6-d17f05998256@linaro.org> <6b721019-c98e-d926-04a9-e71f9ea20762@tweaklogic.com> From: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fDxT7tjKXqBQEscVODaFicsUkjheOD4BfWEcVUqa+XdUEciwG/SgNyxBZepj41oVq FPSVE+Ni2tNrW/e16b8mgXNngHSnbsr6pAIXZH3qFW+4TKPMGZ2rZ6zITrMip+12jgw4mGjy 5y06JZvA02rZT2k9aa7i9dUUFggaanI09jNGbRA/ABEBAAHCwXwEGAEKACYCGwwWIQSb0H4O DFH41ZZ3t1Qbk0N9O0FimwUCYDzvagUJFF+UtgAKCRAbk0N9O0Fim9JzD/0auoGtUu4mgnna oEEpQEOjgT7l9TVuO3Qa/SeH+E0m55y5Fjpp6ZToc481za3xAcxK/BtIX5Wn1mQ6+szfrJQ6 59y2io437BeuWIRjQniSxHz1kgtFECiV30yHRgOoQlzUea7FgsnuWdstgfWi6LxstswEzxLZ Sj1EqpXYZE4uLjh6dW292sO+j4LEqPYr53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <6b721019-c98e-d926-04a9-e71f9ea20762@tweaklogic.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 19 Oct 2023 06:30:20 -0700 (PDT) On 19/10/2023 13:16, Subhajit Ghosh wrote: > On 19/10/23 19:50, Krzysztof Kozlowski wrote: >> On 19/10/2023 10:04, Subhajit Ghosh wrote: >>> Squashing Avago (Broadcom) APDS9300 and APDS9960 schemas into one >>> file and removing the other. >> >> Please answer: why? > Apologies for not providing detailed explanation. > Link: https://lore.kernel.org/all/4e785d2e-d310-4592-a75a-13549938dcef@linaro.org/ > As per your comments on the patch series in the above link and as per my understanding, > I have to do two operations: > 1. Squash existing apds9300 schema and apds9960 schema as they look similar. > 2. Add apds9306 (work in progress) support after that (which belongs to my original patch series). > This patch is the first operation. Answer in the commit. The commits should answer to the question: why are you doing it? >>> >>> +allOf: >>> + - $ref: ../common.yaml# >>> + - if: >>> + properties: >>> + compatible: >>> + contains: >>> + enum: >>> + - avago,apds9960 >>> + then: >>> + required: >>> + - interrupts >> >> Why? This wasn't in original binding. > I am not sure about this. I went through the driver code and found out that probe() Not explained in commit msg. > of apds9300 handles both situations whether interrupt bindings are provided or not, whereas, > apds9960 requires an interrupt binding for probe() to be successful. I thought it would > be appropriate to add that in the schema. Not explained in commit msg. Best regards, Krzysztof