From patchwork Wed Nov 16 19:39:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brad Larson X-Patchwork-Id: 626753 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9CE75C4332F for ; Wed, 16 Nov 2022 19:39:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233799AbiKPTjt (ORCPT ); Wed, 16 Nov 2022 14:39:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233755AbiKPTjs (ORCPT ); Wed, 16 Nov 2022 14:39:48 -0500 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4287A18B21 for ; Wed, 16 Nov 2022 11:39:47 -0800 (PST) Received: by mail-pf1-x42f.google.com with SMTP id z26so18464366pff.1 for ; Wed, 16 Nov 2022 11:39:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pensando.io; s=google; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=TYG9zd1SkfmMYicbzm8Ol8B8CN6QOjjc2uOytgz/8Xs=; b=UlYgZ/EzU9GVL7Uh/9ksDCzs5d3bvFSgcvFRNGw6NqEaTwt2lWJJ59YkRZl82XuKyE kmds1haWzWCAiHnomQk3Q615/xBXQlkhLLus966tJQSwIkpLKgq/W6YRv753D/sbTvbK RPVhxmpP/JmOh5qUMcjtNJPYmDGA9XcCP2hGdlcT9v1ninKb857HTsfzjjZ1SgMo/fz+ ooTn1yKJSxeq0JmpvwmZIFDL+pXmaQs5Ue3NeYz+JH8PmKRs584ieAVuAos2vmRaKHdM /guVwC9x/I/Masy8tdofgr5WiW7vfOG7rUP5EMbyf7U9oTcYWgPBryHfh0pe6q8EnPGP 97lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TYG9zd1SkfmMYicbzm8Ol8B8CN6QOjjc2uOytgz/8Xs=; b=PtUXKJ+pjJTexRK1u3JQ4QaYiFanMKqehvCMKQsOH8b1qDeniQKuOxkzu90aIL6CVg gJ/x+QzMjpFQYjrFTd7sTQWyREsDUWlVC6R+mPqJJPL0y2SFVJ3NtZNLIoDWfQgGMB+d 4G9AzspsfswLP6/ZxNy97JikYt/1NclhoN/7Z3tFbt3A6Eu6zxQh8Eaotpo0ZOVOj0H+ RxP06oH6+nC/SGpNiQJTvptidXquPZucbQqlqg7x1EG7kzeaO+/+gBUOq8pYjKwfpgJd hD5qcZT4+JSthAf9zIFk3y8liUya5T9r06o4yNR4vdwyzbrwIsQHex+BVoVvqMxQFawt JgiQ== X-Gm-Message-State: ANoB5pmjDfPklgTVL6FEh3HA0HGi6LsVkwj8ZKr0SRQbS4AfMvHmwMPs tZONjFZ/fqwnlY+GS49Ai/IXp3+QgiEQ7GOy X-Google-Smtp-Source: AA0mqf5sMpU2cMuunjlhRBO2+RAWdqDpUt2K0HWiDkWR0BGa3tibxSbZPMntL147nciYqsIMM4WEkg== X-Received: by 2002:a63:62c4:0:b0:476:f43d:ed4f with SMTP id w187-20020a6362c4000000b00476f43ded4fmr2315289pgb.16.1668627586805; Wed, 16 Nov 2022 11:39:46 -0800 (PST) Received: from platform-dev1.pensando.io ([12.226.153.42]) by smtp.gmail.com with ESMTPSA id b129-20020a62cf87000000b0056bad6ff1b8sm11211536pfg.101.2022.11.16.11.39.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 11:39:46 -0800 (PST) From: Brad Larson X-Google-Original-From: Brad Larson To: krzysztof.kozlowski@linaro.org Cc: adrian.hunter@intel.com, alcooperx@gmail.com, andy.shevchenko@gmail.com, arnd@arndb.de, blarson@amd.com, brad@pensando.io, brijeshkumar.singh@amd.com, broonie@kernel.org, catalin.marinas@arm.com, devicetree@vger.kernel.org, fancer.lancer@gmail.com, gerg@linux-m68k.org, gsomlo@gmail.com, krzk@kernel.org, krzysztof.kozlowski+dt@linaro.org, lee.jones@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, p.yadav@ti.com, p.zabel@pengutronix.de, piotrs@cadence.com, rdunlap@infradead.org, robh+dt@kernel.org, samuel@sholland.org, suravee.suthikulpanit@amd.com, thomas.lendacky@amd.com, ulf.hansson@linaro.org, will@kernel.org, yamada.masahiro@socionext.com Subject: [PATCH v8 06/17] dt-bindings: mfd: amd,pensando-elbasr: Add AMD Pensando Elba System Resource chip Date: Wed, 16 Nov 2022 11:39:40 -0800 Message-Id: <20221116193940.67445-1-blarson@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org Add support for the AMD Pensando Elba SoC System Resource chip using the SPI interface. Signed-off-by: Brad Larson --- v8: - Apply review request changes and picked the two unique examples for the 4 chip-selects as one has the reset control support and the other an interrupt. Missed the --in-reply-to in git send-email for v7, included in this update. v7: - Use system-controller for the device with four chip-selects connected over spi. - Delete child by moving reset-controller into the parent. - Updated and used dtschema-2022.11 and yamllint-1.28.0 v6: - Expand description, rename nodes and change compatible usage v5: - Change to AMD Pensando instead of Pensando v4: - Change Maintained to Supported .../bindings/mfd/amd,pensando-elbasr.yaml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/amd,pensando-elbasr.yaml diff --git a/Documentation/devicetree/bindings/mfd/amd,pensando-elbasr.yaml b/Documentation/devicetree/bindings/mfd/amd,pensando-elbasr.yaml new file mode 100644 index 000000000000..622c93402a86 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/amd,pensando-elbasr.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/amd,pensando-elbasr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: AMD Pensando Elba SoC Resource Controller + +description: | + AMD Pensando Elba SoC Resource Controller functions are + accessed with four chip-selects. Reset control is on CS0. + +maintainers: + - Brad Larson + +properties: + compatible: + enum: + - amd,pensando-elbasr + + "#reset-cells": + const: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - spi-max-frequency + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + + spi { + #address-cells = <1>; + #size-cells = <0>; + num-cs = <4>; + + system-controller@0 { + compatible = "amd,pensando-elbasr"; + reg = <0>; + spi-max-frequency = <12000000>; + #reset-cells = <1>; + }; + + system-controller@2 { + compatible = "amd,pensando-elbasr"; + reg = <2>; + spi-max-frequency = <12000000>; + interrupt-parent = <&porta>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + }; + };