From patchwork Wed Dec 7 05:54:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 30645 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2098wrr; Tue, 6 Dec 2022 21:58:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf4XgDXTVJkFrXH8m8tp/LK1PQCni3hWDrDxm+5jhoMYTXZ8NoQkm95Is9Ab+rtPihQBAscL X-Received: by 2002:a17:902:e886:b0:188:7675:763a with SMTP id w6-20020a170902e88600b001887675763amr75245742plg.133.1670392683240; Tue, 06 Dec 2022 21:58:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670392683; cv=none; d=google.com; s=arc-20160816; b=GBS0Wjsy95tWJBPDWmqYVXvfgZ0APDAYs6E/K13c27mDbWPAGQRm+o+M5vNKYOy8d3 BJJ7ud+O9FwX/8aigge3NZldo9gX5a6/ze0+gvRQ5OUD/pbu/IQYml2+6G90sH5C7bNX OnjRtmwkMzOi/aalKAFQ9HvtT8qIvIf0vVHItgjlwGUCiQCuy6Xm/cq1MOZ/zfoCC+tn IQ8Ml6eAN42RVn8+Z9OfSFqlcb8N6/obGuK73oLnJVVe7po+19aej1CUnbM1CLAqEDNq w84Ld9Wn5jDAgCu6ELymSA1YHxrcr7Z6syjV23wEYly5FRUvWxknKlmsJV6QN4yiBUDR GSAg== 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; bh=I6ozFBYV/oSicc40jRHUd/PLdqt1gUGfKKs7dFLHvpg=; b=keh6gVaHXPLzi9N8EcjlSm9Wr1Zf/wFkemGpGw7FbKUCwpSnVcCszNCzrWx6n6k0GR Ew9rqcS7GiBtXMuT/ZXr+k5jzdF5bwWFyPfUIZM1x7tyU1+LX4KhTu1aA3kB7IFJp4rb Q/9GWgGGruKs6NX9Y8sXf+POtYoY6RRw4gjOqaAveTmJs2kivIGrqQ1niI/jeJ4Ijvpd nm+nXs+KGkRWN5if6/80p20cnVyhBLbuwcYdHI93vZ0p/XKoei95XxcMKY2KDYVJp5Ix ZDv/lS4862/j+zYQ+dH+KvC7gbppIbzqaVMnoYqPw4QxpDzES8D+LZVk4xqwawWlwfSM BcoQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m20-20020a170902c45400b00189b908dd2esi13449729plm.469.2022.12.06.21.57.50; Tue, 06 Dec 2022 21:58:03 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229866AbiLGFzL (ORCPT + 99 others); Wed, 7 Dec 2022 00:55:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229643AbiLGFyh (ORCPT ); Wed, 7 Dec 2022 00:54:37 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E6FBD58BE3; Tue, 6 Dec 2022 21:54:34 -0800 (PST) Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 07 Dec 2022 14:54:32 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id 05BD52059054; Wed, 7 Dec 2022 14:54:32 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 7 Dec 2022 14:54:32 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 7FB9C1DA5; Wed, 7 Dec 2022 14:54:31 +0900 (JST) From: Kunihiko Hayashi To: Rob Herring , Krzysztof Kozlowski Cc: Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH v2 11/16] dt-bindings: soc: socionext: Add UniPhier peripheral block Date: Wed, 7 Dec 2022 14:54:00 +0900 Message-Id: <20221207055405.30940-12-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221207055405.30940-1-hayashi.kunihiko@socionext.com> References: <20221207055405.30940-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751533678058793454?= X-GMAIL-MSGID: =?utf-8?q?1751533678058793454?= Add devicetree binding schema for the peripheral block implemented on Socionext Uniphier SoCs. Peripheral block implemented on Socionext UniPhier SoCs is an integrated component of the peripherals including UART, I2C/FI2C, and SCSSI. Peripheral block has some function logics to control the component. Signed-off-by: Kunihiko Hayashi --- .../socionext,uniphier-perictrl.yaml | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-perictrl.yaml diff --git a/Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-perictrl.yaml b/Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-perictrl.yaml new file mode 100644 index 000000000000..23223a9fe76a --- /dev/null +++ b/Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-perictrl.yaml @@ -0,0 +1,65 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/socionext/socionext,uniphier-perictrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Socionext UniPhier peripheral block controller + +maintainers: + - Kunihiko Hayashi + +description: |+ + Peripheral block implemented on Socionext UniPhier SoCs is an integrated + component of the peripherals including UART, I2C/FI2C, and SCSSI. + Peripheral block controller is a logic to control the component. + +properties: + compatible: + items: + - enum: + - socionext,uniphier-ld4-perictrl + - socionext,uniphier-pro4-perictrl + - socionext,uniphier-pro5-perictrl + - socionext,uniphier-pxs2-perictrl + - socionext,uniphier-sld8-perictrl + - socionext,uniphier-ld11-perictrl + - socionext,uniphier-ld20-perictrl + - socionext,uniphier-pxs3-perictrl + - socionext,uniphier-nx1-perictrl + - const: simple-mfd + - const: syscon + + reg: + maxItems: 1 + +patternProperties: + "^clock-controller(@[0-9a-f]+)?$": + $ref: /schemas/clock/socionext,uniphier-clock.yaml# + + "^reset-controller(@[0-9a-f]+)?$": + $ref: /schemas/reset/socionext,uniphier-reset.yaml# + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + syscon@59820000 { + compatible = "socionext,uniphier-ld20-perictrl", + "simple-mfd", "syscon"; + reg = <0x59820000 0x200>; + + clock-controller { + compatible = "socionext,uniphier-ld20-peri-clock"; + #clock-cells = <1>; + }; + + reset-controller { + compatible = "socionext,uniphier-ld20-peri-reset"; + #reset-cells = <1>; + }; + };