Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp955895pxb; Wed, 3 Mar 2021 22:26:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJxK3l4w8f6+VaBLqUFUPqhZOAJ5q7C9GmTrrtWIJ8cnz95AcaednMN16sJXnkzb28D56oJ5 X-Received: by 2002:a17:906:b297:: with SMTP id q23mr2571825ejz.315.1614839172432; Wed, 03 Mar 2021 22:26:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614839172; cv=none; d=google.com; s=arc-20160816; b=bhdTh0uYdaf/+e332ZzQq2BGKdMApLnyKtpdbBynn4mF6CAZbVPzXPfzxFJtZM9bK/ OkzKQjX12ORuBtEG9tXmj73kmQX+qaX3Afa2XCjKmz5IwYj1Q8mRxE7ZwNdK1FmZDZNP I6ddvbzlzcOM5WdXqFnGre+DXA71AwVyekHGSIN1FWcgV566gtProqMDMzeM/ULxBbu2 vj9mQlSIQTmIP+5wdXnoZ5AugDOT4lUffyiwACm23oVdEoMXtZReRofbooWMrdzrK4nb RsqxNIYeKs2c/13+e/UrXgjZdHNIO1flZtj61MVQiqMV9wVUzVDTsYmau2QDLXp2qHZo 50HA== 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=iSy8XDFMp0a7WSm8SRUUoPZjrV8zT9TVzmc4W+YVnt0=; b=iDuZm8ARWTYGvhS+riHNCkldB7EpKKrOfTM+tzDr2FZHuKFA3dYQBDhS4TMJnQaYaO ZKY9VUeWxtSgiVOT0DM9IEDGtTwz9CUkDMzxcF12l1kiAgOjOQi9fBCPbFzYphYL5BoM M+Mm1aj01W4Jgh+7BUxvARLXImki/Cmvxr6YyKv0KW7e9i6UE00+XR7kO8VPbvSYzzRO ZiYO5oHhAVteYjjHo2DBSFOq/RpFP95QdfFxc6oxuanzTISGv23IMI0Ys5se4OWE/ba8 s49otuiMlSYoigsPBdnpSuqM/Ht7Ua3MB132UxokSvA/sAU3QXANy6uYVajphtgdhlnw 4kYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=muTIlCk5; 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 pj9si15300404ejb.230.2021.03.03.22.25.50; Wed, 03 Mar 2021 22:26:12 -0800 (PST) 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=muTIlCk5; 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 S1838941AbhCBPzb (ORCPT + 99 others); Tue, 2 Mar 2021 10:55:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351175AbhCBNeU (ORCPT ); Tue, 2 Mar 2021 08:34:20 -0500 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E068C06121E for ; Tue, 2 Mar 2021 05:33:22 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id 18so22710111lff.6 for ; Tue, 02 Mar 2021 05:33:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iSy8XDFMp0a7WSm8SRUUoPZjrV8zT9TVzmc4W+YVnt0=; b=muTIlCk5kkvjyji32omYwf+paO3hraugCWesSpuLQsEWurrOtv2LkuCl6kR08bkfvg A6GnCuAbiavXpP6X+RWNX7lHIkfAB0M8pik4fuBcTkyX+KWS7eB9P4AK6fMy4PSjqHzF 5KnqjvDB2QI67xes/P70H8yoAXPOvpsDSCaT/bAAzGvwusGzda3XPI3AQOJyQi94scJI iWF71bvf56zWzmx0LJMa9rlv1NqnmUgyPwP6B9pW9/y5uzP1wyMeFMFpdmE7RlmwwPKa +ahhi2xIdYnuy0TnkKnyvj4yGAq+UjuJmNT5XjAaepghP6qYE+xKENxLMqwATj0/K4B+ fTFw== 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=iSy8XDFMp0a7WSm8SRUUoPZjrV8zT9TVzmc4W+YVnt0=; b=U5rVtUXKRuYAFcpl9CoQpAMWwzLJZSeiTPfNmgxTTlNgAX7uZV5FyS6GxgIj8F36u7 i9kg8wQ2VfDQZDhXZKl7kVd9dc0I25HHLpO5/H3ni2skpjZ2v3Ab1nsrOYomoXBi6554 88jwFKYb2IlejpslA68DOoCUtZs3itTCgNyI3YhCYUxLFMUaFR9X6awr4oQ7l9GoWHvk AjPRNBv9TS+Y7mOvl324mTXfCR2aE1RFDGBl57tQNIIUlyEyJS35CabWZSS786Rf0adS Wko4tv9XY+ch4kAzsQ28sLP8Z9cN7Pm9dGFAsPVQtlrwxPys8eV3S4yGNPIjw6E+g0tT V84A== X-Gm-Message-State: AOAM530g/E4jK4EVWPuANcSuTpXX5rfGA9xRyZ8M4wisEdhtB2D57NQz J92PF/2QC6+NzOB3nS845npqg0As7tMnAbjJhARREA== X-Received: by 2002:a05:6512:547:: with SMTP id h7mr12700579lfl.529.1614692000450; Tue, 02 Mar 2021 05:33:20 -0800 (PST) MIME-Version: 1.0 References: <20210208222203.22335-1-info@metux.net> <20210208222203.22335-12-info@metux.net> In-Reply-To: From: Linus Walleij Date: Tue, 2 Mar 2021 14:33:09 +0100 Message-ID: Subject: Re: [RFC PATCH 11/12] platform/x86: skeleton for oftree based board device initialization To: "Enrico Weigelt, metux IT consult" Cc: "Enrico Weigelt, metux IT consult" , "linux-kernel@vger.kernel.org" , "Rafael J. Wysocki" , Bartosz Golaszewski , Rob Herring , Frank Rowand , Pantelis Antoniou , "open list:GPIO SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Hans de Goede Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 12, 2021 at 12:54 PM Enrico Weigelt, metux IT consult wrote: > On 12.02.21 10:58, Linus Walleij wrote: > > If the usecase is to explicitly work around deployed firmware that cannot > > and will not be upgraded/fixed by describing the hardware using DT > > instead, based on just the DMI ID then we should spell that out > > explicitly. > > Okay, maybe I should have stated this more clearly. > > OTOH, the scope is also a little bit greater: certain external cards > that don't need much special handling for the card itself, just > enumerate devices (and connections between them) using existing drivers. > > That's a pretty common scenario in industrial backplane systems, where > we have lots of different (even application specific) cards, usually > composed of standard chips, that can be identified by some ID, but > cannot describe themselves. We have to write lots of specific drivers > for them, usually just for instantiating existing drivers. (we rarely > see such code going towards mainline). > > A similar case (mainlined) seems to be the RCAR display unit - they're > using dt overlays that are built into the driver and applied by it > based on the detected DU at runtime. RCAR seems to be a pure DT > platform, so that's an obvious move. APU2/3/4 is ACPI based, so I went > in a different direction - but I'm now investigating how to make DT > overlays work on an ACPI platform (eg. needs some initial nodes, ...) > In case that's successful, I'll rework my RFC to use overlays, and > it will become much smaller (my oftree core changes then won't be > necessary anymore). I understand. I have had the same problem with trying to fix 96boards mezzanines. I also tried to sidestep the DT overlays, and it was generally disliked. The DT people have made up their mind that overlays is what they want to use for this type of stuff. Yours, Linus Walleij