Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1756787imw; Tue, 5 Jul 2022 15:04:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uJEfGFPVGHKi0l7D7X38wTYjh5w7QBvXStO+WtI2zKawO2DKjZurdr8aIDnnmhCZg4ZAw7 X-Received: by 2002:aa7:cdd3:0:b0:43a:1b7d:dce3 with SMTP id h19-20020aa7cdd3000000b0043a1b7ddce3mr23363019edw.359.1657058663179; Tue, 05 Jul 2022 15:04:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657058663; cv=none; d=google.com; s=arc-20160816; b=jusc3GMR6K60JAow9KiEmww3V8dBAUrCkL20mw8UdXsbdibRPmyOMck39qjSuS0HIp E3Ybfr5un6/uq66NLVABwJw1T+4EJwN7fhQATw1t/cH79GVW9LTeY+LGpXmQaqUq4/6Z F99dQixg5C5ZTQkP8zqqbQ7P2n4gNn1Z1ZsHLjI+ynPsTda8UzO+XLqg/4XW7EtCjvaT AdGvRzsCViaYw6p80FkQOWZkBGsVG5QKIqoncHJDnT+lQxnS/fBEdq8OhOcKhh7x8tQn IMZW1dI0XIjqcxyYivZb3GBwy1kNNuUWGtF/XfrQe8+ZvSdmiFlJmru9BiHWHdzjMspG C/Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2GzPXU6fxlhRLcLCzHAtBw9aqp9IODNCeRsuQO5lcpY=; b=KAGU9VaTORT5ohS6OH3oGSPoRxfuIj64+Ps/PA0Rtf8kfzsLa6rUH4rS6tVf4Z/V6D cVUIokKwMa/coYgmtVttR9D8ZX7PZG+DFwID80A7gnllG0cvmnh5aC/dJJ/EkhtcwgfB tMsTpY9DLHsFWrlt2V4uztONJ1hYFSti7yYMUrIMYmRRCzXcK1e5n55y6GW5lZ2ouFLy tQBGq2Cj4qCwOFgHHQRF1398H6Wgis/J9yxSQs9VQrF4DA6PXSiR7wtHdfy7s8/JAjva MG9cvSyryc264a1uATtQcLc3eWBVYLrCresVMtOt+3qXvGolhn1Tz4gc/gY2AXh60uNx +kVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@conchuod.ie header.s=google header.b=XT7ASFf1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=conchuod.ie Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds17-20020a170907725100b0070f305ae877si17792353ejc.356.2022.07.05.15.03.56; Tue, 05 Jul 2022 15:04:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@conchuod.ie header.s=google header.b=XT7ASFf1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=conchuod.ie Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231743AbiGEVwn (ORCPT + 99 others); Tue, 5 Jul 2022 17:52:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232596AbiGEVwc (ORCPT ); Tue, 5 Jul 2022 17:52:32 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9E2C140ED for ; Tue, 5 Jul 2022 14:52:30 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id t17-20020a1c7711000000b003a0434b0af7so8016735wmi.0 for ; Tue, 05 Jul 2022 14:52:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2GzPXU6fxlhRLcLCzHAtBw9aqp9IODNCeRsuQO5lcpY=; b=XT7ASFf1nIxEfdXiclNYpFSfVq9s4C412d1OLgO/lRLR31n5QoYTHi2w0+p6vqybbX L8rsroWGHmISyxXwTMLY5Pxl0TOG8uaNtgvh3ABkRgQei276FZRvd10cHmCHvrO97nSs X1TOJ070+O3zWigaRb5S9HsAQ7feSkeZGigRifEXpzQYhOCweEjRkKfebf8ovWlSg9Sm MATg8gxg3oOtY6sR8l+nawtwKUugNgrjxosw3dX9AbAQmizt8wGPJ0C0+p2XxxuR4VYQ cB+b97WOaIvDgK7CYap6O6H46outSUnrjdgeLqMg7CbGejFauZTBHZWOALqxV0SFuBD2 cSQg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=2GzPXU6fxlhRLcLCzHAtBw9aqp9IODNCeRsuQO5lcpY=; b=70QFUQ2ADVgiaR2w35PoR6wcp2dbxFjWKQyzC14fbGfkKZI/Iy9TXZ/P67bHGmdvAy yUCHgePXTRSU/YB+SEBZGz6b+fPvqBLqMeUKBrjTh+O1Qx2VlG6soy9hmVAYAEyIqOKF q1SzlFsYgVeh8Gr8ENkKHg/bWkIzCYjOUrtNLRBQZ4cBHOY2iLlstvC/KiqLq9hCVrR9 7sbiFVtT7Wvyw83TWe4LFPLpSIeFVWGHQx12MnLIxLc8m4u3TsNkp9B8JveFICJePC4o 0uSP/SpgZYndDO1SUM4QM9F0gHMXEcTkd9sgUMnVHE11W4+MGGVpGTL5iZcfUl9E6QcE Yo2g== X-Gm-Message-State: AJIora9KvyqifhaWwTqvobwLFwgRmmnb/QMCaWAsm3lofDy6/A1Ck4sF gHXuNv8re7MYAQRvZ4zVV2wCZQ== X-Received: by 2002:a7b:ce0e:0:b0:3a0:4623:86b7 with SMTP id m14-20020a7bce0e000000b003a0462386b7mr39641466wmc.62.1657057949473; Tue, 05 Jul 2022 14:52:29 -0700 (PDT) Received: from henark71.. ([51.37.234.167]) by smtp.gmail.com with ESMTPSA id g34-20020a05600c4ca200b0039c7dbafa7asm18353920wmp.19.2022.07.05.14.52.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 14:52:29 -0700 (PDT) From: Conor Dooley To: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Thierry Reding , Sam Ravnborg , Eugeniy Paltsev , Vinod Koul , Serge Semin , Daniel Lezcano , Palmer Dabbelt , Palmer Dabbelt Cc: Paul Walmsley , Albert Ou , Conor Dooley , Masahiro Yamada , Damien Le Moal , Geert Uytterhoeven , Niklas Cassel , Dillon Min , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v5 04/13] dt-bindings: memory-controllers: add canaan k210 sram controller Date: Tue, 5 Jul 2022 22:52:05 +0100 Message-Id: <20220705215213.1802496-5-mail@conchuod.ie> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220705215213.1802496-1-mail@conchuod.ie> References: <20220705215213.1802496-1-mail@conchuod.ie> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Conor Dooley The k210 U-Boot port has been using the clocks defined in the devicetree to bring up the board's SRAM, but this violates the dt-schema. As such, move the clocks to a dedicated node with the same compatible string & document it. Signed-off-by: Conor Dooley --- .../memory-controllers/canaan,k210-sram.yaml | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/memory-controllers/canaan,k210-sram.yaml diff --git a/Documentation/devicetree/bindings/memory-controllers/canaan,k210-sram.yaml b/Documentation/devicetree/bindings/memory-controllers/canaan,k210-sram.yaml new file mode 100644 index 000000000000..f81fb866e319 --- /dev/null +++ b/Documentation/devicetree/bindings/memory-controllers/canaan,k210-sram.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/canaan,k210-sram.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Canaan K210 SRAM memory controller + +description: + The Canaan K210 SRAM memory controller is responsible for the system's 8 MiB + of SRAM. The controller is initialised by the bootloader, which configures + its clocks, before OS bringup. + +maintainers: + - Conor Dooley + +properties: + compatible: + enum: + - canaan,k210-sram + + clocks: + minItems: 1 + items: + - description: sram0 clock + - description: sram1 clock + - description: aisram clock + + clock-names: + minItems: 1 + items: + - const: sram0 + - const: sram1 + - const: aisram + +required: + - compatible + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + memory-controller { + compatible = "canaan,k210-sram"; + clocks = <&sysclk K210_CLK_SRAM0>, + <&sysclk K210_CLK_SRAM1>, + <&sysclk K210_CLK_AI>; + clock-names = "sram0", "sram1", "aisram"; + }; -- 2.37.0