From patchwork Tue Dec 1 13:43:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11943011 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=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 72BBFC64E90 for ; Tue, 1 Dec 2020 13:45:26 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 E953620770 for ; Tue, 1 Dec 2020 13:45:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ZKb0VOJK"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="mrbeoE9E" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E953620770 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=0x0f.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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=86eU8EAAR4W8YBkmQuY1FCIrPooL7Nnk7+5NENM5vKI=; b=ZKb0VOJK9PIeqe8gwxwQwvcHn rY9TLlH2ayJwLv6PXAdxzYD1aFfam5LEh0WakWLbfP7fsrwqLk7C5nkTHtsZVQO3s9l9T8alc9/0H tZVjdcNcHmizgFb7ODmtRcp6NVmJxwstT+BQKm0DZxtsx8UxlsJ7Mr4i2VRm6G9jy+L3bzf12XsJV rFxAFdeGYFgQjDVZOvg0PcMNMNA9qXjnQI1SICdtmv3E773MHLpwHdoJ2xPRJmoPuNcm7efz9uLU8 i+on51gwupcyTAjHF8QNAECjyysQrTzkuXFW1JdwSKyvl5iKGaFE2xoXOjaRVyYzOwC5mSPQD+d/m /b6sHikMw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk5wd-0006y9-Cs; Tue, 01 Dec 2020 13:43:51 +0000 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk5wZ-0006w1-Fq for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2020 13:43:49 +0000 Received: by mail-pg1-x532.google.com with SMTP id t37so1213829pga.7 for ; Tue, 01 Dec 2020 05:43:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=plvQeaUD9wIIwbJapMgxHoz9Nu1G0OxoMzRow/yYT1o=; b=mrbeoE9Eh+XfdYw5G5mGNFmFb6DualPxipg3j34VULsY5vvlx0f86/9u7So6M5fPcK Ah0c4EN/OHfQqaHSrJ+93s7QOmADJNuZX4X5XDU18uSXKQBf7AmCsaQNx4C3d519+0MB Ybu/T+58N1UvvhXJ6BdtanFw3QUy4wJSvIlFk= 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=plvQeaUD9wIIwbJapMgxHoz9Nu1G0OxoMzRow/yYT1o=; b=F+8zfh4U9pGnfLZRR24JJSFsbzJUN8Ki2uq+RoniBOqahX16cSn6IDr24t9Q3CDP5k vBePK7g2H983jtd0FRBYahVL1/s9f01+g0VazTI/FS0XYpj3j0//ylqxLlTp+TabVbuS QlhiWdiGEnql3EcdN66xT6NeODWlu+qJWNjpIhuOB8SKWltvu0yEhTeuBwFPM101D5hq SJnPqmrISqcpdo4g8Z2MKC2Twy2MLcVrDC+40qEeqO5AR22aasUirQuNemB32uUW1RbU HdH5/hOsWsBZ5bwXiWOvHLg8xzl4zY4yO/rrkhxAUDQxL54cOadoEr9rC/bvDE2oUAnP 99Mw== X-Gm-Message-State: AOAM5332ood8cJChWBdDd2dhPRVbMov1as+QdwhbG9N+EFWnyRgShUkG /+ktf4/4PpEJ6J6QSZXWpjkC8w== X-Google-Smtp-Source: ABdhPJzxeEuwbvL+1kRV6+uUT7mx09UASek8f5bclJNvTywXMbmSqEQERWDw7AskMIvw+oaxcr+v9g== X-Received: by 2002:aa7:96ca:0:b029:19a:8ccd:895 with SMTP id h10-20020aa796ca0000b029019a8ccd0895mr2498359pfq.61.1606830220296; Tue, 01 Dec 2020 05:43:40 -0800 (PST) Received: from shiro.work (p1268123-ipngn200803sizuokaden.shizuoka.ocn.ne.jp. [118.13.124.123]) by smtp.googlemail.com with ESMTPSA id g14sm2839248pji.32.2020.12.01.05.43.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 05:43:39 -0800 (PST) From: Daniel Palmer List-Id: To: devicetree@vger.kernel.org, soc@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 01/10] dt-bindings: mstar: Add binding details for mstar, smpctrl Date: Tue, 1 Dec 2020 22:43:21 +0900 Message-Id: <20201201134330.3037007-2-daniel@0x0f.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201134330.3037007-1-daniel@0x0f.com> References: <20201201134330.3037007-1-daniel@0x0f.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201201_084347_555521_EBE55228 X-CRM114-Status: GOOD ( 15.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: robh@kernel.org, arnd@arndb.de, daniel@0x0f.com, linux-kernel@vger.kernel.org, olof@lixom.net, w@1wt.eu Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This adds a YAML description of the smpctrl node needed by the platform code for the MStar/SigmaStar Armv7 SoCs to boot secondary cpus. Signed-off-by: Daniel Palmer --- .../bindings/arm/mstar/mstar,smpctrl.yaml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/mstar/mstar,smpctrl.yaml diff --git a/Documentation/devicetree/bindings/arm/mstar/mstar,smpctrl.yaml b/Documentation/devicetree/bindings/arm/mstar/mstar,smpctrl.yaml new file mode 100644 index 000000000000..599c65980f5d --- /dev/null +++ b/Documentation/devicetree/bindings/arm/mstar/mstar,smpctrl.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2020 thingy.jp. +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/arm/mstar/mstar,smpctrl.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: MStar/SigmaStar Armv7 SoC SMP control registers + +maintainers: + - Daniel Palmer + +description: | + MStar/SigmaStar's Armv7 SoCs that have more than one processor + have a region of registers that allow setting the boot address + and a magic number that allows secondary processors to leave + the loop they are parked in by the boot ROM. + +properties: + compatible: + items: + - enum: + - sstar,ssd201-smpctrl # SSD201/SSD202D + - const: mstar,smpctrl + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + smpctrl@204000 { + compatible = "sstar,ssd201-smpctrl", "mstar,smpctrl"; + reg = <0x204000 0x200>; + }; From patchwork Tue Dec 1 13:43:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11943003 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=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 5EA47C83012 for ; Tue, 1 Dec 2020 13:45:19 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 DC3EF207FF for ; Tue, 1 Dec 2020 13:45:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="YLg20CV9"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="s+sQYh9u" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DC3EF207FF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=0x0f.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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=8vC8k4iF42wQJga5SIWiefJIU+7QRzE78d9XLjt5CMY=; b=YLg20CV9LwOLB8Dh8CGyt/mCw B4cDoSBMl8Mc7Agb3dLZw73anDZnuYyivtPqW1P51H1VIHQ0Yv2QwNr1DNYZAMCx/a3fkq7xrsz6H PwDuuVaw8XE55tfPLjoHdaI05l1RIiXaCjjWzp+sulh0n8X/ujRstbphHwf+//13rf6dkyW2rAkMQ IBP/GVdud/x4ZdFyYTxd3eoOqdb6qeEgPU7xq7IuDYvBo8R+O5EOvsvCz1QX3hqhieVnZJRSsOI4S IhS42YOwagqCYOlwNuQrEXs28soPy3lUmI2qONxq66rxSS0DsiSgqYFOS+eCx2Gaefyw0qCjBKFln 7Hp4UrmtA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk5wj-00070D-2T; Tue, 01 Dec 2020 13:43:57 +0000 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk5wc-0006wP-1g for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2020 13:43:51 +0000 Received: by mail-pg1-x52e.google.com with SMTP id f17so1221017pge.6 for ; Tue, 01 Dec 2020 05:43:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1Dt1UKiHvns/wxXXTVZSOMf0MQOF2uaj5QHuWAWvMyQ=; b=s+sQYh9u4PNPxijEivUJmC+SmfbhXD8FTmrOqhu9dToUrWo5DfciQQJdy4IbfxcQ8O AvhBgVMH/tidGkmkSpJtKl6wamNJiCATDJRvLEaPd6mdat4f0wIX9IBlLAlYf+iT6TbR 9+uWSA6ucNTLiF3WfGTsnnNF3hWW8jRU5yLmk= 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=1Dt1UKiHvns/wxXXTVZSOMf0MQOF2uaj5QHuWAWvMyQ=; b=JnLtQpSB5WYYumYogr8s1Z7wYNFQOeqFq20iKyMz2rAToqs9BAt7IB+r6jhP0Cl0Iv C/EF77ypN6upk8gyzCP/zkr/43fgnJJx4nvjpoC9Ig/CH9qtuxSRq530wY8dFc4UEAHr MB3MC6+wWmfMd4MrqZwwLRpRfEsqWIv+tRpG1ool6wBIjDsnSc44rUYo96yksAKwnI1g bDGZY8Dy37Vw61qwq2IixThkzE988skQPWSa7gfweWQHCAVXOwIkQL+p2h4N4pmXHMiL pFrx0ywQIQDMhRvOi3IRCBrwni1x5dMMu8dSbFbJKlAHl94LRgflNBvtKcCtTUsiyHpz g8DQ== X-Gm-Message-State: AOAM533/iQNWDvocStIkUa6ZepM3U5vXxvqhCZ3fBwcXSC4OM2OXN/Kz t2S1B34CLbuSEK4IvoVCYzn+MQ== X-Google-Smtp-Source: ABdhPJz6Fbr0orPaVYv9paiSOtvGm5Y86cBYdh70h4VRs2mpXlZ7xEcjl96/rs7H5GIcwZsfby+XCQ== X-Received: by 2002:a65:620c:: with SMTP id d12mr706840pgv.220.1606830223429; Tue, 01 Dec 2020 05:43:43 -0800 (PST) Received: from shiro.work (p1268123-ipngn200803sizuokaden.shizuoka.ocn.ne.jp. [118.13.124.123]) by smtp.googlemail.com with ESMTPSA id g14sm2839248pji.32.2020.12.01.05.43.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 05:43:42 -0800 (PST) From: Daniel Palmer List-Id: To: devicetree@vger.kernel.org, soc@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 02/10] dt-bindings: vendor-prefixes: Add honestar vendor prefix Date: Tue, 1 Dec 2020 22:43:22 +0900 Message-Id: <20201201134330.3037007-3-daniel@0x0f.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201134330.3037007-1-daniel@0x0f.com> References: <20201201134330.3037007-1-daniel@0x0f.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201201_084350_127535_13B17865 X-CRM114-Status: GOOD ( 11.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: robh@kernel.org, arnd@arndb.de, daniel@0x0f.com, linux-kernel@vger.kernel.org, olof@lixom.net, w@1wt.eu Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add prefix for Honestar Technologies Co., Ltd. Signed-off-by: Daniel Palmer --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 2735be1a8470..a6cf2cef6f89 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -451,6 +451,8 @@ patternProperties: description: Holt Integrated Circuits, Inc. "^honeywell,.*": description: Honeywell + "^honestar,.*": + description: Honestar Technologies Co., Ltd. "^hoperun,.*": description: Jiangsu HopeRun Software Co., Ltd. "^hp,.*": From patchwork Tue Dec 1 13:43:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11943007 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=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 1ECABC83013 for ; Tue, 1 Dec 2020 13:45:23 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 96072207FF for ; Tue, 1 Dec 2020 13:45:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="JK0MvjYM"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="RM1NldzB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 96072207FF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=0x0f.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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Iv2dFpDgOAl3BTUo6ULyserh49twc+9xcpLAcNK/jo4=; b=JK0MvjYMgXsg8g0J0jJCrIvKW m5PW7wp93uVS/qoTYYspGSAFItJ5dBQgyYictit3SrPniKMOzGXcpqwNqjczkLTpf8+dagbw+ScfY T1ewOaEPKVvOzoDyIk0B9ZqaHfJEm633fu0T5T5ZJemZhqaW8saJj+GPjaedMfh8uxVvlF2ijvwWB sE+m2aCy9Dn/dTExzrC9J9B6O1lvdUz0/eWfSKDNY/8xsEzE6cF2qQl9NPX6gZhC4LfrfSdUUNY32 eiM3gwRp/vjpd2trzGZvN7z6GvREgornxOHBwWfMSMAukduu9oAU69o4dZ+g5ZKlkJa00yxG4xXce JfVkrq5gQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk5wg-0006zf-SG; Tue, 01 Dec 2020 13:43:54 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk5wZ-0006wx-VJ for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2020 13:43:51 +0000 Received: by mail-pf1-x444.google.com with SMTP id q22so869044pfk.12 for ; Tue, 01 Dec 2020 05:43:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TdRqXYI9+LXautyFSgQZPVbiKxi/AYNw4/5pXTCk/R4=; b=RM1NldzBUV9eilnHZx/H3MAmxMfGI28r9EeIMlH6hqjZCvYEFhQy3qUQw11icYoss1 FMw9JD/wlHbe5sr6+x8tAyfmla93e6MUxcZLwvjqWsmfCsGIfJ2Ch0E6O+eklS6yZzTR 4gzxI2q6rs+2PS7LC3nZvBkN/Aa69HTvyKO7I= 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=TdRqXYI9+LXautyFSgQZPVbiKxi/AYNw4/5pXTCk/R4=; b=UMVKQTydh5aANvHoMAUCpuYq/Y9+mzm1pU0Ne6AhleztuBxaQLCFOqJrBDMEAHWRgP KlTNui9jweV+F7iTtGh2242ImdzmPIStdlHEwwTuCU5qG5N5ewXpbXtVK/VUz6cYXz1N UMymJQq6K9/JOclUmrnaRJSTYZ3yWjFj8UwdxeQt0b3Hq2RKNsSOAkO1YON8LNn8TBTN lWpEDlBUSiRL6/ti0ifdWl0U9/LSWBrGQk+NnkwuJLahjwjv+3mP9AMndZdP1cd18Oby LHNryX3R7S63MIHH9vk0KRMSLoAKGvzWBFU3PF7/UY+pfdz1pKLjb0dWcn6z2LkeRL6I 2y9A== X-Gm-Message-State: AOAM532/A9gHnotB4eAc+BVBH33G5AWcfaROmYRqIdJ5LRyA3k+O8x9r uETJIeJkYslBOvLahofMizkGcg== X-Google-Smtp-Source: ABdhPJzTIgKg7pAUw9IZNPEUcFY3ziV2gQbl96vChMSNwAgbfi0peMLDJMiAe0RBB4RvEnGDI/f/VQ== X-Received: by 2002:a63:f20:: with SMTP id e32mr2301093pgl.130.1606830226259; Tue, 01 Dec 2020 05:43:46 -0800 (PST) Received: from shiro.work (p1268123-ipngn200803sizuokaden.shizuoka.ocn.ne.jp. [118.13.124.123]) by smtp.googlemail.com with ESMTPSA id g14sm2839248pji.32.2020.12.01.05.43.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 05:43:45 -0800 (PST) From: Daniel Palmer List-Id: To: devicetree@vger.kernel.org, soc@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 03/10] dt-bindings: mstar: Add Honestar SSD201_HT_V2 to mstar boards Date: Tue, 1 Dec 2020 22:43:23 +0900 Message-Id: <20201201134330.3037007-4-daniel@0x0f.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201134330.3037007-1-daniel@0x0f.com> References: <20201201134330.3037007-1-daniel@0x0f.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201201_084348_038415_3A421FB0 X-CRM114-Status: GOOD ( 11.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: robh@kernel.org, arnd@arndb.de, daniel@0x0f.com, linux-kernel@vger.kernel.org, olof@lixom.net, w@1wt.eu Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Honestar SSD201_HT_V2 is a full size devkit for the SigmaStar SSD201 or SSD202D (they are pin compatible). Currently only the SSD202D version is supported as that's the one I have. Link: https://linux-chenxing.org/infinity2/ssd201_ht_v2/ Signed-off-by: Daniel Palmer Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/arm/mstar/mstar.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mstar/mstar.yaml b/Documentation/devicetree/bindings/arm/mstar/mstar.yaml index 7c787405bb2f..61d08c473eb8 100644 --- a/Documentation/devicetree/bindings/arm/mstar/mstar.yaml +++ b/Documentation/devicetree/bindings/arm/mstar/mstar.yaml @@ -20,6 +20,12 @@ properties: - thingyjp,breadbee-crust # thingy.jp BreadBee Crust - const: mstar,infinity + - description: infinity2m boards + items: + - enum: + - honestar,ssd201htv2 # Honestar SSD201_HT_V2 devkit + - const: mstar,infinity2m + - description: infinity3 boards items: - enum: From patchwork Tue Dec 1 13:43:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11943009 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=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 782B7C71156 for ; Tue, 1 Dec 2020 13:45:26 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 ECF39207FF for ; Tue, 1 Dec 2020 13:45:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="s+2dqXSD"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="WF6NTtrl" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ECF39207FF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=0x0f.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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=nhwMvDVWB3qHjCVhwhET6/s+bcla/U1+graDZX3VuUE=; b=s+2dqXSDp9HXg2bdLcpr2JVZf WY7lmUswdq+M4Zm0yrN3qrudHxFMC3tF9wPMA9hDhiTLAwG0M1wdiTyfVzKb36dpOJkbjvwiSxCA/ j2GDZIiKszzXXQz+FVE4/MXmR9B4U1711DXHXjGkNXtOQ5IaXm0fFuciEOVAvD8rjnGVNH78Rl7n3 URjy7ikUMk1RMrK2j99Kf2nii9hXFvanObEB1eB93ngYca2GLFcLHQ5YUnnxo4f2Sp4z77ioOTGW6 AncPVGWAmN5ZAbmyTUFgznspUcfqKP9PGTtocxP+hGjkwjS6m60S9W52aBFj/JEcKrauncUluTilq JNs9ePkZA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk5wk-00070U-OR; Tue, 01 Dec 2020 13:43:58 +0000 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk5wd-0006xv-N7 for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2020 13:43:52 +0000 Received: by mail-pj1-x1030.google.com with SMTP id hk16so1257674pjb.4 for ; Tue, 01 Dec 2020 05:43:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hOB84R26CoZQA91b93xytogHngTBkirbQivQiUAvSZ8=; b=WF6NTtrljoUI8VDrrXKRQNZMUo3sZpPtwXncI77Eh5b/yLWbwXVVDd2e5GxzmBehWM iLJgca6ShKHyZ+hteIe0wcmc4NmhcpaYU4vdpEt3HE20RVTDJDvtId2319wiU4s7OuST cywS02e7AegSTmHZMU4BhxjYvObD7HE5zCKOk= 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=hOB84R26CoZQA91b93xytogHngTBkirbQivQiUAvSZ8=; b=D0qR1v07nBFZfe5Kv2YdM2+zO8YvHJ5FI4ZpySSOimKTWX2uCoHwWzbsp8jjKPAbMd KgNySKbobJpjVcX2YNzUZ89JGLVSLxUujZalZNDVRCq2N4pJeS13YTJcl77LD3oA7LaD mme0k8WseCnPhvATeBePpU3H9dYwex3gtwzuBteE3kXJnqQL+ggCqugewPlaB4ncCVks nnN4XJbZ6aDBDhDhGlt10BPREGQ6gSJOlq2nBTK34Avmi+nbakj6YdGFZ751Hu2lSQZY uh5RCKJYxF2GK3vY+Fi+bnhPjzmJ4oA+tImcIGvo7zeKQ7BuSQF8/dbCshYagJwPMAth C5FQ== X-Gm-Message-State: AOAM533CHPiJ0aK46299nKBi7CXMzDjg+7NFu8U/2qtDTz1xmwepIcqu Qr3ia+oQW9Ss9bbop0oaItwzbw== X-Google-Smtp-Source: ABdhPJwc0NvZ68gepyb5EB381x8XYKBVMFc2+YBBRdd8e2c6Zew+ZunZVzKA2CFEiB5+u1J7MgYlAw== X-Received: by 2002:a17:90b:4b11:: with SMTP id lx17mr2824634pjb.154.1606830229035; Tue, 01 Dec 2020 05:43:49 -0800 (PST) Received: from shiro.work (p1268123-ipngn200803sizuokaden.shizuoka.ocn.ne.jp. [118.13.124.123]) by smtp.googlemail.com with ESMTPSA id g14sm2839248pji.32.2020.12.01.05.43.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 05:43:48 -0800 (PST) From: Daniel Palmer List-Id: To: devicetree@vger.kernel.org, soc@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 04/10] ARM: mstar: Add infinity2m support Date: Tue, 1 Dec 2020 22:43:24 +0900 Message-Id: <20201201134330.3037007-5-daniel@0x0f.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201134330.3037007-1-daniel@0x0f.com> References: <20201201134330.3037007-1-daniel@0x0f.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201201_084351_789215_F427586E X-CRM114-Status: GOOD ( 18.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: robh@kernel.org, arnd@arndb.de, daniel@0x0f.com, linux-kernel@vger.kernel.org, olof@lixom.net, w@1wt.eu Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The infinity2m series of chips are like the other Mstar/Sigmastar chips in that they have a Cortex A7 system with DDR memory integrated in a single package. The infinity2m chips are intended for recording the incoming streams from IP cameras. So instead of video encoders they have video decoders, instead of a camera interface they have display hardware and so on. Aside from the above points the big difference about these chips is that they include a second Cortex A7 core. Signed-off-by: Daniel Palmer --- arch/arm/boot/dts/mstar-infinity2m.dtsi | 15 +++++++++++++++ arch/arm/boot/dts/mstar-v7.dtsi | 2 +- arch/arm/mach-mstar/mstarv7.c | 1 + 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/mstar-infinity2m.dtsi diff --git a/arch/arm/boot/dts/mstar-infinity2m.dtsi b/arch/arm/boot/dts/mstar-infinity2m.dtsi new file mode 100644 index 000000000000..02adb9fe9d3c --- /dev/null +++ b/arch/arm/boot/dts/mstar-infinity2m.dtsi @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (c) 2020 thingy.jp. + * Author: Daniel Palmer + */ + +#include "mstar-infinity.dtsi" + +&cpus { + cpu1: cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a7"; + reg = <0x1>; + }; +}; diff --git a/arch/arm/boot/dts/mstar-v7.dtsi b/arch/arm/boot/dts/mstar-v7.dtsi index 07fc46c7b4d4..2862b32c7f63 100644 --- a/arch/arm/boot/dts/mstar-v7.dtsi +++ b/arch/arm/boot/dts/mstar-v7.dtsi @@ -13,7 +13,7 @@ / { #size-cells = <1>; interrupt-parent = <&gic>; - cpus { + cpus: cpus { #address-cells = <1>; #size-cells = <0>; diff --git a/arch/arm/mach-mstar/mstarv7.c b/arch/arm/mach-mstar/mstarv7.c index 81a4cbcab206..1aa748fa006e 100644 --- a/arch/arm/mach-mstar/mstarv7.c +++ b/arch/arm/mach-mstar/mstarv7.c @@ -35,6 +35,7 @@ static void __iomem *l3bridge; static const char * const mstarv7_board_dt_compat[] __initconst = { "mstar,infinity", + "mstar,infinity2m", "mstar,infinity3", "mstar,mercury5", NULL, From patchwork Tue Dec 1 13:43:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11943005 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=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 BCA74C64E7A for ; Tue, 1 Dec 2020 13:45:22 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 338A020770 for ; Tue, 1 Dec 2020 13:45:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ZBsOPixL"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="Mg4In0e7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 338A020770 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=0x0f.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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=YYPFckZmXRt1A3XeURyeH3l9L3X391i2Vvk6LmyFGcE=; b=ZBsOPixLwd/IwPkIk+vx0c/e6 dydWN16kKclVLCmqPbMDkuKSBuRybMlLQ9Yq8rrn3ChTMOW+VM/Sajol//iIt2+VRH5/5CsY1GbIx Y6euqILBUF6zhBLzEuFoTOZX3FL6pFtOc0IUYN+tYWbYXQYPgAq3IlovuUuWqGul6XmDCSJZp10vf HIngoCymroRMPEd01edjyCvKgcPTJNCZrprAgUGGva0jMSQAS675n6PgjA+mPOLbrIx90T8AePKEZ bUrRULzxgLbWvNzq8JMTo+/actf/7g/uoIkbvKXc+rZKpCIHhdcaY/PeSM9lM/hLpGeq1lpPHoBjz gkVoJD+5w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk5wm-000715-QX; Tue, 01 Dec 2020 13:44:00 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk5wg-0006z2-8X for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2020 13:43:55 +0000 Received: by mail-pl1-x643.google.com with SMTP id 4so1155867plk.5 for ; Tue, 01 Dec 2020 05:43:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6DwCQ27nNXwfD9t5ZQW62DZJZaYrd0rxE1o52EO0bsI=; b=Mg4In0e76C/nyOIQGBgSdZl64D3A5Tu74H2xv0kJ901QHWVsL5TL8tVTtZg/sH4otm h08twifw/lCN9tVt0w9xD2MFXAh+K1zUtSH8GfB1vti2Dx9NcjBDFZSKfHYscKwxCRye JrTYcYc5xcZ1au/5IwyjW9PTMsc+zVXnNnUwI= 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=6DwCQ27nNXwfD9t5ZQW62DZJZaYrd0rxE1o52EO0bsI=; b=JHl/H18+uOIfv2aw66DfNm1TmDh3f7NX3ShPNGp7SyfWcyECMc8nfn7LaW/TEej1f2 0VzXIF7BxW6vDGSfk9A736S+mkro2qhVL1pax3dewzHgZJNbf0KhcXyP5aNBBkWe237J UybRw0eMDig3tRlbKDssoblbRJKcumVjz7bReJOia2BKRjXUlQLCfs5r5Wm7SiecJhOE 7HdjoALsi/nGjWuIw/1dLEP1Zw2R+WzdNF8Fn41jn7FOgrdZBUh+J9MAHbJL1nhjB3Wl qcglfjN6XlMBNh6jIi/XYf7NVaO8Bi762C4kiMr+tSPfW+m7JORJbGz1I8RqdF4QVI8h HMWA== X-Gm-Message-State: AOAM532y+xpWuYY/LTP/GltCKWnb53H1fTKD7qo/2eja+cszjbFlncbn XPOnD9NPo29VYKs99L+IGNwPLw== X-Google-Smtp-Source: ABdhPJxpaiILhXu389YSGSADviATIWQrbxVZK/JiCYSOrTtXFyfERdUSo5vjfna+xlbCHCirxfOyNw== X-Received: by 2002:a17:90a:ee8c:: with SMTP id i12mr2774956pjz.33.1606830231857; Tue, 01 Dec 2020 05:43:51 -0800 (PST) Received: from shiro.work (p1268123-ipngn200803sizuokaden.shizuoka.ocn.ne.jp. [118.13.124.123]) by smtp.googlemail.com with ESMTPSA id g14sm2839248pji.32.2020.12.01.05.43.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 05:43:51 -0800 (PST) From: Daniel Palmer List-Id: To: devicetree@vger.kernel.org, soc@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 05/10] ARM: mstar: Add common dtsi for SSD201/SSD202D Date: Tue, 1 Dec 2020 22:43:25 +0900 Message-Id: <20201201134330.3037007-6-daniel@0x0f.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201134330.3037007-1-daniel@0x0f.com> References: <20201201134330.3037007-1-daniel@0x0f.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201201_084354_315106_C490971D X-CRM114-Status: GOOD ( 15.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: robh@kernel.org, arnd@arndb.de, daniel@0x0f.com, linux-kernel@vger.kernel.org, olof@lixom.net, w@1wt.eu Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The SSD201 and SSD202D are basically the same chip with a different DDR die packaged (64MB DDR2 or 128MB DDR3). This patch adds a shared dtsi for the common parts of these chips like gpio, pinctrl etc. Signed-off-by: Daniel Palmer --- arch/arm/boot/dts/mstar-infinity2m-ssd20xd.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 arch/arm/boot/dts/mstar-infinity2m-ssd20xd.dtsi diff --git a/arch/arm/boot/dts/mstar-infinity2m-ssd20xd.dtsi b/arch/arm/boot/dts/mstar-infinity2m-ssd20xd.dtsi new file mode 100644 index 000000000000..0811220f0a79 --- /dev/null +++ b/arch/arm/boot/dts/mstar-infinity2m-ssd20xd.dtsi @@ -0,0 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (c) 2020 thingy.jp. + * Author: Daniel Palmer + */ + +#include "mstar-infinity2m.dtsi" From patchwork Tue Dec 1 13:43:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11943013 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=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 A18E8C83014 for ; Tue, 1 Dec 2020 13:45:26 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 2EC162080A for ; Tue, 1 Dec 2020 13:45:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="kVYz7YpR"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="t6q6uhfF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2EC162080A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=0x0f.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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=JZE/hfsRyXG84FP0woMXd4ipmHnCgi1v2uaV+GbpnFM=; b=kVYz7YpRiRXjtxGG9F1DtMwif WcPS2iMEN8e6FP1nyBwZIx2Qzt5PR4YwGpwgXlDj17a0bzjI9hUgA5Rdd9B/mHz6UwXDHt61qJUqE XO4XR2Z+v2g92VMceWbChKr0g57jh2sdCsJJNN5wyNGxIrxTtHFg1vIFnP3B0bPbzLisuodRgB+64 U4dpKJnR0hEDhueU5Q8Sws+kujMyF6xaRjfUCT3JWzK1KZ3maMWQp5E1eXqpsw1P4XixcIrZAMlBY ep5JVmCLEbvSAQtpcv1B+oHKMvsJaqW+NszBro5kkB92SnTJqFXrQNMbZN0PYtwKyA3zYHHgRe5nq pl3TIbahQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk5wp-00072W-Uu; Tue, 01 Dec 2020 13:44:04 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk5wi-0006zo-B7 for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2020 13:43:57 +0000 Received: by mail-pl1-x643.google.com with SMTP id t18so1182416plo.0 for ; Tue, 01 Dec 2020 05:43:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZmXMtKJx+N4tYwcvtUovyBiKEQa6t+IIEkwiQ3K9Kyk=; b=t6q6uhfFqDAV+Gpt9MD0/6YR8au50Pju9fWCyH2hnyNEP9wJiJPqna+SH1c5DoAYUX s1a+2RKgaD8aqVVp2TFcKKf2+RYPuIlugkr+VezgnCx+YhZ1uLSoBB7vL1bU9e5NRnO2 1EoptdP+uf1iEIO00tkEZQeXawKJ0PGcHCViQ= 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=ZmXMtKJx+N4tYwcvtUovyBiKEQa6t+IIEkwiQ3K9Kyk=; b=gmq4ZYl5dAGT5IAhRagf0E4bbeTStTkargCKITrHr/hESvzadS8Z+jZaJ9daOzOFcy rDaWQhHRLE9Er8hBVIVut+mFV7fp/88NPuvFKhXxMJUyVYp9CAkR5PnTaAezx15Qe6CI 3kJrZjhvR3DuLKCwrGCMq7YMEfTcpyUeyWlVVK0fpF90BXhZvsxI4NycT0vgaXX/B/Hk DC/+NeZv3GvU1hTdYGn0US18wH7KnKURqob1J6CRnGJg6myf6rxXMK/8NmA8frjgrWQ/ nkh1/TlD7mN1ByEsU9K1LCoPg5C6UZhBWG13aim0ny4m2wJVXlFrJwQPnAaS6Jl8DEg9 ul9Q== X-Gm-Message-State: AOAM532LHkZ9JOtgWQOqn/2xJCsNsu4n0wJgcrCL8WDPM53zsIhL6G8f utOwNB36Hx4on9N+X0mulBUlPA== X-Google-Smtp-Source: ABdhPJzL6sz8FhzIj/VnR2T4URGqVwifM9uOLkrsNrYxoV7xuyu2esfcbIqT9WWHFPe7wKzSDADh3w== X-Received: by 2002:a17:902:7b97:b029:d8:ec6e:5c28 with SMTP id w23-20020a1709027b97b02900d8ec6e5c28mr2848453pll.40.1606830234662; Tue, 01 Dec 2020 05:43:54 -0800 (PST) Received: from shiro.work (p1268123-ipngn200803sizuokaden.shizuoka.ocn.ne.jp. [118.13.124.123]) by smtp.googlemail.com with ESMTPSA id g14sm2839248pji.32.2020.12.01.05.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 05:43:54 -0800 (PST) From: Daniel Palmer List-Id: To: devicetree@vger.kernel.org, soc@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 06/10] ARM: mstar: Add chip level dtsi for SSD202D Date: Tue, 1 Dec 2020 22:43:26 +0900 Message-Id: <20201201134330.3037007-7-daniel@0x0f.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201134330.3037007-1-daniel@0x0f.com> References: <20201201134330.3037007-1-daniel@0x0f.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201201_084356_411249_7B857E8C X-CRM114-Status: GOOD ( 14.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: robh@kernel.org, arnd@arndb.de, daniel@0x0f.com, linux-kernel@vger.kernel.org, olof@lixom.net, w@1wt.eu Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add a chip level dtsi for the SigmaStar SSD202D Signed-off-by: Daniel Palmer --- arch/arm/boot/dts/mstar-infinity2m-ssd202d.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 arch/arm/boot/dts/mstar-infinity2m-ssd202d.dtsi diff --git a/arch/arm/boot/dts/mstar-infinity2m-ssd202d.dtsi b/arch/arm/boot/dts/mstar-infinity2m-ssd202d.dtsi new file mode 100644 index 000000000000..176e10a29896 --- /dev/null +++ b/arch/arm/boot/dts/mstar-infinity2m-ssd202d.dtsi @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (c) 2020 thingy.jp. + * Author: Daniel Palmer + */ + +#include "mstar-infinity2m-ssd20xd.dtsi" + +/ { + memory { + device_type = "memory"; + reg = <0x20000000 0x8000000>; + }; +}; From patchwork Tue Dec 1 13:43:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11943015 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=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 AC676C64E7B for ; Tue, 1 Dec 2020 13:45:29 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 354E920770 for ; Tue, 1 Dec 2020 13:45:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="lUw6Vge4"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="f/2IpXak" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 354E920770 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=0x0f.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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=UgEtie4aHL48mw9nXAp4bZCCvSgwptHQZJnvan9ZVtg=; b=lUw6Vge4kksPm6r6z9jaJp5p6 sL4DZdcuW6Tn7AAv1ZVoIju5aTH+a5TczPTS1jRwhN5XXK+yONhE4H1p3iuo6JR/K4LbIdaO88ntJ VyDTp5VetS8rccJcC0W8fl3q1PVSE0UUEHQ8xtdyfKKdd//Aqlz4T2GKXPaH62csojZ4m3MTgRrsA AzmWROsnyjUwVpc8/Huh+eii6I+RdG3IhQnRMrGmg9DnTvjLujFJisTyPBbKg/IjeFASGjFFYHd1P 4mtqeYOnb3E/0omoTVlcub5LbYhUYgF9iZwGzwrueDW68Fxq8xohFpNzWUQZiLqB6M2MpgpveoJ87 J8Ngy6Q3w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk5ws-00073B-Kd; Tue, 01 Dec 2020 13:44:06 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk5wl-00070Q-St for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2020 13:44:00 +0000 Received: by mail-pl1-x644.google.com with SMTP id x4so1147137pln.8 for ; Tue, 01 Dec 2020 05:43:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nZs3cd4haoA+TDqA6POpYN8YC7m6XfHT6GH0HjPmBjM=; b=f/2IpXakdLzHmPBxF37xXRsHxu3TP7ceBiybQPbSxCHdq/+YZHfI4Pf00ORWxGOiqp Is9Kyvb3TV2BBX7H43WL0S+TeanOTIv6tlKJtOR5EwwfO50rjF5lUlwYAhLknKSxgH4s 4GQSPSEFK6eYi+B9KWj3sJm3GwqQA7eMt3/5s= 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=nZs3cd4haoA+TDqA6POpYN8YC7m6XfHT6GH0HjPmBjM=; b=T6Ci7ez1rWpqipmGOC74gHHHYgCOgnDCg3UMSJRSKLJ3/epN2IpZwV3irEzPiNo2Dk ZvI4wR8uvioR2IbZOSk5j1nIMZklGLY/eNuO7//rB1OxWrar7xWKe2QyWZSozEawTy9E Zm2CDFSqyBsvKwgs1TjCya9CTOUO2S6R4iPdXxXkctg0CPs2Rs2GE/NPK9nP4b+i6IOU 8X+UZUqJVUxV/YuxEZsWtRSx1flIUS1pDzDh54JidJDGFmGuiVR9D6OPxrFvpRcv+4LS HNO2Q/x6yEZJy5rTyJsbXmhH/3zavjiyZYaPLMT3+o8cbeZIEbYE5drlqQ8SrXvJoyPX vp2g== X-Gm-Message-State: AOAM533ALSCaefJWvPe3fnOLuA25NitNnjFi2WF+dkOpFYQpmk9S1ONU MvtfRxPm2IkJj93pBT22Kz/zkw== X-Google-Smtp-Source: ABdhPJzlpZrs7tYCs+bVPPekgHDRENk2SgSkvvOa2zESTJWo07869xM/hna2VCsk8cT9VcgBPLJ3cw== X-Received: by 2002:a17:90a:a487:: with SMTP id z7mr2838802pjp.102.1606830237578; Tue, 01 Dec 2020 05:43:57 -0800 (PST) Received: from shiro.work (p1268123-ipngn200803sizuokaden.shizuoka.ocn.ne.jp. [118.13.124.123]) by smtp.googlemail.com with ESMTPSA id g14sm2839248pji.32.2020.12.01.05.43.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 05:43:56 -0800 (PST) From: Daniel Palmer List-Id: To: devicetree@vger.kernel.org, soc@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 07/10] ARM: mstar: Add dts for Honestar ssd201htv2 Date: Tue, 1 Dec 2020 22:43:27 +0900 Message-Id: <20201201134330.3037007-8-daniel@0x0f.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201134330.3037007-1-daniel@0x0f.com> References: <20201201134330.3037007-1-daniel@0x0f.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201201_084400_032146_BD5E1E22 X-CRM114-Status: GOOD ( 16.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: robh@kernel.org, arnd@arndb.de, daniel@0x0f.com, linux-kernel@vger.kernel.org, olof@lixom.net, w@1wt.eu Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add a dts for the Honestar ssd201htv2 devkit. This is for the board populated with a SSD202D. Signed-off-by: Daniel Palmer --- arch/arm/boot/dts/Makefile | 1 + .../mstar-infinity2m-ssd202d-ssd201htv2.dts | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 arch/arm/boot/dts/mstar-infinity2m-ssd202d-ssd201htv2.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index ce66ffd5a1bb..ccbf44b6f32a 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1372,6 +1372,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \ dtb-$(CONFIG_ARCH_MILBEAUT) += milbeaut-m10v-evb.dtb dtb-$(CONFIG_ARCH_MSTARV7) += \ mstar-infinity-msc313-breadbee_crust.dtb \ + mstar-infinity2m-ssd202d-ssd201htv2.dtb \ mstar-infinity3-msc313e-breadbee.dtb \ mstar-mercury5-ssc8336n-midrived08.dtb dtb-$(CONFIG_ARCH_ZX) += zx296702-ad1.dtb diff --git a/arch/arm/boot/dts/mstar-infinity2m-ssd202d-ssd201htv2.dts b/arch/arm/boot/dts/mstar-infinity2m-ssd202d-ssd201htv2.dts new file mode 100644 index 000000000000..5d81641414a2 --- /dev/null +++ b/arch/arm/boot/dts/mstar-infinity2m-ssd202d-ssd201htv2.dts @@ -0,0 +1,25 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (c) 2020 thingy.jp. + * Author: Daniel Palmer + */ + +/dts-v1/; +#include "mstar-infinity2m-ssd202d.dtsi" + +/ { + model = "SSD201_HT_V2"; + compatible = "honestar,ssd201htv2", "mstar,infinity2m"; + + aliases { + serial0 = &pm_uart; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&pm_uart { + status = "okay"; +}; From patchwork Tue Dec 1 13:43:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11943017 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=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 7B60EC64E7A for ; Tue, 1 Dec 2020 13:45:31 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 07DD12151B for ; Tue, 1 Dec 2020 13:45:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="zZb03JZh"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="ZKQNqj4k" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 07DD12151B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=0x0f.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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=3rhdSCKrjEb4CcQz7drfjWhBkGFx5hsuihqESUMnArQ=; b=zZb03JZhj+4e4eHvn/5mt+UMk iujMRjPV1snHqjBhhHvzq/f+M8LZ9TvIIo0/FdvxbdvUYqRZYk+mNiBT/16lBrZZ7Ld0dsA2aEA2B JFx+OASCQprt7bKyNGPlbYJmelPcf8EaXyNXM9G0KODIZfBPjd7CouJz830MTFdH6n/DouKFA+CcW k/O4QIvBtLmNlZ+tin5virpQGIcTIhd9Em0TJrN7VfldXEldTPNYOgCouXHf9eWGEM0yUF0+U72jp y9l5grGR0DEBePenIzrr0pLF9LCnVI04mD4mqPtpM56Et8BjxTMw5mDgMYYxCExBmhDPeK/eIDHy3 VYp4LKmEQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk5wz-00074s-UL; Tue, 01 Dec 2020 13:44:14 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk5wo-00071J-3d for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2020 13:44:02 +0000 Received: by mail-pf1-x444.google.com with SMTP id s21so1118715pfu.13 for ; Tue, 01 Dec 2020 05:44:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QhVjwYmrLBjTere/8qkNqVKV4ikj/p2zvRp7BGZNQtM=; b=ZKQNqj4kph80u620UibIsXqnoxPNGtFGOt3TTEBC1XaRy09V888raF64Bhtgz6sOrk /xsiR+FATTTTccnyGAELk8Rpj6AtHWRWuMh2AfHFqkq5kWkU+ulQ/TWjrrDD6s7tRalu qw2CkzHrvL83jj/ehKW3ddp347z7u5c7ZQH80= 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=QhVjwYmrLBjTere/8qkNqVKV4ikj/p2zvRp7BGZNQtM=; b=fYBeayspXCW7uqMI3Hi7jrPbtvDHKOb3lQpwDoSQDp687rDO6SMIIcbnvMi/WZUa8u qyoytleYCKMtlS9jSqmJw9OWAQXnHJqJopld7N/MBh8GU3ErjoWXi5/vrct4V+FOmgI0 MSJXNhjD/Vg3u2+0oliHc3YQL67H0s8YYDZ2F3kd+cDj+dlKZg1wodSuCFsUiwkev+Kr 3CqXHrdbg33mtqEjo8e567vdVNi4qf6mlWimvMoX/6A1Jo9gjS9jXIp8qM6EXP7FYs1F 44uI/f7fwoxJp+pz0Dkm+NzSJFOTYHmznSTzbXBuUBSv+W47ZUe3+9cWyjCTUqLONmWY wGoA== X-Gm-Message-State: AOAM530Tm5zeBX9B9M0AMezqaRQtXPNIOmngAzHSm8FCqIiG/yOBP1Yi pmEbt0aMbyyzsSFn9j1JAXsJDQ== X-Google-Smtp-Source: ABdhPJzSqLPkSH7u9yo7acIkChjMg0tnTuSVTqrelaL8V1sTewnWOzC6QPFtGj395NrAKbryp/7J/A== X-Received: by 2002:aa7:8055:0:b029:19b:694:34b2 with SMTP id y21-20020aa780550000b029019b069434b2mr2601424pfm.2.1606830240351; Tue, 01 Dec 2020 05:44:00 -0800 (PST) Received: from shiro.work (p1268123-ipngn200803sizuokaden.shizuoka.ocn.ne.jp. [118.13.124.123]) by smtp.googlemail.com with ESMTPSA id g14sm2839248pji.32.2020.12.01.05.43.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 05:43:59 -0800 (PST) From: Daniel Palmer List-Id: To: devicetree@vger.kernel.org, soc@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 08/10] ARM: mstar: Add smp ctrl registers to infinity2m dtsi Date: Tue, 1 Dec 2020 22:43:28 +0900 Message-Id: <20201201134330.3037007-9-daniel@0x0f.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201134330.3037007-1-daniel@0x0f.com> References: <20201201134330.3037007-1-daniel@0x0f.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201201_084402_241106_31A16865 X-CRM114-Status: GOOD ( 11.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: robh@kernel.org, arnd@arndb.de, daniel@0x0f.com, linux-kernel@vger.kernel.org, olof@lixom.net, w@1wt.eu Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add the smpctrl registers to the infinity2m dtsi so that the second CPU can be enabled on chips in this family. Signed-off-by: Daniel Palmer --- arch/arm/boot/dts/mstar-infinity2m.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/mstar-infinity2m.dtsi b/arch/arm/boot/dts/mstar-infinity2m.dtsi index 02adb9fe9d3c..6d4d1d224e96 100644 --- a/arch/arm/boot/dts/mstar-infinity2m.dtsi +++ b/arch/arm/boot/dts/mstar-infinity2m.dtsi @@ -13,3 +13,10 @@ cpu1: cpu@1 { reg = <0x1>; }; }; + +&riu { + smpctrl: smpctrl@204000 { + reg = <0x204000 0x200>; + status = "disabled"; + }; +}; From patchwork Tue Dec 1 13:43:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11943019 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=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 08F2EC64E7A for ; Tue, 1 Dec 2020 13:45:40 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 685E620770 for ; Tue, 1 Dec 2020 13:45:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ATElxr/J"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="vpT3Woau" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 685E620770 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=0x0f.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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=mZWhGEH3UgLQc1G69Ibh9xqRbX+6PI5HqT2/KX7BqUY=; b=ATElxr/J7S6YGWeGX15Sp8A/G 5QripFloU1UCQpz29GQ7yBqH1tjKiJnnCQK/nh1vyt/8GJ2qH7FwiX4HUlf5mh2jgEZvl8kLWYRvb dqmJy0VbBSIWQOtXPfiq3a+/5DXMnC2FgL1mXCF0uIDt0SOkqhPh5ift8MzyCpHDlhuJV7mspoaRq sgmIM77h+2QaNfZCT9XxyxLFCAdCX/YWK9LA3fwVbk+lcXAJLnW9nPJaQlJ6SL7vdDxk9YguWZQhv mMIbBP9SgGX/mCareceTq1CrJsqLiNWxANv2mPKHVp5uU1denUgBsSE6g/4eCScZ4G0LuDQHTvnOk q7x1gb9cA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk5xE-00079x-WD; Tue, 01 Dec 2020 13:44:29 +0000 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk5ws-00072a-79 for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2020 13:44:07 +0000 Received: by mail-pj1-x1034.google.com with SMTP id h7so780925pjk.1 for ; Tue, 01 Dec 2020 05:44:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Mfswc8PEaRtag64wvufOaanDCqQevd/LVNeXXXGVpMk=; b=vpT3Woau4ZWljZ1nCO99FgLu7buS9p6fLSz7J6xJT+ocVzNUie5zI31MXRs+6OCZ1R jV2WVqfd05kEbhnikrSi8OI0ATaYmS94opgt+7zLoS4r+gDlUtk+EA9gVLOkFBa9rsO8 n5vU2AioWdAkQRqtivql3S5ah/G9lzjQ1eZes= 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=Mfswc8PEaRtag64wvufOaanDCqQevd/LVNeXXXGVpMk=; b=cy8myFY+iVS3goVGsYfjNuHabWbHMxzcgKurRXQ9QsZcLiqy2sn7Bv+knbcQURLFhz 6ZxYbKmSdOnoTkrueoY/i7ZjNDW/ZmyNPrhMPRGZTDHXcSUDXDzPIbU93KViauzHg997 sfcKQFuKSa8jA0gTd9D0l6yROZeKT32IoyXleILHMrJACBi5PbJ78w51B91WffcpQc3q 47RO5V/X6Jr5JDOh+a4NFJVntt+8+gYqyoADf//IxbhzumOPiioOHkRl7OHrCLNIkITX yD2m2+RFjsX5QyKmNwyEXw98W/TG/3Um8hGUujfUYa4b7spDzLYfFupBgaNU546h6t/x OlnA== X-Gm-Message-State: AOAM531W9b9SFemUwvwICMuMnq6/bGCf7BBRf3vyjGXAtKm3oF4XpC+T +om2MnjzGwCv5Ax5JGpk4/giUQ== X-Google-Smtp-Source: ABdhPJwnn6rmrGvU0u1/dzlVI7LKYNnPN9/BPUhuah7+Sf97+hAv2LvRqgmfqktN5dXOVn5IwRMcbA== X-Received: by 2002:a17:90a:1782:: with SMTP id q2mr2835569pja.189.1606830243094; Tue, 01 Dec 2020 05:44:03 -0800 (PST) Received: from shiro.work (p1268123-ipngn200803sizuokaden.shizuoka.ocn.ne.jp. [118.13.124.123]) by smtp.googlemail.com with ESMTPSA id g14sm2839248pji.32.2020.12.01.05.44.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 05:44:02 -0800 (PST) From: Daniel Palmer List-Id: To: devicetree@vger.kernel.org, soc@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 09/10] ARM: mstar: Wire up smpctrl for SSD201/SSD202D Date: Tue, 1 Dec 2020 22:43:29 +0900 Message-Id: <20201201134330.3037007-10-daniel@0x0f.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201134330.3037007-1-daniel@0x0f.com> References: <20201201134330.3037007-1-daniel@0x0f.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201201_084406_379441_26AAB864 X-CRM114-Status: GOOD ( 11.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: robh@kernel.org, arnd@arndb.de, daniel@0x0f.com, linux-kernel@vger.kernel.org, olof@lixom.net, w@1wt.eu Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add the specific compat string for the smpctrl registers to the SSD201/SSD202D common dtsi. Signed-off-by: Daniel Palmer --- arch/arm/boot/dts/mstar-infinity2m-ssd20xd.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/mstar-infinity2m-ssd20xd.dtsi b/arch/arm/boot/dts/mstar-infinity2m-ssd20xd.dtsi index 0811220f0a79..7a5e28b33f96 100644 --- a/arch/arm/boot/dts/mstar-infinity2m-ssd20xd.dtsi +++ b/arch/arm/boot/dts/mstar-infinity2m-ssd20xd.dtsi @@ -5,3 +5,8 @@ */ #include "mstar-infinity2m.dtsi" + +&smpctrl { + compatible = "sstar,ssd201-smpctrl", "mstar,smpctrl"; + status = "okay"; +}; From patchwork Tue Dec 1 13:43:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11943021 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=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 17280C64E7A for ; Tue, 1 Dec 2020 13:45:44 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 913EC20770 for ; Tue, 1 Dec 2020 13:45:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="le4dfs7i"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="nnfurCpr" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 913EC20770 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=0x0f.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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=94I6dLeRorolzt9TA/hgBBZqGKHTmpTnNNzQf2ZP1IU=; b=le4dfs7iI+Wfk6tLbA4h58+qz ivP5ZLmb3KilyKxSAzNnsKcgzfJBxSf1ZULUt7cpj5TtU3OR9OJmwJ4OXP4B9TipBkvCptC9muK5X Ot/evjKMgk519B8eVGpsoNP+qCV9hFqD6sOBYEy3Ks1riVWGipfnhach+1bg6GwU+GO77yX9gg79c w+GnfCXNGMJSWDcHo5DLiAqRLrKoQwbZNJrvBZ+Z71WUAxKW52diiq2tavACiSDzpSH54MZPydaHE YP8usC05/2lMyRkbmnVx2EFCPcN0fAgZwHJhkdajyzWcBHdvc2V7Wg16ku+EGanCX2QprNCI6vJux tzlrWRAGA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk5xI-0007Ca-L7; Tue, 01 Dec 2020 13:44:32 +0000 Received: from mail-pj1-x1041.google.com ([2607:f8b0:4864:20::1041]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk5wu-00073d-5i for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2020 13:44:09 +0000 Received: by mail-pj1-x1041.google.com with SMTP id h7so780978pjk.1 for ; Tue, 01 Dec 2020 05:44:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hS2wM3FNHgJIyxJqyl8PuGsAWH0z3tsao6nHf2xVIB0=; b=nnfurCprKeYaMHdKwLLhAtc/7QpVAwGhPiDAysu4bgwUr0HPOE7DAtY2+DHE3HciSB qJwqpC+9ktJuXLvVQjVQh2XoVwielD3rNowfs4bNkzgY5SamuuXZAPkVrKYTncoBWhdL nPvmrVVHPUMiT7h//1NrmmPmFubTs8wcA+/QQ= 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=hS2wM3FNHgJIyxJqyl8PuGsAWH0z3tsao6nHf2xVIB0=; b=azZAOSxl/0q+/Z0Z/sNdDaBNJ11ss7BZXGNy6h3MhHiB/SZe749QP/PxY40WDP6k0P 37eK4TT2dZwht+04Fe2wgPCNCQHjAguJOJvl6SJp0X7u8B5VNEjZ196n6A5KtFtNu+ik lzawMCbwU/HX+iU8ab11Vd2/gRs4aF5PEtK6t5p2lnt350uRFgCDD+WdPH3ofyDNQwBC XZxdLk/jLn8gt8A2qAUkC4Pkl2HPXnYc0pD4ioPhlgBlEI59nyPYjC/0dqKFLXL5dxig QOIMCLADEmC50i8w5Kv9GTPW0rLEJDeoMqpzU2wVx0jFMrOMr6P70YNmZ2WysOu2h301 A+pQ== X-Gm-Message-State: AOAM533yoViRccbzwUjOWxpWai9C9RgAVZq+93V/PGesv1OXkoj1C7xs aLdlHkbzhvMXh9bWKdZZq6iDCPAx9QU/nw== X-Google-Smtp-Source: ABdhPJxJNuH03WeV+YCdxfpaFYEMD4f1GrVM3nOVUTLhZyrwQYDtwe6t9D1rzEqXhNFq2WjbkzhtWQ== X-Received: by 2002:a17:902:9894:b029:da:5698:7f7b with SMTP id s20-20020a1709029894b02900da56987f7bmr2891979plp.78.1606830245846; Tue, 01 Dec 2020 05:44:05 -0800 (PST) Received: from shiro.work (p1268123-ipngn200803sizuokaden.shizuoka.ocn.ne.jp. [118.13.124.123]) by smtp.googlemail.com with ESMTPSA id g14sm2839248pji.32.2020.12.01.05.44.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 05:44:05 -0800 (PST) From: Daniel Palmer List-Id: To: devicetree@vger.kernel.org, soc@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 10/10] ARM: mstar: SMP support Date: Tue, 1 Dec 2020 22:43:30 +0900 Message-Id: <20201201134330.3037007-11-daniel@0x0f.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201134330.3037007-1-daniel@0x0f.com> References: <20201201134330.3037007-1-daniel@0x0f.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201201_084408_265821_6EAC805F X-CRM114-Status: GOOD ( 21.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: robh@kernel.org, arnd@arndb.de, daniel@0x0f.com, linux-kernel@vger.kernel.org, olof@lixom.net, w@1wt.eu Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch adds SMP support for MStar/Sigmastar chips that have a second core like those in the infinity2m family. So far only single and dual core chips have been found so this does the bare minimum to boot the second core. From what I can tell not having the "holding pen" code to handle multiple cores is fine if there is only one core the will get booted. This might need to be reconsidered if chips with more cores turn up. Signed-off-by: Daniel Palmer --- arch/arm/mach-mstar/mstarv7.c | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm/mach-mstar/mstarv7.c b/arch/arm/mach-mstar/mstarv7.c index 1aa748fa006e..274c4f0df270 100644 --- a/arch/arm/mach-mstar/mstarv7.c +++ b/arch/arm/mach-mstar/mstarv7.c @@ -31,6 +31,13 @@ #define MSTARV7_L3BRIDGE_FLUSH_TRIGGER BIT(0) #define MSTARV7_L3BRIDGE_STATUS_DONE BIT(12) +#ifdef CONFIG_SMP +#define MSTARV7_CPU1_BOOT_ADDR_HIGH 0x4c +#define MSTARV7_CPU1_BOOT_ADDR_LOW 0x50 +#define MSTARV7_CPU1_UNLOCK 0x58 +#define MSTARV7_CPU1_UNLOCK_MAGIC 0xbabe +#endif + static void __iomem *l3bridge; static const char * const mstarv7_board_dt_compat[] __initconst = { @@ -63,6 +70,46 @@ static void mstarv7_mb(void) } } +#ifdef CONFIG_SMP +static int mstarv7_boot_secondary(unsigned int cpu, struct task_struct *idle) +{ + struct device_node *np; + u32 bootaddr = (u32) __pa_symbol(secondary_startup_arm); + void __iomem *smpctrl; + + /* + * right now we don't know how to boot anything except + * cpu 1. + */ + if (cpu != 1) + return -EINVAL; + + np = of_find_compatible_node(NULL, NULL, "mstar,smpctrl"); + smpctrl = of_iomap(np, 0); + + if (!smpctrl) + return -ENODEV; + + /* set the boot address for the second cpu */ + writew(bootaddr & 0xffff, smpctrl + MSTARV7_CPU1_BOOT_ADDR_LOW); + writew((bootaddr >> 16) & 0xffff, smpctrl + MSTARV7_CPU1_BOOT_ADDR_HIGH); + + /* unlock the second cpu */ + writew(MSTARV7_CPU1_UNLOCK_MAGIC, smpctrl + MSTARV7_CPU1_UNLOCK); + + /* and away we go...*/ + arch_send_wakeup_ipi_mask(cpumask_of(cpu)); + + iounmap(smpctrl); + + return 0; +} + +static const struct smp_operations __initdata mstarv7_smp_ops = { + .smp_boot_secondary = mstarv7_boot_secondary, +}; +#endif + static void __init mstarv7_init(void) { struct device_node *np; @@ -78,4 +125,5 @@ static void __init mstarv7_init(void) DT_MACHINE_START(MSTARV7_DT, "MStar/Sigmastar Armv7 (Device Tree)") .dt_compat = mstarv7_board_dt_compat, .init_machine = mstarv7_init, + .smp = smp_ops(mstarv7_smp_ops), MACHINE_END