From patchwork Tue Dec 19 17:00:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 181101 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp2078414dyi; Tue, 19 Dec 2023 09:02:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IFQnr74q1waTIUyokXiHoNRbeyYm65SGjLRdRXOP9rarC3Hqw9vJK24MOVZ/8eHNffFKdsy X-Received: by 2002:a17:902:db02:b0:1d3:d8eb:f8a5 with SMTP id m2-20020a170902db0200b001d3d8ebf8a5mr1335629plx.17.1703005324354; Tue, 19 Dec 2023 09:02:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703005324; cv=none; d=google.com; s=arc-20160816; b=wLRlfWlyW3/5dW3CxbG44CHiZ0S/PeAfwvf4wH2sAzrl96iqNAnNqXjjbd80iL1jT/ UTa61croBCpe/k0ACH3RQLr11yJEsFvTS4M3fJomvgoNMb8aE3g4RoXv8toKQy5ZGkne cWIDHgyD0lPiwO/hCZW+piE8eS6snMsm2h+hb51sf8xrebaaYveo5wY7naoOja4mjjgI ZvlXkxuxW+Pl6Lu1MNeQInJXmJ0GCxV5R+owGNoGetuT4wFtxHsEGxogsOfcuhgDkGak sXFfDVPnWFXF3KRoanJvGSFArxD/O+SCH4LztOuCV+O+spzG6r3hU6tibs4hsBBbZVXt YGhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=LuKwY9nW5+R7DeHCNpC77KMqCvSYagjOBXGDTeiO2JI=; fh=AI7vKBwTnYJSXpanaofkzZCBO2pgxuTrrwjgcPUJ6tU=; b=k23QqeFVDY1xMKajKdzn78jlbHgbIMkhzsx1NhUnSWl0oqXW56l6uP4DxvXfb/Z0XN vFJ98XmJuijZB5zHneZr/7tuuzgqZISKzoBo5Kr+gUocqzh6t4Ismk6Y4uT1H8tI1+VJ xh+vnmHZV1DKOBNde4tAAsxBzqDFCOgCCTc9jDWsrSV1NtiT3329wK5kCORFzQ/DH1Hs 3lXydmj9e9XiY1NRVro6oJJQjYDMGCYraaM5sj2wQb1W31kGKQbf2f9eoiBZYRr0ES7k /FhScAGA9T+L2SxztVUhgUA3n8hSZzM1mC18UQxrwhdsftmRh0SehBXcsKKv1m8W/nvt BkLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=aCKPCWwF; spf=pass (google.com: domain of linux-kernel+bounces-5619-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5619-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e3-20020a17090301c300b001d3bb33b4c0si1433660plh.150.2023.12.19.09.02.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 09:02:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5619-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=aCKPCWwF; spf=pass (google.com: domain of linux-kernel+bounces-5619-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5619-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 13889283E78 for ; Tue, 19 Dec 2023 17:02:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66B602E647; Tue, 19 Dec 2023 17:01:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aCKPCWwF" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D908F35295; Tue, 19 Dec 2023 17:01:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-40b5155e154so60381055e9.3; Tue, 19 Dec 2023 09:01:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703005268; x=1703610068; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LuKwY9nW5+R7DeHCNpC77KMqCvSYagjOBXGDTeiO2JI=; b=aCKPCWwFAIn0DirJIaeFdefNIuMSwxFOFd0C3HuKU7TB57A6dN3TlntUSuZQ0d9KSY vJzX6VeBEk4NA8WH9ngm1xxJx7CePA5OIq5MMnefF3gcKA9TqgbRN5rU2ZDjWTaLFXdH K2vJUABGtraa2cv+4/zLqGv5boBiYyl+C/oBlET7z8vg7Th7sHwgWgKZDNESg4fcSg9X XzI5aoXBwnE+8vRtIunIe/363C7ZGI3nrlVIQ1Sq2ZKYtmTsjc3bO55UIdUYqxGBFF3A Ag+1jJ6XuVaOxTvyywD0sUewh07DVWVwfRn81PQiJM7WIiSCj3R9kpqec5M2oaXjDTtR Gugg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703005268; x=1703610068; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LuKwY9nW5+R7DeHCNpC77KMqCvSYagjOBXGDTeiO2JI=; b=vRqctI+jvMeD5EVcdkJkBDuIBme9FNoAwtg97Xd6p43DTvTjC1+3Tj1HmBFReOBn97 Ju1zhc/8Pun5gwVM1gQJKDMyGThckyqlKY8Q5hWFUf9lxufzghzWxEiDLYceFTacUuBm RLsm4h3It7Ck1a6Y9zqZbyhvgoGoFvVSaj98N5L1q4i4J0G8q6aYNy1HWxpWLhhdZBZB zws2C732J5wU5YVyym6+BrY3F1BqQYNwsmf++cHC4THJ+bCvzs2k5Uw7UedbvYF4hHKr 2zqRIOVOMZy1JFm0WyKAF8T8Tj/8hVjd1oGMyx2RVWgbWCz/dnyHf9HE0wwzc2gDyGM7 XFZw== X-Gm-Message-State: AOJu0YwsRVTJhDFn6otHsbRFhVCS2hEFaQZpPAgMvki53+qmXygS0H8u VvOSxZJysqDj8nR7ZvuR9Q== X-Received: by 2002:a05:600c:5408:b0:40d:3084:e66b with SMTP id he8-20020a05600c540800b0040d3084e66bmr127509wmb.163.1703005267997; Tue, 19 Dec 2023 09:01:07 -0800 (PST) Received: from U4.lan ([2a02:810b:f40:4300:7ae5:3e:d1c6:a138]) by smtp.gmail.com with ESMTPSA id i7-20020a05600c354700b0040d2805d158sm3225878wmq.48.2023.12.19.09.01.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 09:01:07 -0800 (PST) From: Alex Bee To: Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee , Conor Dooley Subject: [PATCH v3 01/29] dt-bindings: display: rockchip,inno-hdmi: Document RK3128 compatible Date: Tue, 19 Dec 2023 18:00:31 +0100 Message-ID: <20231219170100.188800-2-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231219170100.188800-1-knaerzche@gmail.com> References: <20231219170100.188800-1-knaerzche@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785730511358320852 X-GMAIL-MSGID: 1785730511358320852 The integration for this SoC is different from the currently existing: It needs it's PHY's reference clock rate to calculate the DDC bus frequency correctly. The controller is also part of a powerdomain, so this gets added as an mandatory property for this variant. Signed-off-by: Alex Bee Reviewed-by: Conor Dooley --- changes in v2: - clarify that the controller itself is part of the powerdomain - simplify clock-names - made power-domains property only allowed (and required) for new variant changes in v3: - collect RB .../display/rockchip/rockchip,inno-hdmi.yaml | 40 ++++++++++++++++++- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml b/Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml index 96889c86849a..be78dcfa1c76 100644 --- a/Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml +++ b/Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml @@ -14,6 +14,7 @@ properties: compatible: enum: - rockchip,rk3036-inno-hdmi + - rockchip,rk3128-inno-hdmi reg: maxItems: 1 @@ -22,10 +23,19 @@ properties: maxItems: 1 clocks: - maxItems: 1 + minItems: 1 + items: + - description: The HDMI controller main clock + - description: The HDMI PHY reference clock clock-names: - const: pclk + minItems: 1 + items: + - const: pclk + - const: ref + + power-domains: + maxItems: 1 ports: $ref: /schemas/graph.yaml#/properties/ports @@ -55,6 +65,32 @@ required: - pinctrl-names - ports +allOf: + - if: + properties: + compatible: + contains: + const: rockchip,rk3036-inno-hdmi + + then: + properties: + power-domains: false + + - if: + properties: + compatible: + contains: + const: rockchip,rk3128-inno-hdmi + + then: + properties: + clocks: + minItems: 2 + clock-names: + minItems: 2 + required: + - power-domains + additionalProperties: false examples: