Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2679398ybk; Tue, 12 May 2020 05:36:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy37edoyY+X/zjHmceUIn0w+KvL9lNqVrQEpq+o/1QlSCq88JlE6Vxkof8RoW4HoGQEh/Zc X-Received: by 2002:aa7:c243:: with SMTP id y3mr6865522edo.54.1589287018434; Tue, 12 May 2020 05:36:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589287018; cv=none; d=google.com; s=arc-20160816; b=V8fGI+zNb1z/mfDGJEU40EufRAocdTMWq/slYOua9QI0Xp5oRh+k1GbPzeLs3B6pDG BVAyH7enIXC1sPMyniTfHFM7JNvIOSHJ9a0T/+UyUDT2cxNG5XR4Gpj4COg/oWS4LwGM 7ORZcRT7YSqSH9WjaRU/NCrSnwLqATqlYVzowIwn6A41DKmD3uawKHyaeZV3i++omEdC deZOpEdMyGBuQbaWNK8T6iGiTR6FU+ynmLBq57AI8KSWtEpIcnubaBydGtVpxKVwDwiV KxcGaV5az0XZTM1fWQDFk3W4PfqitOD+VxXl0JKVWvO4A7HxgGJB0uwZu2wqFgEbV96E FVPA== 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=oavLJkiSttaKbvBVxzRsHOQSQLogqUTOGPbZllDcfe4=; b=l+hhwINY7ljEmNRqbmtNYo/O5lsSxC85sUBPck6XHX6x8/DS45/SXkjfz/WFPDwyOA 6kkyzVhjy2yJn2tE/FLriz2Yp41vTqPAvO13FZLpvF2rR5D4Pbwd98CxsZXeALcmYUzJ 81RYtLyWrC7kJVmJkr67fYuuVdAe6Ype887fHt6SvBWJAWTuGhgP7EVD65GJoD3GsuQ5 NdCOtAKQ9+H1gjGQsBDD5xO+1uJXMeHc63nIYvT7JF2WPELMUHN7XNaN9FphyhI8zlBc Efp4MxnsM1eItPMkpOrMTBwOFQUJfDqmE+9EM3rYmDWiV3Yo63qo4Z6fbOPCfjyx/QGE sODQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=oLE3kl7P; 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 cb9si2731049ejb.228.2020.05.12.05.36.35; Tue, 12 May 2020 05:36:58 -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=oLE3kl7P; 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 S1729461AbgELMfN (ORCPT + 99 others); Tue, 12 May 2020 08:35:13 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:42006 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727783AbgELMfN (ORCPT ); Tue, 12 May 2020 08:35:13 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 04CCYvCt080982; Tue, 12 May 2020 07:34:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1589286897; bh=oavLJkiSttaKbvBVxzRsHOQSQLogqUTOGPbZllDcfe4=; h=From:To:CC:Subject:Date; b=oLE3kl7PWIy40UG6vJRYa1tsoELiEdDCVeqB1R9rfE2fI6Nm2+0y2cmdIO9iLtl+M r5nnx6ecphXi/UB+ORrjMknNtReRsE1ETM1i4toMnbOeIZTc2kFt1SyHNZzhXuFqPq Ru9ytjgaaVlZVtUeuLdJg+12bbSG0Hs6DUXVPfZk= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 04CCYvEL083329 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 12 May 2020 07:34:57 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 12 May 2020 07:34:57 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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; Tue, 12 May 2020 07:34:57 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 04CCYt5H067867; Tue, 12 May 2020 07:34:56 -0500 From: Grygorii Strashko To: Santosh Shilimkar , Tero Kristo , Rob Herring , Lokesh Vutla , , Arnd Bergmann CC: Dave Gerlach , Sekhar Nori , , , Nishanth Menon , Grygorii Strashko Subject: [PATCH v4 0/2] soc: ti: add k3 platforms chipid module driver Date: Tue, 12 May 2020 15:34:47 +0300 Message-ID: <20200512123449.16517-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 v4: - convert to platform_driver as suggested by Arnd Bergmann 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 v3: https://lkml.org/lkml/2020/5/8/357 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 | 152 ++++++++++++++++++ 4 files changed, 203 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/ti/k3-socinfo.yaml create mode 100644 drivers/soc/ti/k3-socinfo.c -- 2.17.1