From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 AB5011A275 for ; Mon, 19 Jan 2026 04:51:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768798308; cv=none; b=LQ6rXZ3+A0oCTT0ZxIbb1exPbHZjCrq/5Jye9hHXh67RKnQUp9fBVKkqszjxd6F+wLDpn5GnraTrTyKT/07WYOra3iYOlk3lLE3P/0GofITKIHfiqWAgXUxi3ONMRmoxuFvFsu3bt/zbsBNYKbP1JqFaO+x7e+HDCiWbQ03kCgg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768798308; c=relaxed/simple; bh=D9Vaj7OQrZmk2pDElqiYd3JWff9QOz69KFSU7Ygjlp0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=VcYZi6CYYUrGyQlDH1ozcBOu6GmzCpItFOj60i5MnhUBDm1uVdYfQepGOU8Jr4h+tvB0rqPbib2ePXBKrxcAIoCmwxLYrd5dIKz/seDR8T2xfnPA729c0iKRL3oxLKjc6EoDVP1itJmKeWG4Uy86fi+AhkCkGcR7pMoj7pExJug= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=WEH8pBmE; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Z1ni0C7x; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="WEH8pBmE"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Z1ni0C7x" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 60ILYSkL3481545 for ; Mon, 19 Jan 2026 04:51:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= pe0ppVmVWykTbR56gl2RExAsGWnQBkCtnrcpym1xn84=; b=WEH8pBmELQ0w82pd mqDBlC45btg3vdqzZ064cdjHJfZxXD7nRGzb0luu3rYmU/GcIGqJQDBrmbOtvdA4 LbmNfaFQWzIDVYIU19XpJuDEGYOa+/XzMWfOQRo80llf4tEXLKcm3wrmuk50jVQb CS/nve8+NwpPSs+aJZiaSTtGzIRRmTJM/zZW9RAyxx/pHj9k3dKj5b+wwVC8R76P LIxJsn39Owokbft+hoXUe/cgYaZT3mkdp2ojS2XDmjr40e7i14UfSvkXWDMd7li6 1WEq1vx9y7qmtsw/jzLEdM+Jy38Kt1abemT2W61790Fp6tJwDaM4vQcGaM12XBMG VDQPtQ== Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4br2t73mdh-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Jan 2026 04:51:45 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-34eff656256so3626835a91.2 for ; Sun, 18 Jan 2026 20:51:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1768798305; x=1769403105; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=pe0ppVmVWykTbR56gl2RExAsGWnQBkCtnrcpym1xn84=; b=Z1ni0C7xYmHQMXAeWahHRTnLXRl3EZxOlI5JKwezxspeMNIJFUVT+lw3yzqZmqFX3r rg+SMCpcrWMqDmYSPmVeIYa+SEJkh0aMr/z90CwXB1fR01LtkP4LKxbFmJmIjX5s+sov AHjlAdvKnkjsJ3j00kmz0hX47G2jXNsm3CPg4ln235e7rlJCFQOjuPS5SaQTb85Ryn4X Mvbjb7Vov1tWj0BB31wGfdVLf4FfQrmzsxp+DAPxegftNp9ojygjTD6jA7sK8FNSEtcK Gwc6aHgYocoPKD+U6MA+PuqvlC5AiRj1fq3D6ONu9kx5Tj4g/WBeU/d1KCFkqoQPwkGt 3HLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768798305; x=1769403105; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pe0ppVmVWykTbR56gl2RExAsGWnQBkCtnrcpym1xn84=; b=MbUucQD1JDWi55jHAb0SaTZhtDSTg055ETRWwiHYFaBvnd6a9ybuUKsV4hNiW7ftzX dArYArY47v2CmEAqowJpCI6wtSqScSh1qm7KJiVe8dCJZl8LXaJYgjGw592C4HcrEKko RnZPNfnoEOYm1lp9mU9IVMa9ZcLpeiMRQcUIoXxPJ6aeofgQ2MyOtV9fTyzh9a4OcnDX 8AAeEwptX3/qdwOTO10GW2lqz+VCiFhzI/eNdnHMvUjqGYgtd75JUeEBll0Zp6/e2V1Q 8yO6uTDuJq1wD9/cHQwvvzgpZPJFhWfVUuqrnV1INHTRqRJWk4YK33AyLWFACQAFuN6O 4LEQ== X-Forwarded-Encrypted: i=1; AJvYcCUEGizygscoWPxZSUf8J5MiWo28kLMO/Kd1eM4P+bR2ZwX24VyoEknJ08vUN223+68wWd/IeS558a0YR9o=@vger.kernel.org X-Gm-Message-State: AOJu0Yw5eQWNypGZpgv5QtYaxiT4jWsjs9ROqex6Fnw8kN+4n1Aljsll kuoV5y2FvivtNyQKM+fXwke9E/qXq/g8YM4XoBmfRln/lT8OnlRyHuhlAXxWjIGZTE6LDubx3BD ms0BtfxpYExLI/PIRZ8EGqnl1tmcpeA+dEHV6s+jhCOu6yDtb1WQkeSE6wQxVi9OPV5g= X-Gm-Gg: AY/fxX7LSAkYRB06oy8q14xZXDgothBgN+mre6Ob2l4qr7cn2GK1JSa0UbnM+Mj+wQf nUTE24ykWay0rAW6+e5dGDYZqvP6h6+LhDI4715gL9N2j27lw9l6dPvYebLqkzU1ZtkS8CFbngO xkEIedygvDMPRY3BVlgS4aZLppnhqxqHEsetSoGB1/F99aMLXK342BfGBNOA2HUH43ZICfAxjmH FpeykpNeoUEV5RjJLoq5SCwTw6AgJ8ESdm4cWUYOTJISWTCNfjpFn/WhEWnABOGqEmqu8Ndsbgv OCLkQzw60p5/iSxc+oVsz+2PGEF6bU7t/z18VEycycLBbq9WVr5W0QYl8rsd8J6N6l+Egu5cINk gHcHjG5L3n272dHBHB2iBnVmH/zYr+/Xm45ZAPlN2Uw== X-Received: by 2002:a17:90b:58cf:b0:349:162d:ae1e with SMTP id 98e67ed59e1d1-3527327df4fmr8987873a91.33.1768798304533; Sun, 18 Jan 2026 20:51:44 -0800 (PST) X-Received: by 2002:a17:90b:58cf:b0:349:162d:ae1e with SMTP id 98e67ed59e1d1-3527327df4fmr8987850a91.33.1768798304047; Sun, 18 Jan 2026 20:51:44 -0800 (PST) Received: from [10.218.4.221] ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3527305490fsm7835596a91.1.2026.01.18.20.51.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Jan 2026 20:51:43 -0800 (PST) Message-ID: <316fa702-6cd8-4842-aecf-c176a5a53e2e@oss.qualcomm.com> Date: Mon, 19 Jan 2026 10:21:37 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 2/2] arm64: dts: qcom: qcs6490-rb3gen2: Enable CAN bus controller To: Dmitry Baryshkov Cc: mkl@pengutronix.de, mani@kernel.org, thomas.kopp@microchip.com, mailhol@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andersson@kernel.org, konradybcio@kernel.org, linux-can@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, mukesh.savaliya@oss.qualcomm.com, anup.kulkarni@oss.qualcomm.com References: <20260108125200.2803112-1-viken.dadhaniya@oss.qualcomm.com> <20260108125200.2803112-3-viken.dadhaniya@oss.qualcomm.com> <5cdfe5a5-3c78-45a2-886c-768b224ad776@oss.qualcomm.com> Content-Language: en-US From: Viken Dadhaniya In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Authority-Analysis: v=2.4 cv=Fdc6BZ+6 c=1 sm=1 tr=0 ts=696db861 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=vUbySO9Y5rIA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=4ibTxloRqUhnMlsHXSUA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-ORIG-GUID: 7xK_tdY4B-UvKZYl4KXGVdQXQjQ75j6R X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMTE5MDAzNyBTYWx0ZWRfX4XPNrsSfp8sX PvgxIWQrjlSjB5SPhScitW6+THETZkQlbcxnOQa5ao6kBCodoPFccbXqujbdmPCM5x/wFdAbKnm +bpCgwqkNoikgh5rAemAbcqfbAmW8PzxlL1xI3XdJpOFR7paa3N6Fw4v8cT8J/eT0iWJODcusNl UzK4ZRTvEk8gbiejK/O2j//8n2LzYFEkZirqstrqYR00Tj3C0QyANeKLNTYzvh14ruUD7O/s7Dt tJsoBXucsq2oPvo/xMy97d9LkSL5qfv9YpSK+b5WFQX9Mf+rojJfNiQzFSBb2iNjnkWu/bRdaBZ 40RoA7w1HIl8P3GtKn8qh5kfDBKfAlFXF++FVvDyFac8MDv60zbMKXkK7giuhaJJk+RdqeL2G+N HlO82h+6Y/51+KQ4U6FJcE4mc97IOx5wB+viQpXPcrjpA75S5/QfFeVRQJtpVXrMe6QbGOINYX+ l1SVhVpjMN4Tfo4017A== X-Proofpoint-GUID: 7xK_tdY4B-UvKZYl4KXGVdQXQjQ75j6R X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2026-01-17_03,2026-01-18_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 clxscore=1015 malwarescore=0 lowpriorityscore=0 phishscore=0 bulkscore=0 impostorscore=0 priorityscore=1501 spamscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2601190037 On 1/9/2026 7:35 PM, Dmitry Baryshkov wrote: > On Fri, Jan 09, 2026 at 06:23:39PM +0530, Viken Dadhaniya wrote: >> >> >> On 1/8/2026 7:33 PM, Dmitry Baryshkov wrote: >>> On Thu, Jan 08, 2026 at 06:22:00PM +0530, Viken Dadhaniya wrote: >>>> Enable the MCP2518FD CAN controller on the QCS6490 RB3 Gen2 platform. >>>> The controller is connected via SPI3 and uses a 40 MHz oscillator. >>>> A GPIO hog for GPIO0 is included to configure the CAN transceiver in >>>> Normal mode during boot. >>> >>> The main question is: what is so different between RB3 Gen2 and previous >>> RB boards which also incorporated this CAN controller? Are there any >>> board differences or is it that nobody tested the CAN beforehand? >>> >> >> The behavior is consistent across platforms, but I do not have details on >> how other platforms were tested. >> >> On the RB3Gen2 board, communication with the PCAN interface requires the >> CAN transceiver to be in normal mode. Since the GPIO-controller support >> was recently integrated into the driver, I configured the transceiver using a >> GPIO hog property. Without this configuration, the transceiver is not set >> to normal mode, and CAN communication does not work. > > How do we verify the mode on a running system? I have the boards, but I > don't have anything connected to them over the CAN bus. > > BTW: can you recommend any simple setup to actually test the CAN bus on > those devices? > I tested the CAN controller using the following commands: 1. Loopback Mode Testing (GPIO hog not required) ip link set can0 down ip link set can0 type can bitrate 500000 loopback on ip link set can0 up cansend can0 12345678#1122334455667788_B candump can0 2. Testing with External CAN FD Adapter (PCAN-USB FD) A GPIO hog was required to configure the transceiver in normal mode. 1. Probed and verified CAN transceiver pins and connected them to the PCAN-USB FD hardware. 2. Configured the CAN interface: ip link set can0 down ip link set can0 type can bitrate 500000 ip link set can0 up 3. Configured the PCAN-USB FD software for 500 kbps arbitration bitrate. 4.Sent a CAN FD frame from Linux cansend can0 12345678#1122334455667788_B 5. Verified reception in the PCAN software. 6. Transmitted frames from the PCAN software and validated them on Linux candump can0