Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp265466ybb; Tue, 31 Mar 2020 22:58:29 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsMW2rPrklcg4g/f2dchhTTQFKOddPAVnkuOfT9MxK9SF654jvPY+4vJfqhgjYdsmQWX9iJ X-Received: by 2002:a9d:6184:: with SMTP id g4mr5672626otk.38.1585720708944; Tue, 31 Mar 2020 22:58:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585720708; cv=none; d=google.com; s=arc-20160816; b=q+K/kBVAbU+60rXhdzK38JrlBc3SOaWJxEVPosZoKBRfo5GFlUlYN2KggGnQ22Mp+3 2PtQYakUMr5QzdtYbrQgFPsvxj1s+5KOIUiR06+jFWV6lVSSFdCQ1BYDwjmcf+L5WRnJ 1dYyvqV+041RoHW8tbaapoYsBnObP8cLCSiENFvr4gG3hKJSvhFNmVcF+VqITiOizdSa wKRjf0qSRtb/h4ufRTKjULfLBlWdpmlDCUYOT5hynbEnUZsHyezO+xBSsgeIvCSABqrI PjKsMHHyHQYMgxMmnUTPdIlAmFZvXOEshj5125Ob6kIDIKLGm+xC2SqdRdH0VrTGi7ea qAlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=CSFvkX7wQ3c9tYicTf3/Zvg/fptqpEYTtcmz4lzBSkg=; b=I4RBvfXUzSDd7z3gOg/OspD/sDo/OlJeRmLBoktVkbLPg7onVpaQ2wag7tF5OOw4IS qCKRxd5ShCm/Wh1wKy6E77E4s2AHtlkEUO+raQEgoJYqXjrFe3YY8JRqKQe9gihqjC4H CfvfY4sm5gHZ6FXwcmiznJXKnY587LnkbAkzgLmXrH3Gqtwg+OhqvbYGOEDkZEpTj0qZ N6FgZ4XIL5g52bkM1Sv9BpF5frHHfY1mNEaZQUbYJi1E5LtYpmkCXeEKJCs4gvnf9Atm JW1KqcLOIwyBV+CPmS/hC8zIbnbWcxeG1pgcGLSwVYmzYji5qfJHBqsQ4wHHlbdhvKI5 /rbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="CV3t/LzO"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w81si485048oia.48.2020.03.31.22.58.14; Tue, 31 Mar 2020 22:58:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="CV3t/LzO"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731784AbgDAF5u (ORCPT + 99 others); Wed, 1 Apr 2020 01:57:50 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:42422 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731680AbgDAF5t (ORCPT ); Wed, 1 Apr 2020 01:57:49 -0400 Received: by mail-pf1-f195.google.com with SMTP id 22so11580861pfa.9; Tue, 31 Mar 2020 22:57:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=CSFvkX7wQ3c9tYicTf3/Zvg/fptqpEYTtcmz4lzBSkg=; b=CV3t/LzO6vc9SkPTJw3qn7tmuadRXV2zhUZwmg/FBKEIZUZRaXKqxpKc8tQSliXiyD QAU0JCn/wv77f5muFD3KFKi1K41d7vLoj2d/2OSL6hw8v1CEAy81ZYGNUk5uQjFu+RRQ 9xxh8FSUCeShOQjP1L3yExiY1YFPkp2k+eB8Soj8KNxT28EqBSmhR7XO63Uybkc1GMcG 9jmrbGgY0JUfT9gGxcuTJJg4Fit3oyWiO6u2aoL87HvdZncj9lDdDoKabJi58wgRVqlY jCbmxYgE7pjSSTya5wy0sIZiM72QwBXi6gVAz5GBH0rkWgIMwvMBMYsRBM77jiwb2Xac JXoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=CSFvkX7wQ3c9tYicTf3/Zvg/fptqpEYTtcmz4lzBSkg=; b=pWyO8hzT5EdprIVTdUp4P3GLlxOLBDMnMGUMVtTSWXthubEBZkSudH3d6lPTc6DsKL 1B5X6z8QcV8/C2ghgUmolBwqmES8sAi2G4au8KvjXKmusjiEqkmB1vKT4lZVNsyxoZTK cMEUKcahrC8bCyVndliyI25QwSK7ZOGd1ebE/XLY8FJWlmFa/Dax68FsrKeri1oSMK2G HiZZ0tGfkKfPynXKfSwjSUJOB4zC1dFu4DPWid5Yvk0VhpzJ7B9liIlX1SseiY5s5zH1 t80vGUwJr6VVaUssiy0birUpEQVUVTxtsZckHMRXV5pWqs5jTkUPzadkjj7Hr4XocItB vpmw== X-Gm-Message-State: ANhLgQ3Xle3KbujdcpNbxn/2EhHzGd4m0Nr8v7erQOA0xfMQ7UxdFk3U jRhexMCyyS1Odjmzf0ALc8GC+S1S X-Received: by 2002:a63:ff4e:: with SMTP id s14mr21417274pgk.269.1585720668796; Tue, 31 Mar 2020 22:57:48 -0700 (PDT) Received: from sh03840pcu.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id 5sm715956pfw.98.2020.03.31.22.57.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Mar 2020 22:57:48 -0700 (PDT) From: Baolin Wang To: robh+dt@kernel.org, mark.rutland@arm.com, jassisinghbrar@gmail.com Cc: orsonzhai@gmail.com, zhang.lyra@gmail.com, baolin.wang7@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/2] dt-bindings: mailbox: Add the Spreadtrum mailbox documentation Date: Wed, 1 Apr 2020 13:57:37 +0800 Message-Id: <49020c8b96410f023707777750125cfd680c904d.1585720483.git.baolin.wang7@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Baolin Wang Add the Spreadtrum mailbox documentation. Reviewed-by: Rob Herring Signed-off-by: Baolin Wang Signed-off-by: Baolin Wang --- Changes from v2: - Add reviewed tag from Rob. - Remove redundant 'minItems'. Changes from v1: - Add 'additionalProperties'. - Split description for each entry. --- .../devicetree/bindings/mailbox/sprd-mailbox.yaml | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/sprd-mailbox.yaml diff --git a/Documentation/devicetree/bindings/mailbox/sprd-mailbox.yaml b/Documentation/devicetree/bindings/mailbox/sprd-mailbox.yaml new file mode 100644 index 0000000..0f7451b --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/sprd-mailbox.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/mailbox/sprd-mailbox.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Spreadtrum mailbox controller bindings + +maintainers: + - Orson Zhai + - Baolin Wang + - Chunyan Zhang + +properties: + compatible: + enum: + - sprd,sc9860-mailbox + + reg: + items: + - description: inbox registers' base address + - description: outbox registers' base address + + interrupts: + items: + - description: inbox interrupt + - description: outbox interrupt + + clocks: + maxItems: 1 + + clock-names: + items: + - const: enable + + "#mbox-cells": + const: 1 + +required: + - compatible + - reg + - interrupts + - "#mbox-cells" + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + mailbox: mailbox@400a0000 { + compatible = "sprd,sc9860-mailbox"; + reg = <0 0x400a0000 0 0x8000>, <0 0x400a8000 0 0x8000>; + #mbox-cells = <1>; + clock-names = "enable"; + clocks = <&aon_gate 53>; + interrupts = , ; + }; +... -- 1.9.1