Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2121632pxb; Fri, 25 Mar 2022 11:27:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwE3r+lzjERy3Lqx3Xwm1CATumPuwkbAWL/0prWXqXpU0bU1C+JySWbM4mbcrnnzCn3Tiw4 X-Received: by 2002:a17:902:dac2:b0:154:5d6d:cd02 with SMTP id q2-20020a170902dac200b001545d6dcd02mr13090901plx.123.1648232873901; Fri, 25 Mar 2022 11:27:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648232873; cv=none; d=google.com; s=arc-20160816; b=Nmkilx5JlRr6sn1YbcfSHqUdeCGlANWkAHfO/ITeAeDTdX6uFi4BLGXQVULTopfMfh uVI2Jj1FrrG4y6ue+ATTTvUrgBpmc2JWR/gyCY8V7w1k+JhPwrFQjNSWOJ5847/6m2G+ KBf8gIdEquwtr/dvxKM7lsRtP4CAVzI9Swyxe6g9dR8Z4b+f5y+cFraWWh0uSwG9xFs+ WY86nIGfqAeuHvAdNugv86Iq1w3kru5Iqv1ODN1+oKW8bWrbm3gp5MBx6l0h7qPwLdua UaWt9TzrK3rS42bzUYDaZxUJGl/wyatAFAsWUv6VhHvydjTqIt+KzxxxCOygcBbvNNEt q5uQ== 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=OIJlhxZQII2b1Vl5R2eePvHRFchgJiZqPqucMSOZBVI=; b=VhJCvtvTvfo4hl/4ieYJK7yRHoc1N2szf9U8u4bIfg+FAc2luYb/aDWjwoo1f5guyH T5BGYzS1RJfQSXAeQAt5v8RYO/iPYev2j/iJtQCVqAGYa6apnSB3hHjmOSC07fAbebK0 5DX5mlMN/MyUsitz6DF9ZIjetp35VoNqJWscPhSs2rgRLvVKwP4X5CF7i+bNNngTtQT2 ddnCW/SCiLibz+FSOFF/tPnW3HX3RxJGLdZDVFnifIF1i6WI7p396alZ3Fq/+ZbFX53a hpXpN5dszF/KSFE77FfIfPmTpMs3XKIt4bAywhqDnE4HgY/94UnEeFUngKzw/NUjDfR/ QdQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EOkCpfvO; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id a1-20020a056a000c8100b004faac3a73f8si3824602pfv.87.2022.03.25.11.27.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 11:27:53 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EOkCpfvO; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0B5B017A2C3; Fri, 25 Mar 2022 10:50:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352305AbiCXR2p (ORCPT + 99 others); Thu, 24 Mar 2022 13:28:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352285AbiCXR2k (ORCPT ); Thu, 24 Mar 2022 13:28:40 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 39614B188E for ; Thu, 24 Mar 2022 10:27:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1648142827; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OIJlhxZQII2b1Vl5R2eePvHRFchgJiZqPqucMSOZBVI=; b=EOkCpfvOJSFqMXLMjm4HvSWTgkkmwIt5rYJa+FHDz0UqVYIC+tprc5vyGm2IuoSGuc/OKX 5+cTupFKM1shQZ17kO4GN19lm4YO9FaC1VsCnCFjO2WZglsY1uPOvThEyGZBXWxbedW5tK X0Zgm3v2R/oy78iRKV6iddr+2gLNL58= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-380-K6iTcQ0NPHmL60azdyKqSQ-1; Thu, 24 Mar 2022 13:27:06 -0400 X-MC-Unique: K6iTcQ0NPHmL60azdyKqSQ-1 Received: by mail-qv1-f72.google.com with SMTP id t16-20020ad44850000000b00440e0f2a561so4113473qvy.11 for ; Thu, 24 Mar 2022 10:27:06 -0700 (PDT) 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=OIJlhxZQII2b1Vl5R2eePvHRFchgJiZqPqucMSOZBVI=; b=3fkKI3+1m4LvEowAMOx367P7/lDWfslLuvDvFEeqL06+dqcmwB1yefyWP8sUzIjGsj u4VScH96Q678ROHjvtJbgaE7Ndf1dX6sF/YaZgdmRnt54sUIqW5WsodpHkt4N6eWMLwA BSA1oFTHK+Q38C2kCePIS4NzdqNibx6ifgwTZiAZpJrUulZj3h2lYnfgtFNVo7S5pCud yvp56V5JHRnxlF0TgAnK/FeuhRxJ80IrJxQ53qZXRwLeTFE4LMaIkZaRM4YFinHmtGSZ VOVNTsqZzQGNCRMXsk0ZUepW18CPPkQmCPSPYJIW1FTvNWx7os/IMme1zVDciWGJu9US /FXg== X-Gm-Message-State: AOAM533/faqY7KDTyT6Pv/zca5xSUyQ19zEYSZYqC1ZnbytHQD8ozCER 77H08jJESPsObkrCUVRh4cbmml1SaaEfren1FxdmGq+xYKv1Uku9dvuJyljD9m9qI6fWoB1SUMB C2TlC8oKpKoQOSkeltTELZm3VlRSvG44EVum15qSxNEtfEGkDAD2rwBNBY9ahp2pfGM3ecLsxrz Y4 X-Received: by 2002:a05:620a:a57:b0:67d:396a:8a9d with SMTP id j23-20020a05620a0a5700b0067d396a8a9dmr4150376qka.322.1648142825466; Thu, 24 Mar 2022 10:27:05 -0700 (PDT) X-Received: by 2002:a05:620a:a57:b0:67d:396a:8a9d with SMTP id j23-20020a05620a0a5700b0067d396a8a9dmr4150351qka.322.1648142825215; Thu, 24 Mar 2022 10:27:05 -0700 (PDT) Received: from fedora.hitronhub.home (modemcable200.11-22-96.mc.videotron.ca. [96.22.11.200]) by smtp.gmail.com with ESMTPSA id bm21-20020a05620a199500b0067d5e6c7bd8sm1886515qkb.56.2022.03.24.10.27.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Mar 2022 10:27:04 -0700 (PDT) From: Adrien Thierry To: linux-kernel@vger.kernel.org Cc: Adrien Thierry , Rob Herring , Nicolas Saenz Julienne , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Stefan Wahren , devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Greg Kroah-Hartman , Gaston Gonzalez , Ojaswin Mujoo , linux-staging@lists.linux.dev Subject: [PATCH v2 2/2] staging: vchiq_arm: Use bcm2711 compatible string for bcm2711-based RPi Date: Thu, 24 Mar 2022 13:26:47 -0400 Message-Id: <20220324172647.167617-3-athierry@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220324172647.167617-1-athierry@redhat.com> References: <20220324172647.167617-1-athierry@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,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 Use bcm2711 compatible string in vchiq driver and device tree for bcm2711-based Raspberry Pi (Raspberry Pi 4). This is consistent with what the downstream device tree uses, and allows running the vchiq driver on the upstream kernel with the downstream device tree. Signed-off-by: Adrien Thierry --- arch/arm/boot/dts/bcm2711-rpi.dtsi | 1 + .../staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/bcm2711-rpi.dtsi b/arch/arm/boot/dts/bcm2711-rpi.dtsi index ca266c5d9f9b..c868d1dcaba7 100644 --- a/arch/arm/boot/dts/bcm2711-rpi.dtsi +++ b/arch/arm/boot/dts/bcm2711-rpi.dtsi @@ -70,5 +70,6 @@ blconfig: nvram@0 { }; &vchiq { + compatible = "brcm,bcm2711-vchiq"; interrupts = ; }; diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c index 3a2e4582db8e..136c664132f4 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -81,6 +81,10 @@ static struct vchiq_drvdata bcm2836_drvdata = { .cache_line_size = 64, }; +static struct vchiq_drvdata bcm2711_drvdata = { + .cache_line_size = 64, +}; + struct vchiq_arm_state { /* Keepalive-related data */ struct task_struct *ka_thread; @@ -1748,6 +1752,7 @@ void vchiq_platform_conn_state_changed(struct vchiq_state *state, static const struct of_device_id vchiq_of_match[] = { { .compatible = "brcm,bcm2835-vchiq", .data = &bcm2835_drvdata }, { .compatible = "brcm,bcm2836-vchiq", .data = &bcm2836_drvdata }, + { .compatible = "brcm,bcm2711-vchiq", .data = &bcm2711_drvdata }, {}, }; MODULE_DEVICE_TABLE(of, vchiq_of_match); -- 2.35.1