Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4770201pxj; Tue, 22 Jun 2021 07:41:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0qfWRgxX8mhEHhlwzWy/a9h6/ulAHqX/YEQF6QUo4BCpuzdtv7nAM3joFMtWbHqidl0ou X-Received: by 2002:a50:fd0a:: with SMTP id i10mr5380879eds.251.1624372899356; Tue, 22 Jun 2021 07:41:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624372899; cv=none; d=google.com; s=arc-20160816; b=JyWJLNr18if9iJP9AdNoT3k2eTdO/wcfXPxGupnNbj5Wda1fM1Tyth+iVFiPp3/kDA SaICG4zbfswxGYYiu7fGXqtsMbkT4ISppLy9VzVwHgRxFfazci6RpWZirAid76e2AmOm tRlQgEAW4WaqayO0gLK0rt5zjJn0FokrZivcpa8HH/0zOuiXwMY+Yr+/1KARwBSVqYCp WBH217qHu1MPdpYtsNL/ZBBHiKVCAf1RQIfd1986wgHUy0sYDSwB1rXyUNYG0friBEeF d8zXCswZL+gjkLRBUSAs+LibQEXsK6Zj9yo8TqJ9CPZR9W9HoUVHTF0GRUIY3Kyi78Mb s2WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=DzzkeguR/nrxazN/TGnT3TfflLlbT2VClQmTxoJCeAA=; b=qo6o725eKUiv+Aa+ewnHg+MhaL6Lm94EeC4pAX/mCI7rX3oHL3lGIs4DM7YGYHWzWj /s36KicpkCwvo9Fy+pGjsAIg8httrWf1LAQcMkPtKQE8x70Y8P4GpGFnoJHRtTBWpDN4 tXBGkwfrPOtS+EOs+7NjI1R4EzUBVlZmIwRhkaZ4BAVfS+fLYdI2wNyqynmsZ3lpzLm4 y5q0PKgJ8iF1bpKJetHxOhw/XGuB1n++FFybACaI4FfO7TWO17Tk8ihDNECZ/DBHRWsp IGyTf3LD2IJRR1un7o41+aTSkJ8FZr5ayP+QSoPvPdHmF271UpHha3E5od5GYHykIqEA +/CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ic/vMrEy"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d6si5168628ejo.144.2021.06.22.07.41.13; Tue, 22 Jun 2021 07:41:39 -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=@gmail.com header.s=20161025 header.b="ic/vMrEy"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231248AbhFVOkZ (ORCPT + 99 others); Tue, 22 Jun 2021 10:40:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231478AbhFVOkX (ORCPT ); Tue, 22 Jun 2021 10:40:23 -0400 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13806C061574; Tue, 22 Jun 2021 07:38:06 -0700 (PDT) Received: by mail-io1-xd36.google.com with SMTP id r12so327333ioa.7; Tue, 22 Jun 2021 07:38:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DzzkeguR/nrxazN/TGnT3TfflLlbT2VClQmTxoJCeAA=; b=ic/vMrEyPRjHpxQqxJjYPe0hHUf0zJQCxbPrM23RAzyTMjUC3ObuYjzX/PuB7zfm5C ry9oJDsbeOubGjhcnnK8dx5+33aM+JOhQBnkX/2/2gMz0ehlxFTBmzzTpVNbqQToqlih runRl8eWBfxkRVXSCthqg3m4jXLktI+R7wA0jQTF1jl0+ffNQWjqcDnVqWrFhYwU590q RhxGFkXDWdpkAtmLkb8WgQWtTnm6zZiiq1XiCHwnmFTdxtvfPcN0ThDaqmcgYecabPoM OHC9xZX20qx775MuqIR7xyBbLcSBxmSEvLoErHOd84vhPDAtE/M2yXmWVjQ7b9B8h11R BD2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DzzkeguR/nrxazN/TGnT3TfflLlbT2VClQmTxoJCeAA=; b=b4++Z9WbA7BteTuxYbAe5JBQStFhcSkaQ0bHSaEEwkYNdeZJiU9+KrdVhrcBOYPjes /O0FJCx9+uRU4tumNELmTbqaaqX83C2cbpDuHiDFe1TPc2lt3wQ5Ch2fTUTN6W63WtcR aA/kN1PoVOtu0kjvL+lFU9eXQgylJUW2vtf8enyzgpiL1mW23zN4G5ULogHDp+hXGnVW TPR2aqRJwDYMk0WLdBuERDoY9dui03roVpmacGqfBLhIwTUezfocrufyOdHYmF+GWepG uF0aVDU1N4069mosznYYGeZvKl9D8tsV10kBGxgcU6mgCNYt1ntSlXxx03kk6LumVjZm ehvQ== X-Gm-Message-State: AOAM530cDP0j7d/KnRYIhS5Qa+kN3ixQ2bwp3B7OTm7mgeplOlN5UgRI sftxB/z0SVJRfucrSe3DIyeLU78csARpLFU/K1vYev5Y X-Received: by 2002:a05:6638:1446:: with SMTP id l6mr3810822jad.14.1624372685555; Tue, 22 Jun 2021 07:38:05 -0700 (PDT) MIME-Version: 1.0 References: <20210612094631.89980-1-martin.botka@somainline.org> <20210612094631.89980-3-martin.botka@somainline.org> In-Reply-To: From: Jassi Brar Date: Tue, 22 Jun 2021 09:37:54 -0500 Message-ID: Subject: Re: [PATCH V3 3/3] mailbox: qcom-apcs: Add SM6125 compatible To: Bjorn Andersson Cc: Rob Herring , Martin Botka , ~postmarketos/upstreaming@lists.sr.ht, Konrad Dybcio , AngeloGioacchino Del Regno , Marijn Suijten , jamipkettunen@somainline.org, Andy Gross , linux-arm-msm , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 21, 2021 at 10:52 PM Bjorn Andersson wrote: > > > > > > In any case, we can't really get rid of the first 13 instances though... > > > > > > > > > > > > > > > > Right, we have the problem that we have DTBs out there that relies on > > > > > these compatibles, but as Jassi requests we'd have to start describing > > > > > the internal register layout in DT - which this binding purposefully > > > > > avoids. > > > > > > > > > Not these strings, but 'offset' and 'clock-name' as optional > > > > properties that new platforms can use. > > > > > > > > > > Relying on completely generic compatibles to match the driver and then > > > distinguish each platform using additional properties is exactly what > > > Qualcomm does downstream. The community has clarified countless times > > > that this is not the way to write DT bindings. > > > > > Yes, and I don't suggest it otherwise. For h/w quirks and > > extra/missing features, it does make sense to have different > > compatibles. > > > > But what you're suggesting assumes that they are the same and that we're > done implementing all the software for this block. The platform specific > compatible allows us to postpone that question. > It has been 4yrs and 13 platforms. The compatible strings are used only to match the hardcoded 'offset' values. Maybe we cross the bridge when we get to it. I think, when the drivers are enhanced and the kernel binary needs to be updated, we could update the dtb as well? Or is it too hard on these platforms? cheers.