Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4655430pxb; Tue, 5 Oct 2021 07:41:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyj+uTooRXRzHUwaQy6oDeeGkO4h+73ACDP/tXDAZ86y+LplnvXhq2HXU30Rxmk/5TrJ1i8 X-Received: by 2002:a17:90b:3851:: with SMTP id nl17mr4268251pjb.12.1633444860467; Tue, 05 Oct 2021 07:41:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633444860; cv=none; d=google.com; s=arc-20160816; b=tkEU+b1k73BFmdZGJqOWbrJUjQR8RNkaVAnGardVw1W1+C7g0oFMmfml6nYK7oa46L xNmCDXHzYbfRyoaptYeOadJQeE47Rj6OfnQyqOIwKhuprFL3AJXBgh5cHVsQ6YJrwyE+ T8lok+PLGbaht6bdBIafH0ilDG5rRrTlwVRdrov1Nqm9Fg6j/sWQZu0Q+GIH4lU15dAZ HbWJTyUvYMp0cHlEidrTjKit5GXU22uOqlG5CaOaHHFK+WR/ir4T2c6ddvTiGFG/s4iO wSNCWbXnKrqD3hqrBC+e2OFAD42AzH79k+LB4x5ZCKv9BEJ8zdLTRhDNrZ95dHZgklXD 8YTQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Z8yJ3pPZ9+WPMdAHGwCAtozfSgkyhJMEnQnMA+Z0TQI=; b=0FSvTVQ4o2v8t6Ys9Grs2mM03LtMIXK7Zotz38m/qJJnDvA+xDhQJOgcO5Qes8NoBG OA5SgHg6MvNhHSp8IK1tVRvLkG1fxWnucTczb5bRhUUzuOlOda1SXwXbGUzx6xbM/cxM BKDq9eDwXgy1T3OdPM6FQ8BdDl/2yqnykQpxPCf5zmIPVqWzwwSRZmzFUfVvltVhfbtb nM/15SoJ6Xe6cjveI04PlS4qFCT7ziSlVetZ+416LJm4PHyVc/s7iiN/+UKgcTqrNSf+ 47PnKLPBaCdvVgnQXnq8Xy1XRWQDey9qgQHSDPukdcXZW76+sgH2e0I6OtoHIAjXaV+B ZttQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf-com.20210112.gappssmtp.com header.s=20210112 header.b=0CE3XJmx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r17si21771846pgh.182.2021.10.05.07.40.46; Tue, 05 Oct 2021 07:41:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@semihalf-com.20210112.gappssmtp.com header.s=20210112 header.b=0CE3XJmx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235551AbhJEOkK (ORCPT + 99 others); Tue, 5 Oct 2021 10:40:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235306AbhJEOkH (ORCPT ); Tue, 5 Oct 2021 10:40:07 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD935C061749 for ; Tue, 5 Oct 2021 07:38:16 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id y26so87744928lfa.11 for ; Tue, 05 Oct 2021 07:38:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Z8yJ3pPZ9+WPMdAHGwCAtozfSgkyhJMEnQnMA+Z0TQI=; b=0CE3XJmx7D6euF5qrA2Opsb+C3uYz+egZm36W2sRX5c0XlTlmxj9meTCHFzWx4P+kC cj7WYKZkaziTQJItkQNcG7FDbGdy2qByNwUkZpr+z6QaJP7FXZoBHmna27omLi+1F+Pc Zy/BR3dISsxo34DCfGR0fF5qio1t59z8jfvYWCErYDjplgL/HQK99Rmtx8zEVqSLWCjN lR+icNyvVSyx2f6juS3dvQ5LpJQFDiQk0mchttG5xqk73hhNfin+cpSLYVsaljqYgc+j 1yUACMgYpNoGKLAihzOuQ8bgVHvsppCKtWcDD40kSsbV+A8y9AhDFawtDfZWWIgmOdNr ZLrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Z8yJ3pPZ9+WPMdAHGwCAtozfSgkyhJMEnQnMA+Z0TQI=; b=ea+kI8sYFMp2GxltP50+RjRfEPBWm72pK+S2nMSEJOIz8EZqGMvbkRnznZZ5spqmTc RKuwTsxl9Brccv6QcJqdgt7AwpXK5ogYKgwhNDpA6YtNqfy8lBgoDsQeHheTlA8ayoJT f/FkDFuPwiAUxehAdDxKWGwDUs6kibeBmpxpdPuTdUEppaz15Up1cHIkyJFPfq8uAb3x P8mlv5iO+Cm5CryfNHHwTOup006CWKR2Dh1bDgWEWKaxdt6psiU8PPUQEdcUVRvHtYDu yDB0rXh6uRXB/O02ljm+3caoE8BV/li32ftVMiKPNyKtFygj9DGCVmrY+qIo+e1hq66n WKQQ== X-Gm-Message-State: AOAM5320+FrioVh8wQUrba1Xz70kgSSSxvMb8KE0J2O1ndwvLDCVdxOU 4ala7cjdBP1EhbMyCfnx3gBovw== X-Received: by 2002:a19:4802:: with SMTP id v2mr3839955lfa.49.1633444694743; Tue, 05 Oct 2021 07:38:14 -0700 (PDT) Received: from grasshopper.googchameleon.semihalf.net ([83.142.187.85]) by smtp.gmail.com with ESMTPSA id u25sm1973835lfc.176.2021.10.05.07.38.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 07:38:14 -0700 (PDT) From: =?UTF-8?q?Pawe=C5=82=20Anikiel?= To: jarkko.nikula@linux.intel.com, andriy.shevchenko@linux.intel.com, mika.westerberg@linux.intel.com, robh+dt@kernel.org, p.zabel@pengutronix.de, arnd@arndb.de, olof@lixom.net, soc@kernel.org, dinguyen@kernel.org, p.yadav@ti.com, Tudor.Ambarus@microchip.com Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, alexandre.belloni@bootlin.com, sre@kernel.org, thunder.leizhen@huawei.com, Jonathan.Cameron@huawei.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, ka@semihalf.com, tn@semihalf.com, jam@semihalf.com, amstan@google.com, =?UTF-8?q?Pawe=C5=82=20Anikiel?= Subject: [PATCH v2 2/4] dt-bindings: add bus number property Date: Tue, 5 Oct 2021 16:37:46 +0200 Message-Id: <20211005143748.2471647-3-pan@semihalf.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211005143748.2471647-1-pan@semihalf.com> References: <20211005143748.2471647-1-pan@semihalf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On SoCFPGA systems, it's desireable to have fixed numbering for i2c busses, while being able to enable/disable them (e.g. have i2c1 be mapped to /dev/i2c-1, even though i2c0 is disabled). This can also be achieved using devicetree aliases (see i2c_add_adapter). However, having the driver be self-contained without relying on aliases is more robust. Signed-off-by: Paweł Anikiel --- .../devicetree/bindings/i2c/snps,designware-i2c.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml b/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml index d9293c57f573..1e02ddcbd690 100644 --- a/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml +++ b/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml @@ -93,6 +93,11 @@ properties: - const: tx - const: rx + busno: + description: | + The property should contain the desired bus number (as opposed to + being assigned automatically) + unevaluatedProperties: false required: -- 2.25.1