Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp222035pxf; Wed, 31 Mar 2021 22:30:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvCoPgu8s+UMr5wYmJc6RkgUqN9/j8TnfLIePL8hvY/fWSX5afwHaKPs+dM0E0Qz3qbEt5 X-Received: by 2002:aa7:c654:: with SMTP id z20mr7805383edr.377.1617255028444; Wed, 31 Mar 2021 22:30:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617255028; cv=none; d=google.com; s=arc-20160816; b=Zj7yRPUw0bTD94NUaU73R/8tCMHQT3GmPn1Ds1PRqoknMAOv+l8u7Rje5+PN7oPTr8 yI13WuLnMZmdVLFEy6rTv/GnHAxfNBTExkKIe1TlPQ6I0+IYIeWHNTCgZYF6OpNOy81G Zj9XcquMqJDHwypGoNFiIuGCSnD1qsIMezMYJUezwnVkrxO45s1z5AkwCXdWqaXn3WH7 mQkXZnHtTPYJfwKt0Mg8tI7anw7VqUqObI+4VMn/4cZYDB0YiW8aVAoayOQuvDD84tOL McgXnFLOHPiMszLBKrJB1IELj5ooHzH+Nn5wE1BcaofYwj2HQY+L4Mfz6h1JvY1obfES CvFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=lGGL1bFIhjdHDZqFt/Hj3tNc44lBv3UcQZ/F+i3qk8s=; b=iCLQTxDSDCdMIxCd1gG9BvJi/IbaS6sXII7piNHQ6TUBSeW4pMM9hAyl44llnCXTHy Y74BYXQJo/YDv8Xu2QSF3ov2qxiYENiCBbm9hJfwwr6za5Itl5fpe5G6QSuy42C7fYaR Raz3CCficFtJ1z4UlmUxN22d53Rxsfpoe/VXAWcp/n2wKgthxuEf9hiH/qhBhbi/X0NA 30tMz6Gn9nsMaUSvSfgFeWHm7i/cqcSgVHy07HYk83Vj7YMIsfgWVnw3Fid2f7FVWpsZ oAKctH0+FCO00q8Hc5j8QDDaXAbXhfnPVtS3sABvBpAMburdeilN24Q8FJkAd1CFyCia tI+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E+wj1eNW; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i10si3794664ejd.137.2021.03.31.22.29.54; Wed, 31 Mar 2021 22:30:28 -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=@kernel.org header.s=k20201202 header.b=E+wj1eNW; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232596AbhDAFYv (ORCPT + 99 others); Thu, 1 Apr 2021 01:24:51 -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 >