From patchwork Fri Mar 19 18:27:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 12151701 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=-8.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham 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 CE192C433C1 for ; Fri, 19 Mar 2021 18:29:59 +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 5EE9F61977 for ; Fri, 19 Mar 2021 18:29:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5EE9F61977 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com 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:MIME-Version:Message-Id:Date:Subject:Cc: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=ZdK3CCarcSHizF83QMTap9Ue5HFWHEKzJWSEzcFMZJA=; b=O1bRMNPbAo5r8L6tgsfRJuVsGW Hh06KhhGKXgPrSbLlT2nB2Wwa/xorwJjls2IXpshJA+Z2qUJtuAbTL7q5SI+K9LYVJ4kc+oKDrHWg u13BbS137OJJ6MChG++JxYsPjC2PQ/UtGMlxuJClzeguK7t9lzaDx4hPZuytugJ97/UCwxAJL0TGi jAceYCii/YyDRXisTYlc6PMfIv3gAgDC82bWgLh57hg0oFXiMT8BSfpjQRqZ+7FP1IKbdfGOSad9U 9YR4t/KrZKrahlz2xP0ljyF6EBD/0O4EEM5FvyOLG6PLn8nxlewmHrCf2zl6eHeJYV1yFziiIV9HI hm2QC/WA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lNJr1-007wR1-75; Fri, 19 Mar 2021 18:28:11 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lNJqw-007wOv-HB; Fri, 19 Mar 2021 18:28:08 +0000 Received: by mail-ed1-x52b.google.com with SMTP id h10so11846968edt.13; Fri, 19 Mar 2021 11:28:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=W6jXeRNDOcegTzfjmtjhnShpH4QsKc8qKRMmcEjm3N8=; b=hvq5QBPnPF1k3QdamFVPBw5XsC3MJAkglNpleZbNU95fXD5xnaE1YynFB0FbtycKJP rBUrq8eSrQaXZrMh8S8aFN6NR5AI68livmOpCsjlTzlbEwH9pCTcksJx18qoBM3d5Hyl edMfzCJ66QLKMUp0xbLHZG3xsWoZcYhKzkvPMzATwEuRQbGIbaCx+q7LdxdBCM+/1234 eWIVC5hqgQwXsJFNL6GKv9GfPnPpMdGsDChS3j1F9AMJ2Ui8ZIJt79KJnQ6jSQbTIYQJ PU1o6IvHcv3FBNLFIBRIGH0umyrFNy17TEpP2jXBh6iJaGpOF6FeT9993FXIC1wl+Ri3 KowQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=W6jXeRNDOcegTzfjmtjhnShpH4QsKc8qKRMmcEjm3N8=; b=dtsDtr/oZf7xMlhBCxsjku2cEfkYmoNObVVjujF+b/adO1y7zPcWkJkvXlxdjXyd8F s+oDPvdPXEi5XQmf4LWzJEnGb+bqNePSU6HB9MA76kEcQFFgr8t/0F8nHuwIpyfA94KG YCWrouBCdpfMBRmjdXc03WDzoX+W3GM26jbLENVJZ6auVVholRgGdsk6E0/4K8mFguhK hMyDhxdXo71V2Xxj9dH87o4AWUFNAAFiXg3bup7NFqy6UPRNjPmawuTEO/NqxDHLG8ob A7iAvBk+FKflr9HJ17gOn3MlWPGPEAbK/q2DbjIn/2nkb0EEauOkLpL3FRRihrGnsBg2 B6Lw== X-Gm-Message-State: AOAM531O6O/YS92J/foS6U9fIed98F2tjF3ZH4lm6e1YeSbB0RfzlZrT aZ/5jloFKXMoixOUdhAKpMw= X-Google-Smtp-Source: ABdhPJyMLN32+Z2D+l+3U+KFdeiR26k3dajXDSBJk6CeH85m6WS0WaZTxr6qBzhEvzrK4RRp9LvVHQ== X-Received: by 2002:a05:6402:270e:: with SMTP id y14mr11140411edd.283.1616178484430; Fri, 19 Mar 2021 11:28:04 -0700 (PDT) Received: from localhost.localdomain ([188.24.140.160]) by smtp.gmail.com with ESMTPSA id gb22sm3951070ejc.78.2021.03.19.11.28.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 11:28:03 -0700 (PDT) From: Cristian Ciocaltea To: Rob Herring , =?utf-8?q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/4] Add support for Actions Semi Owl soc info Date: Fri, 19 Mar 2021 20:27:58 +0200 Message-Id: X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210319_182806_732493_5A169561 X-CRM114-Status: GOOD ( 11.55 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. Thanks, Cristi Cristian Ciocaltea (4): dt-bindings: soc: actions: Add Actions Semi Owl socinfo binding soc: actions: Add Actions Semi Owl socinfo driver arm: dts: owl-s500: Add socinfo support MAINTAINERS: Add entry for Actions Semi Owl socinfo binding .../bindings/soc/actions/owl-socinfo.yaml | 71 ++++++++++ MAINTAINERS | 1 + arch/arm/boot/dts/owl-s500.dtsi | 4 +- drivers/soc/actions/Kconfig | 8 ++ drivers/soc/actions/Makefile | 1 + drivers/soc/actions/owl-socinfo.c | 133 ++++++++++++++++++ 6 files changed, 217 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/soc/actions/owl-socinfo.yaml create mode 100644 drivers/soc/actions/owl-socinfo.c