From patchwork Fri Jul 22 18:41:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12926751 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 29794C43334 for ; Fri, 22 Jul 2022 18:42:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Sc2UecavmQEc2hfXvFhD7DeXuVxRndsgvu/mCJfI8Fs=; b=afEVOwNorDozA2 egR/PN+0BPcxHvIqF/v94jcTfLEKX2l1Pxlnb86h8e/jt51lmIHCilvQ8rjp2CGFYDP98AP/uf7Vh IqDOt2qrQIn+zftFgb6whA4qD4z53vD/8H7ZD8BKErswUvz3pPJcp8KnZk2iozKvprvy0V7+CYyBr 1T2f3L+PSCi9SYqnwmIeZCM1y39ZLovRd9qPZcjieDnSSaoew4ww26IqaBvzBfE5/xKhSne+LW2qn zXy6Y8z3LWOhMcLH+1YcTH+vZxIIyTreuPjs0RMMnSBLsFwciuzvYze2oHa/O+/5GfAupKK+wS6As sYlpdQVFqRduegUEtLKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oExat-0090f7-Sr; Fri, 22 Jul 2022 18:41:48 +0000 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oExaq-0090cQ-V4 for linux-arm-kernel@lists.infradead.org; Fri, 22 Jul 2022 18:41:46 +0000 Received: by mail-pj1-x102a.google.com with SMTP id b10so5082507pjq.5 for ; Fri, 22 Jul 2022 11:41:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3F+3beTVyq4ZE5Rzvt206g2hbCA+k/uqI3STZYdYGQI=; b=jyPs+8tPYzDpgdc5JpOmvjAPGXGFwiXc40Rt3zS0WyKaBIBWH4TB9TIOoecsAHDHnj cC6+3Hj5nZY9Sd9VTlJ8BNFegBdY/TSPkN75QgCpruTSGMe1midiOW14olLhmeCud3+J 5gjI/lFI8as3ZfYFKlYH9Wqeo5u4AlNXKJF8b76KvM3AK0E10vOOI3IsIB1H1/NtYRT5 RjFCXlTRZiaMqvFfgaW0C2desHKlW9ksoVQh9/nY5PS3IZREzrmXA96gOri23nG0u4ON piEU8/Ay4evsRvCqKzepKjlVTa9t+FsjVZeCeD2LM75EyPC40CNQNuqyGsP3h0DV4o/n 0DWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3F+3beTVyq4ZE5Rzvt206g2hbCA+k/uqI3STZYdYGQI=; b=wjXur0K0l+Rfm3sFB0mWRaxT0tNsShpdAVKK5wVC9IaLCM6j32KY8l3x2KnFr7Wutv 9clS465I8qJSnrMApXOX7to3WhY2/zojO4/lr7xrSzuYPQrMMfTEXxCKWZ+xV2mA7R/h XyF7KyTIEI33oyNEgy4MSewXy7rCdZ3cv7pKYaUi3Z2h9afLsI5BMs+nZB13oGUI2oRS 0g/hl5e0bYnbCoOoFh+L3irThbp8FwvedMmcQQMCkR0dLMRXgtdMNBJQwjcqyvLn6aMX 5Rc7j7Rp0PEsYkpgm4cS7/2L/GOchitIyeF/Wh/xfmJhnlXsy8xbp/qzEOLgN9bYVfgc mySA== X-Gm-Message-State: AJIora/7v3TuW74IH/b4QFsqFFCZ3uZvPOm7RS/IYtlvyaUJ9XeBQI4G i/+SbAGtEH+H+GcQXuUwDOE= X-Google-Smtp-Source: AGRyM1tvuaHnD39derlvitnaqzi1EctzVvYDSioOlGmiWU76tcCoIre9bBMzrbYihQ0gt+qHuCtewA== X-Received: by 2002:a17:903:185:b0:16c:3af7:dbc8 with SMTP id z5-20020a170903018500b0016c3af7dbc8mr1124664plg.147.1658515301954; Fri, 22 Jul 2022 11:41:41 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id y12-20020a17090322cc00b0016c9e5f291bsm675976plg.111.2022.07.22.11.41.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jul 2022 11:41:41 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: Florian Fainelli , Rob Herring , Krzysztof Kozlowski , Broadcom internal kernel review list , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM BCM7XXX ARM ARCHITECTURE) Subject: [PATCH 0/3] Add Broadcom STB memory controller driver Date: Fri, 22 Jul 2022 11:41:35 -0700 Message-Id: <20220722184138.2666241-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220722_114145_020099_08087238 X-CRM114-Status: GOOD ( 12.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Krzysztof, This small patch series adds basic support for controlling self-refresh power down on Broadcom STB memory controllers. We might be able to contribute more features to the memory controller driver in the future like accurate reporting of the memory type, timings, and possibly some performance counters. Thans! Florian Fainelli (3): dt-bindings: memory-controller: Document Broadcom STB MEMC dt-bindings: arm: bcm: Refer to the YAML binding for MEMC memory: Add Broadcom STB memory controller driver .../bindings/arm/bcm/brcm,brcmstb.txt | 11 +- .../memory-controllers/brcm,memc.yaml | 49 +++ drivers/memory/Kconfig | 9 + drivers/memory/Makefile | 1 + drivers/memory/brcmstb_memc.c | 304 ++++++++++++++++++ 5 files changed, 365 insertions(+), 9 deletions(-) create mode 100644 Documentation/devicetree/bindings/memory-controllers/brcm,memc.yaml create mode 100644 drivers/memory/brcmstb_memc.c