From patchwork Tue Sep 20 17:25:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= X-Patchwork-Id: 12982454 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 D7B3EC6FA82 for ; Tue, 20 Sep 2022 17:28:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=rHbrnngZgX9HMOc32S4hW2g51zfVsFIeWN4epeg9j3M=; b=scd/MxDXkIDOTD6vHBrDMdL5DI 42VO+h85+jfhK53882m2lNgjaEyMA4TjFQUnS4fdM87gtxQhz4u+DDX3y9RNIkN8y4WbBPAQJydl8 XMtSmiJg01tCk2NJBrS67oAJ1FgQr100g7he/i4vbw6IQn5cvH9RKVpRJKicsHwGLm7tRyQGDF8l7 eFNllGzLgQfc2Vn0u9TV4ofI/9fgKQLsY9CSaEN/9OnbebOcu6p7cAae7IUq1YShIPEe8px8A067t zjQ8cem7zzQhT28oN8tmgmzeQXju8pYpZTk9MEJOd09GnM71z71bSvUQkCC+znPulSnVWDhv7ZmuI i1PyOZcA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oah2t-005SIH-KH; Tue, 20 Sep 2022 17:28:31 +0000 Received: from sender4-op-o14.zoho.com ([136.143.188.14]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oah1i-005RYI-4R; Tue, 20 Sep 2022 17:27:19 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1663694815; cv=none; d=zohomail.com; s=zohoarc; b=Pf2wu6jokESlhJcfxulHpRbNn+PmkqTU30njmw7d4NG4S/hORPw1Izyw28no2ijXcKEk3WM7ww9BFjvMcQsaSyhiwdopCEQAPokKkL3JMUy0RKgsL637yob3CNq8rLFsKX2P+cm5TAkiVDODidlPmBPOFEfzN2FJMsMVSS3n9ME= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1663694815; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=rHbrnngZgX9HMOc32S4hW2g51zfVsFIeWN4epeg9j3M=; b=Jm9keUzqWrQavhSyj5NKh9h+StRgtKMZe6cR6Gd5ZaRjZv8ZirIe7oVHo4V+XsQ5GCXe5Pgc3sUPUIkS7QAd9+j2x0qs7LFpm1JlJ1J3L17ReG9HPTacunPd8/K45YS26K/1uFrwsmeakydHSFSIg5K6xyjx5UTFAnVvlt5Ley8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1663694815; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding:Reply-To; bh=rHbrnngZgX9HMOc32S4hW2g51zfVsFIeWN4epeg9j3M=; b=AevlrT3bT5nr7Tj36+glqQkwMeA+B4C8zFJKqTqL9fhj4RuKa4U6zp3nkk3INzun Q4dYSeev4fE9Bk+kNpHH5ExddtzsDF0R9qj5lPullN13GW4MCUadfhVgBAjl2JF7UOn G9AtVyt5D/HnZcr22ICFlNmZaAPqbpxvKqytdfQw= Received: from arinc9-Xeront.fusolab.local (37.120.152.236 [37.120.152.236]) by mx.zohomail.com with SMTPS id 1663694815131693.4385194837167; Tue, 20 Sep 2022 10:26:55 -0700 (PDT) From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= To: Krzysztof Kozlowski , Rob Herring , Matthias Brugger , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Thomas Bogendoerfer , Greg Kroah-Hartman , Sean Wang , Landen Chao , DENG Qingfang , Sergio Paracuellos , erkin.bozoglu@xeront.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, =?utf-8?b?QXI=?= =?utf-8?b?xLFuw6cgw5xOQUw=?= Subject: [PATCH v4 net-next 04/10] dt-bindings: memory: mt7621: add syscon as compatible string Date: Tue, 20 Sep 2022 20:25:50 +0300 Message-Id: <20220920172556.16557-5-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220920172556.16557-1-arinc.unal@arinc9.com> References: <20220920172556.16557-1-arinc.unal@arinc9.com> MIME-Version: 1.0 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220920_102718_305137_D468757A X-CRM114-Status: GOOD ( 12.56 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org The syscon string was introduced because the mt7621 clock driver needs to read some registers creating a regmap from the syscon. The bindings were added before the clock driver was properly mainlined and at first the clock driver was using ralink architecture dependent operations rt_memc_* defined in 'arch/mips/include/asm/mach-ralink/ralink_regs.h'. This string is already there on the memory controller node on mt7621.dtsi. Add syscon as a constant string on the compatible property, now that memc became a syscon. Update the example accordingly. Fixes: 5278e4a181ff ("dt-bindings: memory: add binding for Mediatek's MT7621 SDRAM memory controller") Signed-off-by: Arınç ÜNAL Acked-by: Sergio Paracuellos --- .../bindings/memory-controllers/mediatek,mt7621-memc.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/memory-controllers/mediatek,mt7621-memc.yaml b/Documentation/devicetree/bindings/memory-controllers/mediatek,mt7621-memc.yaml index 85e02854f083..6ccdaf99c778 100644 --- a/Documentation/devicetree/bindings/memory-controllers/mediatek,mt7621-memc.yaml +++ b/Documentation/devicetree/bindings/memory-controllers/mediatek,mt7621-memc.yaml @@ -11,7 +11,9 @@ maintainers: properties: compatible: - const: mediatek,mt7621-memc + items: + - const: mediatek,mt7621-memc + - const: syscon reg: maxItems: 1 @@ -25,6 +27,6 @@ additionalProperties: false examples: - | memory-controller@5000 { - compatible = "mediatek,mt7621-memc"; + compatible = "mediatek,mt7621-memc", "syscon"; reg = <0x5000 0x1000>; };