From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C038CC433B4 for ; Thu, 1 Apr 2021 05:25:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7E5D161055 for ; Thu, 1 Apr 2021 05:25:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232989AbhDAFYw (ORCPT ); Thu, 1 Apr 2021 01:24:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:36040 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230291AbhDAFYp (ORCPT ); Thu, 1 Apr 2021 01:24:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 24F3960698; Thu, 1 Apr 2021 05:24:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617254684; bh=BRPNGHFq9n8qHOWZs3Z9xHbkEAkNiy/Yclwd+wHA1Nw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=E+wj1eNWvmWW7hOVckRKHD3fCJ0ZqwUYd5wDnWUsHIhKkJz0yAms8iqFdv7b7bS44 D/USeu8n+Erqt+I4oiQLgXaF3jMLbMgGSVj/SUgCmwSZ+ba4Yv0F80r0FKgXFEPo0o nxjyXLNjpWR+a+l7Ad9paOjOnytgpW7vV6nZJSeZAezfT/0fpDFFAEMtvtTbNfrr5p hUt6iuZAQ0L6CH2gnDSLPegydhp7OUqkGbMfz8JoVOq+3djuP60zyKP8UeRSh1s6ob n9U9WeJKbgqvJIs82hqQG+g5dziqPKxL7mvvbGX/sa/Jw35LGrh6U5W+t+5IdCcJG+ RHCocMiCb1Svg== Date: Thu, 1 Apr 2021 10:54:38 +0530 From: Manivannan Sadhasivam To: Cristian Ciocaltea Cc: Rob Herring , Andreas =?iso-8859-1?Q?F=E4rber?= , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/6] Add support for Actions Semi Owl socinfo Message-ID: <20210401052438.GB14052@work> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 30, 2021 at 04:48:15PM +0300, Cristian Ciocaltea wrote: > This patchset adds a socinfo driver which provides information about > Actions Semi Owl SoCs to user space via sysfs: machine, family, soc_id, > serial_number. > > Please note the serial number is currently available only for the S500 > SoC variant. > > This has been tested on the S500 SoC based RoseapplePi SBC. > Is this the soc_id provided by the vendor bootloader (uboot)? If so, under what basis it provides? I don't think the SoC has the provision for soc_id based on HW parameters. Thanks, Mani > Thanks, > Cristi > > Changes in v2: > - Exposed the memory range for reading the SoC serial number under > /reserved-memory DT node, according to Rob's review; as a consequence > added a new binding document (actions,owl-soc-serial.yaml) and updated > owl-socinfo.yaml > > - Replaced the unportable usage of system_serial_{low,high} globals > with a public API to provide external access to SoC serial number > parts (e.g. Owl Ethernet MAC driver will use this to generate a > stable MAC address) > > - Rebased patch series on v5.12-rc5 > > Cristian Ciocaltea (6): > dt-bindings: reserved-memory: Add Owl SoC serial number binding > dt-bindings: soc: actions: Add Actions Semi Owl socinfo binding > soc: actions: Add Actions Semi Owl socinfo driver > arm: dts: owl-s500: Add reserved-memory range for Owl SoC serial > number > arm: dts: owl-s500: Add socinfo support > MAINTAINERS: Add entries for Owl reserved-memory and socinfo bindings > > .../actions,owl-soc-serial.yaml | 53 ++++++ > .../bindings/soc/actions/owl-socinfo.yaml | 57 +++++++ > MAINTAINERS | 2 + > arch/arm/boot/dts/owl-s500.dtsi | 13 +- > drivers/soc/actions/Kconfig | 8 + > drivers/soc/actions/Makefile | 1 + > drivers/soc/actions/owl-socinfo.c | 152 ++++++++++++++++++ > include/linux/soc/actions/owl-serial-number.h | 20 +++ > 8 files changed, 305 insertions(+), 1 deletion(-) > create mode 100644 Documentation/devicetree/bindings/reserved-memory/actions,owl-soc-serial.yaml > create mode 100644 Documentation/devicetree/bindings/soc/actions/owl-socinfo.yaml > create mode 100644 drivers/soc/actions/owl-socinfo.c > create mode 100644 include/linux/soc/actions/owl-serial-number.h > > -- > 2.31.1 > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23CB0C433ED for ; Thu, 1 Apr 2021 05:26:33 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 AA9F761055 for ; Thu, 1 Apr 2021 05:26:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AA9F761055 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ggxzeqoebg7sBnSweWqqDdXX91l7az0bPKXm6dJ5hVs=; b=brPhAeD2xTWPMHQv90pqvUDIX FqHWfHc/hNquO2miH17vA3zEpsVBkvsO0wst/35tKaNq3ljNXqysuyfqAmZ2cFwLWAwaJ4HNarOyN TBgoMLlzTDITjsdryb9PZD7Z21839U8Z+tfr9KUaOVGgE6jDDZ2feIOpzbT0Y7Lg13pcOswud1QdI 92qOn0xuFtvUL3lugKgkT4wJgUgmyiwly7YUtBXogOMrN0j6/b2PYDUpaL0kJVMzH/JQlK1r5qFjB g3di6brvvHioY1iDi4eJx5TDv0gAlbORH6fQ00nnKLw8e+UB1o2yjNPgliKdrRg+vHEawLdRHHDit tOHv9RXFA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lRppF-008agh-2V; Thu, 01 Apr 2021 05:25:01 +0000 Received: from mail.kernel.org ([198.145.29.99]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lRpp2-008afP-Gv; Thu, 01 Apr 2021 05:24:52 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 24F3960698; Thu, 1 Apr 2021 05:24:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617254684; bh=BRPNGHFq9n8qHOWZs3Z9xHbkEAkNiy/Yclwd+wHA1Nw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=E+wj1eNWvmWW7hOVckRKHD3fCJ0ZqwUYd5wDnWUsHIhKkJz0yAms8iqFdv7b7bS44 D/USeu8n+Erqt+I4oiQLgXaF3jMLbMgGSVj/SUgCmwSZ+ba4Yv0F80r0FKgXFEPo0o nxjyXLNjpWR+a+l7Ad9paOjOnytgpW7vV6nZJSeZAezfT/0fpDFFAEMtvtTbNfrr5p hUt6iuZAQ0L6CH2gnDSLPegydhp7OUqkGbMfz8JoVOq+3djuP60zyKP8UeRSh1s6ob n9U9WeJKbgqvJIs82hqQG+g5dziqPKxL7mvvbGX/sa/Jw35LGrh6U5W+t+5IdCcJG+ RHCocMiCb1Svg== Date: Thu, 1 Apr 2021 10:54:38 +0530 From: Manivannan Sadhasivam To: Cristian Ciocaltea Cc: Rob Herring , Andreas =?iso-8859-1?Q?F=E4rber?= , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/6] Add support for Actions Semi Owl socinfo Message-ID: <20210401052438.GB14052@work> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210401_062449_446120_0948ED69 X-CRM114-Status: GOOD ( 21.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Mar 30, 2021 at 04:48:15PM +0300, Cristian Ciocaltea wrote: > This patchset adds a socinfo driver which provides information about > Actions Semi Owl SoCs to user space via sysfs: machine, family, soc_id, > serial_number. > > Please note the serial number is currently available only for the S500 > SoC variant. > > This has been tested on the S500 SoC based RoseapplePi SBC. > Is this the soc_id provided by the vendor bootloader (uboot)? If so, under what basis it provides? I don't think the SoC has the provision for soc_id based on HW parameters. Thanks, Mani > Thanks, > Cristi > > Changes in v2: > - Exposed the memory range for reading the SoC serial number under > /reserved-memory DT node, according to Rob's review; as a consequence > added a new binding document (actions,owl-soc-serial.yaml) and updated > owl-socinfo.yaml > > - Replaced the unportable usage of system_serial_{low,high} globals > with a public API to provide external access to SoC serial number > parts (e.g. Owl Ethernet MAC driver will use this to generate a > stable MAC address) > > - Rebased patch series on v5.12-rc5 > > Cristian Ciocaltea (6): > dt-bindings: reserved-memory: Add Owl SoC serial number binding > dt-bindings: soc: actions: Add Actions Semi Owl socinfo binding > soc: actions: Add Actions Semi Owl socinfo driver > arm: dts: owl-s500: Add reserved-memory range for Owl SoC serial > number > arm: dts: owl-s500: Add socinfo support > MAINTAINERS: Add entries for Owl reserved-memory and socinfo bindings > > .../actions,owl-soc-serial.yaml | 53 ++++++ > .../bindings/soc/actions/owl-socinfo.yaml | 57 +++++++ > MAINTAINERS | 2 + > arch/arm/boot/dts/owl-s500.dtsi | 13 +- > drivers/soc/actions/Kconfig | 8 + > drivers/soc/actions/Makefile | 1 + > drivers/soc/actions/owl-socinfo.c | 152 ++++++++++++++++++ > include/linux/soc/actions/owl-serial-number.h | 20 +++ > 8 files changed, 305 insertions(+), 1 deletion(-) > create mode 100644 Documentation/devicetree/bindings/reserved-memory/actions,owl-soc-serial.yaml > create mode 100644 Documentation/devicetree/bindings/soc/actions/owl-socinfo.yaml > create mode 100644 drivers/soc/actions/owl-socinfo.c > create mode 100644 include/linux/soc/actions/owl-serial-number.h > > -- > 2.31.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel