Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1076712ybj; Tue, 5 May 2020 12:36:08 -0700 (PDT) X-Google-Smtp-Source: APiQypKoJebgKUbjXmkK/FHipM+YLNcaSalzyVqj470aLAXS8bWmSdBsZ1aOANxu+DCixqUQJLzH X-Received: by 2002:a17:906:304d:: with SMTP id d13mr3993737ejd.159.1588707368041; Tue, 05 May 2020 12:36:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588707368; cv=none; d=google.com; s=arc-20160816; b=Jj7cSaIUqfTrikWH4nk8JmvvFh8AydWa/HXjZ5sWogKL6rQV0hwRCvLn1OupkHcLhb Q7ubfsEuoaa9X+JjfjlRaKA+pNvkojmUllXTEKrKpimLCelovU1hjb7In7uGu8YY2euA jlRimCG+dNKGou5THbCIyDsLB1J/+xmSnOpysOZdPr02wjtS0CVTqAYKLKQa3IKBX115 14onUT4sxvlGr7DB2BR3CiYQ4zkANMzieDZ+lX6YG/v60TZ8Nm84GSrNj0KNY+t/eoBN erRRnMtKpNv05IpjWsWQZW06/rVBN9J6pUB8AOW9I/uTG1/iV9rfttJiS7oXelxyT8Ea yLJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=jzWhvutcEwidozLihf++L4max15eM6nrX1kIh+xmuNY=; b=kQL0CUS8oCwp0QnG0BnzvGUd2S68uuV06ss5zwvxeyQy/Q45vgwKYPlJEx5GvOF4xn dv0e+eDRf4MbE3LFyO4StvhT32OnPsEmH75PHBHoExuWb2TV5sHNg+Nddsl4SWmxdb6p XZJ7b2v8TXB7mxZqmXddyVZV8dPscWwZPswyl+OmM1v/7qQUkhISQuTIYt5RVgbAvADg xbx5NvrsWU3jI24kWHVIrfbu8OJ9gNad6/dbc7TNRIrYBGjlKcFZkWLtfPeOGHakbBE3 A6FpSchetUGblCvyVrEglRpnBCQzajtze7UEA/QUZdPv5sQ7iv30peMbVrfqtvrezu0W S0Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="HR1/DoOg"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a7si1867687edb.221.2020.05.05.12.35.44; Tue, 05 May 2020 12:36:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="HR1/DoOg"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728609AbgEETeZ (ORCPT + 99 others); Tue, 5 May 2020 15:34:25 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:42958 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727785AbgEETeZ (ORCPT ); Tue, 5 May 2020 15:34:25 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 045JYJlH030554; Tue, 5 May 2020 14:34:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1588707259; bh=jzWhvutcEwidozLihf++L4max15eM6nrX1kIh+xmuNY=; h=From:To:CC:Subject:Date; b=HR1/DoOgtMRclap0p8EZT4t3wEJGraiI3e+TnTKpvksSMtKf5P7XIt7tIf3fSB/A0 TZOMH/o7LSdfKBDRjHDWGj0XRVxvhEKM9ZV0jVV/TFGX/1Dob3GBYYggzkfo4qZ9nR atvU3qiaHAPP0uGoVF5nn1NC0DGnfnSKbbqu3T/I= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 045JYJvF038853 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 5 May 2020 14:34:19 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 5 May 2020 14:34:18 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE108.ent.ti.com (10.64.6.29) 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; Tue, 5 May 2020 14:34:19 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 045JYHxq126746; Tue, 5 May 2020 14:34:18 -0500 From: Grygorii Strashko To: Santosh Shilimkar , Rob Herring , Lokesh Vutla , CC: Dave Gerlach , Sekhar Nori , , , Tero Kristo , Nishanth Menon , Grygorii Strashko Subject: [PATCH v2 0/2] soc: ti: add k3 platforms chipid module driver Date: Tue, 5 May 2020 22:34:15 +0300 Message-ID: <20200505193417.2112-1-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 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 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 | 135 ++++++++++++++++++ 4 files changed, 186 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/ti/k3-socinfo.yaml create mode 100644 drivers/soc/ti/k3-socinfo.c -- 2.17.1