Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp193696rdg; Tue, 10 Oct 2023 07:49:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGLJo7DDt1+i3Af7V8Lt2Es5RwpGkecf0oQ8Ra6oGEDk6QY39Icli9YM8fatkb3TktctzYC X-Received: by 2002:a17:902:6b04:b0:1b7:e86f:7631 with SMTP id o4-20020a1709026b0400b001b7e86f7631mr15070122plk.19.1696949399488; Tue, 10 Oct 2023 07:49:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696949399; cv=none; d=google.com; s=arc-20160816; b=mZXtTbJEUoBb8P/NveT1ZjBuHybOXUcX7ihOmJM35DBDuUQXDnyWVFIoALJRUgfEDN POoJBYQwzaFAhSV2SEbjhm10MjCVarDOuuDSTef9VtDB9ybswp931vC8Tj69wG8K2Cx3 FE0iO5CGDqbc+z5cp+OGwpqWlzjAyOnE+5hIdO0zWKuI2gegB2M8vVIeGMg6H0SpJdyf g2L3E2AYgHVXtT2pWi5UgsjZFan+EtKumkTw3BfDkBqrxZOqeMCcnn+Z/WKgy7VAB4Mj yFnePnNzfpUOFPR4ux3nYAoEu90AA+5RMHQ6q6IXtNQop8qnB8RTebaqCNNg+utoeUvb fhLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=0bhHEh0egNuBGITWDfelLkWeOUEDjMz2mOK8KceRWUc=; fh=Psnsqjx5vEpqimeHtO6CHmkGnAV6loMtVxcFwr3kvvQ=; b=QB9LWe9aQG+nEsl3LZsV1ROB1c0hvtmTgWhVvy/pI4RwG+bmpqWyTbKRLgUq45041M /LsRlqZD/V5zXzYczXqsmHYoGff1P5F6u2/A+5j468eL0hYyRgkkwtmjQfYhRJPeQZMe NGEp8sMHKgbWGp0enaBX3OxrgMMYLNf/PEb58nDTcY8XmVDmsxVRMsxMFbQyA6a7zEt5 ffo4cQckzukKII/73lu/W57HkMQSWu/226rm2Xct+q6zivnhgymzWiswqHd/igp/UZJ/ Omb5kr0JQAiJe7JH787WOCP0N1D8xgiTdzJJdEIVl5XSWSmDtWIfTFKdB0q0ANSFA57A mIOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DdnJSw8J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id h12-20020a170902f54c00b001c38666f77dsi13014212plf.596.2023.10.10.07.49.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 07:49:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DdnJSw8J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 3679081D6BD7; Tue, 10 Oct 2023 07:49:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232818AbjJJOtd (ORCPT + 99 others); Tue, 10 Oct 2023 10:49:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232419AbjJJOtb (ORCPT ); Tue, 10 Oct 2023 10:49:31 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44A7EAC; Tue, 10 Oct 2023 07:49:30 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0000C433C9; Tue, 10 Oct 2023 14:49:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696949369; bh=0KXvobl/M1Y6Mk3dGlW7f5LiAx1FlA/lSITdnL1j2E0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DdnJSw8J4JVDDIKJY/bZVVkcsFGN0n9hwiZzYyDSGxRRrXLFIqkOyI2aKWJR66AiZ 37KvoEDHBBfRqKZUgmNS/rjfRybZb/is502JeVlTwwclTFI3tOeo5DKL67m33MxVq9 UH7y4b5EVp6UvTSRPlUptKl4XMeZTCtzkHruvugBpnBVmJPioAcLTK1SDh191H95Vj 8rlVGEmHERWpcCNepA7RPBIMnSB532XLoPl5LgMo4nDfedmtRwKG4k9LOBSA23AD9m Fgn23m5sgUn8VrghBi6VpmfLyKog+cEzl6654hdkZN8vK9g/nh8eJ3L8dV5hz/ydP+ m3o1E4G/z3pUw== Date: Tue, 10 Oct 2023 15:49:42 +0100 From: Jonathan Cameron To: Subhajit Ghosh Cc: Matti Vaittinen , Lars-Peter Clausen , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Gazzillo , Conor Dooley , Stefan Windfeldt-Prytz Subject: Re: [PATCH 1/2] dt-bindings: iio: light: Avago APDS9306 Message-ID: <20231010154942.20737f17@jic23-huawei> In-Reply-To: <83bb2425-aff1-6359-37f4-4182d4f8ed05@tweaklogic.com> References: <20231008154857.24162-1-subhajit.ghosh@tweaklogic.com> <20231008154857.24162-2-subhajit.ghosh@tweaklogic.com> <2c6ff28f-9031-beb2-f8d0-e7f12b0a07b4@gmail.com> <83bb2425-aff1-6359-37f4-4182d4f8ed05@tweaklogic.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Tue, 10 Oct 2023 07:49:57 -0700 (PDT) X-Spam-Level: ** On Tue, 10 Oct 2023 22:48:43 +1030 Subhajit Ghosh wrote: > On 10/10/23 19:22, Matti Vaittinen wrote: >=20 > >> +properties: > >> +=C2=A0 compatible: > >> +=C2=A0=C2=A0=C2=A0 const: avago,apds9306 =20 > >=20 > > I see the driver supports two different variants of this IC, differenti= ated by the part-ID register. Variants are named as apds9306 and apds9306-0= 65. I wonder if we could/should have different compatibles for them? > > =20 >=20 > Yes, we can. It makes sense. I'll implement that. We could. The reason to do so is that we might in future want to use fallback compatibles. So we want to allow a new DT to work with older kernel by saying - I have a new device, but it is fully compatible with this earlier one. In those cases we check the ID as your driver current does, but just print a warning that we aren't sure what the device is so are going with what the DT told us to fall back to. Jonathan >=20 > Regards, > Subhajit Ghosh >=20