Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5358528rwb; Mon, 8 Aug 2022 17:49:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR45y6vdd93vqXfprQaTesoK8qTz3pcxhLk8kb3fTaQmqoTDj/BuIzMW/i7zUgdu8fIBRHt/ X-Received: by 2002:a05:6402:35d6:b0:43d:c3b0:1206 with SMTP id z22-20020a05640235d600b0043dc3b01206mr19803362edc.415.1660006178794; Mon, 08 Aug 2022 17:49:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660006178; cv=none; d=google.com; s=arc-20160816; b=qd4TRqkR7ZwNY2rsdxdk0aLtY96ZqTF60s7ppJw8hoBw5AhuvGdwIQ304hWmQj0i3S J8LAFzL1u1LCDQiQcLKzNx88L0BtlRhzmNKpEb/2s8GCv54IXLH8pr23bXbK1al2TlWF gOP57y1H94OncCSY/p98ye+LsVG2qUr5dXSZveUF+bHbNP5zt9AjZ+/bzyX0g2qDnfmW DMErP4mz6JqEf1dIlOsPsFnJtXRXyzn6ZOJuQR1mHSgNWZQxBcoiTtze5VN1xAuokuYf jxFrm/S8M7ZKwUzKUbId/RgEOXiKm+0Bxf4VUmmD1wTZL7UFb+3b6HczqDx0NbBJz+O8 yNPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=zg8D05det17wHTcb1SQBJ3QqJGHDqgu5vFpaar6HYxg=; b=bZ53tdMjcTMHeMf7WBd4K9Rqgj9BqZV4EiM8CPqCSk+AS9wTkO/cl6uyxDmKQ75O3i zcs8wdN7UNvkhBrcXiCn5IRtaau7PgCia7ODtJ31DwpeuYjA/tA0uvMLi2FAUvRLcixs HPU/ru1G2lVL53h7s+AAOm1k7Ka1RERaqT1HR/b1yUPsLmKnpZWtfmcgrchtyYVZZSKj tVYXNAMxQPGimnKsvccl/ekp/N5KmUJe6RJxHhIWD6cmi+oznpAJBD1VftuAJHfDihsL GT3GbPkzdCPgPPXhq+GEGsoaQHoNvPOdC56YOyU0+a1XlX/aeDqHXZsh7yLrLJw9V1XO 1o+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm3 header.b=kHmVmqK+; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=SllE8aS4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s17-20020aa7d791000000b0043d4293adbasi6467001edq.506.2022.08.08.17.49.13; Mon, 08 Aug 2022 17:49:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm3 header.b=kHmVmqK+; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=SllE8aS4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244690AbiHIAgb (ORCPT + 99 others); Mon, 8 Aug 2022 20:36:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229881AbiHIAg3 (ORCPT ); Mon, 8 Aug 2022 20:36:29 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F34C12AB3 for ; Mon, 8 Aug 2022 17:36:27 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 086515C0003; Mon, 8 Aug 2022 20:36:25 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute3.internal (MEProxy); Mon, 08 Aug 2022 20:36:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1660005385; x=1660091785; bh=zg8D05det1 7wHTcb1SQBJ3QqJGHDqgu5vFpaar6HYxg=; b=kHmVmqK+mbKwLRwLUD31etUwad 7t7bdNYlFth+90f6jokU/Dwkk8d2OpXixJ0L4T07exT2bBuRjb5eNl/PF1N0mbsb F0wz7850K2Xp4+tMd8XxUYK5itbs//3OI1qObAP8MUwcPe5trKVKS5tILE2iI8Om Mmmg6nClEuJBHPCddo7XUg/Sf1U77SCyD94HtGe+wOAIFvM7j5uJHONzqyU5CLNB yUSImXIKeiYOzd54ow9iuLkEfB3W4cxdYMrXZsd79CmdOg9OhT43MWUVzfDYltLk aPmynAktSYaFoFfbzPH9yltZr0urmV29G+EOzfXwG9h8Ojuj/1ynwfWiUzhQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1660005385; x=1660091785; bh=zg8D05det17wHTcb1SQBJ3QqJGHD qgu5vFpaar6HYxg=; b=SllE8aS4h2z9MxtoeAolX2GrOP8mOJu9k3Joa0F0axa4 E9dIyZSiMJI6DZVOHZuOkqTF5ADybN6kxMMcF4sXne7sNg5MnHdx822jX2ny+LSY YgegNddAskWa3SlD/STYB51J3MzuVtKqoHjPburHAfnc8XoqO8ddaXCDOCU4YPt9 zkjKsfJ0sBp9f4QBj6D5xltsxCQhDTQYeyzjQl1FraeDIC/68x54KTzxRwIFvsvm hE3klqEfsWRDxRjLGwp2E5vJqbP4G6T5KW7vsJOUOcn12zPuom1xz/dVvWkppoEx rdMU7FIZow7f2UK2K/yk8nvuYJ4BrQov4XappP5GDA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdefledgfeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehn ughrvgifucflvghffhgvrhihfdcuoegrnhgurhgvfiesrghjrdhiugdrrghuqeenucggtf frrghtthgvrhhnpeekvdekjeekgfejudffteetgeejkeetteduvedtffdtledutdfhheev feetkeeiteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpegrnhgurhgvfiesrghjrdhiugdrrghu X-ME-Proxy: Feedback-ID: idfb84289:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id D26901700082; Mon, 8 Aug 2022 20:36:23 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-758-ge0d20a54e1-fm-20220729.001-ge0d20a54 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <20220516064900.30517-1-ryan_chen@aspeedtech.com> <20220516064900.30517-3-ryan_chen@aspeedtech.com> <5d863bc1-4f27-48b6-89ab-c3f02bc09057@www.fastmail.com> <4c4462a6-e950-48cb-b9ba-822909a86867@www.fastmail.com> Date: Tue, 09 Aug 2022 10:04:37 +0930 From: "Andrew Jeffery" To: "Ryan Chen" , "Joel Stanley" , "Philipp Zabel" , "linux-arm-kernel@lists.infradead.org" , "linux-aspeed@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" , "openbmc@lists.ozlabs.org" Cc: BMC-SW Subject: Re: [PATCH v3 2/3] dt-bindings: i2c-ast2600: Add bindings for AST2600 i2C driver Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2 Aug 2022, at 18:34, Ryan Chen wrote: > Hello, > >> -----Original Message----- >> From: Andrew Jeffery >> Sent: Friday, July 29, 2022 11:13 AM >> To: Ryan Chen ; Joel Stanley ; >> Philipp Zabel ; linux-arm-kernel@lists.infradead.org; >> linux-aspeed@lists.ozlabs.org; linux-kernel@vger.kernel.org; >> openbmc@lists.ozlabs.org >> Cc: BMC-SW >> Subject: Re: [PATCH v3 2/3] dt-bindings: i2c-ast2600: Add bindings for AST2600 >> i2C driver >> >> >> >> On Fri, 29 Jul 2022, at 12:33, Ryan Chen wrote: >> > Hello Andrew, >> > >> >> -----Original Message----- >> >> From: Andrew Jeffery >> >> Sent: Friday, July 29, 2022 10:29 AM >> >> To: Ryan Chen ; Joel Stanley >> >> ; Philipp Zabel ; >> >> linux-arm-kernel@lists.infradead.org; >> >> linux-aspeed@lists.ozlabs.org; linux-kernel@vger.kernel.org; >> >> openbmc@lists.ozlabs.org >> >> Cc: BMC-SW >> >> Subject: Re: [PATCH v3 2/3] dt-bindings: i2c-ast2600: Add bindings >> >> for AST2600 i2C driver >> >> >> >> Hi Ryan, >> >> >> >> On Mon, 16 May 2022, at 16:18, ryan_chen wrote: >> >> > + i2c0: i2c-bus@80 { >> >> > + #address-cells = <1>; >> >> > + #size-cells = <0>; >> >> > + #interrupt-cells = <1>; >> >> > + compatible = "aspeed,ast2600-i2c-bus"; >> >> >> >> This isn't quite right with respect to your binding description above >> >> :) >> > Yes, the compatible need to be " aspeed,ast2600-i2c" is that your point ? >> >> Yes, but only if we agree that we should have different compatibles for the >> different drivers. I'm not convinced about that yet. >> >> I think it's enough to have different Kconfig symbols, and select the old driver >> in aspeed_g4_defconfig, and the new driver in aspeed_g5_defconfig. Won't >> that gives us the right outcome without requiring a new set of compatibles? >> > The new driver in aspeed_g5_defconfig. Right, behind a new Kconfig option. > And different compatible string > claim will > Load the new or legacy driver, I don't think we need this. It's enough to enable the new driver in the defconfig (and possibly disable the config option for the old driver). > it should ok like the different > generation SOC. Have > different design. > Am I right? We have SoC-specific compatibles already, so the new driver can just bind on the compatibles for the SoC revisions that have the new register interface. The old driver just binds to the device in the SoCs that have the old register interface. There's an overlap in support between the two drivers, but for people who care about which implementation they use they can choose to exclude that driver from their kernel config. None of this requires more compatibles be added. Does that help? Andrew