Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5009130rwb; Tue, 8 Aug 2023 18:45:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHTjmNPbluZiH+dyau6ME9MHoQUVgev/TozLef3wFg3mNXPghP6Dl8XE1vktABMMWgCYS/L X-Received: by 2002:a17:902:e741:b0:1b8:28f4:f259 with SMTP id p1-20020a170902e74100b001b828f4f259mr1256070plf.69.1691545514737; Tue, 08 Aug 2023 18:45:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691545514; cv=none; d=google.com; s=arc-20160816; b=RYDy+rBKqEjT1iwDTk7OYKPzI390OaQcknHsoCdqRw6vpIbezxJQJwZCSCYLX9tXLF VDmUTEhFFP2qbCSq8/XpVO3t2F5lBgumsqhLRK4judLOYaXxn5gVmbz3/2ZMIdRKB2eb /NXebUfm4mPlYuserzw3idcmxCh6Im8zepECxPRxI8vm/Uiuoin6OnfjUV0d8WVqk2Rn wSUZ27RQE3J4afR1tYveApZVcR6Xcoz6BGEWUN5P6RXxRRigWKrTgGHhfNFAUH5CO4gS wJi4wsVkIMT9z+e5kZ8mhoefioF1DTttuav91tFVKar3/gryf+9nnQ5IFMd8yg/V4Z14 1Lqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=6qLqCNRICu2NyTPw0KKNnC7PvvAmPBJh4X1ZTZr4EJg=; fh=AFD+kWEG54saG2rLrBDmY3ob2E2aDSHbyL7CvsUMqVo=; b=m4vvW5TFX/xumHpIVi+LeH21PLk2hs3eKfLq2RbneeaJjQMT3KKeDeK6Xw9HrpXRoC JXe7ZTGVZZSV/V5svuW0XxJPshmge6QyC8DlNAblgdSu0U1p2waqR5w6G1zUaCH/vkDP +Zi8HG3rqxpyYuhIsf+XQoOON5k0Xz6OuDhutzo/zTFAjZ937WgBpuZtxTHHdgMCaFqA F5vG47z0KxLpr7aMzWmT2KIe+lfiCahZV9+jhwQBscxMDbel+vWyq1r96PXAapdTT93u 4w2Pd47YUuz6tgstZOyxoOBrWxR5fSggqn4UbrCv4VPz/17c82OhX5j7gbGGoX2HWh5H vG5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=JSjt8XEr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y12-20020a170903010c00b001b828f8dd13si8016848plc.340.2023.08.08.18.45.01; Tue, 08 Aug 2023 18:45:14 -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=@codeconstruct.com.au header.s=2022a header.b=JSjt8XEr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231407AbjHIAIS (ORCPT + 99 others); Tue, 8 Aug 2023 20:08:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231395AbjHIAIR (ORCPT ); Tue, 8 Aug 2023 20:08:17 -0400 Received: from codeconstruct.com.au (pi.codeconstruct.com.au [203.29.241.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D864E10F7; Tue, 8 Aug 2023 17:08:14 -0700 (PDT) Received: from pecola.lan (unknown [159.196.93.152]) by mail.codeconstruct.com.au (Postfix) with ESMTPSA id 44F1A20187; Wed, 9 Aug 2023 08:07:59 +0800 (AWST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeconstruct.com.au; s=2022a; t=1691539681; bh=6qLqCNRICu2NyTPw0KKNnC7PvvAmPBJh4X1ZTZr4EJg=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=JSjt8XEr7aLccezZ7hz2yq//uMqicALMQqUct/5ULSgUA3i4ObTRVPYDxnZe/5EKl jd6XoDEj7vbaMmHve7uHHPd6Bui58TQCVOB7ccPNDDVQpxECNhtGZe0tQFXgkFnQmU /wiTplEjRbb0MQqlNKhZ2RBFNOvMnp6FJMXq0e3CRQKnjMjvXmwGz6y97+KGORb0c0 DWqvqe1SBfZruvFziYTCSpDhc2AAlBIB2G4UeRvCuU4m9o0Qax2gIRrkWK7QaABykD TtLjhK+DxsGRXWTC2nH84pbNII17Xi0TewOULHLnBGZs3YpkgMvlkz9b5Q8qjGo7g2 fFBNlMd+JVL7Q== Message-ID: Subject: Re: [PATCH 0/3] Add Aspeed AST2600 I3C support From: Jeremy Kerr To: Dylan Hung , alexandre.belloni@bootlin.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, joel@jms.id.au, andrew@aj.id.au, p.zabel@pengutronix.de, linux-i3c@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: BMC-SW@aspeedtech.com, kobedylan@gmail.com Date: Wed, 09 Aug 2023 08:07:58 +0800 In-Reply-To: <20230808154241.749641-1-dylan_hung@aspeedtech.com> References: <20230808154241.749641-1-dylan_hung@aspeedtech.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED 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 Hi Dylan, > This patch series introduces the necessary changes to enable I3C > support for the Aspeed AST2600 I3C controller. Specifically, it addresses= the > missing pinctrl configuration and reset control for the I3C > functionality. +1 for the pinctrl changes for the I3C1 and I3C2 controllers (I'll review and ack separately). I have been testing on I3C3 and up, but just not with the HVI3C on 1 & 2, hence no pinctrl definition there. However, I don't think the other two are needed. For 2/3 and 3/3, you're adding a reset control for the global register block within the per-controller driver, but we can already do that on a global basis with the existing syscon device. Hence this earlier change: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit= /drivers/mfd/syscon.c?id=3D7d1e3bd94828ad9fc86f55253cd6fec8edd65394 For this, I have: &i3c { i3c_global: i3c-global { compatible =3D "aspeed,ast2600-i3c-global", "simple-mfd", "sysc= on"; resets =3D <&syscon ASPEED_RESET_I3C_DMA>; reg =3D <0x0 0x1000>; }; i3c2: i3c-master@4000 { compatible =3D "aspeed,ast2600-i3c"; reg =3D <0x4000 0x1000>; clocks =3D <&syscon ASPEED_CLK_GATE_I3C2CLK>; pinctrl-names =3D "default"; pinctrl-0 =3D <&pinctrl_i3c3_default>; interrupts =3D ; aspeed,global-regs =3D <&i3c_global 2>; status =3D "disabled"; }; /* ... */ }; - with no changes needed to any bindings. I haven't needed any other resets; are there per-controller resets specified in the HW docs you have? Does that work for you? If you'd like to test, feel free to use my sample dts at: https://github.com/CodeConstruct/linux/commit/05cac24705fa62d2176ecbbbf15= d955cfe86e753 Cheers, Jeremy