Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3788008pxv; Tue, 13 Jul 2021 03:52:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwT2ChIK6i0UxCu3NxdUN0iTnF3ecLhTSLEty+4lL9Cd4aJyPhvPY70iQKdKEEQsM/cEiJa X-Received: by 2002:a17:906:3555:: with SMTP id s21mr4718182eja.394.1626173523935; Tue, 13 Jul 2021 03:52:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626173523; cv=none; d=google.com; s=arc-20160816; b=AtLEGXdGTjZnVMNG04eeBI8zSYZv/0ehaaRb3LqKlGuL6BvW/FoZjL7etljYMFAR51 t1zoQDwQoFMV7ElhoTh5cS+bIKLNHUZLMsQXu1Ez0qn3G/yvgXJEzkdgdlE72ppLIJfO ihXI6TAjWZt9XTAdrdNI3xXevcqts2LKgOUXZZ9Wmqr+60IQlTAV/wSo+UIxhXRbai7j b9vqkJZL6llUu04rZpmPcoYGnrbBDtmkQeuqE0GpwR1kqHiFhqmFSbUb4kwBbivj2eaK yxXz5RbI1/6ZWS4rCUQeHljavY9oAt7TLPHn8D4WiqAyjDi3VyCNpxK+a7qFtTcxir+U XI4A== 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=4xLUJ1dW1Qt0KgF3pEuea/62PVc6DCT7EsaU/Szp0Bg=; b=Z4EGTVBfQO8sJo5+6oJIPxegQdozKyCuBJhZwmlCMWynN66RjP6Lk5G3YTLLe6bhH4 crHNyR0pUdJhkdczMfvvER5yQWv0peXArA5ynzrQwe3ZD+KHdm3kElMKqvn0JrPg1cbH lBAyp9Ec/Wq574CyabY2unuA3OOYPAPaJMHeuxX+VcEbhY8hMH0ln76/9Yn87cHayttK C0ttHbWgzuAyWwkixFXlFmIcMZRiz5tnz1vmUg9k36JV6VEgkcxTq5FiWgOvCWufGg3n a8oFE9gw7fYBIzAYv/uwiUAJvnrv+OgeTVRhng8nDcG8tMKuBmNdRJePYw35As5VuqKF uv2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E2vCdTP4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f10si22631068edy.519.2021.07.13.03.51.40; Tue, 13 Jul 2021 03:52:03 -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=@linaro.org header.s=google header.b=E2vCdTP4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235460AbhGMKxi (ORCPT + 99 others); Tue, 13 Jul 2021 06:53:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235496AbhGMKxh (ORCPT ); Tue, 13 Jul 2021 06:53:37 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EA63C0613EF for ; Tue, 13 Jul 2021 03:50:47 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id x21-20020a17090aa395b029016e25313bfcso1837975pjp.2 for ; Tue, 13 Jul 2021 03:50:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4xLUJ1dW1Qt0KgF3pEuea/62PVc6DCT7EsaU/Szp0Bg=; b=E2vCdTP4Dqtla5LUcohrAy+3w9yg8TqQrenrE5K9FTm+s6OAAqAP4MkvIUanmoewVh p9Xoha8+yUnUYTMCuoC0YpI5U+SKq2/0jW9vqhW6ACR2JbmbQlA9mE3k0V9hJ0hd8oan tTlxN5pFfvjiYWIdZqviVCBXIrYVnUuADNxLHBtHQAw7pqzSDE/xUbphfgNvfjOHqS5u JeJ0nuh0WIXCgIrUZzo3opYAS5jkLPFYAnwd+nwZ+eSIYIbqkkdOPQeqgg2Mc7wm6yd8 LE1lVaUisP/flFiy87qUDrIeegoszDgg1BVBZsTYuXAIoMCvvY120W27WX3hWkBNqpEq uoJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4xLUJ1dW1Qt0KgF3pEuea/62PVc6DCT7EsaU/Szp0Bg=; b=eyzc0Z8w+c8T8kFj5n973dKNHoJmMKRr3qDoeqi5j3m96VuyyZGkMjV1qvnhiAqlqC 4UclOLBJE5AuK+j5PAbMdFYeFI0kZ6i5iPKIQVW2lVYhQUZvwbkSUwv9FE7XIhuoo9bw 6b3Be4IE9ogKI3TOBYs40IblBQT6pg8QdjU6MeUsG3cnZEQJD8154nJKfmBuBDDUs3DB qYdo5bUd6WrXQQmMEOT9eWZf6vE5FU4x5aE9mnDCeUxbQDHG9CDJfhkEzzMc+/AEHtQ1 cUg1OngPbOtcXVI72xKPm4v4dnvw1OcL+R833i+ACUEypFcxg50sJ2kzwEJTzhsuVzzq MjHQ== X-Gm-Message-State: AOAM533oG/w0TtKIuqZxTxekF/o1xsKk2tsDV9EYO/+U+eP2SV4htAR/ 9htVsdAy2ybxWR5PnRyauhqJmw== X-Received: by 2002:a17:90b:957:: with SMTP id dw23mr12591539pjb.123.1626173446842; Tue, 13 Jul 2021 03:50:46 -0700 (PDT) Received: from localhost ([106.201.108.2]) by smtp.gmail.com with ESMTPSA id lj13sm15276916pjb.53.2021.07.13.03.50.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jul 2021 03:50:46 -0700 (PDT) From: Viresh Kumar To: Jason Wang , "Michael S. Tsirkin" , Rob Herring , Arnd Bergmann , Jean-Philippe Brucker , Bartosz Golaszewski , Linus Walleij , Viresh Kumar Cc: Vincent Guittot , Bill Mills , =?UTF-8?q?Alex=20Benn=C3=A9e?= , "Enrico Weigelt, metux IT consult" , Jie Deng , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org, Wolfram Sang Subject: [PATCH 0/5] virtio: Parse virtio-device nodes from DT Date: Tue, 13 Jul 2021 16:20:29 +0530 Message-Id: X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Currently the DT only provides support for following node types for virtio-mmio nodes: virtio_mmio@a000000 { dma-coherent; interrupts = <0x00 0x10 0x01>; reg = <0x00 0xa000000 0x00 0x200>; compatible = "virtio,mmio"; }; And each virtio-mmio corresponds to a virtio-device. But there is no way for other users in the DT to show their dependency on virtio devices. This patchset provides that support. The first patch update virtio,mmio bindings to allow for device subnodes to be present and the second patch updates the virtio-mmio driver to update the of_node. Other patches add bindings for i2c and gpio virtio devices (they have some dependencies, mentioned in the patches). Tested on x86 with qemu for arm64. -- Viresh Viresh Kumar (5): dt-bindings: virtio: mmio: Add support for device subnode virtio_mmio: Bind virtio device to device-tree node dt-bindings: i2c: Add bindings for i2c-virtio i2c: virtio: Update i2c-adapter's of_node dt-bindings: gpio: Add bindings for gpio-virtio .../devicetree/bindings/gpio/gpio-virtio.yaml | 67 +++++++++++++++++++ .../devicetree/bindings/i2c/i2c-virtio.yaml | 59 ++++++++++++++++ .../devicetree/bindings/virtio/mmio.yaml | 41 ++++++++++++ drivers/i2c/busses/i2c-virtio.c | 1 + drivers/virtio/virtio_mmio.c | 44 ++++++++++++ include/dt-bindings/virtio/virtio_ids.h | 1 + 6 files changed, 213 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-virtio.yaml create mode 100644 Documentation/devicetree/bindings/i2c/i2c-virtio.yaml create mode 120000 include/dt-bindings/virtio/virtio_ids.h -- 2.31.1.272.g89b43f80a514