From patchwork Mon Oct 31 18:24:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13402 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2473336wru; Mon, 31 Oct 2022 11:30:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7rVbCAu8m0WyhwbEuB2OXMA/mD5jLwTuhX3L3/IzUa0nwRcRW9jn4Sl8coQjWQ0iUJ3BWj X-Received: by 2002:a17:907:6e90:b0:7ad:8ba7:6640 with SMTP id sh16-20020a1709076e9000b007ad8ba76640mr14748649ejc.142.1667241035845; Mon, 31 Oct 2022 11:30:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667241035; cv=none; d=google.com; s=arc-20160816; b=p46/qt3u6uh8kB9GOLoXV7pbbPqnWuW/QIVw4X4J3qg0AZu550xF3ycElV0QV/USAj zhjMHBFS9VV9Y48Hj8hozbImvn2VVyJbBt2pa+1E29PKDyJaP/eOnWZdnQFsQzE9V7Ar e5OH5JC2kFEm82eTFX9GTGcUhamy22U5xNLkzEt7VxM/qeCQMZppitEkiJ2VTjWtYGWi 5KLLAs828LZNTJaeQQFi72PflqG9QRb1KNlDulDgA8H5t5odaAlIEcDh9letJzcsm4Os roMvFMX3xeuh/4LqliZAzAdG+h60XdMiOZY5am4+ZwaQtIi4hWeICx9OCXGeEXerXh64 zqXg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=vi028tOlEG/KxQmmvuUXr6JDQ53+CVe5aIxXEBvW2aw=; b=jXRTIRP8ZpkWk04PDzovFfGZDvMYQpdsMgtxWCP+NSyU+pCI1KqRwvHOB/ZDEpc9PT qYsoe+d/Bx232KVzSQeLAG6vqvRE1A6q8kKpDA2EY7rCsQcg7+1d5kkjN2YPISlA8c0N Oo59kZsnz656xOTpNI7tqphoQARh98WIYzeDdf6nxCY85K0vuGHkNgT9EnB/C4yrM5XB RytvmJiaRK7qmPT7lK/rHITuKgsowSaYqe5w8AHnu9TTM2dHjkip91hNg9Ub6LDzeugz XwSEsORRD4tRvhSl9UPPvnEEjjGFAm1ImWZuks2pbY0tyfq9kBxkzmVmXYuyxtRJSibD weaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=h7dN2Nmm; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u17-20020a509511000000b0045d8bff7afesi7366163eda.376.2022.10.31.11.30.11; Mon, 31 Oct 2022 11:30:35 -0700 (PDT) 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; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=h7dN2Nmm; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229785AbiJaSZI (ORCPT + 99 others); Mon, 31 Oct 2022 14:25:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbiJaSZH (ORCPT ); Mon, 31 Oct 2022 14:25:07 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E54F4D80; Mon, 31 Oct 2022 11:25:05 -0700 (PDT) Received: from g550jk.arnhem.chello.nl (31-151-115-246.dynamic.upc.nl [31.151.115.246]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 2BA7CD03F1; Mon, 31 Oct 2022 18:25:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1667240704; bh=7iBgek2JhQmhnFtXHoGRmTx0yH0Ccd14S9GW/5t6pqA=; h=From:To:Cc:Subject:Date; b=h7dN2NmmyBT7y2iKa4vKczh+OqKqzBYxukUc4OiQJiWi4rjECNgRpuJAcKgEkLWOD Se47FJJP5crCFoSPZf54v0Xt/EsF+ksYGXU2FzZ7TCsLBA78jELvmuFOW18ZIkyCIj JeWzQx8jByRKd5zACLqDNcXxkeyzRQSri+kyYNsY= From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, afd@ti.com, Luca Weiss , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: iio/adc: qcom,spmi-iadc: use double compatibles Date: Mon, 31 Oct 2022 19:24:54 +0100 Message-Id: <20221031182456.952648-1-luca@z3ntu.xyz> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, FROM_SUSPICIOUS_NTLD_FP,PDS_OTHER_BAD_TLD,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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?1748228936437627723?= X-GMAIL-MSGID: =?utf-8?q?1748228936437627723?= As in other bindings, let's use specific compatibles together with the fallback compatible. Adjust the bindings for it. Signed-off-by: Luca Weiss Acked-by: Rob Herring Reviewed-by: Krzysztof Kozlowski Acked-by: Jonathan Cameron --- Changes in v2: * New patch .../devicetree/bindings/iio/adc/qcom,spmi-iadc.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-iadc.yaml b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-iadc.yaml index 2a94db688830..fa855baa368c 100644 --- a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-iadc.yaml +++ b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-iadc.yaml @@ -18,7 +18,10 @@ description: | properties: compatible: - const: qcom,spmi-iadc + items: + - enum: + - qcom,pm8941-iadc + - const: qcom,spmi-iadc reg: description: IADC base address and length in the SPMI PMIC register map @@ -50,7 +53,7 @@ examples: #address-cells = <1>; #size-cells = <0>; pmic_iadc: adc@3600 { - compatible = "qcom,spmi-iadc"; + compatible = "qcom,pm8941-iadc", "qcom,spmi-iadc"; reg = <0x3600>; interrupts = <0x0 0x36 0x0 IRQ_TYPE_EDGE_RISING>; qcom,external-resistor-micro-ohms = <10000>;