Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1143963rdb; Tue, 30 Jan 2024 09:05:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IGqLA7Qel+9CfT7LojMbD6I74LKcZzOwdY+zs6RnyC+U5/97Tas01EbboVN/eiOJKyWn68b X-Received: by 2002:a17:90a:db87:b0:295:7d89:ca27 with SMTP id h7-20020a17090adb8700b002957d89ca27mr3963148pjv.15.1706634333144; Tue, 30 Jan 2024 09:05:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706634333; cv=pass; d=google.com; s=arc-20160816; b=YQuiIcijRl8YUvUMm4W+NZ+O6kZ+WbzR4aHpHm3qVN2IiFJnIgSilS//RabaJ8f6B9 rxNpfAD88+gqZSuEwCb32DoYxUsDggaihyCjeeHSxQbT94Gs5SOPN21c+DZa6A7jc7vB FAR2n8aPqlKNf/Mt0mGD4tlYUrcLx2FXhJ6b/BxajjkCv6sDaHu6REQGLhx+hxVzF+0x rpf0qZAGYkM24VCsK6maSBYxHzSRYda1AjXCIRiLFGbwlTHkjTZ+Nj7j3gTXjZSDTnUL RXBSIug5ryZ8ic6Ifg/ro9jQ5rmL87XNCJ1fjL6Dj8p+J1Qg9kRCjcAqqY6G0VzXbM2Q ODHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=DORhNCXrKlkp+qiPXoxjbG6X+LDew0cPHZrQ9VRx4HM=; fh=DxQEdrX/MTFTe3+eKf2C36JabHpxap+YP4/8Y5uyh4I=; b=RbxPa8IJkoDu6LxL77txmKXTv+33CM+gPvnYLpi0n8rMWCNp50gmeCz0CESust8l3t 4DPhDIJ7ytf8LLXjW01Gqv8Q1XlbJPRKdsVnSW6ir3qI7WRdtzQs2qM2io7ypT5TJYPI tic86RfD8dFJL1JaTAy3tKD7jiEbEJN1PVrnH669Vt8Nu7+79F//YOdIhtIvbqajVSdx kPkJJYDY8FYBIt25GdTG9OmHjV0X8JN4ey6easqwnDsxOEwwwXwPChJxklxUxG1aP6PS WXykLHF0NDv06/dm8//IckyKg4fQoiIyNJIMnwJNVoH5hFeGl7jyACeyvz9bl2aakIwo j/tA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dvoSdqNe; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-45007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45007-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z9-20020a17090ab10900b002909c748412si9780386pjq.128.2024.01.30.09.05.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 09:05:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dvoSdqNe; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-45007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45007-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8430828944C for ; Tue, 30 Jan 2024 17:03:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B78BC128391; Tue, 30 Jan 2024 17:02:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dvoSdqNe" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DA52B1E4A1; Tue, 30 Jan 2024 17:02:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706634177; cv=none; b=cqy3qEjEeUOf8ou/dlovWrqTPTrAn0S+o2LkrplFUYx+M8eaqV5CbK59HXCgAuaRHmMmCGDvTmSjVvoo37ijN3vUY9v3dG/hlWgHNRope6v+les1k3MIS+NNCRGbtGjXDblU8u9OecyT6RtIHs0crisbyAMXHUPhgqC3VLYa9Bo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706634177; c=relaxed/simple; bh=SXaLPfDZAvSOvV1Meuu6KFULLIZdu+ujJNFiM7oIWY0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=azX/vJ9RscEaEmT7rxL1Ln5R0uSCSN52yFd/klfQ99yJ+oMWSvcin/wTRdN2FcRcFAkoFMMSBC1ydDveBUDuQ5Dkmylxi6sPFK9ibHvrIsXWfAUb0I3UL7bztyKfkUPH9s576tHqcXft7cjAH+HP/f29vNQvNHrzHZgB+QkrztY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dvoSdqNe; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14292C43609; Tue, 30 Jan 2024 17:02:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706634176; bh=SXaLPfDZAvSOvV1Meuu6KFULLIZdu+ujJNFiM7oIWY0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dvoSdqNeIiWSDsCr2ioyEf58I7OUGQb9uOX26I5X1yuzX/WwCAaZ6jzR8t4UQBX7L BlitvCOVARsj5HhNBRufBvScpFuOCrQjwRv0E/5FeIJ1f5nVd/yxWkK8rKYQ8I02A3 yOQZMODrPQDmXmt1ydm95wv2CFFJ1xsqrun+tvXtwBQrv6iVvmePUC+pyES5d9QUtu WYUKX0tGqB+XrI1FafYq0WrUMJEqe9MU/YlLbHBbLbGRYzoriiRPQ4pdIVUYIVt7r6 B8yXwEwzUV6NO3seSe0zy22uB5EfIwBPraYmtfkrkPzmYdTi/x13T760qIkDyAKU2X bvoJB8qBTVqRg== Date: Tue, 30 Jan 2024 17:02:50 +0000 From: Conor Dooley To: William Qiu Cc: "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-riscv@lists.infradead.org" , "linux-can@vger.kernel.org" , Emil Renner Berthing , Rob Herring , Wolfgang Grandegger , Philipp Zabel , Krzysztof Kozlowski , Conor Dooley , Marc Kleine-Budde , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Paul Walmsley , Palmer Dabbelt , Albert Ou Subject: Re: [PATCH v1 2/4] dt-bindings: can: Add bindings for CAST CAN Controller Message-ID: <20240130-extruding-yodel-8580cc390b64@spud> References: <20240129031239.17037-1-william.qiu@starfivetech.com> <20240129031239.17037-3-william.qiu@starfivetech.com> <20240129-garnet-polar-65afd461a1c6@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6HBub9x1mt/td7wn" Content-Disposition: inline In-Reply-To: --6HBub9x1mt/td7wn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 30, 2024 at 06:30:54AM +0000, William Qiu wrote: > > From: Conor Dooley > > On Mon, Jan 29, 2024 at 11:12:37AM +0800, William Qiu wrote: > > > +properties: > > > + compatible: > > > + enum: > > > + - cast,can > > > + - cast,canfd > >=20 > > I don't like these uber generic compatibles that have no users as a fal= lback. > > Allowing them in the binding only really discourages people from creati= ng device > > specific compatibles. > > Secondly, this is some purchased IP that I am sure has a versioning sch= eme and > > the compatibles that you have created do not reflect that. > > If they were being used as a fallback, I would request some versioning. > > That's not going to really work though since the canfd features on the > > jh7110 require setting u0_can_ctrl_can_fd_enable, so neither of these > > compatibles really has a use right now. > >=20 > I'll add some tag to do versioning. I don't want to see a "cast,can-" compatible allowed in isolation either as there is no user for it. The generic compatibles like that should only be permitted in combination with a device specific one - particularly since there are bits in implementation defined registers that control whether or not canfd is enabled. --6HBub9x1mt/td7wn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZbkrugAKCRB4tDGHoIJi 0gttAP4/q8qVZkSoUY5SEHx4IMoXGOkLA6t5XrEBE2tGdNgmnAD+IW65Z6LW6bDe j71PnmrSgtOR9MjEvpq0SgpOkZfnlQ4= =asIB -----END PGP SIGNATURE----- --6HBub9x1mt/td7wn--