Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2085020ybl; Thu, 29 Aug 2019 03:22:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQm6MFoLmD+kyGLDOSam2ssZnteOHIzlJ5Sh5gwrfIm1NfgrB+Hxveig7DXOLEkwvltgjF X-Received: by 2002:aa7:851a:: with SMTP id v26mr10205674pfn.238.1567074141315; Thu, 29 Aug 2019 03:22:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567074141; cv=none; d=google.com; s=arc-20160816; b=ZezCiyuCxYUeCLwKmT+HLgCdBSMKr0/GoZ4LhjFiPNo05/8T0G9cKaWRD4hWKxR12j 3DIH9C7rgeZ7jzkunJs+Ttdt7jU1xLjzkt2zjM7tmzxSLDtDEQ3e84dziqeOSmTw9yP1 9Z1mr3PRECpw281wvFxImwPJkY7GuRrbyicaAb7wUN64xwWsU15tuOZHuDwigrrmUAHe iGbpKqGvTVzp0vBjN6cvrMWqTPNrhaHvg039YBG9ezdkMmFd730DgUq9t4VK+gyWqiud EF4ErXHJHa7bm+C3B0dNmF2Xb2SBwo5UIScUJr4Ko8FA8IWs//ouUV7EphDHcTRf0/eM 30vQ== 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=L3vGrNq3IcF6yDDsBsdBglTmoRNkfhxB6b2RiNB89UE=; b=NNRvG/q1rKql1O/gvstMeRwFZlkT36Jq0zbHA+5l1OX/WhFk0nVeAPg7U4vwsbW81c gb6PqW9ZlMA04Iz3nEC5cG6hUT9FxRnOhqBuGez0qJOKDtGcUvksAWF1W29dfrEu9d0P ba+MkbRzN75Dzp+oV9H5sq4g+nwFq7A57ABi7XQCuilgfHnkOZ5CTq4hzTNphC1VqtZd wSg5n6ZRYiUuvXKLA32EjXWSxl2sq/j/zEuX+xUon7fSOSZfJ97EhFbr2/pKn6yP43f6 Upufsf5u9E9TZQ4Be7JW8Gyk01+Jo/tsjHQqhG/MruW7URXpYrTZ+laW8NYswGADtpPY /xJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=AvcrUPSe; 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 cl9si1529426plb.271.2019.08.29.03.22.06; Thu, 29 Aug 2019 03:22:21 -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=AvcrUPSe; 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 S1727109AbfH2KTl (ORCPT + 99 others); Thu, 29 Aug 2019 06:19:41 -0400 Received: from smtprelay-out1.synopsys.com ([198.182.61.142]:36136 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726518AbfH2KTk (ORCPT ); Thu, 29 Aug 2019 06:19:40 -0400 Received: from mailhost.synopsys.com (mdc-mailhost2.synopsys.com [10.225.0.210]) (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 EEFC8C0051; Thu, 29 Aug 2019 10:19:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1567073980; bh=MbJFBF3yNfMCCzFo8zZdLZFc5T6ridAamiovEWdZ+Fc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=AvcrUPSeAuGvPBdt69A5krNoudlmlgOz4ooksW/NZ/a3NNnVBn9IkPjJ6Eg0NsPBR 4tz/77BpZ7+qorfbJ4hrDEKs87Xt0ZpULSj7xIDdwEK1d2FFcwpRET6WJVnuAAOwQq QNyKzZGIofB3otP8tf0fFH0kMFsFOaLwuksnl1u6a9YAkpb5iiLRi+Njd8WPk1B9v+ 5X7DzCjCmIRkTp4mJUC6sOSZRpxSwvfbjDDpirEN3esezcmeZTwR2ZFNH/0n0frTYQ LygqC112lUcXaJRV+/6PxquX2klWmFfWvxF9udwmenLQ5GcLEEbGJpg2ZKiwsN1mD1 3Zh9ZLJvHy9vA== Received: from de02.synopsys.com (germany.internal.synopsys.com [10.225.17.21]) by mailhost.synopsys.com (Postfix) with ESMTP id 59ADFA0062; Thu, 29 Aug 2019 10:19:38 +0000 (UTC) Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by de02.synopsys.com (Postfix) with ESMTP id 43C473B649; Thu, 29 Aug 2019 12:19:38 +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, Joao.Pinto@synopsys.com, Vitor Soares Subject: [PATCH 3/4] dt-bindings: i3c: Make 'assigned-address' valid if static address != 0 Date: Thu, 29 Aug 2019 12:19:34 +0200 Message-Id: <9d69c83c7193e377bbc77bea7f1812fc17dafaee.1567071213.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 --- 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