From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f13.google.com (mail-wm2-f13.google.com [74.125.225.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9390E49E138 for ; Wed, 30 Sep 2026 11:24:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790767499; cv=none; b=OUevyiyrAdNE5V/d+QL5uiFvHwELsWADdP7CNaXiuIBtnZVZrL41ioUtVBYHg3RrafCr1pYbXXeHbmXPXbSo8fo1NcxN2sL1hQsOhCRct0lqGNNk2EFzLLGbh/bHG6tFoRPNqUUGYVHLdj5T/HSTjZ8pKoe8fTQXSY/AKQ0MxuA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790767499; c=relaxed/simple; bh=poceB6zKoYQu2FsWNzDmrgG3238OZ8RROO5Gpc1RH5Y=; h=From:To:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type:Cc; b=mnB59AYfOI1L2/Fgc2ABvTaCMZLwzmqKgUIAiEgZCx68TNifQDsq9pPMK5F/QekFX7oh8kzz42a0ZyD/AlIYCAeWXKog2Sv8qId6TZP900y4MsHZvQuBIwmuGozR08t4RxQmKumLg6PhzAzrYs+7+kcUssw0cvWaXTJun/Cz2YI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=iOJ7klXv; arc=none smtp.client-ip=74.125.225.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iOJ7klXv" Received: by mail-wm2-f13.google.com with SMTP id 5b1f17b1804b1-49e6c0fce17so28260445e9.1 for ; Wed, 30 Sep 2026 04:24:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790767494; x=1791372294; darn=vger.kernel.org; h=cc:content-type:mime-version:content-transfer-encoding:message-id :date:references:in-reply-to:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=poceB6zKoYQu2FsWNzDmrgG3238OZ8RROO5Gpc1RH5Y=; b=iOJ7klXv3A5wy5m2b5K38Pa1IoXSzcyv6XZmgtoDkKETifN3ukEcVNNJSmQbvnjUXo 0NufnfzepqEUvUI//pAO0zFiBJduntesl9v3P8bICfVtclhjLfOO0tPH2SJg/79stKIf iyP7YHtHVwBRAgfN+Rpme27lJ1MB5KjCEKAxGIWl1ETYyd9dciRuJ1rjEZXM2dBj+S72 4CLoNkZVnoPsJIh1bTuEanZ3Or4AtlpxxLO+9iaeHA/ennOjUnCRkamrcdnS0uVWiwRR vGOTLDnyPaJ/M+uTjEUQqpzXMZGblOzFtH6it/8SnGiZ+SXueGFLrzFlrAzrXeQQZWmr WLdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790767494; x=1791372294; h=cc:content-type:mime-version:content-transfer-encoding:message-id :date:references:in-reply-to:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=poceB6zKoYQu2FsWNzDmrgG3238OZ8RROO5Gpc1RH5Y=; b=lXSkMxEHjKI7Vdx33xj3e5YLkgdVar43C3LLpYY/eDh/hcWiDlfcVa/RE6VdC32EK6 6BOnv5U2KP8Zwf532WUvqtcIIEoXHvfXI09FwslcF88SQpBM439SycTtgeOnCrfBqhnU Wqyjl+d2a9vBm52Yftohs9YJmtFP/hWivAqxP5L8TsB+wz/SHR301qhp3LMY6nf1EJZa 8rbtW1FVY1+u016fJ52L5XJDfigy/o4jYUEA9zfLHg49ElGok0mXFh0s6uHlVwxftHlL uI/q5ox33Dk5nVovP7cHyS83miEh71b1ptkYDwOYyTBleP9yQN1cLl5GQyzqew68qNQA ZipA== X-Forwarded-Encrypted: i=1; AKwUvByZagJG1pJBmfs4ZbiyzcNlBZ6lPU3CxHxBRxrXiDETmI4qpJg3/RnQQKWCkrUyCXh80x3g75Yf8CU8@vger.kernel.org X-Gm-Message-State: AFuF++mQAur4lwbr1MQDqe3zYaXXh4d8mRiZueKLv9Nm8jVAHsjcaAQ5 abuO4jwzEkc94dgqYn01/b1hjuzR8A6RFm+3zz6sDcFXgiWEoQ9GEgWg X-Gm-Gg: AYBFou3blNF/1tcFmNKWRGgbQrHW9A97v/16YTiK/WdG5PhUx1HEqeZ2uvI3Fat20Fn +Xvd/2W5t6VWnezM2sOtsbkRDMxqgX2Uh1i1krB1Tg+jJF/TKSHl7AKvHvHRt3WF9kh/yY2ypTi r5rBd0Ysnz47fp9J7AwM03YAaq4DTmoq0TK58ez0mcgqzvxDDLDtThmLlTNL9eiUjK0HHFQqwHK Ceh2tTzzFm4EVaZAU+DwM1IplxSZx3CwD8reGAoyJGj9o3DFO6H/4JbxShgiv4r4RmjZK7qMn/3 6Zx/K3ZtwlekjQrUNNBtVy7YmEwan0jtOiE3MRhr5jHM7Wi0suyVIGHCFUBvR3QjA40xTPdlqvX Sp2dqDqIMKdG72fuqS9KHfKDMvpZWCpOqdM7o42a995X3eQj0aaH3vOmpxrw0DKh01mpCYvKv5c 30to6g5GO6q64Z6S2CjWl2PIYwluBMtrvcARknQKRfYGFvX7lblS97vX23vRpkTg/3Cs3CchNwA 8jgB8AvhloaKHHOazozn7m+kqtm+Hy/ X-Received: by 2002:a05:600c:3b0c:b0:49c:fc6e:a3dc with SMTP id 5b1f17b1804b1-4a01aff4fb5mr16519855e9.27.1790767494156; Wed, 30 Sep 2026 04:24:54 -0700 (PDT) Received: from [127.0.1.1] ([92.241.26.38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a01cd002bcsm3626105e9.4.2026.09.30.04.24.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2026 04:24:53 -0700 (PDT) From: Fil Dunsky To: Arnd Bergmann Subject: Re: [PATCH RFC 07/10] tty: serial: Add Cortina Systems CS75xx UART driver In-Reply-To: <1d81c2ef-7a5b-4306-83d2-ff96b0eb6a06@app.fastmail.com> References: <20260930-b4-cs75xx-v1-0-4617c4463529@gmail.com> <20260930-b4-cs75xx-v1-7-4617c4463529@gmail.com> <1d81c2ef-7a5b-4306-83d2-ff96b0eb6a06@app.fastmail.com> Date: Wed, 30 Sep 2026 14:24:51 +0300 Message-ID: <179076749140.3134070.3869742286743401078@gmail.com> Content-Transfer-Encoding: 8bit Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format="fixed" Cc: Linus Walleij , Krzysztof Kozlowski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Jiri Slaby , Russell King , Alexandre Belloni , Drew Fustini , Lorenzo Pieralisi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Jason Li , Jason Li On Wed, Sep 30, 2026 at 01:08:07PM +0200, Arnd Bergmann wrote: > On Wed, Sep 30, 2026, at 12:57, Linus Walleij wrote: >> Look at this in your Linux tree: >> git log -p b61c8bf4694b5115766849378dcb8787ff54e65e >> >> This is essentially a resurrection of that driver. > > Jason actually came back this summer to try again, see > https://lore.kernel.org/linux-arm-kernel/20260610112821.3030099-1-jason.li@cortina-access.com/ Thanks, I was not aware of either. Comparing the two, it is the same IP: the offsets of CFG, RX_SAMPLE, TX_DAT, RX_DAT, INFO, IE and INT and the bit layout of CFG, INFO and the interrupt registers are identical. The Cortina Access version additionally has a flow control register at 0x04, RT_TUNE at 0x0c, STATUS at 0x2c and three more interrupt causes (break, RX underrun, TX overrun). >> Anyways, clearly this driver is not just for CS75xx so name it >> cortina-uart.c simply, and update symbols accordingly. Kconfig >> should be SERIAL_CORTINA etc. > > I think we clearly want a driver that works for both the Cortina > Systems CS75xx and the Cortina Access CA82xx, hopefully that > would also support the ones inbetween (CS80xx, CA81xx). Agreed. For v2 I will rename it to drivers/tty/serial/cortina-uart.c with SERIAL_CORTINA and SERIAL_CORTINA_CONSOLE, and name the binding so that it can take the other parts. I would keep SoC specific compatibles ("cortina,cs7542-uart", later e.g. "cortina-access,ca8289-uart"), so that the flow control and the extra interrupt causes can be enabled per compatible. I can only test on the CS7542. Jason, would you be fine with adding the CA82xx on top of this driver instead of a separate one? I am happy to add the compatible and the bits you need if you can test them. Thanks, Fil