Message ID | 20240215220759.976998-8-eajames@linux.ibm.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-67767-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp159926dyb; Thu, 15 Feb 2024 14:30:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWSZv5zO7j1fG+g95dATCuObapwmFGmXcxAJmVPFW8a+UwuFxuuZTKo5WWQ9gFnDfcwZIYdeWgXvGbjRt3c4SxPiM4ueQ== X-Google-Smtp-Source: AGHT+IF1kivut1bB/346rc6KGapX9Ox36rLj9BVH9nJYsGDTQc3MCUkimarTRhjNbQMXRe9odRuS X-Received: by 2002:a17:90b:f86:b0:297:114b:71b3 with SMTP id ft6-20020a17090b0f8600b00297114b71b3mr3275760pjb.26.1708036234256; Thu, 15 Feb 2024 14:30:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708036234; cv=pass; d=google.com; s=arc-20160816; b=Bb/KAlxFbYXGVi1pTA0jWgtM98iKPPqd8CD5iA5rALfKe79gxxgAphKEfMP4R76Wfv aOOv8FdZEQiYKOkDcxQeB5snzwUCiLFhek7TGzM9QfLk0o7s5H6LJs6BklfkFNGuOgfG 23zRhxorxT3/B3jQnQAC4wfI64beNhWzxJQLaxdcLuoRM7cWSug2k0JZouZVS2jnQwla 4wybCzV4wRRIA+rDV7jekz1cYO7q1WIDubGlwB7BqLMZcRm1SICV3q1kNB9ARnsNfZIx ucV4rdqGrofC8+iG1mK6ZPH9ACFrE5YAhoO738bErbsw5LEIvh4dQ59/ci92KBhl/ogF 0g8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ODxH4flBsSxTPu7P+G7uqK/TVCCy2iNAP3r6LUGYLcU=; fh=Usz7XAB1EI7Q/DdLEXd449E1MLGpSzqdCCNe5XKh9R0=; b=aCAOQpH1loUKTRxd6inZIAIO8pqQ1PzRmWQRXtrl7uJuovOyFfiRZRIKtFQri9/r0+ TF0fCaFWFnTSy+LZYpqJujp8NexsKvf2jLNwkmXSugQG2gEZDT6xRu/+GVcwXs3z4/Cz Vj/kK6A2DoeFYlBdcO/Pw8qq5nj83/HX/mHvydS051mWSULvtH3dFpdfekUQgSBSZngY PM69nePOJxJpkDtFapNb1wN4FMJsnzepkVETyZY4pj+/FRLisiyCYsMRDebr6tvU72Q0 BkkoaO4pHLRf+w74pRvQxv+uoXINIveRX3b5swkqYkA2oNZfiAkj9YdLsY0lzrNhotwU CDqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=MYzKRCpb; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-67767-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67767-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id l6-20020a17090a850600b0029922583a26si911795pjn.16.2024.02.15.14.30.33 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 14:30:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67767-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=MYzKRCpb; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-67767-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67767-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 04702B26864 for <ouuuleilei@gmail.com>; Thu, 15 Feb 2024 22:17:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B45FB154456; Thu, 15 Feb 2024 22:08:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="MYzKRCpb" Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (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 8D319153BEA; Thu, 15 Feb 2024 22:08:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708034924; cv=none; b=TxZZUrJJVEKH5myKmW/Ryz4SI48SnbGlyFFAYVeaRtZK/vYH2j6JyYf8iZdRqyUIsbHw+QUxVaFov+ckttMXwuEpmyEOHAYLyMmVQ9uTffNpN+oeWi4ja5lm2O2GeoKQjOdZ1avcsi/axSAedD+TAXINlNSQqd8SKonIwJppvP4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708034924; c=relaxed/simple; bh=dAwPkU5VJJMi4CHR0KERMlNXkq1qgmEceK78GEleApI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Y24w2J3wUVKfzisNJ8AAH3xHyCVPR915/sHaiTqr3ijRQXE3H3zuOaBrUNOliRyOn7uQIZgw2yn3Q8o0rXK7Dh3PXfm8aOIv8/Prq21bycbXq/yp7LLBMLFhNNzfuR8rsfJnWSLr5JbfS3D8K44Wzzac1N3VU2NrNnQWP6oAD10= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=MYzKRCpb; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0353723.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 41FKOUKR002266; Thu, 15 Feb 2024 22:08:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=ODxH4flBsSxTPu7P+G7uqK/TVCCy2iNAP3r6LUGYLcU=; b=MYzKRCpbzj5vM0n9SuLEz6KxkpSWKxx4DHhsI27InPJzj9hjojjwCngGD5zMCR1cIXIi u/FMM1TrXM6QWv1qsDMOmwa+7/cNIpmhngTy2LO6V4GnAcrn6yFQ1f8g+vgVuyJwOrmE IxMeRsyKaab9yldzmw092Kmf+vXnP8BazcQ2axF+Vo8ot2C+3Z1G+w6AXnXrSSl/8Oq+ bGIQmcnLuVicYubAtFG+ir8lMwcQ5c7J4vMHZCn2rVxmsHgUE4bBoV32atWUQ7qH8ibo gk1xtEZwrcNsbvWFl4yUtGUBKHnmwMErbx08zXRP1X6b4dJai0gUg6maTkoYsofAuifG AQ== Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3w9q8n597m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Feb 2024 22:08:10 +0000 Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 41FJ6raS032589; Thu, 15 Feb 2024 22:08:09 GMT Received: from smtprelay07.wdc07v.mail.ibm.com ([172.16.1.74]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 3w6kftyudr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Feb 2024 22:08:09 +0000 Received: from smtpav03.dal12v.mail.ibm.com (smtpav03.dal12v.mail.ibm.com [10.241.53.102]) by smtprelay07.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 41FM86Vs28246772 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 15 Feb 2024 22:08:08 GMT Received: from smtpav03.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6C4B658068; Thu, 15 Feb 2024 22:08:04 +0000 (GMT) Received: from smtpav03.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 221995807C; Thu, 15 Feb 2024 22:08:04 +0000 (GMT) Received: from slate16.aus.stglabs.ibm.com (unknown [9.61.14.18]) by smtpav03.dal12v.mail.ibm.com (Postfix) with ESMTP; Thu, 15 Feb 2024 22:08:04 +0000 (GMT) From: Eddie James <eajames@linux.ibm.com> To: linux-fsi@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, andi.shyti@kernel.org, eajames@linux.ibm.com, alistair@popple.id.au, joel@jms.id.au, jk@ozlabs.org, sboyd@kernel.org, mturquette@baylibre.com, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Subject: [PATCH 07/33] ARM: dts: aspeed: p10 and tacoma: Set FSI clock frequency Date: Thu, 15 Feb 2024 16:07:33 -0600 Message-Id: <20240215220759.976998-8-eajames@linux.ibm.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240215220759.976998-1-eajames@linux.ibm.com> References: <20240215220759.976998-1-eajames@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: Ik0cGHrb8l2VvYEzn685OGUWkJ05c1C8 X-Proofpoint-ORIG-GUID: Ik0cGHrb8l2VvYEzn685OGUWkJ05c1C8 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-15_20,2024-02-14_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxlogscore=783 impostorscore=0 adultscore=0 suspectscore=0 bulkscore=0 spamscore=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2402150171 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791005802559620851 X-GMAIL-MSGID: 1791005802559620851 |
Series |
fsi: Interrupt support
|
|
Commit Message
Eddie James
Feb. 15, 2024, 10:07 p.m. UTC
Now that the driver doesn't hardcode the clock divider, set it
in the device tree.
Signed-off-by: Eddie James <eajames@linux.ibm.com>
---
arch/arm/boot/dts/aspeed/aspeed-bmc-opp-tacoma.dts | 1 +
arch/arm/boot/dts/aspeed/ibm-power10-dual.dtsi | 1 +
2 files changed, 2 insertions(+)
Comments
On 15/02/2024 23:07, Eddie James wrote: > Now that the driver doesn't hardcode the clock divider, set it > in the device tree. > > Signed-off-by: Eddie James <eajames@linux.ibm.com> > --- > arch/arm/boot/dts/aspeed/aspeed-bmc-opp-tacoma.dts | 1 + > arch/arm/boot/dts/aspeed/ibm-power10-dual.dtsi | 1 + > 2 files changed, 2 insertions(+) Please do not mix DTS patches with driver code. DTS goes to the end because driver code CANNOT depend on it (there are exceptions but it was not explained here). Best regards, Krzysztof
On 2/16/24 02:08, Krzysztof Kozlowski wrote: > On 15/02/2024 23:07, Eddie James wrote: >> Now that the driver doesn't hardcode the clock divider, set it >> in the device tree. >> >> Signed-off-by: Eddie James <eajames@linux.ibm.com> >> --- >> arch/arm/boot/dts/aspeed/aspeed-bmc-opp-tacoma.dts | 1 + >> arch/arm/boot/dts/aspeed/ibm-power10-dual.dtsi | 1 + >> 2 files changed, 2 insertions(+) > Please do not mix DTS patches with driver code. DTS goes to the end > because driver code CANNOT depend on it (there are exceptions but it was > not explained here). Sure, I didn't realize. Thanks. Eddie > > Best regards, > Krzysztof >
On Sat, 17 Feb 2024 at 05:44, Eddie James <eajames@linux.ibm.com> wrote: > > > On 2/16/24 02:08, Krzysztof Kozlowski wrote: > > On 15/02/2024 23:07, Eddie James wrote: > >> Now that the driver doesn't hardcode the clock divider, set it > >> in the device tree. > >> > >> Signed-off-by: Eddie James <eajames@linux.ibm.com> > >> --- > >> arch/arm/boot/dts/aspeed/aspeed-bmc-opp-tacoma.dts | 1 + > >> arch/arm/boot/dts/aspeed/ibm-power10-dual.dtsi | 1 + > >> 2 files changed, 2 insertions(+) > > Please do not mix DTS patches with driver code. DTS goes to the end > > because driver code CANNOT depend on it (there are exceptions but it was > > not explained here). No, this is fine. Please continue sending the patches in logical order as you see fit.
diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-opp-tacoma.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-opp-tacoma.dts index 213023bc5aec..96a8f727bc38 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-opp-tacoma.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-opp-tacoma.dts @@ -193,6 +193,7 @@ &fsim0 { #address-cells = <2>; #size-cells = <0>; + clock-frequency = <100000000>; fsi-routing-gpios = <&gpio0 ASPEED_GPIO(Q, 7) GPIO_ACTIVE_HIGH>; fsi-mux-gpios = <&gpio0 ASPEED_GPIO(B, 0) GPIO_ACTIVE_HIGH>; diff --git a/arch/arm/boot/dts/aspeed/ibm-power10-dual.dtsi b/arch/arm/boot/dts/aspeed/ibm-power10-dual.dtsi index cc466910bb52..a93a241d005a 100644 --- a/arch/arm/boot/dts/aspeed/ibm-power10-dual.dtsi +++ b/arch/arm/boot/dts/aspeed/ibm-power10-dual.dtsi @@ -8,6 +8,7 @@ &fsim0 { #size-cells = <0>; cfam-reset-gpios = <&gpio0 ASPEED_GPIO(Q, 0) GPIO_ACTIVE_HIGH>; + clock-frequency = <100000000>; cfam@0,0 { reg = <0 0>;