Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4656656rwb; Mon, 31 Jul 2023 10:04:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlFftOHO+S7LOKzQEWT8pgLIok334rFPSRv2AkzBgkzpW1Eyzl31XikMOEM6tghBkdk5JjKy X-Received: by 2002:a17:903:228f:b0:1b8:78e:7c1 with SMTP id b15-20020a170903228f00b001b8078e07c1mr11867508plh.51.1690823079337; Mon, 31 Jul 2023 10:04:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690823079; cv=none; d=google.com; s=arc-20160816; b=M1CCWbmiAZSoTZqGZ0JoWKvbsbHykycw6VDnXhqdXB2FSzeAc+4W03fX7rafkHIhZH KmIu/WjNezUbVX7PD72Rhm/w+B5HvhO4vAg9toKuk/9DP0jEW341RWITzQapR13JMl6N kJk5RNLGk4BhqIObPqfvCcLc5d4zBM2gZgkiLZNd2lW6W3qpNH4EdIRze6cyRnpwZutg cqKowQ7Vrot959pvdqmzhpS539X3e745biLHFAWuM3nfO35cE8R6fJMN1wHTJtaEga5b LvMxhmCrPHrABBUtTMe4w6YtCx085NId5IzXK/S32RGVxikbOsxskkUEDI0/7SoUAGjk 4QGg== 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=LsanXy8k3EumbMnHWgiWkn8DzzFx1eum1pbJ+kZJ9sk=; fh=DDVcK4AsJhK3cEM1XsjI1EzflT/7fZlkT3Kkc8XfV10=; b=o361H0d4yWovC+vVhZYP3bygC0sTwOuq4B7oWOoyLuZXBSihvonUak767Eg7ApDoGB gf0EW6yDWb+/LBifts5uPdtmEgicou0iB/sLLmwGSQXleH8O3YSMd36e3Cgi3DuIZ/WY WR64lYJLy6NWR8h42pE/2AIqYkdpXfifc/WVbg0Pfm9ctLUGrlbt7+cMsAnSrIj52x+F cYuQJuSubL4GVsaXp3wv+IXzLYxC9fAUbI5AWZYq2BgrPkElNJVlODjczESypksZ4OtV 86fHamul1dx38esNYUTC9b9jsA93/qgyRyu720cPPgpCqjZvRxlPz8fPzxpcZDEZXL1I Mb9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZR2yqUta; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ky6-20020a170902f98600b001b9e970e961si7492457plb.277.2023.07.31.10.04.25; Mon, 31 Jul 2023 10:04:39 -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=pass header.i=@linaro.org header.s=google header.b=ZR2yqUta; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232718AbjGaQj1 (ORCPT + 99 others); Mon, 31 Jul 2023 12:39:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233472AbjGaQjI (ORCPT ); Mon, 31 Jul 2023 12:39:08 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A1642728 for ; Mon, 31 Jul 2023 09:38:38 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2b9cdba1228so53588271fa.2 for ; Mon, 31 Jul 2023 09:38:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690821517; x=1691426317; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=LsanXy8k3EumbMnHWgiWkn8DzzFx1eum1pbJ+kZJ9sk=; b=ZR2yqUtaKyrfAHirBD+QMQu25SdfFhbHrp7Bo6qir3Htx8jZ5B2s9Qvb193N6dyjgo HjzODJ0n/kgZvvcZZc+VYonmYtOtp9VCtKoWb6PYk93q08t0/r/KXecl1PV1bQ0Vm0Kr Z8yeaAj3u/dmY0MeNe8UWaoPtbSaI+1s6U+GpuJrXqGZwbWoBGitD5cndQKIDejyDleQ d1ucCdpzVxWdTPc+1S2PvLDwxkRQPkp5ljKUX8In331Al9D3iSoXN7+FbhNgvOPPitTn yATQ40SZlHP7Y673OtEKHKgaW82hMEPTi8UaeaBXCas+aj5FrEAf2sPDcD2m6oDEJce0 NlQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690821517; x=1691426317; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LsanXy8k3EumbMnHWgiWkn8DzzFx1eum1pbJ+kZJ9sk=; b=fTckQt877Dru2g9VLUhgBoRc2xy3jxfFli5eAFwwk5s0NRfeIwOg6cHv9QxBzHBiQp NStwMyVkYiNp6RZVs03Y6NFex8BYd3Dn2T3xyyP8QUooJV+sP4emNIPz/L0N9HJ2SpVF 9D4b2SiZOTKzq2VO5hpk5GsogBU/2MKHFJ+7G+0C8FzHH7mAIwgh3zSxmAQgcBVTA5i1 1Fqd/wiwiGnoktSwMSIAUYpGAJjLak1+fK6Gs2/J6VS5hjx0HlsWlIpByfwxJwvm6JBb +tMMx5n0tZjp/WWkZo7xEorDIW3lWcTsJ6oTcZ45Z87OaRWVD5r0C4+XkocDYdY8q6/f InHA== X-Gm-Message-State: ABy/qLbBy6hbIqossPn6xFWkEuMg3UKTgWclyBx2rWTD3hVcqsjT15aR EPmgZHaKkEI13+L7oqrY/UG7bQ== X-Received: by 2002:a2e:8ec3:0:b0:2b9:ec57:c330 with SMTP id e3-20020a2e8ec3000000b002b9ec57c330mr406548ljl.7.1690821516817; Mon, 31 Jul 2023 09:38:36 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.183]) by smtp.gmail.com with ESMTPSA id n22-20020a170906841600b009934707378fsm6350775ejx.87.2023.07.31.09.38.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jul 2023 09:38:36 -0700 (PDT) From: Krzysztof Kozlowski To: Peter Rosin , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Doug Anderson , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Conor Dooley Subject: [PATCH v3 1/2] dt-bindings: i2c: nxp,pca9541: convert to DT schema Date: Mon, 31 Jul 2023 18:38:32 +0200 Message-Id: <20230731163833.319258-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Convert the bindings for NXP PCA9541 I2C bus master selector to DT schema. Reviewed-by: Conor Dooley Acked-by: Peter Rosin Acked-by: Andi Shyti Signed-off-by: Krzysztof Kozlowski --- Changes in v3: 1. Add acks. Changes in v2: 1. New patch (Doug). --- .../devicetree/bindings/i2c/nxp,pca9541.txt | 29 ---------- .../devicetree/bindings/i2c/nxp,pca9541.yaml | 56 +++++++++++++++++++ 2 files changed, 56 insertions(+), 29 deletions(-) delete mode 100644 Documentation/devicetree/bindings/i2c/nxp,pca9541.txt create mode 100644 Documentation/devicetree/bindings/i2c/nxp,pca9541.yaml diff --git a/Documentation/devicetree/bindings/i2c/nxp,pca9541.txt b/Documentation/devicetree/bindings/i2c/nxp,pca9541.txt deleted file mode 100644 index 42bfc09c8918..000000000000 --- a/Documentation/devicetree/bindings/i2c/nxp,pca9541.txt +++ /dev/null @@ -1,29 +0,0 @@ -* NXP PCA9541 I2C bus master selector - -Required Properties: - - - compatible: Must be "nxp,pca9541" - - - reg: The I2C address of the device. - - The following required properties are defined externally: - - - I2C arbitration bus node. See i2c-arb.txt in this directory. - - -Example: - - i2c-arbitrator@74 { - compatible = "nxp,pca9541"; - reg = <0x74>; - - i2c-arb { - #address-cells = <1>; - #size-cells = <0>; - - eeprom@54 { - compatible = "atmel,24c08"; - reg = <0x54>; - }; - }; - }; diff --git a/Documentation/devicetree/bindings/i2c/nxp,pca9541.yaml b/Documentation/devicetree/bindings/i2c/nxp,pca9541.yaml new file mode 100644 index 000000000000..b65c25c1a435 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/nxp,pca9541.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/nxp,pca9541.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP PCA9541 I2C bus master selector + +maintainers: + - Peter Rosin + +properties: + compatible: + const: nxp,pca9541 + + reg: + maxItems: 1 + + i2c-arb: + type: object + $ref: /schemas/i2c/i2c-controller.yaml + unevaluatedProperties: false + description: + I2C arbitration bus node. + +required: + - compatible + - reg + - i2c-arb + +additionalProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + i2c-arbitrator@74 { + compatible = "nxp,pca9541"; + reg = <0x74>; + + i2c-arb { + #address-cells = <1>; + #size-cells = <0>; + + eeprom@54 { + compatible = "atmel,24c08"; + reg = <0x54>; + }; + }; + }; + }; -- 2.34.1