Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp731606ybe; Thu, 5 Sep 2019 05:13:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6nYQ50jNWtdabMlErjUguz2R0cBmllyaRfD78Wipylxsmvq3I9u2iSecX5kUCCu9zOiM/ X-Received: by 2002:a17:902:b7c8:: with SMTP id v8mr3167798plz.59.1567685583262; Thu, 05 Sep 2019 05:13:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567685583; cv=none; d=google.com; s=arc-20160816; b=f+ToLn6KVnKxeN1+1IOJpz4Eyh2w4eimI3Jo1XHZOzrVetJaU8I1jtQpnn37SJdshQ WjmQwoz311y7atfGs9uzmcgxIR0ZsZ/Y9Hpu5Sib2ef2O0tAfocjzUEfV06h4PBNyV5t ftYjeHoVEJs8y2bYQbkDkrL5xtBonRnLArQ7dTnveTgDwe29TRUCtxGJ59eowV2ze52o ysKdtddODgUv1aU/2ZLPAiaAo7oGceW8sYE++DsiAuFVOWN98XOucWEWfOTfv1Le/jAo AFLvZ08LCAwpU7hY8Ksp/wPWcqV4YdllEDVqQAR4IV1KW6SN5nEh94urQaMwtqx698NJ kdFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=d2xLSMlM4WXgcZ+2Mtb0iIjBL9cmVb+dw0Hn3tZ4D/k=; b=kyglrDE6KGM3+XmD7H5sZtLjLWclHPJ3wl210jTgEegEoyv+JnYMAjtyxQx3Msq/KV zpzm7dUyF0s1FZAkPwZ/PhK/1qiGPR1w0iZcOaNMtqI+zZsm5DqSY2aqyW10mDtq+SPR CldXtGY5UwDPKNqOcWsehGRlT8QbfWcDR55pJ2E1wbMASjuy6SFXbZAAJJp9rlfwr+CY mgZt1s1SZwXHBLWhdIbaPq4f02xoQVeOIj51hHAHcpedcprPLeihQ+BnOZKIYzjWLXeX UXAyLvSsrPmmVI0UKVhJD3gV4KhVDaMesYsMoZxxEXSxRZMUZmzCDVOYb1dSA+P6uYTD WjCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=MZ1vo3sW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s2si1816918plr.199.2019.09.05.05.12.47; Thu, 05 Sep 2019 05:13:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=MZ1vo3sW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387769AbfIEKA5 (ORCPT + 99 others); Thu, 5 Sep 2019 06:00:57 -0400 Received: from smtprelay-out1.synopsys.com ([198.182.61.142]:49732 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387592AbfIEKA4 (ORCPT ); Thu, 5 Sep 2019 06:00:56 -0400 Received: from mailhost.synopsys.com (mdc-mailhost1.synopsys.com [10.225.0.209]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id BF8C2C29BA; Thu, 5 Sep 2019 10:00:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1567677655; bh=Hd5e4FWS+UlKygYV+pJ0TjvOiFk6XNsxRtjAc94qTX0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=MZ1vo3sW/wPI1OpakmeAaAyM1I+pluxXz3hhJQbYXfulxarKlaj22QhFcxdnjT4dx /gSE7pjEMvVYjS8tUNFYXo17mky0HGrUfJYDW56DOI6d73xKo0ysQncTiM956GM9HF 8UEjFWzj6oSeYMBfs/YsQ5PP28tTJgBRaHtlObIUoChH6AIbCT+zWwHZYLAiSI16AR mQ+5XhsLo3LBZWS/AoYpfojf07xrmPIt4WEVFL2uXdpIPlrU4w6mhuzMWWXGY2n9KT fTBsC3fyRHkOgkcSn2AsQE5SobNVDe0X/tgJ2zTC0vhb0Y6zqBI8rkhwITi5lmOSg7 vOTJzA4djQVeQ== Received: from de02.synopsys.com (de02.internal.synopsys.com [10.225.17.21]) by mailhost.synopsys.com (Postfix) with ESMTP id 8BF84A0064; Thu, 5 Sep 2019 10:00:49 +0000 (UTC) Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by de02.synopsys.com (Postfix) with ESMTP id 6EB513F3B9; Thu, 5 Sep 2019 12:00:49 +0200 (CEST) From: Vitor Soares To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-i3c@lists.infradead.org Cc: bbrezillon@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, pgaj@cadence.com, Joao.Pinto@synopsys.com, Vitor Soares Subject: [PATCH v3 3/5] dt-bindings: i3c: Make 'assigned-address' valid if static address == 0 Date: Thu, 5 Sep 2019 12:00:36 +0200 Message-Id: <35e317ef6c9c0c729f713e57a55a2cd8bd55899b.1567608245.git.vitor.soares@synopsys.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The I3C devices without a static address can require a specific dynamic address for priority reasons. Let's update the binding document to make the 'assigned-address' property valid if static address == 0 and add an example with this use case. Signed-off-by: Vitor Soares Reviewed-by: Rob Herring --- Change in v3: - Add Rob rb-tag Change in v2: - Fix typo in commit message Documentation/devicetree/bindings/i3c/i3c.txt | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/i3c/i3c.txt b/Documentation/devicetree/bindings/i3c/i3c.txt index ab729a0..c851e75 100644 --- a/Documentation/devicetree/bindings/i3c/i3c.txt +++ b/Documentation/devicetree/bindings/i3c/i3c.txt @@ -98,9 +98,7 @@ Required properties Optional properties ------------------- -- assigned-address: dynamic address to be assigned to this device. This - property is only valid if the I3C device has a static - address (first cell of the reg property != 0). +- assigned-address: dynamic address to be assigned to this device. Example: @@ -129,6 +127,15 @@ Example: /* * I3C device without a static I2C address but requiring + * specific dynamic address. + */ + sensor@0,39200154004 { + reg = <0x0 0x6072 0x303904d2>; + assigned-address = <0xb>; + }; + + /* + * I3C device without a static I2C address but requiring * resources described in the DT. */ sensor@0,39200154004 { -- 2.7.4