Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3EA5C4332F for ; Wed, 8 Dec 2021 09:16:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230454AbhLHJTk (ORCPT ); Wed, 8 Dec 2021 04:19:40 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:64518 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230405AbhLHJTh (ORCPT ); Wed, 8 Dec 2021 04:19:37 -0500 Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20211208091604epoutp0136a4c40f6ab35ba8abf47ab6798112b8~_vNtCl_aj3208032080epoutp01q for ; Wed, 8 Dec 2021 09:16:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20211208091604epoutp0136a4c40f6ab35ba8abf47ab6798112b8~_vNtCl_aj3208032080epoutp01q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1638954964; bh=L3mEF7+6yV+KF0WYa6qMuoeggjqB5AvGNo4NWjRpFMQ=; h=From:To:Cc:In-Reply-To:Subject:Date:References:From; b=gMNmrp6UOk+SQXtCY0n9wimcjXHatJwOCj73wRnxrjmp2csqCcF8nACSQvFRMusN3 u6xThc75Ds/ALEu0XYVBdXNE4z2860oLzoQAtdiMyyEF1XNY8rW8lIGUttfrGDJQP/ X64WOuJIWYgHXrjDXW9IGloQNK5vJeKPY77QRUWk= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20211208091603epcas2p25370c4945595a153b1786cf9691dc65b~_vNsCsIW-1489114891epcas2p2R; Wed, 8 Dec 2021 09:16:03 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.36.102]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4J8BNb1WpHz4x9Pp; Wed, 8 Dec 2021 09:15:59 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id 9A.07.12141.EC770B16; Wed, 8 Dec 2021 18:15:58 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20211208091557epcas2p244a77e72c91615b34d8858b22028f8cc~_vNnCbska3164431644epcas2p2B; Wed, 8 Dec 2021 09:15:57 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20211208091557epsmtrp2749423c11ba8806113bdd048b9797bef~_vNnBkzoA1588515885epsmtrp22; Wed, 8 Dec 2021 09:15:57 +0000 (GMT) X-AuditID: b6c32a48-d73ff70000002f6d-8a-61b077ce47d3 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id B3.31.29871.DC770B16; Wed, 8 Dec 2021 18:15:57 +0900 (KST) Received: from KORCO082417 (unknown [10.229.8.121]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20211208091557epsmtip1e53e5639ade92d055329c00af3879eb5~_vNm1ti9o0050600506epsmtip18; Wed, 8 Dec 2021 09:15:57 +0000 (GMT) From: "Chanho Park" To: "'Sam Protsenko'" , "'Krzysztof Kozlowski'" , "'Rob Herring'" , "'Greg Kroah-Hartman'" Cc: "'Jaewon Kim'" , "'David Virag'" , "'Youngmin Nam'" , , , , , In-Reply-To: <20211204195757.8600-1-semen.protsenko@linaro.org> Subject: RE: [PATCH v3 0/5] soc: samsung: Add USI driver Date: Wed, 8 Dec 2021 18:15:57 +0900 Message-ID: <02b301d7ec14$35d65920$a1830b60$@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQHvNr3EVTo+lBGPAlUO2Lnnk5XtrwJqUxbhq+Zn1cA= Content-Language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrLJsWRmVeSWpSXmKPExsWy7bCmue658g2JBtNnSFjMP3KO1aJ58Xo2 ix0NR1gtNr79wWSx6fE1VovLu+awWcw4v4/J4sziXnaL1r1H2C2e9wG5x98/ZrRYfOATuwOP x6yGXjaPnbPusntsWtXJ5nHn2h42j/1z17B7bF5S79G3ZRWjx+dNcgEcUdk2GamJKalFCql5 yfkpmXnptkrewfHO8aZmBoa6hpYW5koKeYm5qbZKLj4Bum6ZOUDXKimUJeaUAoUCEouLlfTt bIryS0tSFTLyi0tslVILUnIKzAv0ihNzi0vz0vXyUkusDA0MjEyBChOyMxY8nsFYcE++Yv+c o2wNjBsluxg5OSQETCTevbzC0sXIxSEksINR4svpKVDOJ0aJ2/svMEE43xglWuZeZ4JpufGk gRkisReo6n8/G4TzglHi7o+NLCBVbAL6Ei87trGC2CIC5xglDi50AyliFtjJJPH1/HY2kASn gL3ElaU/mUFsYQELiXnN08FsFgEViS2rp4IN4hWwlPixpZMJwhaUODnzCVicWUBeYvvbOcwQ JylI/Hy6DGgZB9AyK4nDx40hSkQkZne2QZVc4ZBo7LMCKZEQcJFY/tsbIiws8er4FnYIW0ri 87u9YL9ICHQzSrQ++g+VWM0o0dnoA2HbS/yavgVsFbOApsT6XfoQI5UljtyCOoxPouPwX3aI MK9ER5sQRKO6xIHt01kgbFmJ7jmfWScwKs1C8tYsJG/NQnL/LIRdCxhZVjGKpRYU56anFhsV mMDjOjk/dxMjOB1reexgnP32g94hRiYOxkOMEhzMSiK8ag/XJgrxpiRWVqUW5ccXleakFh9i NAUG9ERmKdHkfGBGyCuJNzSxNDAxMzM0NzI1MFcS5/VK2ZAoJJCeWJKanZpakFoE08fEwSnV wLRgA4eymHblhAcBrs1Tvn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bv9R0rS9rHNK6fdD5QsV T8aVq/8TviAbeHPhwo9z2bVFNRd8yv3/QdnvCRfnwjktHPddm26s2hcRW3L08ZYTZ9uSpxbb pK7NCv3Mvt7UZOFqx4BL8upMF0X2Sah+8VuwLW33jcXpuaXPL07gDDf7Pf2t+KeMm/t3tZ3g VBY4JenS/2/S00aB41c3vHJYmNrRdflmSMUfcekz9+pONXYsNgn99f5vV6Dh1NnCLLPnMagX vbrxruaYSFih65aZGvq6UyUlb8/OS+B/+TAjdYmk2/e30uKfzkyaL8bRu++M2T57iXVHRK3a 22xyrbSUWIozEg21mIuKEwHa5hqqPQMAAA== X-CMS-MailID: 20211208091557epcas2p244a77e72c91615b34d8858b22028f8cc X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20211204195806epcas2p15410815b695603ef2429fc55730ddb21 References: <20211204195757.8600-1-semen.protsenko@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > -----Original Message----- > From: Sam Protsenko > Sent: Sunday, December 5, 2021 4:58 AM > To: Krzysztof Kozlowski ; Rob Herring > ; Greg Kroah-Hartman > Cc: Jaewon Kim ; Chanho Park > ; David Virag ; > Youngmin Nam ; devicetree@vger.kernel.org; > linux-serial@vger.kernel.org; linux-arm-kernel@lists.infradead.org; linux- > kernel@vger.kernel.org; linux-samsung-soc@vger.kernel.org > Subject: [PATCH v3 0/5] soc: samsung: Add USI driver > > USIv2 IP-core provides selectable serial protocol (UART, SPI or High-Speed > I2C); only one can be chosen at a time. This series implements USIv2 > driver, which allows one to select particular USI function in device tree, > and also performs USI block initialization. > > With that driver implemented, it's not needed to do USI initialization in > protocol drivers anymore, so that code is removed from the serial driver. > > Because USI driver is tristate (can be built as a module), serial driver > was reworked so it's possible to use its console part as a module too. > This way we can load serial driver module from user space and still have > serial console functional. > > Design features: > - "reg" property contains USI registers start address (0xc0 offset); > it's used in the driver to access USI_CON and USI_OPTION registers. > This way all USI initialization (reset, HWACG, etc) can be done in > USIv2 driver separately, rather than duplicating that code over > UART/SPI/I2C drivers > - System Register (system controller node) and its SW_CONF register > offset are provided in "samsung,sysreg" property; it's used to > select USI function (protocol to be used) > - USI function is specified in "samsung,mode" property; integer value > is used to simplify parsing > - there is "samsung,clkreq-on" bool property, which makes driver > disable HWACG control (needed for UART to work properly) > - PCLK and IPCLK clocks are both provided to USI node; apparently both > need to be enabled to access USI registers > - protocol nodes are embedded (as a child nodes) in USI node; it > allows correct init order, and reflects HW properly > - USI driver is a tristate: can be also useful from Android GKI > requirements point of view > - driver functions are implemented with further development in mind: > - we might want to add some DebugFs interface later > - some functions might need to be revealed to serial drivers with > EXPORT_SYMBOL(), and provide somehow pointer to needed USI driver > instance > - another USI revisions could be added (like USIv1) > > Changes in v3: > - Renamed compatible from samsung,exynos-usi-v2 to samsung,exynos850-usi > - Used clk_bulk API instead of handling each clock separately > - Spell check fixes and coding style fixes > - Improved dt-bindings doc > > Changes in v2: > - Renamed all 'usi_v2' wording to just 'usi' everywhere > - Removed patches adding dependency on EXYNOS_USI for UART/I2C/SPI > drivers > - Added patch: "tty: serial: samsung: Fix console registration from > module" > - Combined dt-bindings doc and dt-bindings header patches > - Reworked USI driver to be ready for USIv1 addition > - Improved dt-bindings > - Added USI_V2_NONE mode value > > Sam Protsenko (5): > dt-bindings: soc: samsung: Add Exynos USI bindings > soc: samsung: Add USI driver > tty: serial: samsung: Remove USI initialization > tty: serial: samsung: Enable console as module > tty: serial: samsung: Fix console registration from module Tested-by: Chanho Park with below patch. https://lore.kernel.org/linux-samsung-soc/20211208003946.139423-1-chanho61.p ark@samsung.com/T/#u Thanks. Best Regards, Chanho Park