From patchwork Mon Nov 30 13:10:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 334830 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.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, 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 4DB86C64E8A for ; Mon, 30 Nov 2020 13:11:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D6B60206CB for ; Mon, 30 Nov 2020 13:11:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="GdTnAdX9" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726162AbgK3NLj (ORCPT ); Mon, 30 Nov 2020 08:11:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725902AbgK3NLi (ORCPT ); Mon, 30 Nov 2020 08:11:38 -0500 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6570FC0617A6 for ; Mon, 30 Nov 2020 05:10:58 -0800 (PST) Received: by mail-pl1-x630.google.com with SMTP id l1so6458920pld.5 for ; Mon, 30 Nov 2020 05:10:58 -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=66bIbZIMyYy2aQ1+PNHmZ6rTWFoZDMO1KzGC89/vZyE=; b=GdTnAdX9F8W8qDdgb8euxuSQVdabwSLXIb5t7PUvLLZrWinfSjCqKxreDd+2Klo9kY buosYpZqM1Ol0MZmzneIS39JMkyfbFz7SzMTzCQjXsi/xQB7YOXTckAVmoGd5WUHFTa4 eJUf2CdeEa5rVAlg3JbjevfrD02CcUskuQg0o= 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=66bIbZIMyYy2aQ1+PNHmZ6rTWFoZDMO1KzGC89/vZyE=; b=biICZuVPxrV3sLyzn2ohnl5E5k89FemFRqAGkHmJn85hz+Xb8DHbLdOTNeX1bft/zi yXvQj9KsL+fVMt5m9OLUEamSyhHndH0MtaPcDw+Bm0n9AmvI8dyM/TYY88dT3wRgqw/O EUg6fG4Oo5ao4YjZs+/oanonyS6DNbO8ypEeynAsqYRdeRkrdRjOmfpoqaUV5ZjG6+To 8RZjoqO50B0pV2Z20ogUjgu2p3E/Dn9GancmxE3XjWuvuFPH7pW5ytfoklwLdUryj3sf VvGNKyGjW8d8E33j+B9WOpG9gRau5n23jgPQDFpESccx1l6pxTaZH3Y6o+SobcluBE4x o4Bw== X-Gm-Message-State: AOAM532P0W+Cu2Kt+uuiD6UiEYTNmS8iwTEqsA+bN5fMFxtgO5mAxfQk IpMg5W873FI36TNNixePb3JQ/JaJJvR4TQ== X-Google-Smtp-Source: ABdhPJy/vEeiJjPZKJDVRM9cViVIu8FP89iPKQ41rcgsVoY6HMn0FcCPUSI9RrJ+vkesBYf4n4MTUw== X-Received: by 2002:a17:90a:7e8e:: with SMTP id j14mr2229217pjl.60.1606741857634; Mon, 30 Nov 2020 05:10:57 -0800 (PST) Received: from shiro.work (p1268123-ipngn200803sizuokaden.shizuoka.ocn.ne.jp. [118.13.124.123]) by smtp.googlemail.com with ESMTPSA id a4sm41757578pjq.0.2020.11.30.05.10.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2020 05:10:57 -0800 (PST) From: Daniel Palmer To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, arnd@arndb.de, robh@kernel.org, w@1wt.eu, daniel@0x0f.com Subject: [PATCH 1/9] dt-bindings: mstar: Add binding details for mstar, smpctrl Date: Mon, 30 Nov 2020 22:10:39 +0900 Message-Id: <20201130131047.2648960-2-daniel@0x0f.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201130131047.2648960-1-daniel@0x0f.com> References: <20201130131047.2648960-1-daniel@0x0f.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 | 38 +++++++++++++++++++ 1 file changed, 38 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..a102287b5c88 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/mstar/mstar,smpctrl.yaml @@ -0,0 +1,38 @@ +# 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: + - const: mstar,smpctrl + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + smpctrl@204000 { + compatible = "mstar,smpctrl"; + reg = <0x204000 0x200>; + }; From patchwork Mon Nov 30 13:10:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 334829 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.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, 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 0D3EEC64E7B for ; Mon, 30 Nov 2020 13:12:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 954C920708 for ; Mon, 30 Nov 2020 13:12:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="PAFSo2jP" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726010AbgK3NL6 (ORCPT ); Mon, 30 Nov 2020 08:11:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725912AbgK3NL6 (ORCPT ); Mon, 30 Nov 2020 08:11:58 -0500 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75A02C061A04 for ; Mon, 30 Nov 2020 05:11:01 -0800 (PST) Received: by mail-pl1-x634.google.com with SMTP id k5so6451515plt.6 for ; Mon, 30 Nov 2020 05:11: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=1Dt1UKiHvns/wxXXTVZSOMf0MQOF2uaj5QHuWAWvMyQ=; b=PAFSo2jPfTIedfGf4MbJ9wcs5CKL5vw7Olli1viJ6nQDcLZv45ihpuSWTVRfPzEC5R YoEa4rairAYE4RKF7IN7Gm9U00P0wJ39X43ACor5L6YUicIlyqT21t+3zDUg4GXCbbF/ chx87dYzAMl8km/aqwTLDQGytETvscHziSGrw= 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=bZv3QITd7j0djXHlA++hxWk+dnusYRqy3IWPaLXplzpsbIa6gsbCwJnJl5UbdrjaZW bNMIV6f6q87PdlbhW5/lwT53ALhKFoiO6t8o8ArjWSrckeLYYY8QXskQnvtkr+0tEPCy K3EZL7Xwle1j+9Ku3Hx3iEse/3UwDH8kJSulLHUSMdQJEsrmVsREmEcUkFeLIoppednF SmuN/JxYFHqMuB+mAsfUeEwOXl+jW5Besd8tvdJYQyL4ZCwA4VrpfblskHD3zv584uyx v9i++5gVrW5WRmLuL8+xSKL8BIygHPyvS97hwYZQI7MbDVHyYqyEKieni3tnWgU2JUON QAPA== X-Gm-Message-State: AOAM531cViUTbkYq3XlYHYLfEoujVrCdU0Z/lYdaeNwnw3x3kVhltdqz 6s5O3gHjWQDZTuU3+95WFZSUunOjwJ/6ag== X-Google-Smtp-Source: ABdhPJxPYkPMleNdgWjsNJzlc+Sz4rGh3xYQQ44QmpGc8cTHgk7td332Ccj3Yu13BbgXQJ146MVs2w== X-Received: by 2002:a17:902:9f8b:b029:da:726d:3f17 with SMTP id g11-20020a1709029f8bb02900da726d3f17mr6687213plq.35.1606741860095; Mon, 30 Nov 2020 05:11:00 -0800 (PST) Received: from shiro.work (p1268123-ipngn200803sizuokaden.shizuoka.ocn.ne.jp. [118.13.124.123]) by smtp.googlemail.com with ESMTPSA id a4sm41757578pjq.0.2020.11.30.05.10.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2020 05:10:59 -0800 (PST) From: Daniel Palmer To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, arnd@arndb.de, robh@kernel.org, w@1wt.eu, daniel@0x0f.com Subject: [PATCH 2/9] dt-bindings: vendor-prefixes: Add honestar vendor prefix Date: Mon, 30 Nov 2020 22:10:40 +0900 Message-Id: <20201130131047.2648960-3-daniel@0x0f.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201130131047.2648960-1-daniel@0x0f.com> References: <20201130131047.2648960-1-daniel@0x0f.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 Mon Nov 30 13:10:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 335323 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.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, 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 4973DC83016 for ; Mon, 30 Nov 2020 13:12:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 074CE2073C for ; Mon, 30 Nov 2020 13:12:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="qJhZakmL" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726535AbgK3NMZ (ORCPT ); Mon, 30 Nov 2020 08:12:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726516AbgK3NMY (ORCPT ); Mon, 30 Nov 2020 08:12:24 -0500 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEA5AC061A48 for ; Mon, 30 Nov 2020 05:11:04 -0800 (PST) Received: by mail-pl1-x643.google.com with SMTP id u2so6435445pls.10 for ; Mon, 30 Nov 2020 05:11: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=TdRqXYI9+LXautyFSgQZPVbiKxi/AYNw4/5pXTCk/R4=; b=qJhZakmLX71Ow/Q4navBAsIvIv0yWS8fiCX2fxNBsvczVnYVYxXyvoVV3eTCIDX4QV J9J8nzmhgoffXp1hzkJykZz3J5K+4ovjA0BxL7ZIKhRmifFJ+Vhd0j1k0C/Dk6QZOL0x HHGqADfpDXBcBWjsCM77K/AOOaza45UXAaIPw= 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=uKVP37ZVaNREAlimRGFjmyC/JwbCcuXKBKlWWjaDwXHH8Cb4bMikpHICSQyTLqRb7J yuvSZZlEwRLeS/gbhyd/JXoWje1Xc7dAkCxmfGfTtvVzhbv0JQHr+6TsxikXpDXW/xSF jo3Gl2crlPHT7QBZldeLacITEb2yUo1chg1ae0sk4VzXL2ztY4FClMTtCM2d8gdOszBt ga4Ap7EGj4U+xIFFYjYGveXrkr0IwJe/j0k0HDocTJMDuubLX46JeJNx/jQcCPjUE9/y OlG3hWX/L3UYTbp0NKP52GmDN6umtRTcGCbnyrBeDRXhe7+4MVtEHLGU32eoQ76gDXfA vWdg== X-Gm-Message-State: AOAM533eQYnfIJMbYjp892d3nPDN07uOaO767gAkUlm/fAbwORAOMy1S b+i5sP8q+Aj+TOc/RNsm8oDneK9TBxGNTw== X-Google-Smtp-Source: ABdhPJwXoKlEzAdbPmg2u4U48+mToekmbmgjgbgdvXRcRwal5v3eSx9A94rxco97SG5qv3e+9ya4QQ== X-Received: by 2002:a17:90a:4093:: with SMTP id l19mr3226303pjg.218.1606741863990; Mon, 30 Nov 2020 05:11:03 -0800 (PST) Received: from shiro.work (p1268123-ipngn200803sizuokaden.shizuoka.ocn.ne.jp. [118.13.124.123]) by smtp.googlemail.com with ESMTPSA id a4sm41757578pjq.0.2020.11.30.05.11.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2020 05:11:01 -0800 (PST) From: Daniel Palmer To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, arnd@arndb.de, robh@kernel.org, w@1wt.eu, daniel@0x0f.com Subject: [PATCH 3/9] dt-bindings: mstar: Add Honestar SSD201_HT_V2 to mstar boards Date: Mon, 30 Nov 2020 22:10:41 +0900 Message-Id: <20201130131047.2648960-4-daniel@0x0f.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201130131047.2648960-1-daniel@0x0f.com> References: <20201130131047.2648960-1-daniel@0x0f.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 --- 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 Mon Nov 30 13:10:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 334828 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.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, 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 B40B8C64E8A for ; Mon, 30 Nov 2020 13:12:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 568B92073C for ; Mon, 30 Nov 2020 13:12:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="PyhiSFol" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726103AbgK3NMW (ORCPT ); Mon, 30 Nov 2020 08:12:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726275AbgK3NMV (ORCPT ); Mon, 30 Nov 2020 08:12:21 -0500 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2BC9C061A4A for ; Mon, 30 Nov 2020 05:11:09 -0800 (PST) Received: by mail-pj1-x102c.google.com with SMTP id r20so1303280pjp.1 for ; Mon, 30 Nov 2020 05:11:09 -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=PyhiSFolCJFU7wTOqSDoytdKtrAc2AOhdmxCLSMmRfZOHG7VXGVb2Ulw6POAB0/oZF pImJ1NZ5KIbI2+pgUxzmCwgMoOoi1v4laspFKthhrrASzcv05eCcX6slWiizTXOZSrW1 SLTH0wYyQ4i2ndY/pATwRtRVkLxHXzWE3SRJg= 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=BgyuRP8gYuQ5Unn2K/YVgSHmepoRSIRTOlS6+avjimzFn86F8XSXAsbFfFuzg+ylv1 lpmYLThKBkXMMisiuFPeaO47ixnBOFPYm4KofA7L7s4bEVb3Jj65PFDeMhywBs46/CFf eAqxIuewdM+ZaxutAKX6CUSETgItLzb0dvlIt0f0qsJjriPJHg3Ma/pwakzg3pzvqu4Y mtTR/3jj2SXDBG0+egEOzvTH8RPavGmmAxjcznT68/5UjNo27oz/92aUcRZDm+JA+lNS l4LMNoijGpHQ70ZgBt552bnYuGCU+KhuMDarmidS2D2PszVvrqIf5vkMpZgvW95qHet3 e+nA== X-Gm-Message-State: AOAM533ElKENcs5iudCCYOlHcLbapFFPb/1zp8597+WTVsLhm2nko2U9 lvltOFKkVeOSC/AIqYYBboTPr49m4Huq0A== X-Google-Smtp-Source: ABdhPJxgNlFVg7883wVBJGDHzd6CLjDX13djaCv0+2pZftGDOVsjYhNmQuIgaPkzf8PRi8KGpohlww== X-Received: by 2002:a17:902:b983:b029:da:8c9a:6ac6 with SMTP id i3-20020a170902b983b02900da8c9a6ac6mr1129245pls.54.1606741866601; Mon, 30 Nov 2020 05:11:06 -0800 (PST) Received: from shiro.work (p1268123-ipngn200803sizuokaden.shizuoka.ocn.ne.jp. [118.13.124.123]) by smtp.googlemail.com with ESMTPSA id a4sm41757578pjq.0.2020.11.30.05.11.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2020 05:11:05 -0800 (PST) From: Daniel Palmer To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, arnd@arndb.de, robh@kernel.org, w@1wt.eu, daniel@0x0f.com Subject: [PATCH 4/9] ARM: mstar: Add infinity2m support Date: Mon, 30 Nov 2020 22:10:42 +0900 Message-Id: <20201130131047.2648960-5-daniel@0x0f.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201130131047.2648960-1-daniel@0x0f.com> References: <20201130131047.2648960-1-daniel@0x0f.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 Mon Nov 30 13:10:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 335324 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.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, 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 D8E7CC83014 for ; Mon, 30 Nov 2020 13:12:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 80B1E2073C for ; Mon, 30 Nov 2020 13:12:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="fDo4Dqlk" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726589AbgK3NMb (ORCPT ); Mon, 30 Nov 2020 08:12:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726631AbgK3NMa (ORCPT ); Mon, 30 Nov 2020 08:12:30 -0500 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDB91C061A4C for ; Mon, 30 Nov 2020 05:11:10 -0800 (PST) Received: by mail-pg1-x541.google.com with SMTP id q3so2321564pgr.3 for ; Mon, 30 Nov 2020 05:11:10 -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=fDo4Dqlk6cSZ9usHLHZ9MyE9dx8CfKFu84UXkwdop8ja/oz3xWjKNNUmuu9EnuA0Wd hRB9JkrFYZS3YBc1BDaDl5qevvdl2QYeOgmgLKu16qY7Epz5rJ802ry8yhyRJJZr9BtC 3/xJdHoxUdcseH9u08NP6CCFihq6r13triKxg= 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=XkbgvS3IU907EP27PkJAGvAyGOVcRrP/zZujGUmOm6592vFgK98bXM1OrQlsvoVhBd unHaqiMs6Q2FR5HDXglxzdVlfreaprkB/EoshGg0x4LRVhBCIYcXMlJWJCfccOFZQ7K9 Gy7WqL3AM9iXivkrI/6MSSWPPsYKfhuNppwDASud/Woy1gTwsv6pFPbF5uWwNYrFrxl/ Ri7BNk/2eN919EOAFyIsZp/szwr1vR8KR3CLFpdkRzm5fDZ5bt6L4AEDVBig1M9f4MUJ lnhGT3YFtSjxS5d/RAkmJg4Xj7H/a0wWUHL/BnmbpcbCojhI0qcnQqCvDgIFnyJ1qj1F RsNA== X-Gm-Message-State: AOAM531mL1DjQl9gBOSpzhgbtJf2XYRuukwQXDyPqqLIujquMRrxV7h1 JZ+pXm4eBTpIKfO51k5jo0uMouWY5zht+w== X-Google-Smtp-Source: ABdhPJxzu3kAc2adlQ9zAbnUdal6pRji36O3f80wxg/CAAXaiNfmUGxPsOYHUwTuBg6FnsdC8eztBQ== X-Received: by 2002:a63:3708:: with SMTP id e8mr11310267pga.269.1606741869279; Mon, 30 Nov 2020 05:11:09 -0800 (PST) Received: from shiro.work (p1268123-ipngn200803sizuokaden.shizuoka.ocn.ne.jp. [118.13.124.123]) by smtp.googlemail.com with ESMTPSA id a4sm41757578pjq.0.2020.11.30.05.11.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2020 05:11:08 -0800 (PST) From: Daniel Palmer To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, arnd@arndb.de, robh@kernel.org, w@1wt.eu, daniel@0x0f.com Subject: [PATCH 5/9] ARM: mstar: Add common dtsi for SSD201/SSD202D Date: Mon, 30 Nov 2020 22:10:43 +0900 Message-Id: <20201130131047.2648960-6-daniel@0x0f.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201130131047.2648960-1-daniel@0x0f.com> References: <20201130131047.2648960-1-daniel@0x0f.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 Mon Nov 30 13:10:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 335325 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.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, 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 254E9C71156 for ; Mon, 30 Nov 2020 13:12:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CA59920708 for ; Mon, 30 Nov 2020 13:12:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="NxoxPa8F" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726635AbgK3NMa (ORCPT ); Mon, 30 Nov 2020 08:12:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726589AbgK3NMa (ORCPT ); Mon, 30 Nov 2020 08:12:30 -0500 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B72CC061A51 for ; Mon, 30 Nov 2020 05:11:13 -0800 (PST) Received: by mail-pl1-x642.google.com with SMTP id v3so1851114plz.13 for ; Mon, 30 Nov 2020 05:11:13 -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=NxoxPa8FXIUyktqGrUYMykPc3QGeELu7oBR4Da49xavORiHzpQoQ4BkXXSNXPthLUT 8Ax/SOzDYiHVd22MIpKaz7so11IqxYNh/HMhQ37F6btbcL7Bil4bAO3Nr67c6EeKnlWj /G0U6IxnDInTRu2aBf/JswFUC5jlri5jXPqj0= 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=EusuVLyz2FNOepmN6XSVMlWzKVZM2OOAXKx1QN7/pKX++FPr2e+xsd4bUn/f5GR3p7 7ps1oCBz7ma+PwMMhB/XHrErlTLx4MFeajYpVJiA5AvBmDjBahmEnFRvYxOfZiBsq0JQ xKiaRVuShQ2nJGwzEXzreVkMhyvIeKR7xM0wRUwSyuXQTe/SdoUj2ExyQqTo5UgMBQHK sUVOKmMuZAEz9NW0QSf1P653PaTMkGuYQef27f1d+mnV0kQt/jb+A1YHOV/9GAczRde4 P5d1YeODKVxWRcZaYh67pIQKhVwzomNDGLfpzCHO6Mvjmy51ZDFaC4jz+vCW3Kp1ZOqw FGjA== X-Gm-Message-State: AOAM530rmuMonVSIgrNETdCDojEf5ZH+cIAymvn7HaaRIC0wJbQ82e6c UKyYWFB8rxENDQ7ixZovXdFBMPPSW3IgvA== X-Google-Smtp-Source: ABdhPJyyKf5MZtzV/RLjmmfqkXeyEU9oJO0u3J5R7PGr5uYS5/HDPSvBHntPzokzzMLVSuuP6bC+sQ== X-Received: by 2002:a17:902:788e:b029:d6:9a57:ccab with SMTP id q14-20020a170902788eb02900d69a57ccabmr18678566pll.41.1606741872015; Mon, 30 Nov 2020 05:11:12 -0800 (PST) Received: from shiro.work (p1268123-ipngn200803sizuokaden.shizuoka.ocn.ne.jp. [118.13.124.123]) by smtp.googlemail.com with ESMTPSA id a4sm41757578pjq.0.2020.11.30.05.11.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2020 05:11:11 -0800 (PST) From: Daniel Palmer To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, arnd@arndb.de, robh@kernel.org, w@1wt.eu, daniel@0x0f.com Subject: [PATCH 6/9] ARM: mstar: Add chip level dtsi for SSD202D Date: Mon, 30 Nov 2020 22:10:44 +0900 Message-Id: <20201130131047.2648960-7-daniel@0x0f.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201130131047.2648960-1-daniel@0x0f.com> References: <20201130131047.2648960-1-daniel@0x0f.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 Mon Nov 30 13:10:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 334827 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.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, 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 83FC3C83013 for ; Mon, 30 Nov 2020 13:12:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 49BFF20708 for ; Mon, 30 Nov 2020 13:12:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="oWiTzhnW" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726658AbgK3NMd (ORCPT ); Mon, 30 Nov 2020 08:12:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726604AbgK3NMc (ORCPT ); Mon, 30 Nov 2020 08:12:32 -0500 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8E91C061A53 for ; Mon, 30 Nov 2020 05:11:15 -0800 (PST) Received: by mail-pj1-x1044.google.com with SMTP id r9so1304940pjl.5 for ; Mon, 30 Nov 2020 05:11:15 -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=oWiTzhnWl/fQzg1T9slRgtaCt2/g+zGGbYypUTCPsAaNuTGD1V9388NUIlN42/3WhV qe3Bl+aMhPqMT74y+tckf+P6MQbKeZYQ4eHTh5rwxfaPZRCkIqeIFgB1NnqjhijjGcqW 9iF+u34DvdJcMECKwlV0xemBcxb+3fT4aSc64= 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=dScJscpT3EmrobO4YAOxlhIhSHZb/YhbJpevb81S9TIZ08BAsp0kGcb+zY9Cs2b90E iMtGk5bi85H1VaiA/4LtMBAlPae69LQvYB6RiKvxAE+hDNZbAQShGFWFcP09xCBDGmWY 5BcUXabw81YWB9OLknPNIO8Stm3RXgJTyNorvfIh8EAJswo81h8nPsY1Qe4hV2UhBrfi vt2zHDkn0QKpIzjng5+zUVFHLNi6MEycDWPziwxzTg2jWBVQ7xwI9RDFU70aq5SmW05C DjCdeo/5RS0v+TYmutvLRAMFwmEV0CZxSnt97Yl2bAAFJkzODxrNOQEnQxPYBwe+//jy SKaQ== X-Gm-Message-State: AOAM530F/JkI5mCQjITr8lilZ4wdPI3y4Kvs5cmk7hUhBXhvCfXFskFb earlMor9EWpNvc/Oob1PX/1a9WCsB3CMtQ== X-Google-Smtp-Source: ABdhPJySImjWhN6xL9PrA3Yr3Eik7V1N2YySDWWv9vPlrD8E6aid9ZwdUUtNQXTeSzZx1li54Hs1uA== X-Received: by 2002:a17:902:ee0b:b029:da:1856:72c2 with SMTP id z11-20020a170902ee0bb02900da185672c2mr18784979plb.0.1606741874508; Mon, 30 Nov 2020 05:11:14 -0800 (PST) Received: from shiro.work (p1268123-ipngn200803sizuokaden.shizuoka.ocn.ne.jp. [118.13.124.123]) by smtp.googlemail.com with ESMTPSA id a4sm41757578pjq.0.2020.11.30.05.11.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2020 05:11:13 -0800 (PST) From: Daniel Palmer To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, arnd@arndb.de, robh@kernel.org, w@1wt.eu, daniel@0x0f.com Subject: [PATCH 7/9] ARM: mstar: Add dts for Honestar ssd201htv2 Date: Mon, 30 Nov 2020 22:10:45 +0900 Message-Id: <20201130131047.2648960-8-daniel@0x0f.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201130131047.2648960-1-daniel@0x0f.com> References: <20201130131047.2648960-1-daniel@0x0f.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 Mon Nov 30 13:10:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 335326 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.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, 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 84B38C64E90 for ; Mon, 30 Nov 2020 13:12:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2A39420708 for ; Mon, 30 Nov 2020 13:12:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="wa8JZ6sU" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726510AbgK3NMT (ORCPT ); Mon, 30 Nov 2020 08:12:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725912AbgK3NMT (ORCPT ); Mon, 30 Nov 2020 08:12:19 -0500 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10D6EC061A55 for ; Mon, 30 Nov 2020 05:11:18 -0800 (PST) Received: by mail-pl1-x642.google.com with SMTP id p6so6458604plr.7 for ; Mon, 30 Nov 2020 05:11:18 -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=yD+i4Z9WFCrSPRU/Cu5AH5Qr/+FQTQAlg3Q/0BU4c3I=; b=wa8JZ6sUoOGymC9NQTHdhS3RFxQgnL4Q31tcPLwetwCO/EVYtiZU9gl8F/MUUjan0s lCEeaR7mN6NtyzTxB6yNgfp5E5/N+3klgIP7o97EKtSlrlBKXW+q7jj+Q/l890wPmFr1 yQTHLNRn0sftR/UVvEnAddUwJgSu7gkz9iJjY= 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=yD+i4Z9WFCrSPRU/Cu5AH5Qr/+FQTQAlg3Q/0BU4c3I=; b=Ewo6IOyfED/YsYLYwJaWsSUZ1DxcpsCraNUe/qXBmU/G3kL7KAqAnwExWEHwOQYPmb NqpHENLNy4l2/3lzTE1Yv6YkxW/pRXPA0006feyKwk01pKn3ZOKYEKZJIHBOV266wzfh QeToV57P9mRltd6oHeKuKs5lgRrmUw0kMnpaRcNy3uqlgbFGP2sASVNgT9WYfZXb1Vqj FgqZKSSLTzdYgBB4n80ijZV4Sycc5p0TfIgwDSmq2lwq8v3P9VR98e5XgEjCF0f8LOgZ NRFlkLNrw+RnQlNRJOfDrkyR2h/MTFxSu5ISaHP4ic6v1XKJiOj3y+sGmDWbLFLlEtaa uI5g== X-Gm-Message-State: AOAM531kmPPZPF6OZEIKfWtEoUmTKvNRZJcFvmCgXaVZc1gyoLaJ9+YH vpgdKSeyHGRa70SrSvtjDSSuAXA6gNvolw== X-Google-Smtp-Source: ABdhPJxrFt/Ipfrzw4pKLeTjqBcuHqmyZX1kXZuagx430E+3Z1gm3vf299AADhwFvbVd37XzTyckWQ== X-Received: by 2002:a17:90a:6a0e:: with SMTP id t14mr25795009pjj.95.1606741877257; Mon, 30 Nov 2020 05:11:17 -0800 (PST) Received: from shiro.work (p1268123-ipngn200803sizuokaden.shizuoka.ocn.ne.jp. [118.13.124.123]) by smtp.googlemail.com with ESMTPSA id a4sm41757578pjq.0.2020.11.30.05.11.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2020 05:11:16 -0800 (PST) From: Daniel Palmer To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, arnd@arndb.de, robh@kernel.org, w@1wt.eu, daniel@0x0f.com Subject: [PATCH 8/9] ARM: mstar: Add smp ctrl registers to infinity2m dtsi Date: Mon, 30 Nov 2020 22:10:46 +0900 Message-Id: <20201130131047.2648960-9-daniel@0x0f.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201130131047.2648960-1-daniel@0x0f.com> References: <20201130131047.2648960-1-daniel@0x0f.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/mstar-infinity2m.dtsi b/arch/arm/boot/dts/mstar-infinity2m.dtsi index 02adb9fe9d3c..85e178368ba4 100644 --- a/arch/arm/boot/dts/mstar-infinity2m.dtsi +++ b/arch/arm/boot/dts/mstar-infinity2m.dtsi @@ -13,3 +13,11 @@ cpu1: cpu@1 { reg = <0x1>; }; }; + +&riu { + smpctrl@204000 { + compatible = "mstar,smpctrl"; + reg = <0x204000 0x200>; + status = "okay"; + }; +}; From patchwork Mon Nov 30 13:10:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 334826 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.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, 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 291F2C83017 for ; Mon, 30 Nov 2020 13:12:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BF84520708 for ; Mon, 30 Nov 2020 13:12:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="NOERfF7e" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726516AbgK3NM0 (ORCPT ); Mon, 30 Nov 2020 08:12:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726521AbgK3NMZ (ORCPT ); Mon, 30 Nov 2020 08:12:25 -0500 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D486EC061A56 for ; Mon, 30 Nov 2020 05:11:20 -0800 (PST) Received: by mail-pj1-x1043.google.com with SMTP id b12so1339263pjl.0 for ; Mon, 30 Nov 2020 05:11:20 -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=F4b6Mz+meeIOWiwdpvVizNGtENxtsbORSHHjjSCrlas=; b=NOERfF7egowMV6omqbGCYcnTmO++yhypJfIN0zzFCBLOwPjW5dSmvG0jSgPxeAESWL 9acj1SCmIXtpuCB2Z1uvcFa6v6k8VO8nec0r6OsyQX4L1rUrsewKlJ9uuqivdPfvvo5v MCSexCFH5DnPtbgd0TfpUvYMix7Q0BxgQoAjg= 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=F4b6Mz+meeIOWiwdpvVizNGtENxtsbORSHHjjSCrlas=; b=X7XdmPho2lmrvXowMhPwr8EurRyvarhoEOSwyq0sCM9lV5RVXdXQsRzTmepvg36afC LhvFiDm5cz0o6TyhIxSjSILo1JP6qATPgfzou8HDxUMYkRiSinpjHVkXKdWpBgOep+Ct /AB05/e9L+P3AOLgm5o+TyzbXm/sLoI+xTnEht4JvIHWyx+WpQym71ySP+5Q6CS0FEAy IK3mSxU3YgfzMOhuS8rAnBmUDOCtuKvkGQdVaNtWsh0wuh9IWSr4Km/qZ1ZBQuRxARKd Hf/G+/8K4bayvR0lClA+D1+O/N5NrqvKJkgfT8GQIBgjTcH3Pbfl0Y2vnht9ufUTgAOq 7kUQ== X-Gm-Message-State: AOAM533eO1DZpqH/2vivDXUdHsqHqAxUMqOkB8nPqx3d6u+WSVK1JkH+ xKtL78qgBZxSxzKIEwueD3I2P1fRYUHrMw== X-Google-Smtp-Source: ABdhPJytNtiSFjUBa/8hP6fMqYnvCTlKseq0Z9MVhm7I5h2NQTR5XgRtzFuTCSl6si+IwlkEQh6IOw== X-Received: by 2002:a17:90a:940c:: with SMTP id r12mr25793348pjo.201.1606741879985; Mon, 30 Nov 2020 05:11:19 -0800 (PST) Received: from shiro.work (p1268123-ipngn200803sizuokaden.shizuoka.ocn.ne.jp. [118.13.124.123]) by smtp.googlemail.com with ESMTPSA id a4sm41757578pjq.0.2020.11.30.05.11.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2020 05:11:19 -0800 (PST) From: Daniel Palmer To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, arnd@arndb.de, robh@kernel.org, w@1wt.eu, daniel@0x0f.com Subject: [PATCH 9/9] ARM: mstar: SMP support Date: Mon, 30 Nov 2020 22:10:47 +0900 Message-Id: <20201130131047.2648960-10-daniel@0x0f.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201130131047.2648960-1-daniel@0x0f.com> References: <20201130131047.2648960-1-daniel@0x0f.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 | 50 +++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/arch/arm/mach-mstar/mstarv7.c b/arch/arm/mach-mstar/mstarv7.c index 1aa748fa006e..23fe47a8f1a5 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 = 0; + + /* + * 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; +} + +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,7 @@ 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, +#ifdef CONFIG_SMP + .smp = smp_ops(mstarv7_smp_ops), +#endif MACHINE_END