From patchwork Tue Mar 30 13:48:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 12172625 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=-13.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_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT 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 1CFAFC433C1 for ; Tue, 30 Mar 2021 13:54:02 +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 87B3661998 for ; Tue, 30 Mar 2021 13:54:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 87B3661998 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:References:In-Reply-To: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:List-Owner; bh=cMe/CMIxkkBrWeRQCzy4yeG7R6CwJ7G6kV2QbBtSa/A=; b=kVF5v1ckErPALad1OPEIxxIpB t8rrB+BCntI+3xzXW5RzpYqPfmAbAs6brrfBJ0Yx/vG7/5s+gRmIEM1x2fLwQC6fjRdCpuNWYvM+W TVRYD9UtMMiCa3lUX73ZGw3292MfTvJCHfplQeiDG321MolevKToNGrFgmHMIOhFlDoNstcjDV4TM Iu97fEO8RCVrgr4YMy+1d1K+7klwzZWLQ2CAutVAJYGqHsfkz/psfCt1O6b1ZMYUYn26mbduMBJxO inQ1BtFZxYsABx7qlxx2T2rKA3Og6MJoS25rZBDvOyG3A26EO29yryxOuqkc/y38bUxUz0NBboYoS 3FFqoiWkw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lREnL-003sBV-AO; Tue, 30 Mar 2021 13:52:36 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lREjL-003rcT-3h; Tue, 30 Mar 2021 13:51:54 +0000 Received: by mail-ej1-x62d.google.com with SMTP id r12so24939883ejr.5; Tue, 30 Mar 2021 06:48:25 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=3+3EOZ+BiKLMx9cVwQE1QQOnnXxodL6X9K+oNxH3xRA=; b=aetLVVkZ9mDP/zHp1Z3wAEtDs0G3k4Tgtptg9qVC62yVxuFcH/bH1NKhYnqHujMlzy arsR73JfiOqoA1WGXiekmexSG94s65xPe3QOrPdzQOQBTQENKaaEUaSP/WjKa6b2ay1h 8rl8AqJUJjJoED2GTGlS9Tmy3zLJSPlQ6/GPNLyLwpMQ7ER6qEpYnglksXSNA/1YdzxK 5GnLVrMPfIxHcqkMnP2BG8iEC3FyratKojpbYUBabSnBTQ8Smreb31JqO4hN+iXZ6JM8 zLCgPOm7n9iPHUGJSdgVm3qjxg2Z3LbvXngFAikxm2rCaoJ689Jvo/vevXL/1JW9K6kN DdwQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=3+3EOZ+BiKLMx9cVwQE1QQOnnXxodL6X9K+oNxH3xRA=; b=bDpFcuz7C77y8fAraY2Lr4Mmy+0xjQxtCkm4iHlRuQa4JlyQSbf0Ni23dQN8sRLyfL +mSsAxzOOeuvQ73uJbn9Npu8uFPUOJaQhHRpTCw9k5wlmXpfnUysub7pP1eGBTRLOHCJ z/gu18Xi9MYLXGRYJU2ur6j9Riyx+rkfZm31vGkYMubbZgih9Xc4uu2szqLNzS39MHf4 hVHvKz6+dgj8mNYvm/5XqQJhXg3USNLT0DE7ZBagpHBOFb758byNg2RQ/9N/vYQr1Ret T6flvzXTPlKjP0kDn9JX+1b/teMjyoAhYeeP68TbTi2jWu7Msdx1KoaptCJUcNyq43xv RxMQ== X-Gm-Message-State: AOAM530e9PRPuEsptIjAZzJxiDBRdKGoEDDKRkzIe9GgA8ICjXu/Gudv mqWze6uUrlRjqnlV5gfv69I= X-Google-Smtp-Source: ABdhPJyVApA+moIOfgTjoYWSYe6huhRHCm6oYXLsZJTHueWGkqAvbpPBNiscrtVW/hVNUwe8yub+rQ== X-Received: by 2002:a17:906:3c50:: with SMTP id i16mr33973863ejg.175.1617112105598; Tue, 30 Mar 2021 06:48:25 -0700 (PDT) Received: from localhost.localdomain ([188.24.140.160]) by smtp.gmail.com with ESMTPSA id l12sm11114681edb.39.2021.03.30.06.48.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Mar 2021 06:48:25 -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 v2 1/6] dt-bindings: reserved-memory: Add Owl SoC serial number binding Date: Tue, 30 Mar 2021 16:48:16 +0300 Message-Id: X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210330_145027_495373_E6A9430A X-CRM114-Status: GOOD ( 14.60 ) 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 Add devicetree binding for the Actions Semi Owl SoC serial number reserved-memory range. Signed-off-by: Cristian Ciocaltea --- .../actions,owl-soc-serial.yaml | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/reserved-memory/actions,owl-soc-serial.yaml diff --git a/Documentation/devicetree/bindings/reserved-memory/actions,owl-soc-serial.yaml b/Documentation/devicetree/bindings/reserved-memory/actions,owl-soc-serial.yaml new file mode 100644 index 000000000000..41b71f47ee6c --- /dev/null +++ b/Documentation/devicetree/bindings/reserved-memory/actions,owl-soc-serial.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/reserved-memory/actions,owl-soc-serial.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Actions Semi Owl reserved-memory for SoC serial number + +maintainers: + - Cristian Ciocaltea + +description: | + Provide access to the memory region where the two parts of the Actions + Semi Owl SoC serial number (low & high) can be read from. This information + is provided by the bootloader, hence expose it under /reserved-memory node. + + Please refer to reserved-memory.txt in this directory for common binding + part and usage. + + This is currently supported only on the S500 SoC variant. + +properties: + compatible: + oneOf: + - const: actions,owl-soc-serial + - items: + - enum: + - actions,s500-soc-serial + - const: actions,owl-soc-serial + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: true + +examples: + - | + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + soc_serial: soc-serial@800 { + compatible = "actions,s500-soc-serial", "actions,owl-soc-serial"; + reg = <0x800 0x8>; + }; + }; + +... From patchwork Tue Mar 30 13:48:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 12172615 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=-13.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_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, 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 1A3D6C433DB for ; Tue, 30 Mar 2021 13:52:57 +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 8A1F5619AB for ; Tue, 30 Mar 2021 13:52:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8A1F5619AB 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:References:In-Reply-To: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:List-Owner; bh=SQXWEJo7xadPI/qdQeuBm4EDvIbxsPlYawMvM5sV4yk=; b=Ci9WBFiJOsbDHylhzhPzqegbu DDZeOu2DE+BsQeQK5QQ53mT/jdm13kkZnl2C9oheuEDlcF5xsd5kI4dxDV0msCdiwYB988O6gCLFF otwszc5WlOck1Plf8u2I77Mc+1DRcdR+QDi4k7ftpjXM8wryOqx9vquvU9tEJXvuvlJngdk319TQ2 7ncgkpFT1QWrsUpSr+0/qlwMd1OTr7WMd1q5l3YQvjPgrQTbgWVEkb6OkTOKqI4HqdoPYW8LHqI3q nKGI1Sqh/aTaQ7AjgOf9Ux1aOaVB4LZ5N3gyuZaa45tcB3Pm2z4mBp1Xa2wrrX1Fyye1KycifaAhu RNsXv8H0Q==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lREmA-003rtu-9i; Tue, 30 Mar 2021 13:51:22 +0000 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lREjL-003rcV-7w; Tue, 30 Mar 2021 13:50:29 +0000 Received: by mail-ej1-x632.google.com with SMTP id ce10so24962653ejb.6; Tue, 30 Mar 2021 06:48:27 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=w25PhXv4L2UP3EkQ/RJPv5NSRmzp3Ufth6dz1A/da6E=; b=nmPmxCBmxi1ZkwFiHkJRo6oxkOn+0PVXMIbVGqFqGWUWAPEO5dO/ZXl8sT4oqQZdx4 jeOmUmmFZyjV/GEJ+fvbW11LPsYDETOg/CIcJqOPGJQOyvklU0i8amlUQ23D0Sk0Yyfy C17vnD6pWUPCXeY7KMiDnsQLaxjN40pBXVwgESFgzfakGGJiGFaSWcw9EaxHM5vPzgzX tBYVGxuOJJYaaNrARzGzo3X3XsDcAyqBQbd8F6e4nL7F8u5aR56YMTcF8mleacVSdSiA gi7WVX9kBaT5q2vDwFDisjBB9PM/AoovwRaeDVGQ65DcgfJg/NwZTMW+Cw15ugz8jUCA JeOQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=w25PhXv4L2UP3EkQ/RJPv5NSRmzp3Ufth6dz1A/da6E=; b=mcvwB2pof+e0a/vty/dhuL2rrEaK/FI97I39eKHjNihjilQWWkkSWhkt+9/YCWdq1+ ZsDfhCCAmlr3OeaKDv9qyTOCd497bWNONx7TgfPbvyy8R1EeWYjrg4hme0qo/wxKkMbu warhu8m2JI3jf+H35JWPZf7Jb8ATmbiCXl82fgE9ESfaWspsJyE9tTriDgwHTUwx9/IZ T/JuM5hSBLo2bonOPBoeEqJYNqnE5gAmb5QHcd55p54kmpdgiJBJbOSAdZUDxQ4m9IO2 8QaajPiHi+VkDSWezblEVzYX6kiL9RNTW2s3zNM/9KjOt3yWL6+OShE2pOztU46lpR05 68JQ== X-Gm-Message-State: AOAM532ALnmMC/H5TLMk+i82K3/vE4HtrjZLFmKuejkTbILsdnM6HRHO /0QkUlBSAR7g4qeCIPhbHhw= X-Google-Smtp-Source: ABdhPJw/5pn1OWDyKa4Ye2Ri5EqfXdTOc2h8tqF/UYNJmcMZ/hcvRdVm0QT5D1qJZcNQ/PckqwALBg== X-Received: by 2002:a17:906:fcb2:: with SMTP id qw18mr32290739ejb.434.1617112106712; Tue, 30 Mar 2021 06:48:26 -0700 (PDT) Received: from localhost.localdomain ([188.24.140.160]) by smtp.gmail.com with ESMTPSA id l12sm11114681edb.39.2021.03.30.06.48.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Mar 2021 06:48:26 -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 v2 2/6] dt-bindings: soc: actions: Add Actions Semi Owl socinfo binding Date: Tue, 30 Mar 2021 16:48:17 +0300 Message-Id: <15da0257b10aa62bfb7046437915d05a614c01ee.1617110420.git.cristian.ciocaltea@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210330_145027_504081_907432A9 X-CRM114-Status: GOOD ( 12.24 ) 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 Add devicetree binding for the Actions Semi Owl socinfo driver. Signed-off-by: Cristian Ciocaltea --- .../bindings/soc/actions/owl-socinfo.yaml | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/actions/owl-socinfo.yaml diff --git a/Documentation/devicetree/bindings/soc/actions/owl-socinfo.yaml b/Documentation/devicetree/bindings/soc/actions/owl-socinfo.yaml new file mode 100644 index 000000000000..01e4a8b4f5ac --- /dev/null +++ b/Documentation/devicetree/bindings/soc/actions/owl-socinfo.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/actions/owl-socinfo.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Actions Semi Owl SoC info module + +maintainers: + - Cristian Ciocaltea + +description: | + Actions Semi Owl SoC info module provides access to various information + about the S500, S700 and S900 SoC variants, such as serial number or id. + +select: + properties: + compatible: + contains: + enum: + - actions,s500-soc + - actions,s700-soc + - actions,s900-soc + required: + - compatible + +properties: + compatible: + items: + - enum: + - actions,s500-soc + - actions,s700-soc + - actions,s900-soc + - const: simple-bus + +required: + - compatible + +additionalProperties: true + +examples: + - | + / { + compatible = "roseapplepi,roseapplepi", "actions,s500"; + model = "Roseapple Pi"; + #address-cells = <1>; + #size-cells = <1>; + + soc { + compatible = "actions,s500-soc", "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + }; + }; + +... From patchwork Tue Mar 30 13:48:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 12172619 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=-13.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_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT 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 106FDC433DB for ; Tue, 30 Mar 2021 13:53:22 +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 9EC7761994 for ; Tue, 30 Mar 2021 13:53:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9EC7761994 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:References:In-Reply-To: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:List-Owner; bh=0jb7ekcyfzsvWUVDajh5lw5Wxh0mRvo33nlnA14SyQw=; b=bjp/A+dLnxh60ZodbKXv4Bygm yXJRGRheYy21gnIbn8eorEJYUwUTOYG1D1CEZs6XaL82NXrIsRzlokTWHbCxlX/Iqq/yuf9gNySrd A9n8KViVEmV/5jh5Oe36h/NHKw5DdE84iFw+v0ezVbMSqiHlQX/RvZZFT+FzeF/zi/g0LnUhvvXWn vbvYWcSrrgALr1XFWj17E2f/PtC8sbwhewT5dpmJvjDu27m3uPhocS931UHSjVs1G1hv/wJuksMcd wZZ8fndSuNPHp6qiYxbAeVj21JlxRdcdot5jW9KXXeeQFUci2mEoh16Hh+Fb4B5pXSXetV81cTwLR 9+Ah23jVA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lREmm-003s25-F1; Tue, 30 Mar 2021 13:52:00 +0000 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lREjM-003rcY-Ea; Tue, 30 Mar 2021 13:51:54 +0000 Received: by mail-ej1-x633.google.com with SMTP id r12so24940087ejr.5; Tue, 30 Mar 2021 06:48:28 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=IQNp9e99+CznjYBoYW2Ihp1ygelCyBUZZbzQRo6GGr8=; b=G1o9Rkz9FtzPcp+l4sSBsJQj/3Mwf7NzOceH9vbHufY1TauuRP/2My0JfItP0cty4m 1HqmaRuL1OSxbuxr/6rvm0XQWufXmX+sQ6DVVI1Jm1Rk+rseS6/eJr1MFm4fdhPmCC6J fb15RunDfnaKJmziuu6t+hOQ+Pq4zqK2dmcuLTk++CzJm4dXi6dC0iovSU2QIcWbcabt VJu/NEz/mNylp6TsoopTIPD+ziqb2QO5Ukf4FYKS0WdEqHnkjTjCqKx/cArExs/bvG+w LF5E37VK1VLt/jyoEMQKvbUIOVR1ep2D1pIiV273FgDBIkdtm1GAaULuCwamL9f6kGMJ OrSQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=IQNp9e99+CznjYBoYW2Ihp1ygelCyBUZZbzQRo6GGr8=; b=MEYwDEVEiyA0bEt9FV5PCsetz4kko+HBE27ve6raTzQQSrzJskL9p5ofxg0zUzw3lD zN+2nOmWowqjFDLjKjXPkrisvXC+mVmVy0i+yWZ0qUClAq4GXPuUw6erRfq6n1lsIxsD i4+pc96lH0BqkExXYQWpIzslusY3YAa4CCyVOKoLoakBlzc8sdFk/5yA3V/sPpbC4tKS X0ogMVM3+IUqFIFj41URpjdh2N+cT4nSxZRsRYfAsJcpL4ayDON67PktMyzTPiQ3g7Lj Suupc8u5wG48jHIiRx2AmNgpkyw31Kl9T1fuhyIUbTf91eH3fFyqu7MfMVg3wa+7tgpB adzA== X-Gm-Message-State: AOAM5314VWZZiMK3Xg2tcytSRYK2AsXeod1EO0gJ0PIjWIvoGB8sik1o lO4+qgM9S5iG9R0RPHi8BgY= X-Google-Smtp-Source: ABdhPJwmpTmSEhHKPFX+Gag8UZV17t9O4rdo2b3PZeI0aAglbRUocNpMnqK/oy1fxn97+JHlauWEyA== X-Received: by 2002:a17:906:4410:: with SMTP id x16mr33463963ejo.446.1617112107934; Tue, 30 Mar 2021 06:48:27 -0700 (PDT) Received: from localhost.localdomain ([188.24.140.160]) by smtp.gmail.com with ESMTPSA id l12sm11114681edb.39.2021.03.30.06.48.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Mar 2021 06:48:27 -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 v2 3/6] soc: actions: Add Actions Semi Owl socinfo driver Date: Tue, 30 Mar 2021 16:48:18 +0300 Message-Id: <75ec4eff3e6113f4e72daa1b428c355b28005297.1617110420.git.cristian.ciocaltea@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210330_145028_681091_2F8CE66F X-CRM114-Status: GOOD ( 23.61 ) 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 The driver provides information about the Action Semi Owl family of SoCs (S500, S700 and S900) to user space via sysfs: machine, family, soc_id, serial_number. Note the serial number is currently provided only for the S500 SoC variant. Signed-off-by: Cristian Ciocaltea --- 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 +++ 4 files changed, 181 insertions(+) create mode 100644 drivers/soc/actions/owl-socinfo.c create mode 100644 include/linux/soc/actions/owl-serial-number.h diff --git a/drivers/soc/actions/Kconfig b/drivers/soc/actions/Kconfig index 1aca2058a40c..15faade9282d 100644 --- a/drivers/soc/actions/Kconfig +++ b/drivers/soc/actions/Kconfig @@ -14,4 +14,12 @@ config OWL_PM_DOMAINS power-gating on Actions Semiconductor S500, S700 and S900 SoCs. If unsure, say 'n'. +config OWL_SOCINFO + bool "Actions Semi Owl SoC info driver" + default ARCH_ACTIONS + select SOC_BUS + help + Say 'y' here to support the Action Semiconductor Owl socinfo + driver, providing information about the SoC to user space. + endif diff --git a/drivers/soc/actions/Makefile b/drivers/soc/actions/Makefile index 4db9e7b050e5..4b2591d3089f 100644 --- a/drivers/soc/actions/Makefile +++ b/drivers/soc/actions/Makefile @@ -2,3 +2,4 @@ obj-$(CONFIG_OWL_PM_DOMAINS_HELPER) += owl-sps-helper.o obj-$(CONFIG_OWL_PM_DOMAINS) += owl-sps.o +obj-$(CONFIG_OWL_SOCINFO) += owl-socinfo.o diff --git a/drivers/soc/actions/owl-socinfo.c b/drivers/soc/actions/owl-socinfo.c new file mode 100644 index 000000000000..f28eafac3792 --- /dev/null +++ b/drivers/soc/actions/owl-socinfo.c @@ -0,0 +1,152 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Actions Semi Owl SoC information driver + * + * Copyright (c) 2021 Cristian Ciocaltea + */ + +#include +#include +#include +#include +#include +#include +#include + +struct owl_soc_serial_rmem { + u32 low; + u32 high; +}; + +static struct owl_soc_serial_rmem *owl_socinfo_serial; + +u32 owl_get_soc_serial_low(void) +{ + return owl_socinfo_serial ? owl_socinfo_serial->low : 0; +} +EXPORT_SYMBOL_GPL(owl_get_soc_serial_low); + +u32 owl_get_soc_serial_high(void) +{ + return owl_socinfo_serial ? owl_socinfo_serial->high : 0; +} +EXPORT_SYMBOL_GPL(owl_get_soc_serial_high); + +struct owl_soc_info { + char *name; + int (*read_soc_serial)(struct device *dev); +}; + +/* + * Access SoC's serial number stored by the bootloader in DDR memory. + */ +static int owl_socinfo_read_serial_rmem(struct device *dev) +{ + struct reserved_mem *rmem; + struct device_node *np; + int ret = 0; + + np = of_find_compatible_node(NULL, NULL, "actions,owl-soc-serial"); + if (!np) + return -ENXIO; + + rmem = of_reserved_mem_lookup(np); + if (!rmem) { + dev_err(dev, "failed to acquire reserved memory region\n"); + ret = -EINVAL; + goto out_put; + } + + owl_socinfo_serial = memremap(rmem->base, rmem->size, MEMREMAP_WB); + if (!owl_socinfo_serial) + ret = -ENOMEM; + +out_put: + of_node_put(np); + return ret; +} + +static int owl_socinfo_probe(struct platform_device *pdev) +{ + const struct owl_soc_info *soc_info; + struct soc_device_attribute *soc_dev_attr; + struct soc_device *soc_dev; + const char *sn; + int ret; + + soc_info = of_device_get_match_data(&pdev->dev); + if (!soc_info) + return -ENODEV; + + soc_dev_attr = devm_kzalloc(&pdev->dev, sizeof(*soc_dev_attr), + GFP_KERNEL); + if (!soc_dev_attr) + return -ENOMEM; + + ret = of_property_read_string(of_root, "model", &soc_dev_attr->machine); + if (ret) + return ret; + + soc_dev_attr->family = "Actions Semi Owl"; + soc_dev_attr->soc_id = soc_info->name; + + if (soc_info->read_soc_serial) { + ret = soc_info->read_soc_serial(&pdev->dev); + + if (!ret) { + sn = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%08x%08x", + owl_get_soc_serial_high(), + owl_get_soc_serial_low()); + soc_dev_attr->serial_number = sn; + /* Feed the SoC unique data into entropy pool. */ + add_device_randomness(sn, 16); + } + } + + soc_dev = soc_device_register(soc_dev_attr); + if (IS_ERR(soc_dev)) + return dev_err_probe(&pdev->dev, PTR_ERR(soc_dev), + "failed to register soc device"); + + dev_info(soc_device_to_device(soc_dev), + "SoC: %s %s\n", + soc_dev_attr->family, soc_dev_attr->soc_id); + + return 0; +} + +static const struct owl_soc_info s500_soc_info = { + .name = "S500", + .read_soc_serial = owl_socinfo_read_serial_rmem, +}; + +static const struct owl_soc_info s700_soc_info = { + .name = "S700", + /* FIXME: provide read_soc_serial */ +}; + +static const struct owl_soc_info s900_soc_info = { + .name = "S900", + /* FIXME: provide read_soc_serial */ +}; + +static const struct of_device_id owl_socinfo_of_match[] = { + { .compatible = "actions,s500-soc", .data = &s500_soc_info, }, + { .compatible = "actions,s700-soc", .data = &s700_soc_info, }, + { .compatible = "actions,s900-soc", .data = &s900_soc_info, }, + { } +}; + +static struct platform_driver owl_socinfo_platform_driver = { + .probe = owl_socinfo_probe, + .driver = { + .name = "owl-socinfo", + .of_match_table = owl_socinfo_of_match, + }, +}; + +static int __init owl_socinfo_init(void) +{ + return platform_driver_register(&owl_socinfo_platform_driver); +} +subsys_initcall(owl_socinfo_init); diff --git a/include/linux/soc/actions/owl-serial-number.h b/include/linux/soc/actions/owl-serial-number.h new file mode 100644 index 000000000000..f8595417668f --- /dev/null +++ b/include/linux/soc/actions/owl-serial-number.h @@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (c) 2021 Cristian Ciocaltea + */ + +#ifndef __SOC_ACTIONS_OWL_SERIAL_NUMBER_H__ +#define __SOC_ACTIONS_OWL_SERIAL_NUMBER_H__ + +#if IS_ENABLED(CONFIG_OWL_SOCINFO) +u32 owl_get_soc_serial_low(void); +u32 owl_get_soc_serial_high(void); +#else +static inline u32 owl_get_soc_serial_low(void) +{ return 0; } + +static inline u32 owl_get_soc_serial_high(void) +{ return 0; } +#endif /* CONFIG_OWL_SOCINFO */ + +#endif /* __SOC_ACTIONS_OWL_SERIAL_NUMBER_H__ */ From patchwork Tue Mar 30 13:48:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 12172623 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=-13.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_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, 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 1212CC433C1 for ; Tue, 30 Mar 2021 13:53:46 +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 A192B6187E for ; Tue, 30 Mar 2021 13:53:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A192B6187E 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:References:In-Reply-To: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:List-Owner; bh=z9pvkDmH9imKOhnvFHceAh1UUj9JGq8416N274Jw6oQ=; b=KTyUYMPTYmDdglzmWmJS7d5zy uw9slt94aAF97+l5cD8d7XXa4CWCfxD8frgM8/8xBEIPe31gFavgOmrBZ6l9jyc5Y3tdw7Paut7VI p8soSeFGe2e982IekiDzxmDsLt/0i2CPOz9aK3FrTJyINNOFebA/ve6IyR7ZOTNC2K8bmk1X7DbGu mWxkpHz5dW7fJ6dOqYBttPOjZGwLCMb1//DMMK11hst5XJ7A311qIKyJBr7B/BE/6H9B8voBlVBSZ FJYNQtORHhMZkoc/z8Hq2g9ve3eWNojgsRP8sTG4XjNRqStRau/WIQjXVX9IHROAogSCG4KFjOLDB MGxs7U10A==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lREn6-003s7M-Mk; Tue, 30 Mar 2021 13:52:21 +0000 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lREjN-003rcc-I8; Tue, 30 Mar 2021 13:51:54 +0000 Received: by mail-ej1-x630.google.com with SMTP id w3so24966657ejc.4; Tue, 30 Mar 2021 06:48:29 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=8bDcTQk8kDiNTIshlRPvPaxQcZWXJmMzlWejJX8r1Mo=; b=d/gDycgct5/uXWJpP9Lz8c0FuUhiemM1bGchkyGTEIGEofIatjKhtC6b8ViBLhWQTO fyhJcW6OFOQLSGlY6TZ1d2qyW+/gKSM7YCzmR/uzjZxsacljZzIcaKyR2HYpgMlt9aVA MXqbT0GkHKvTQepXruSWGHGEgo9BZyvP/hqdOC5zaRK9Tk28C6//kNvkwo9m+aLra/Xt XQUbs7r/BEHia0UawVbZnPKnAWbJUlgoAE6IDW6+5mUh5M0q2UPEjgh1wJpskEbY4trp gdRC6hmnNjkr9zcYauecsCbZi6a07Rwpf2ThPV4NtN1jIExFZssNCRvhS7/cnyp/wcwK A/lA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=8bDcTQk8kDiNTIshlRPvPaxQcZWXJmMzlWejJX8r1Mo=; b=a+AepD/7K5RoyK38IDzgzKzq1axFAfURtZw7PJ9/b598pPoNnCsU/SyPCWAD/JU5Ce JXMbzwHB+7x7BYsVFkCyKcodCLLjICgCAL5tLsWMI7Sei8v2Ffet0DvDHJsk0FOq8A7t hS3luu0JBk1JLIe5IZI5LDStTgmajL6uIiCns29AXFOmBqNfrkzZHc5nj75iGwpZ/Gz5 Q5jBGKUaLq54jzSZN6icVPvFEv4ewwecg5phRCxCoBeVOYHtW7JmQyOAFcEZ0qeN/ULE XUHEVSdi8qPKfmC4M/tsvYUyqXMv6+Z1MXS03L98goYI/DE0hN9BzZN9BthhfTzzu0no CaSg== X-Gm-Message-State: AOAM53047XvrQ3K7Ck2BVdZT12wCIlGzChW0boqF8AoHE/czAcv8IrAb WZFGJoZEt24MnRkEaHnaO74= X-Google-Smtp-Source: ABdhPJyKwZ+JC7bBHbXUpv8bclhUGoHeaAQ9WYSiLzOblk1Ni24Vjx2yYXbmc0oNMp8a+ry1V8FpiQ== X-Received: by 2002:a17:906:9515:: with SMTP id u21mr34055517ejx.86.1617112109016; Tue, 30 Mar 2021 06:48:29 -0700 (PDT) Received: from localhost.localdomain ([188.24.140.160]) by smtp.gmail.com with ESMTPSA id l12sm11114681edb.39.2021.03.30.06.48.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Mar 2021 06:48:28 -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 v2 4/6] arm: dts: owl-s500: Add reserved-memory range for Owl SoC serial number Date: Tue, 30 Mar 2021 16:48:19 +0300 Message-Id: X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210330_145029_975902_66638189 X-CRM114-Status: GOOD ( 10.31 ) 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 Provide access to the reserved memory region where the Actions Semi Owl S500 SoC serial number can be read from. Signed-off-by: Cristian Ciocaltea --- arch/arm/boot/dts/owl-s500.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/owl-s500.dtsi b/arch/arm/boot/dts/owl-s500.dtsi index 739b4b9cec8c..e4c61a9c6e39 100644 --- a/arch/arm/boot/dts/owl-s500.dtsi +++ b/arch/arm/boot/dts/owl-s500.dtsi @@ -23,6 +23,17 @@ aliases { chosen { }; + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + soc_serial: soc-serial@800 { + compatible = "actions,s500-soc-serial", "actions,owl-soc-serial"; + reg = <0x800 0x8>; + }; + }; + cpus { #address-cells = <1>; #size-cells = <0>; From patchwork Tue Mar 30 13:48:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 12172613 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=-13.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_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, 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 3555CC433C1 for ; Tue, 30 Mar 2021 13:52:37 +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 A8A0C619AB for ; Tue, 30 Mar 2021 13:52:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A8A0C619AB 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:References:In-Reply-To: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:List-Owner; bh=DruS0TQ31pZLO3IbYu/N7wYg6hd8YN5+06jDOS+GJF0=; b=CI101ysmuMxkz3yNGDV6B81NS D3B7XW0l7/6zESuc3Encx/alj2Cx8dBkfE2fAEpFppA3Yh8CbbLudOBKuKkUPZn+MFCoGbE92vp3Z iFXRpb+OVFHHxbxMTeWNFad3oHAJHoYEfVy2o65MKVXCCzPE3cZLHOdv17XMArxfaekKEBmc05mRq 0fm+cBpVwtf2FLzMS5JdfQLiiBlw8SI+mt5mkNaoHfnHgsyjZAYJCObpBxspJVOo39+qu5kqFYVEX oA5XLOQRzTQ2n9LEr2qRwm6mXUAhzZ9wiBaCagbSgbCtzgo6ffMQK+nwkJobT7vro9nqmOJM7TAQ+ SXHvc5G7w==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lREly-003rsK-VE; Tue, 30 Mar 2021 13:51:11 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lREjO-003rcg-NO; Tue, 30 Mar 2021 13:50:32 +0000 Received: by mail-ej1-x62e.google.com with SMTP id b7so24951632ejv.1; Tue, 30 Mar 2021 06:48:30 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=LdL5XlxYWxpDfNRxdalRm8+rcDf8yZwWqVC79NXR8GY=; b=G/YsmB23LwlRUN3lSxBjOUdw7qUhNnE8+HOpLduAJRqkqfJgfEKbhNDxCAGEtkc/MH yKqr09pltvnwLuFAf+y4UPuebhVKIuKTThb42aEfsjjTNupHP+xh9pJh/jAcL5kUytuM kDa+NQ4tpr34fASwPU1BN3UgAHUGJjYgdVYBrW+uQzLWN5ZZArMm6fVYtGW0aM+OvlE6 B6dEYY2T7Am9/YHKHksvOKJZGWRfWXU8s1iCjLq524/cXhLknVsCqsfBkI2+UZ7Qyoac DcWLBGpZ4kJjJPPyn5Gwm0S6poj2Um9Lm6Co6THkI/w7Bv8hT56jhK+B4YBe4vod0vC8 RDwA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=LdL5XlxYWxpDfNRxdalRm8+rcDf8yZwWqVC79NXR8GY=; b=B1vuewSg565pbYqbX8x2dl3Xx0+NDoHwfdqpsvFUSPcUfo6WfRHl2/XTH6mCqhUPGi lOoRarx5cyjPlugAHZiTCTJ8xR6050HaR4uEsdeTSRU+VPlojIlX8CC0BRjwNvc2NMkv KsHAzf/f0IsSdmC6fCsCb1e9Xf3vfGhQuI8tlZa+6L4cQnCIGn00+G7ay/afmnxvEf+J G2X6PKPczWdG4jDhl1KheqQ0us6lQxJ5SnbjoBPFhaaeR0+cy0juWbFgaMQ1atIP7T5q C5UqIduwY+SdADHKpY9HdCHhV/JyZE82X/Ut3ytEFnaBJGq1W79EGlftubKX7rKMTpG6 qoWA== X-Gm-Message-State: AOAM530gumxBTNnse2yvUDF6MWbIcqRo6Hts90Jjxf+9eVnAtSRKYLCC JVU8oH3BH6qhkGaUC94OnUA= X-Google-Smtp-Source: ABdhPJzVwuy0uYusPIuWycdOep3TxQo16xZ57nyawnMVLZH6CoFPs465a/8+CMEue/J5Wz8oe4yFvQ== X-Received: by 2002:a17:906:4dce:: with SMTP id f14mr32781924ejw.349.1617112110171; Tue, 30 Mar 2021 06:48:30 -0700 (PDT) Received: from localhost.localdomain ([188.24.140.160]) by smtp.gmail.com with ESMTPSA id l12sm11114681edb.39.2021.03.30.06.48.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Mar 2021 06:48:29 -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 v2 5/6] arm: dts: owl-s500: Add socinfo support Date: Tue, 30 Mar 2021 16:48:20 +0300 Message-Id: <10538a2155313a6f7a848e42021aacfa9bdf5cdb.1617110420.git.cristian.ciocaltea@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210330_145031_035399_8BDE28FB X-CRM114-Status: GOOD ( 12.14 ) 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 Update soc node compatible property to enable support for the Actions Semi Owl soc info driver. Signed-off-by: Cristian Ciocaltea --- arch/arm/boot/dts/owl-s500.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/owl-s500.dtsi b/arch/arm/boot/dts/owl-s500.dtsi index e4c61a9c6e39..a8eb276e5ac1 100644 --- a/arch/arm/boot/dts/owl-s500.dtsi +++ b/arch/arm/boot/dts/owl-s500.dtsi @@ -91,7 +91,7 @@ losc: losc { }; soc { - compatible = "simple-bus"; + compatible = "actions,s500-soc", "simple-bus"; #address-cells = <1>; #size-cells = <1>; ranges; From patchwork Tue Mar 30 13:48:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 12172621 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=-13.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_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, 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 26AF0C433C1 for ; Tue, 30 Mar 2021 13:53:34 +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 8DAB9619C5 for ; Tue, 30 Mar 2021 13:53:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8DAB9619C5 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:References:In-Reply-To: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:List-Owner; bh=r7PoOX2q3rOOuSqb8NteP+lSCY1Ibk814hMu4ztVydQ=; b=oNpjTaI3Z/fG2n72YjlKxaszM TiVrJIHfmyCtAmlPDoZDlcd7LL0lpi6kSgjgcXVawkDzs1c6Wul/5oYgK+XNsgBNisND1261eiD9R p+G3np81Sl+slPwhhvUG7OpunHgmUiWMEnFu2M8gdDpxHqJSsqaYU5yXM2awR/NKJdpp8FID3js0m lzOuZL5CIQmVBfG+XA0VVuIdZwsV8Pc2LHj4qv/QBMhj9bq5UmyaJgvzU3oHT8MQv6yoOfbuzo9Ew qk5zv046hcxQDRB6i0gX4S6OaEBWlr7mc+p7rSzignX1e2D4N2L0Nw5LyH4S8gw9Lo9pKf703NOWd j68KGiH6g==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lREmw-003s4j-Tr; Tue, 30 Mar 2021 13:52:11 +0000 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lREjP-003rck-M0; Tue, 30 Mar 2021 13:51:54 +0000 Received: by mail-ej1-x62f.google.com with SMTP id l4so24923872ejc.10; Tue, 30 Mar 2021 06:48:31 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZgEY6qp1JZV1rOF/Ou3wnAprtwFXFp4sHJwSjl7P+Bw=; b=nLR0P9zvwsms9T2TnqVlER13YSLJmOZKbmOs6U8CjxTdTseF/8wy8c24SKTy18ZdWM 9l92mAL07rlM/VLKrmS7mUlBTkRyitF7K4enoafrerK8D8rfJANUhz/Fa6R9FSv6NV0S ZeEnRcbD2IyfAbzZeqCkmU0HbZioASU0g2q5NAR86X9ZdB+k+kuctArWN/6pQUOOBpSk gDbkYzKk3+jbjrIwtzKEQBLzHH/v+iuJPFy0hQpBlPw8mXLA1HIC0EUeXVGdeD8UNipi 1GWK2TdEhVu3GhzQcEySC5gYs31SBI9GLgcxZ2FDETbAawkvhX1EJ2+3BChqv8DsmdOk QTDQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZgEY6qp1JZV1rOF/Ou3wnAprtwFXFp4sHJwSjl7P+Bw=; b=neMcjcfyGZO70BBsAA5dt+1iW0FD0El8sYF7T+KkNbccRQ0s7LL0FZA8WLZ/0BoiyH 64GUfWwbS/eSrG5FC9rZJQoVhrrHIy1zzDStcvWjq9rAnFlJioqbQKkpgPu6rWLQTdHm cvpmYqQ2eTKfQERiEKO/KlIuS+HnIC3z979ZlbswzoBDEBoezHayqHJ+fdEw67Ni5S8X KEcEaNqWl9dzobW+7VNbmvLtaPj8gbNB00DeNI47r8/7+BPDiMOX9XTiVycHCfaY1Tng OboMSToyey8ShLNpfNB6I814dCI4GKalZnLi8ra280YhAL8geeAWhMHg5zAPaP/qPvYI /8qQ== X-Gm-Message-State: AOAM533e2QENMTXzkfQ0d3H4hXIlnt4AlCB4wAwLMvrkDZcDl1niJQhp nosfBfh8X9mouZYs0fOWiWE= X-Google-Smtp-Source: ABdhPJyJE5hydZVLvd0FCgP9b/8wuaVZI6ZKfns35hMp8ep9yB94ngwgClzdpbFhad2RWAEToYzfMw== X-Received: by 2002:a17:906:add7:: with SMTP id lb23mr33114685ejb.273.1617112111213; Tue, 30 Mar 2021 06:48:31 -0700 (PDT) Received: from localhost.localdomain ([188.24.140.160]) by smtp.gmail.com with ESMTPSA id l12sm11114681edb.39.2021.03.30.06.48.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Mar 2021 06:48:30 -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 v2 6/6] MAINTAINERS: Add entries for Owl reserved-memory and socinfo bindings Date: Tue, 30 Mar 2021 16:48:21 +0300 Message-Id: <883dd458759146eddee0d2a157f2a90fbb09d477.1617110420.git.cristian.ciocaltea@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210330_145032_259397_D4F6C45C X-CRM114-Status: GOOD ( 10.08 ) 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 Add entries for the Actions Semi Owl reserved-memory and socinfo bindings. Signed-off-by: Cristian Ciocaltea --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index bea5ac8a5e47..48b7f7d097ae 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1533,6 +1533,8 @@ F: Documentation/devicetree/bindings/mmc/owl-mmc.yaml F: Documentation/devicetree/bindings/net/actions,owl-emac.yaml F: Documentation/devicetree/bindings/pinctrl/actions,* F: Documentation/devicetree/bindings/power/actions,owl-sps.txt +F: Documentation/devicetree/bindings/reserved-memory/actions,owl-soc-serial.yaml +F: Documentation/devicetree/bindings/soc/actions/owl-socinfo.yaml F: Documentation/devicetree/bindings/timer/actions,owl-timer.txt F: arch/arm/boot/dts/owl-* F: arch/arm/mach-actions/