Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp251511pxv; Wed, 30 Jun 2021 20:03:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyi3pvGStKBFWNcFH1wE3aet+qjEdvWsErMB/7zH+yqZ8QRp0dxwesCBEWnAOe5L8ckCD+c X-Received: by 2002:a05:6402:35c3:: with SMTP id z3mr50411272edc.346.1625108588156; Wed, 30 Jun 2021 20:03:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625108588; cv=none; d=google.com; s=arc-20160816; b=vomC7e7OhWoCD2wE/wXgFGIitjsF7NEOLujAwcr0Gz0TAumFC1t4juqmowNUHjMsKo +zOxi5x2Xfx6+ebUUWo5z3PsQJw6R720PI2V1S5cc6sDf05jG4mQQx2pfb/cK8GX3tzV 445oD+xIYZykE2AAWSaCDwfUbQmQgpc8X5e6s/20/iwth/V9RFdNCRJoPUjGTKX6fhcy pwJw8pu2kmqB7jIyeFlDZZom9WnCDtuNz0YowAs6IGVxKIAVhUsjG/V5a7mr5dtvXAMz K3/0g1jhpXHR62zXae6vdorjP9cIoWJdT5yHp9wWhOmSkeuhQNk1VdsgkBi2gWhhIHHh 3qcA== 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=UzQxk+M3rJT84ANm3T1RpEJsjehEqCsP/jKDV7VE3gM=; b=NDY7OH0Yg16a5wLGA5lvleS04jLOg6AHHftLSiRSSIsoYjoYsJ3DFLr6w7HttNJIuk mjB8vyfpYav67UOAlgYxcsabhM2XZt9jqd0LnzNTK8AGhcWgPbBvRx+6EXFKG4grBRSF Z4W/XaabgULWHUY5GgytrZcv3v/F9Mbesi5Xt0xdqJhelnScpk73f/8BmDE42vl6eJxs obSwPk3GYLVDPaV/lHFB3vNG0LfKjDW8mWeneEwg4Ygu+qaghQhSl8P0mBMZtmme5hzK DrxL1Wz6417WxTOPUmBoloxQx4JdYo0MJJsb8ycVTVNvG04/ZyG58ADsCBA3SeS8qx9B aRiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ec38si22064712edb.7.2021.06.30.20.02.45; Wed, 30 Jun 2021 20:03:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238734AbhGADET (ORCPT + 99 others); Wed, 30 Jun 2021 23:04:19 -0400 Received: from mail.loongson.cn ([114.242.206.163]:52792 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S238647AbhGADEP (ORCPT ); Wed, 30 Jun 2021 23:04:15 -0400 Received: from localhost.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Dxj0MRMN1gsBQbAA--.31546S4; Thu, 01 Jul 2021 11:01:39 +0800 (CST) From: Qing Zhang To: Thomas Bogendoerfer , Rob Herring , Jiaxun Yang Cc: devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 3/3] dt-bindings: mips: Add Loongson-2K1000 reset support Date: Thu, 1 Jul 2021 11:01:37 +0800 Message-Id: <20210701030137.10566-3-zhangqing@loongson.cn> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210701030137.10566-1-zhangqing@loongson.cn> References: <20210701030137.10566-1-zhangqing@loongson.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8b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Yx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8V AvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVW8JVWxJwCI42IY6I8E87Iv6xkF7I0E 14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjxU3BTYUUUUU X-CM-SenderInfo: x2kd0wptlqwqxorr0wxvrqhubq/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Switch the DT binding to a YAML schema to enable the DT validation. Signed-off-by: Qing Zhang --- v6-v7: Add yaml file --- .../bindings/mips/loongson/ls2k-reset.yaml | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/mips/loongson/ls2k-reset.yaml diff --git a/Documentation/devicetree/bindings/mips/loongson/ls2k-reset.yaml b/Documentation/devicetree/bindings/mips/loongson/ls2k-reset.yaml new file mode 100644 index 000000000000..6016ea756ccd --- /dev/null +++ b/Documentation/devicetree/bindings/mips/loongson/ls2k-reset.yaml @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/mips/loongson/ls2k-reset.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Loongson 2K1000 PM Controller + +maintainers: + - Qing Zhang + +description: | + This controller can be found in Loongson-2K1000 Soc systems. + +properties: + compatible: + const: loongson,ls2k-pm + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + bus { + #address-cells = <2>; + #size-cells = <2>; + pm: power-controller@1fe07000 { + compatible = "loongson,ls2k-pm"; + reg = <0 0x1fe07000 0 0x422>; + }; + }; +... -- 2.31.0