From patchwork Fri Apr 7 09:13:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13204638 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 9E388C6FD1D for ; Fri, 7 Apr 2023 10:18:35 +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:Cc:To:MIME-Version:Message-Id:Date: Subject: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=CAAz2UBeKR704suXSOVOKd3PhbUrFPc3O5PK9jfmNGk=; b=SrSmHa+m4ZHSu9 V8EFKczl14U8kWzjeL62c2cOJPYAB6gYgynZhxR6Xdnxe3a8joGPZIryvYCp7WEbQLMxb5JsEP1QD tl97T6l/OcOouC1VUyUb+an9Ql+HBbARL4ouDpNmFA18J9js8QuhicRxq52qib9Ftzkxay+vWaBj6 Xc/Tb9tL9siqs8x1K4OeclhO1/SS09o64K5EEvyBjRE3NwXsxFIMxfnNMCNbL1kcIk2SUXu/sXndH tSBN2uVjptRXJF0aIO5NPxPzE4tfg/jhXP0X6At2xi+pTPJ4Xlfvs4B+2PcY4KajTe5crrLWos6qZ fUUrtK0XqLOamcOTe7Og==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pkjAK-009m4w-2R; Fri, 07 Apr 2023 10:17:56 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pkiAZ-009cuc-1j for linux-arm-kernel@lists.infradead.org; Fri, 07 Apr 2023 09:14:08 +0000 Received: by mail-wm1-x336.google.com with SMTP id n19so23750246wms.0 for ; Fri, 07 Apr 2023 02:14:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1680858843; x=1683450843; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=/iRPnKOXmlOdilFnoShh5yI6AjtEilCaiDGDFmPOYkQ=; b=ogxAc3Mumf11FOLzjNLFLfFgMp+ab4L7z16PKrZblcnB1bdXshZsOK131l7SG5N/om olvuifIVwhP+I1aTafFtDXnzvWvvA0KTB5MW6KvfAuPzjKW9e7vchST+3zsHNc2UzlB+ N6RTjD7HlfwUIn80UPhAuhYiyTsaZ2zlQS5mjPItPzfLDl5ELhSzrKVP1Kqwf2dHeAi3 GPdm5cJg2BDEZGudj3MiXkWfj9xIiIXFZtwwD/evDAINM7uhY+X5h0jt+/zAREpnC07R l1/mpoL8+occ1dfb0og0K8TM6Ze3S7+fTAyBXCb7lGgmi0Q4tvTAKoMd1n37tnEkhXWy sTfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680858843; x=1683450843; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/iRPnKOXmlOdilFnoShh5yI6AjtEilCaiDGDFmPOYkQ=; b=ahrNantr5OEMRegDOdZKaLHkDLmboqOudN3Z96zg/n1rWxGiBOQFalhNIH56d+Xp7s EtGeHIZZjVCdYYcGUdLzTV2p2s+ibAlGKjd/oYYchVHGxfyJuUGoo7OQjiLpZB5WBm96 zcZFqtjkjMLe+i0iOirfMSRpNvipSfuqPyl2ZcFvIvYJZj6HJzkP09wcGoJNIOT+9AmB do/8na4Y9Sp3z+TPUAXkcuEW85fnzzZiiFkKfMiUCoAhlMzChRKFET2dOdvkpRinHVGl 1iJhVd+w/FSRjQjyvzkWlKWMsUhf+ax1eamnHW3rRFkfdBFxDMj9fiRPWh42/EsolHRx zSCA== X-Gm-Message-State: AAQBX9dPHncdEZ+9PlUhUFbG+DIj0BJEXc/JRbRvGOueTcP228S0x+6i m4B2GhOj/d+lkisvSzb6pxsPGg== X-Google-Smtp-Source: AKy350Za/6RWX2oz9CbTQclsW6Ctfk4fA1+j0eL6S8zuOsAqYIbYNirmY3B8SXWCVkE0U54tlTqMlQ== X-Received: by 2002:a1c:cc05:0:b0:3f0:57be:666f with SMTP id h5-20020a1ccc05000000b003f057be666fmr1107869wmb.7.1680858843049; Fri, 07 Apr 2023 02:14:03 -0700 (PDT) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id k22-20020a7bc416000000b003f04f0c5a6fsm4026429wmi.26.2023.04.07.02.14.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 02:14:02 -0700 (PDT) From: Alexandre Mergnat Subject: [PATCH v2 0/3] Add MT8365 SMI driver support Date: Fri, 07 Apr 2023 11:13:50 +0200 Message-Id: <20230407-smi-driver-v2-0-8da6683cdb5c@baylibre.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAM7eL2QC/22OzQ6CMBCEX8X07EopBtCT72E89GeFTaA020I0h He3cPb4TTIz3yoiMmEU99MqGBeKNPkM6nwStte+QyCXWSipKnmVDcSRwDEtyNC0SjXS1E4rFLl gdEQwrL3t98ocCjug9nOAQN4mHsCQd+S7Ik2BbDHOQyJ4o04z5x+fsGOddoE8Fhjf9DnMnq/MP cU08fcQXco9/eu0lFCCrGpXuxbb2616GP0dyDBe7DSK17ZtPxSVflz0AAAA To: Yong Wu , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno , Rob Herring Cc: linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Alexandre Mergnat X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1864; i=amergnat@baylibre.com; h=from:subject:message-id; bh=XMCnV2elFtLjP2Sn9yuzQN2YDzzqESOsgUOGg8Iu4SA=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkL97ZcnlQw6HSmOX693KdDwg2alXCJ7TraSlf6K/2 n31XqJ6JAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZC/e2QAKCRArRkmdfjHURQiYEA ClYLk2Ia6AyQSoVshjwgtKw5Rd4wqlwAaZ1Kv/UHdszErCHNyRfSzeahujY6zPDaOhFtara4IHCm36 /U/ImHXqgcLCAPpxym32iQZqXxw8+hsmtFK+Fd/BNB8WunCJfFrKCd0G21UGQ69ljerMqQ6MeekmmJ c0bGxcedFVatQmKil+NEZSw31IRE1ZUWSBPwUsIB3ZbMkIymG7K6KGkYpbEkaGz/Dkg4ZbKin2xU8d VzEjzEhn80peQP4pSReFChDTpQoQUiaYlYQIgK+2/YTcEEAzvdUXOvCAxFQOep9YMAn7eqBdYCv2RG 21J2ktHK6lsaK/puctOisPEu8I0Wol+2tWQrTNN4V2CJ+aU5FWl6wFqeNxIr3nof3PlQVyeictKOEv QfgD4G2PhMCHIIsgqWazIACGmjQUn1BPT72CG7wfb9K1WXvr/R3+S/jthvTGq4D4rvHldb3P4eOAXj aOQxgDsHoHE8zOzqG/pysyNCFa4xt6R6eyUlSrIvCmgn70pb1cSWI9/Ws2Bc9f8h1ovVXThn45BfuP jgTqaQNHtTHl7lYtQtGRA8RP18Da4lrBRg7Yfql0ivu4a9BbgFZR07yNs55tMjH7CN23DkvLRLvDLL CmTrPCFCs0xss0ojm6DwrMMps+O2xQxpOpcAMjuPknoTWP1+hD7uVLtiyWlg== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230407_021407_575465_DE786641 X-CRM114-Status: GOOD ( 10.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This serie add MT8365 SMI common driver support, to be bisectable and avoid issue with the DTS change. This driver change and the related change in the DTS should be applied in the right order (driver first). Here the related DTS change: [1] Also add the SMI common and LARB bindings for MT8365 support, I kept the Matthias Brugger reviewed-by from the previous series [3] [4]. Regards, Alexandre [1]: https://lore.kernel.org/all/20230207-iommu-support-v2-7-60d5fa00e4e5@baylibre.com/ [2]: https://lore.kernel.org/all/9ad8c606026586b682df5e0ce0c699e21a1e6fb7.camel@mediatek.com/ [3]: https://lore.kernel.org/all/d1dc242d-c381-3307-b939-7bc35c6ce55b@gmail.com/ [4]: https://lore.kernel.org/all/0e863367-5b24-9559-f782-4d3e5dc06961@gmail.com/ Signed-off-by: Alexandre Mergnat --- Changes in v2: - Add SMI common and LARB bindings for MT8365 support. I kept trailers [3] [4] - Forgot to mention, in the v1, I've addressed the Yong Wu's comment [2] by removing "has_gals=true" from the mtk_smi_common_mt8365 structure. Then I've put the reviewed-by. - Link to v1: https://lore.kernel.org/r/20230407-smi-driver-v1-1-036d6d8e8993@baylibre.com --- Alexandre Mergnat (3): memory: mtk-smi: mt8365: Add SMI Support dt-bindings: memory-controllers: mediatek,smi-common: add mt8365 dt-bindings: memory-controllers: mediatek,smi-larb: add mt8365 .../devicetree/bindings/memory-controllers/mediatek,smi-common.yaml | 2 ++ .../devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml | 4 ++++ drivers/memory/mtk-smi.c | 6 ++++++ 3 files changed, 12 insertions(+) --- base-commit: ea2dcf9394947d5d8e24cb9d52144923f6645632 change-id: 20230407-smi-driver-782270b6da2e Best regards,