From patchwork Fri May 8 10:00:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 11536247 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 53D69912 for ; Fri, 8 May 2020 10:01:20 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2BD75215A4 for ; Fri, 8 May 2020 10:01:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="tA/Gndtg"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=ti.com header.i=@ti.com header.b="c5Jr8Bki" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2BD75215A4 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=H86TDo10Zfz0oJScbhRIT+6AYn4YqMnEL3I6PBl6DO8=; b=tA/GndtgFh8Ous 5WgR0GKAaFrLAoNaM9Vu5UtB9qncdCbabhw44zh8wW7TrMjxP2TAJ1+Bj7D8erkdzzb2lZ+C0rIJt yb58hxYMREu1bG8B5YNBTgrS3dj+quNGmKx+RW7cXEjw3VBhb9w4GuUSeK2ZVCa8x1qtknmG444MP 8zQwQR72epsdvGtNifCCjS+FVUnPS2gJwACVm/euxSE0dcO/13gu/c6h0f7YtEdLW/wG7jdQYpvTt X8pp8qRuzkSh64meCfQEZwaNSn4ifEr/W4KLNuO0LEkakFdnGN13eKnu6qRNYZVuv5zHfl7NTqLbs GeIJE2Mb68DB/+ku8s+g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWzoi-0001rg-Q5; Fri, 08 May 2020 10:01:16 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWzof-0001qs-0B for linux-arm-kernel@lists.infradead.org; Fri, 08 May 2020 10:01:14 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 048A19e7113081; Fri, 8 May 2020 05:01:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1588932069; bh=2JOZvdIqVLBdPCm4Zk9ICOns/DaGylLushk2AFkk0Kk=; h=From:To:CC:Subject:Date; b=c5Jr8BkiXrF2uCTMZjn0AML9xGM511SEyO2HfDnurKEY99naTLC6DJtPq0KHbU9vy /NGSmBt5NZc8mZHza7W7OoQOOzFpXEQ2GxFU8iRg7Ejm08LEbLeYhxYVDhBMx35nRt G8a4fCaD0SGrGByG1Wn8Z4vvUgIK6SBCQx+8JaOE= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 048A19t1071341; Fri, 8 May 2020 05:01:09 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Fri, 8 May 2020 05:01:09 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Fri, 8 May 2020 05:01:09 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 048A18ii102915; Fri, 8 May 2020 05:01:08 -0500 From: Grygorii Strashko To: Santosh Shilimkar , Tero Kristo , Rob Herring , Lokesh Vutla , Subject: [PATCH v3 0/2] soc: ti: add k3 platforms chipid module driver Date: Fri, 8 May 2020 13:00:58 +0300 Message-ID: <20200508100100.20740-1-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200508_030113_124457_B51EB06C X-CRM114-Status: GOOD ( 10.56 ) X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [198.47.19.142 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nishanth Menon , Grygorii Strashko , Dave Gerlach , Sekhar Nori , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Hi All, This series introduces TI K3 Multicore SoC platforms chipid module driver which provides identification support of the TI K3 SoCs (family, revision) and register this information with the SoC bus. It is available under /sys/devices/soc0/ for user space, and can be checked, where needed, in Kernel using soc_device_match(). It is also required for introducing support for new revisions of K3 AM65x/J721E SoCs. Example J721E: # cat /sys/devices/soc0/{machine,family,revision} Texas Instruments K3 J721E SoC J721E SR1.0 Example AM65x: # cat /sys/devices/soc0/{machine,family,revision} Texas Instruments AM654 Base Board AM65X SR1.0 Changes in v3: - add handling of kasprintf() fail Changes in v2: - pr_debug() replaced with pr_info() to show SoC info on init - minor format change - split series on driver and platform changes - add Reviewed-by: Lokesh Vutla v2: https://lkml.org/lkml/2020/5/5/1193 v1: https://lwn.net/Articles/818577/ Grygorii Strashko (2): dt-bindings: soc: ti: add binding for k3 platforms chipid module soc: ti: add k3 platforms chipid module driver .../bindings/soc/ti/k3-socinfo.yaml | 40 +++++ drivers/soc/ti/Kconfig | 10 ++ drivers/soc/ti/Makefile | 1 + drivers/soc/ti/k3-socinfo.c | 140 ++++++++++++++++++ 4 files changed, 191 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/ti/k3-socinfo.yaml create mode 100644 drivers/soc/ti/k3-socinfo.c