Received: by 2002:a05:6a10:144:0:0:0:0 with SMTP id 4csp668643pxw; Fri, 8 Apr 2022 18:49:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFYtOdUYzrqEpbutplRvdfktk5eH+7FvON4kp2G69ywvGRMC0rFfrGthy1dc7WP2opEoE6 X-Received: by 2002:a65:5247:0:b0:382:9715:44fe with SMTP id q7-20020a655247000000b00382971544femr17849448pgp.577.1649468965489; Fri, 08 Apr 2022 18:49:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649468965; cv=none; d=google.com; s=arc-20160816; b=chKTSrxitB7egHIJNkX7HU8vSx9goKtCXptlYMEOcFDkS6PWhA1Mm1usizugx4Fj7x ocrKRxuAVDEANbh8bAdK9H7Hz2B+LOGNzxra2t9gHhbZns5dc+gkt2nhbHuPqF88yEUF L5vK55taldr93lpdLJe3JQ2L/JW/mro9ZgIUl6u5g2fb/bCZNvVWwiAQF14kyaHXlvjf FGP5ZqqQx3AHRhkBr7fnQJ+F3ryR1s4onP4K3BNYEYutHX9nrmDn2JjwI5mMtNWuXYy1 ZrCPn9zJFuoBeQvI8pOUa/ASX2HMZtrAMaX2dZ3ATie74lLKPlWNWq103b767B5vx+nZ 75Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Lf2HIDOgcxd3N/SJmrm+i3BU0QKkjgIH52w0l9HZULg=; b=TyyaDmqADvJ0hXVL1nfxuyAfrNePxO26vKsiF3Ljk0TqxiNM5kwnSSSa5C6Nvs6i+m +RKgtA7wn65nTK9oJ0ZyMQQJN+Ga2ihxWDXc6lmiu+ym5mgPqu7zE6jnt5JrjhYmTRFJ V9pROdERhR0+jDs+xmyraNR+IfH0/Ta/XYXornril200goxvqIXbepfoAuYbxif23xBj YL5+Ez4TRLBP57p3njyrmsnofE6c1HtIR8QhyOqC3wzIOYU/Lw/hwCVCRiUQB1PBGNba vsmDkbyBkkjGxNCWWeU5ZGpCh6lvelc6bm/BJAeIW/NhfeWv7I94PeFLZrRAbsavJTEk g4dw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j187-20020a638bc4000000b003862123af5esi2741786pge.712.2022.04.08.18.49.11; Fri, 08 Apr 2022 18:49:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238551AbiDHSYP (ORCPT + 99 others); Fri, 8 Apr 2022 14:24:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229969AbiDHSYN (ORCPT ); Fri, 8 Apr 2022 14:24:13 -0400 Received: from mail-ot1-f42.google.com (mail-ot1-f42.google.com [209.85.210.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87DFD36DD9E; Fri, 8 Apr 2022 11:22:08 -0700 (PDT) Received: by mail-ot1-f42.google.com with SMTP id i11-20020a9d4a8b000000b005cda3b9754aso6635164otf.12; Fri, 08 Apr 2022 11:22:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Lf2HIDOgcxd3N/SJmrm+i3BU0QKkjgIH52w0l9HZULg=; b=EqzXutcN6XQcvHV0Lyf70TjAnCMJVdNvbZpDJAk+l2d16apb+brgxkf91hYThQx1V8 kxr+E+pysmSEpHCMTqjpBxvdhXruwdHZXPqln9EgMoNDWpmVYRzlpmxIdaP2I3Z6N6YC yUc/UaQ0fdjxK/NAebS9XLh3WjVmtf2aVtb6H3bkBI43SQ2t0EKrAbG/IO4J9EQBUsG1 HJ4kDQji5gg8dc4VoqvMKArAlrfaZ9qtZEK14a7WHnCXbZWE/UpQiCcE5cpHblZ+WORP uulri5klj+DrPAbxSAy9YGASK37alaDRnXUQ+b8gw7gnAs4RbCVm2WaOBblPH12h/d0d IYbg== X-Gm-Message-State: AOAM533M7hmHhZEsat/RmTqE+KKdVkjAR6fHw0iZbj/twx/GkMJMHYTV tConhtg14Xx3xmakarGzb9W/obrPOQ== X-Received: by 2002:a9d:4798:0:b0:5b2:3791:beb7 with SMTP id b24-20020a9d4798000000b005b23791beb7mr7026104otf.123.1649442127768; Fri, 08 Apr 2022 11:22:07 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id z3-20020a056870d68300b000e2a0a74f9fsm394717oap.37.2022.04.08.11.22.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 11:22:07 -0700 (PDT) Received: (nullmailer pid 3810091 invoked by uid 1000); Fri, 08 Apr 2022 18:22:06 -0000 Date: Fri, 8 Apr 2022 13:22:06 -0500 From: Rob Herring To: Javier Martinez Canillas Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Andy Shevchenko , Chen-Yu Tsai , Geert Uytterhoeven , Mark Brown , Daniel Vetter , David Airlie , Krzysztof Kozlowski , Maxime Ripard , devicetree@vger.kernel.org Subject: Re: [PATCH 1/5] dt-bindings: display: ssd1307fb: Deprecate fbdev compatible strings Message-ID: References: <20220407200205.28838-1-javierm@redhat.com> <20220407200205.28838-2-javierm@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220407200205.28838-2-javierm@redhat.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Thu, Apr 07, 2022 at 10:02:00PM +0200, Javier Martinez Canillas wrote: > The current compatible strings for SSD130x I2C controllers contain an -fb > suffix, this seems to indicate that are for a fbdev driver. But the DT is > supposed to describe the hardware and not Linux implementation details. True, but compatible is just an identifier. There's no reason to deprecate unless the binding as a whole needs to be redone. I imagine you also want 2 compatibles for 2 drivers. That's saying you should change your firmware to switch drivers. The fact that we have 2 drivers for the same h/w is a kernel problem. Don't bring DT into it. > Let's deprecate those compatible strings and add a new enum that contains > compatible strings that don't have a -fb suffix. These will be matched by > the ssd130x-i2c DRM driver. > > Signed-off-by: Javier Martinez Canillas > --- > > .../bindings/display/solomon,ssd1307fb.yaml | 36 ++++++++++++------- > 1 file changed, 24 insertions(+), 12 deletions(-) > > diff --git a/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml b/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml > index ade61d502edd..46207f2c12b8 100644 > --- a/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml > +++ b/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml > @@ -12,12 +12,24 @@ maintainers: > > properties: > compatible: > - enum: > - - sinowealth,sh1106-i2c > - - solomon,ssd1305fb-i2c > - - solomon,ssd1306fb-i2c > - - solomon,ssd1307fb-i2c > - - solomon,ssd1309fb-i2c > + oneOf: > + # Deprecated compatible strings > + - items: > + - enum: > + - solomon,ssd1305fb-i2c > + - solomon,ssd1306fb-i2c > + - solomon,ssd1307fb-i2c > + - solomon,ssd1309fb-i2c > + deprecated: true > + > + # SSD130x I2C controllers > + - items: > + - enum: > + - sinowealth,sh1106-i2c > + - solomon,ssd1305-i2c > + - solomon,ssd1306-i2c > + - solomon,ssd1307-i2c > + - solomon,ssd1309-i2c There's also no reason to put the bus interface into the compatible as the same compatible will work on different buses. But since you want to add SPI, just using the 'i2c' one will confuse people. For that reason you could add 'solomon,ssd1305', etc. for both SPI support and I2C DRM. (You should also support the 'fb-i2c' variant in DRM IMO, but doubtful that I'll review that.) Rob