Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5508981pxb; Mon, 28 Mar 2022 13:29:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbwQXOkl6lWzCL42LQSNndXkJMHIuxZw6mYaA68PvdstkZml/7F9EmmMDboMzYtot++rmQ X-Received: by 2002:a05:6808:1144:b0:2ec:b290:80e7 with SMTP id u4-20020a056808114400b002ecb29080e7mr512918oiu.26.1648499370322; Mon, 28 Mar 2022 13:29:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648499370; cv=none; d=google.com; s=arc-20160816; b=HhYqcvTk0PomRrF6uhxSvxjTXBTk6KuNH1dqOqXZz47zt36uI3JZB7XN4cZbmEa4nd hUAiJR6ZlSscj8t2cQSPvWYRg9wvNBifxFa+uSpZPXtVXz3boJwQD7ButN5ZgOagXFZL MGxkrSvA9zv5QqRtVq0S+7OvJVMPa3yV3N+q4/MqfgSfkM6k7qm6YxeJePLt4hvTYzfm Dr/pgpDMHNxxolktyKOlV4z0ewiUHiEBwzTU8Nxnxqnj5cC8Ee6NCcg7FFTA2ONUVba2 8/F1s1WYiBieEAiOfJv7YW0WvxiKUDPWzluYJp2gFzi1S2lQbZInh1VWOK67JZJHU6SQ 9lgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=0Poh99Zp5F+kUxonhOeLMx5mbCgIAbikKidBnjSuO14=; b=o67mYCrX4zrc8TprtjCzAUvocPaeZC9AoHuvMY9H5KT7M8IUnqWf2E8ehjkwRih+lq R+rgwHH8B61krKTfEvTdY1MoKJMGPZ9GiMVhG0rzCOcIjgthfmaijQtlpPinb5rtAv/M 9YOpMVmLCy8Pl3FKrxi2hynb0Gsk6xeWBmwf9v7nGOkla3j++Fd0h3yDus+viKheIjIr ihU+9IqA7USHj3BjL+t30Toojk/SQQImp+Aq4IuLLzwzUHKV4R8GYEZYTaiVNz/zrsVy mzLKskKL0AodIPh56Lj8xI+IeGeeAqbn36j+ia9+r6j/UIGBPfOjKEkAYY4muhNtygTp BIEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=mk5o9K8+; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=jvzYHtT0; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y184-20020aca32c1000000b002ef936cf5a6si10188938oiy.72.2022.03.28.13.29.18; Mon, 28 Mar 2022 13:29:30 -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; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=mk5o9K8+; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=jvzYHtT0; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235128AbiC0NCb (ORCPT + 99 others); Sun, 27 Mar 2022 09:02:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229967AbiC0NCa (ORCPT ); Sun, 27 Mar 2022 09:02:30 -0400 X-Greylist: delayed 396 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 27 Mar 2022 06:00:51 PDT Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A699817A9B; Sun, 27 Mar 2022 06:00:51 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 311EA3200973; Sun, 27 Mar 2022 08:54:11 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 27 Mar 2022 08:54:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; bh=0Poh99Zp5F+kUx onhOeLMx5mbCgIAbikKidBnjSuO14=; b=mk5o9K8+r5CsemyYP5iZZiLO2vXUvh QeHDy8TFePh/0Ltoq3PfFWCPwVD3SoUOhvnPC8P9LY2TMgfQsgxLOeKaAszy1Z4P tcelHY1V4whM/sIr3Ho+u7JSUW1gzBAaTDFp4R2mU2LgLK4MHXwApLvg7PUxW4t/ HrKkl/nLygPxK0Sl2pxG0X0TIt2RGtY4RV7bPiupwhphiSNtmwoZRak7JMTAXdxZ uMdx9a8NLNbEnVtCLTf35PyVN4z3pxw6TL/G2ypyoPvljoejPRyuTpALcVYi0QZY 0+7NSqfL3798c2PTinQluMpLZ1B7PKjRQyrqcKrU6MqtBmYgAqT+Jwpw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=0Poh99Zp5F+kUxonhOeLMx5mbCgIAbikKidBnjSuO 14=; b=jvzYHtT0IcVKhFVmeiTMy0Y3W6KTZpLc6mnTsvnLbUvPQtltH9jBpwJ4Z vmRUvhmTg1SeltMTaGhgUa+SzXeq1sZNQFD9ocYXr251HpVDUBuyU2Fw92qJpvGT Z8qh9V2T/j1DLp3G7h5OkiNc14Xlbj4ysK2maycFnRy9+ZtoqGAFiG+ih9MkXjnU 6YCeFlyyZNIzKrphmaEyiQ0/o66L1FCFs/y4cD/L97pFnqfbxh5sQ1WuAy3A2ZMo +kZcjeUgCyk8jUdFXOarPz0fsBTsBUZ/3/bTCu8pQmjW0f2q+MyYy4ZSIToDY2ud z+bSHp1SLaCw0xvV9ZkXmUueKN48A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudehhedgheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheplfhirgig uhhnucgjrghnghcuoehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhmqeenuc ggtffrrghtthgvrhhnpeejhfehtdefjeeuudehudevleegudethfduiedugeevudehgefh vefhueeguedtgeenucffohhmrghinhepsghoohhtlhhinhdrtghomhenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjihgrgihunhdrhigrnhhg sehflhihghhorghtrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 27 Mar 2022 08:54:06 -0400 (EDT) Message-ID: <169412ca-9167-b214-d613-4fe0e76ad36a@flygoat.com> Date: Sun, 27 Mar 2022 13:54:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v12 3/6] dt-bindings: display: Add Loongson display controller Content-Language: en-GB To: Sui Jingfeng <15330273260@189.cn>, Maxime Ripard , Thomas Zimmermann , Roland Scheidegger , Zack Rusin , Christian Gmeiner , David Airlie , Daniel Vetter , Rob Herring , Thomas Bogendoerfer , Dan Carpenter , Krzysztof Kozlowski , Andrey Zhizhikin , Sam Ravnborg , "David S . Miller" , Lucas Stach , Maarten Lankhorst , Ilia Mirkin , Qing Zhang , suijingfeng Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org References: <20220327113846.2498146-1-15330273260@189.cn> <20220327113846.2498146-4-15330273260@189.cn> From: Jiaxun Yang In-Reply-To: <20220327113846.2498146-4-15330273260@189.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 在 2022/3/27 12:38, Sui Jingfeng 写道: > Add DT bindings and simple usages for Loongson display controller > found in LS7A1000 bridges chip and LS2k1000 SoC. > > Signed-off-by: Sui Jingfeng <15330273260@189.cn> [...] > + > + - | > + #include > + bus { > + > + #address-cells = <3>; > + #size-cells = <2>; > + #interrupt-cells = <2>; > + > + display-controller@6,1 { > + compatible = "loongson,ls7a1000-dc"; > + reg = <0x3100 0x0 0x0 0x0 0x0>; > + interrupts = <28 IRQ_TYPE_LEVEL_HIGH>; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + i2c@6 { > + compatible = "loongson,gpio-i2c"; > + reg = <0x00001650 0x00000020>; Hi Jingfeng, Thanks for your patch. Just curious about what is this "reg" for? > + loongson,nr = <6>; Why nr start from 6? The approach you are handling I2C seems to be wired.. Actually you can reference how network subsystem is handling MDIO controller built-in into Ethernet controller [1] in this case. It is basically the same problem. [1]: https://elixir.bootlin.com/linux/latest/source/Documentation/devicetree/bindings/net/snps,dwmac.yaml Thanks. - Jiaxun > + loongson,sda = <0>; > + loongson,scl = <1>; > + loongson,udelay = <5>; > + loongson,timeout = <2200>; > + }; > + > + i2c@7 { > + compatible = "loongson,gpio-i2c"; > + reg = <0x00001650 0x00000020>; > + loongson,nr = <7>; > + loongson,sda = <2>; > + loongson,scl = <3>; > + loongson,udelay = <5>; > + loongson,timeout = <2200>; > + }; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + port@0 { > + reg = <0>; > + endpoint { > + remote-endpoint = <&vga_encoder_in>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + endpoint { > + remote-endpoint = <&dvi_encoder_in>; > + }; > + }; > + }; > + }; > + }; > + > + - | > + #include > + bus { > + > + #address-cells = <3>; > + #size-cells = <2>; > + #interrupt-cells = <2>; > + > + display-controller@6,0 { > + compatible = "loongson,ls2k1000-dc"; > + reg = <0x3100 0x0 0x0 0x0 0x0>; > + interrupts = <28 IRQ_TYPE_LEVEL_HIGH>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + port@0 { > + reg = <0>; > + endpoint { > + remote-endpoint = <&panel_in>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + endpoint { > + remote-endpoint = <&hdmi_encoder_in>; > + }; > + }; > + }; > + }; > + }; > +...