Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp2073337rdb; Wed, 31 Jan 2024 19:46:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IH2+L/W37hDObrpGUHr6HRKtJkA0WAFREEgPvFw228wg1dPHLnyzJPkjtf02da4xjML/Bcc X-Received: by 2002:a05:6808:124c:b0:3bd:cb00:3fed with SMTP id o12-20020a056808124c00b003bdcb003fedmr1189813oiv.41.1706759205823; Wed, 31 Jan 2024 19:46:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706759205; cv=pass; d=google.com; s=arc-20160816; b=no0mlAMCfyLZ17FhTWN/B04vezMxvpOmUZZF0lxcLT94thz7EExQb6xSlPQWBQURUE UJYz1+bIJJWiBvfbmOb2U5m0DMq0Px05BpJ3PSJ6t2M7nDauKDe0fvicPNaMz3wcHqzi nF6GrAx4EsvOQUz4bh+ISDWzEI9Qtf43Cz+jFn/LyFQnrCZ4Tliqw7r/uoGovVHujeIZ 1cBs6/CWp4mFvSV02FFxKfaE1YWzoMITf2zLIarK/0x/t4ZsPXIB8a5p40D4PN2fVONW H2n/oTQlWOHfvABpo6ExZP0ADamMdCRcYYOC0xYmqqKWIZXBCYu9hJquiA/Z/xEUZGgx 5cZA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=oRKHvzM8KbCi8vf71Z3F6Qqi7mjIhPHJpavjxrfKHeA=; fh=8XdtYp6qd0IRQaW9aIt5UWNSRfpRy1EF77EI8FdBTxI=; b=CVtCtrTJNpRQLFPsXX3TRZskhK9Gt610x8Tr5bZJGRbyAp5Wb+w906wgmnNvtOBE1T rd5d5L2x4xMzJlCrdBb8psMu2KzXsA91PTN1b4vxTXkC4zeIT3f0EQWdrEHvhP3HeX/T DGZwUzcNMpHTetkKIHWkBgXBtZQgoylF6rihpy3+MBE35rPC75n0YSPoYag4sxLWT6px Jn5NXNH9NlFxCRSbPWH2AlDqEf+IwSAy8h4TcUQq+5Tw5Hwc4SM4Ttr9tAsSTspFASih JRNGUPRd9oA3w3oLzSY9dj14Jqf3itgZn+rIhdsD4dW3OpSuvA5h0wGurgMp28oTifj8 tH1w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=GPVoJeUL; arc=pass (i=1 spf=pass spfdomain=codeconstruct.com.au dkim=pass dkdomain=codeconstruct.com.au dmarc=pass fromdomain=codeconstruct.com.au); spf=pass (google.com: domain of linux-kernel+bounces-47592-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47592-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au X-Forwarded-Encrypted: i=1; AJvYcCUMBHDnWIgvzdPCGKDsGcg1l9I/3TdNMXWVE6ZZtd9109LyNLNuAximRti8KRupZm/CGdOd5bsHdZTQzRB6DAhJ5EJCJxsOWSFzPMzRmQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m23-20020a6562d7000000b005d8b2b49e8bsi9295545pgv.662.2024.01.31.19.46.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 19:46:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47592-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=GPVoJeUL; arc=pass (i=1 spf=pass spfdomain=codeconstruct.com.au dkim=pass dkdomain=codeconstruct.com.au dmarc=pass fromdomain=codeconstruct.com.au); spf=pass (google.com: domain of linux-kernel+bounces-47592-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47592-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au 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 73B1528B774 for ; Thu, 1 Feb 2024 03:46:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 149F73B187; Thu, 1 Feb 2024 03:46:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=codeconstruct.com.au header.i=@codeconstruct.com.au header.b="GPVoJeUL" Received: from codeconstruct.com.au (pi.codeconstruct.com.au [203.29.241.158]) (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 6E0123A8FE; Thu, 1 Feb 2024 03:46:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.29.241.158 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706759200; cv=none; b=VlXRSeZGn17jaHpTM9MxX7C4r6uMNwduMISAEiBYCcDb0ZM3W4iT1mB5XjNR7KKCTXmXHcwZnAy4vpcCixihuwAAZ9slQTaymhAi64Kqea73XvKQ5IQxBnJV01RUeb5D/lUqgnHn7RaOFT52gUzQlFPpY/wRxoVC+3lM0XdXTMI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706759200; c=relaxed/simple; bh=Z5KGSsJTG8Me3n3I9GJaS2SJpQ0zSGDT/19vVzh0uyY=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=rKCZ2h8zz0qMIknxqT5zeNsWdUgSYiP+ZqzXUiEokavnpvF4C/DbgPJlQN9Y8KF0g6rp3A3y5P5M7XWVlPhWWePEMEWJ9xOLNG3YfHihtsVOiXdIJ5ZwHqLkE3j2QFW2E7OW7ndVbXObQJ/WUsIuPi8ehVIylDrlNK/fMdZ73sw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=codeconstruct.com.au; spf=pass smtp.mailfrom=codeconstruct.com.au; dkim=pass (2048-bit key) header.d=codeconstruct.com.au header.i=@codeconstruct.com.au header.b=GPVoJeUL; arc=none smtp.client-ip=203.29.241.158 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=codeconstruct.com.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=codeconstruct.com.au Received: from [192.168.68.112] (ppp14-2-76-194.adl-apt-pir-bras31.tpg.internode.on.net [14.2.76.194]) by mail.codeconstruct.com.au (Postfix) with ESMTPSA id 5952A2017A; Thu, 1 Feb 2024 11:46:26 +0800 (AWST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeconstruct.com.au; s=2022a; t=1706759189; bh=oRKHvzM8KbCi8vf71Z3F6Qqi7mjIhPHJpavjxrfKHeA=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=GPVoJeULG4YDFqW01YBscBR06UWwJZxUYnELBL3ZrWmoDI4oPmFM7QZEy/5AMpeu6 ZU4x/8ukcRJsj6uQd0xJYw7REuHUEkoqyggvwWx6PAO6oE/S9KWd8+gmdqtRtdnd0W fszXI7V3Yaz4A70HA2gqHoe3HAeP6eU+RHdA/iOKMT8mSQg3rYDsUmBf6YKIpTFldi kP7P89Jlbt2I3qDXi3xNv4jeRz78XJBvfE8Zn78OKlFpHDIW1HolO/qxVcz8Ye5WPG 80CdtUgKW2rKzDeZU7JCJHg5mrx9y1Hs1jDI4e84T8X/+qw3bKcEHnVdqfjZOrShbd BOdwQNFb7zV3w== Message-ID: Subject: Re: [PATCH v5 01/21] ARM: dts: aspeed: yosemite4: Revise i2c-mux devices From: Andrew Jeffery To: Delphine CC Chiu , patrick@stwcx.xyz, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Date: Thu, 01 Feb 2024 14:16:24 +1030 In-Reply-To: <20240131084134.328307-2-Delphine_CC_Chiu@wiwynn.com> References: <20240131084134.328307-1-Delphine_CC_Chiu@wiwynn.com> <20240131084134.328307-2-Delphine_CC_Chiu@wiwynn.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi Delphine, On Wed, 2024-01-31 at 16:41 +0800, Delphine CC Chiu wrote: > Revise Yosemite 4 devicetree for devices behind i2c-mux > - Add gpio and eeprom behind i2c-mux > - Remove redundant idle-state setting for i2c-mux Generally if you find yourself listing things the patch does in the commit message it's an indicator you should split the patch up. It looks like there's a lot of stuff to be fixed, but it doesn't need to all be fixed in the one commit (as 01/21 suggests I guess). The devicetree is already inaccurate, it's okay if a subset of the inaccuracies survive for another patch or so. Otherwise, if they must be changed together, it would be good to have a description of *why*. Broadly, the commit message should explain *why* the change is need regardless, not discuss *what* the patch changes (that's evident from the patch itself). >=20 > Signed-off-by: Delphine CC Chiu > --- > .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 381 ++++++++++++++++-- > 1 file changed, 347 insertions(+), 34 deletions(-) >=20 > =20 > - i2c-mux@71 { > - compatible =3D "nxp,pca9846"; > + i2c-mux@74 { > + compatible =3D "nxp,pca9546"; Aside from splitting the patch on adding more devices and removing the redundant idle-state settings, things like this should probably be separate too. Why was the address changed? Was it always wrong? Or has there been a new revision of the board? A separate commit with some explanation here would be useful. > #address-cells =3D <1>; > #size-cells =3D <0>; > - > - idle-state =3D <0>; > i2c-mux-idle-disconnect; > - reg =3D <0x71>; > + reg =3D <0x74>; > =20 > - i2c@0 { > + imux30: i2c@0 { > #address-cells =3D <1>; > #size-cells =3D <0>; > reg =3D <0>; > @@ -450,26 +726,26 @@ i2c@0 { > adc@1f { > compatible =3D "ti,adc128d818"; > reg =3D <0x1f>; > - ti,mode =3D /bits/ 8 <2>; > + ti,mode =3D /bits/ 8 <1>; This isn't discussed anywhere. There should probably be a separate change for anything adc128d818-related that explains what's going on here. > }; > =20 > pwm@20{ > - compatible =3D "max31790"; > + compatible =3D "maxim,max31790"; > + pwm-as-tach =3D <4 5>; > reg =3D <0x20>; > - #address-cells =3D <1>; > - #size-cells =3D <0>; This also isn't discussed anywhere. There should probably be a separate change for anything max31790-related that explains what's going on here. > }; > =20 > gpio@22{ > compatible =3D "ti,tca6424"; > reg =3D <0x22>; > + gpio-controller; > + #gpio-cells =3D <2>; Also not discussed. Separate change for anything tca6424-related that explains what's going on here. > }; > =20 > - pwm@23{ > - compatible =3D "max31790"; > - reg =3D <0x23>; > - #address-cells =3D <1>; > - #size-cells =3D <0>; > + pwm@2f{ > + compatible =3D "maxim,max31790"; > + pwm-as-tach =3D <4 5>; > + reg =3D <0x2f>; > }; Should go in the max31790-related patch. > =20 > adc@33 { > @@ -492,34 +768,34 @@ gpio@61 { > }; > }; > =20 > - i2c@1 { > + imux31: i2c@1 { > #address-cells =3D <1>; > #size-cells =3D <0>; > - reg =3D <0>; > + reg =3D <1>; > =20 > adc@1f { > compatible =3D "ti,adc128d818"; > reg =3D <0x1f>; > - ti,mode =3D /bits/ 8 <2>; > + ti,mode =3D /bits/ 8 <1>; Should go in the adc128d818 patch > }; > =20 > pwm@20{ > - compatible =3D "max31790"; > + compatible =3D "maxim,max31790"; > + pwm-as-tach =3D <4 5>; > reg =3D <0x20>; > - #address-cells =3D <1>; > - #size-cells =3D <0>; > }; Should go in the max31790 patch > =20 > gpio@22{ > compatible =3D "ti,tca6424"; > reg =3D <0x22>; > + gpio-controller; > + #gpio-cells =3D <2>; Should go in the tca6424 patch > }; > =20 > - pwm@23{ > - compatible =3D "max31790"; > - reg =3D <0x23>; > - #address-cells =3D <1>; > - #size-cells =3D <0>; > + pwm@2f{ > + compatible =3D "maxim,max31790"; > + pwm-as-tach =3D <4 5>; > + reg =3D <0x2f>; Should go in the max31790 patch Andrew