From patchwork Wed Nov 25 06:37:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AceLan Kao X-Patchwork-Id: 1405920 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=HRYBIp0d; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Cgrmt3p00z9sVH; Wed, 25 Nov 2020 17:38:06 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1khoRF-0005uJ-Kk; Wed, 25 Nov 2020 06:38:01 +0000 Received: from mail-pg1-f179.google.com ([209.85.215.179]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1khoR9-0005sQ-Gj for kernel-team@lists.ubuntu.com; Wed, 25 Nov 2020 06:37:55 +0000 Received: by mail-pg1-f179.google.com with SMTP id t3so1488084pgi.11 for ; Tue, 24 Nov 2020 22:37:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4EjDmj6/Fao57oRPABWVgNNT46tA1XNuf5kZaCzgYiw=; b=HRYBIp0depnMsC7YTlLNlJcWAjgZt+rAOY0Vw9nYSStHXfdO86v3IPHcw6CCMwUaKc NA/gIVmrNnL00r2fpYLV0TNskT6jMGTacu/VM8VHZJYZ3OGzZkAFWHtOBKNl4OiepeSw XLOtGy6c4LMGvFzhKiA/p5rsfVgsQWq5smtWvuAHGuwyKmb3NuxTftQm8K6j+nFDPvlM 94PDljvLn5k+92e6xJWo1qEafJ3Vmw4cu5TPohf1BqvvHg4r+7f/u8ZyGCO13CxcU/8u XkFXQYBRY4LLXS+nLJ8HDPE98mxPF1pyuBSP2f0rmnSzuvxpBUTijV3SrmD4fQZ6bI2o Ggog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=4EjDmj6/Fao57oRPABWVgNNT46tA1XNuf5kZaCzgYiw=; b=sgt5ShDij3sd6lspxWUFmjU2cA7mI0kgGDggA/FNHotZoGwukmSwfmJKn1ObiyDX3L ScXTwGOdjTIrhBbYFmVOS7MqD0NznkeSwmAJLRcSlbgeGgekigm5xWhPXTcAwXeu1qh0 YoBUdVU0nkY/r3DTs9rlFey3Z3qVsvRDrA8h3rHF99cJf/SA+0eu1VGvJkj/zKqj5HlS 6moc98CQ/0hPkGE/iL5JwFZxxXJzOkHstffKEsn/S9dE9mPedAm4J27QW5XmW1hgzQP2 d2N+5OlBHwW57RkTaikfwp9YTQ+a6pwpHmPjjZMseaTb39pU+ZEdrifZO8JpVPKfrQwB LBLg== X-Gm-Message-State: AOAM530Q9W/6kWWcNxAiCbR2mRWUXC6KFavepuoBx04XMzOyPKiVF54Y sQTTtRAryMFCBuoiInpejoYkC7QYewOvlQ== X-Google-Smtp-Source: ABdhPJzKZSQuJ3RHzVUkwbruxnpzZp0vivZZ/U0gIKVRjhAVaDIkW/8J7tw+hKSS10/sCDIJaO/mZw== X-Received: by 2002:a17:90a:5889:: with SMTP id j9mr2259559pji.223.1606286273642; Tue, 24 Nov 2020 22:37:53 -0800 (PST) Received: from localhost (61-220-137-37.HINET-IP.hinet.net. [61.220.137.37]) by smtp.gmail.com with ESMTPSA id r11sm1347470pjd.52.2020.11.24.22.37.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2020 22:37:53 -0800 (PST) From: AceLan Kao To: kernel-team@lists.ubuntu.com, "Shihlun . Lin" , "Campion . Kang" Subject: [PATCH v2 3/7][SRU][F] UBUNTU: SAUCE: dt-bindings: mfd: ahc1ec0.yaml: Add Advantech embedded controller - AHC1EC0 Date: Wed, 25 Nov 2020 14:37:41 +0800 Message-Id: <20201125063745.29974-4-acelan.kao@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201125063745.29974-1-acelan.kao@canonical.com> References: <20201125063745.29974-1-acelan.kao@canonical.com> MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.215.179; envelope-from=acelan@gmail.com; helo=mail-pg1-f179.google.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Shihlun Lin BugLink: https://bugs.launchpad.net/bugs/1902672 Add DT binding schema for Advantech embedded controller AHC1EC0. Signed-off-by: Shihlun Lin Signed-off-by: AceLan Kao --- .../devicetree/bindings/mfd/ahc1ec0.yaml | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/ahc1ec0.yaml diff --git a/Documentation/devicetree/bindings/mfd/ahc1ec0.yaml b/Documentation/devicetree/bindings/mfd/ahc1ec0.yaml new file mode 100644 index 000000000000..a73d1cf65a4c --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/ahc1ec0.yaml @@ -0,0 +1,70 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/ahc1ec0.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Advantech Embedded Controller (AHC1EC0) + +maintainers: + - Shihlun Lin + - Campion Kang + +description: | + AHC1EC0 is one of the embedded controllers used by Advantech to provide several + functions such as watchdog, hwmon, brightness, etc. Advantech related applications + can control the whole system via these functions. + +properties: + compatible: + const: advantech,ahc1ec0 + + advantech,sub-dev-nb: + description: + The number of sub-devices specified in the platform. + $ref: /schemas/types.yaml#/definitions/uint32 + maxItems: 1 + + advantech,sub-dev: + description: + A list of the sub-devices supported in the platform. Defines for the + appropriate values can found in dt-bindings/mfd/ahc1ec0.h. + $ref: "/schemas/types.yaml#/definitions/uint32-array" + minItems: 1 + maxItems: 6 + + advantech,hwmon-profile: + description: + The number of sub-devices specified in the platform. Defines for the + hwmon profiles can found in dt-bindings/mfd/ahc1ec0. + $ref: /schemas/types.yaml#/definitions/uint32 + maxItems: 1 + +required: + - compatible + - advantech,sub-dev-nb + - advantech,sub-dev + +if: + properties: + advantech,sub-dev: + contains: + const: 0x3 +then: + required: + - advantech,hwmon-profile + +additionalProperties: false + +examples: + - | + #include + ahc1ec0 { + compatible = "advantech,ahc1ec0"; + + advantech,sub-dev-nb = <2>; + advantech,sub-dev = ; + + advantech,hwmon-profile = ; + };