Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2299704ybv; Fri, 21 Feb 2020 12:47:20 -0800 (PST) X-Google-Smtp-Source: APXvYqyYcwFr6tnA5AmgBDav01zAVsqK6FqZDRzkogOBwtI9nQbmzh9AqKv7md1k7HMFeGjYLu2f X-Received: by 2002:aca:cf07:: with SMTP id f7mr3604430oig.5.1582318040145; Fri, 21 Feb 2020 12:47:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582318040; cv=none; d=google.com; s=arc-20160816; b=lQ3Bg1Ho0ysSf2qFE3howmhm7Ns1SkfMqRasXH37Z8Gg9R84d77QinVB3wxRcl2imU tqkSPnCNASMr3fWDz8nUKZwYLW/rPXXKMeAcHNw/P2pIiIs4eibYyuwDyTmwF3qmFuZe Vcwid9Kuj/CHUAGV/k1EBXT32aW30OiDp0prRqII42Mmq0jzcy7tZBxctcAUge1I0T0B 9fsjE+1p6ircU8taA3vYYhLM/VBDEoeRFtM8ia6houkKBkI9iT0tqUXTycSzKeeDQQiI qe6jdzUGxyO5gocMeGKjO/Iy7fKB0v4doHp48PwZ4ANwpHZhWRyZUZTOpHZIxpNcdvhf Yb+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=82wXbaKxRFjsoQQsO8QepB6AihqwY3AEJl7r9u0kpGw=; b=jcAFQav6irgiAv65txyYsY3QFq65lo1VmXD+wf1x4POsAhHzt1ZgaYOgdrYZPX9x2w dTsWSkPvtj5f5v+WVkTXTeNjItH43eI8HgsybXxTRImxVE7OscfnT+d+b7IMuS3DiZ2K 7Qyh5NxYxCMihx4zQXqDmg+20mjMOXUEjvgOrZp7sv+YEQsqXOwLMJ3V2DaxeZ6oOPac o6QNJnNuNA3IY7yEHdXW4278scx7HhBQruQ4pRLo1MtQ4nJ8B98woYVJEAaLUoVQ8bph gyLSIkt0IAXCKL7SMuuBYRh0wwBH3LoAyL2xNVRbrONAZenw4br6lHEIlqwAwb0tqqp7 Z3Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=AuYSHn6m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a20si2003795otf.271.2020.02.21.12.47.05; Fri, 21 Feb 2020 12:47:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=AuYSHn6m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727912AbgBUUrC (ORCPT + 99 others); Fri, 21 Feb 2020 15:47:02 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:38228 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726747AbgBUUrC (ORCPT ); Fri, 21 Feb 2020 15:47:02 -0500 Received: by mail-pf1-f196.google.com with SMTP id x185so1864910pfc.5; Fri, 21 Feb 2020 12:47:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=82wXbaKxRFjsoQQsO8QepB6AihqwY3AEJl7r9u0kpGw=; b=AuYSHn6mP7IaxfUclYudxXEWRdwuTZLXOSYwBCCQUceCrLM5fqU4As4Rt/q+NUsO1k qgDZXU1etfABOXuFfZ6QFrMjNZIUA0BwKT7Ukoi3C4hp5ebskEnKvgKxy9mK+NxdAJZ5 cJAcTHggDlceqrWd9Xgkk0uF20RGm2kabLgmR8BAFeS7n3X/kpVcnUbUN3jsdRxrSdm6 qKC3N9Au8cXYCltWUYsgFqiieAoLp+rKe8FcRdS29jg/CXXXE21YFl5kJ3/DWk6ULvn+ jKjUbbXouX0UMz44Dd2qa1BAqGDDgwCQU4PKPaGaC/e551I4RycTskcwwPXSVb/C4Ko7 izCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=82wXbaKxRFjsoQQsO8QepB6AihqwY3AEJl7r9u0kpGw=; b=BCMKznhacKOk/+zEy66Ct419A0nli0XDpJb030g7FQ8nu61JK/2gexXwdXG3SfjET9 OCUAbeQNyKwK+Zn1S1MT6EoMMii+9QReYBs2xoSIVUAHt4g/x1boPfmZSY2HvAJsX/Xn 34trs9Rpt9lT226WiAJDxqA8JuK9b+efgapqJNbWU7cnZ7ljq/QmJvKAGc1x+cmLGKdo 5pvwQj+qWXvxKW13a9b+dYF1EsdY8emDHmemdak8jA3ZvbiAN5NCGIMKFesI+bg0YENb Bg3TwNRN28CgjVL7AQ/72u9CDerXZycWxZCq8NgrkSUxIbJ1Zc6FfLuizUATLP9bIn35 rFRg== X-Gm-Message-State: APjAAAVLfcUjav4/4Tts1b+p5KTPMwLt7X7gfduQuPZf3C27BHOXLFgR /mOpwVQBGEmTQs7LqzVwSY4= X-Received: by 2002:a63:6383:: with SMTP id x125mr37208834pgb.409.1582318021317; Fri, 21 Feb 2020 12:47:01 -0800 (PST) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id w189sm3770262pfw.157.2020.02.21.12.46.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Feb 2020 12:47:00 -0800 (PST) Date: Fri, 21 Feb 2020 12:46:58 -0800 From: Guenter Roeck To: Julius Werner Cc: Xingyu Chen , Evan Benn , Rob Herring , LKML , devicetree@vger.kernel.org, "David S. Miller" , Jonathan Cameron , Mauro Carvalho Chehab , Wim Van Sebroeck , Greg Kroah-Hartman , Mark Rutland , linux-watchdog@vger.kernel.org, Jianxin Pan , Yonghui Yu Subject: Re: [PATCH 1/2] dt-bindings: watchdog: Add arm,smc-wdt watchdog arm,smc-wdt compatible Message-ID: <20200221204658.GA6074@roeck-us.net> References: <20200214062637.216209-1-evanbenn@chromium.org> <20200214172512.1.I02ebc5b8743b1a71e0e15f68ea77e506d4e6f840@changeid> <20200219223046.GA16537@bogus> <20200219232005.GA9737@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 21, 2020 at 11:41:47AM -0800, Julius Werner wrote: > > Because the ATF does not define standard wdt index, each vendor defines > > its own index. > > So I don't think that the current driver[0] can fully cover my usecases. > > I think the best way to solve this would be to put the SMC function ID > as another field into the device tree, so that multiple vendors could > share the same driver even if their firmware interface uses a > different SMC. But they still have to implement the same API for that > SMC, of course, not sure if the Meson driver is suitable for that (but > if it is then I think merging those drivers would be a good idea). More common would be to have a single driver and multiple compatible strings. The driver would then pick the SMC function ID from the compatible string. After all, we'd not only need the SMC function ID; parameters are also different. Guenter