Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp906957lqd; Wed, 24 Apr 2024 23:28:27 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXon+e1BotfQZLQn9OgjpO1tk7jM7HLZOuu9+Ab8W0Bq7wwfl9kQGFKeGyU+m/MbiwlhfMhZTfP69sexfZ6TKa2lpNRj5ozNTYuwSmxcg== X-Google-Smtp-Source: AGHT+IEE4ottV/iR0AEriyJQ4/zE1w+GDJ4KqNDKlfBLTnRYLBajjCNYhP4ngyzj/99nUN3l6Tsq X-Received: by 2002:a9d:5e0d:0:b0:6ed:a862:c24d with SMTP id d13-20020a9d5e0d000000b006eda862c24dmr972852oti.2.1714026507382; Wed, 24 Apr 2024 23:28:27 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d7-20020a633607000000b005f800100171si10389619pga.675.2024.04.24.23.28.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 23:28:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=Pgf1X8se; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-158070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158070-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 F1E07283FE1 for ; Thu, 25 Apr 2024 06:28:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 469FD5A117; Thu, 25 Apr 2024 06:28:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Pgf1X8se" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EAFD940C03; Thu, 25 Apr 2024 06:28:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714026492; cv=none; b=COktXs6a7Dhsf3kffuItWyspkIk+daAX90GJ/14Ow9LWqcMb6rK7n3UahoIAKaHKe8BfYDvapO5KbDLiOJK5IdyP2i8oT1Voc1lcxMIbE5QdgEaPtW0b46KHzeFEeWYce9Sob8whYJVKou7IsLE1hTZLxepiP7Q8W9rnpEp3jcE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714026492; c=relaxed/simple; bh=pMGdU3FRhPiA5xxqEp2nuiQ5CIEIiPPzHAy4OyHVNWU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=p145Ekz26WCeq3Fuv1V67eLJ+tyvWzOeBxE5h44vMIhbTId26+IB77eDR50+aJXPc/+Xur+yWQ1+FjGrKoOrg0oCjBDh/+5LN2uTgFWC65nROOMpmScykn44r1g66vOOzi8ZXCyctYMBnvBsEqEmS8EtMoS/mRET9ngy/QBc8Ss= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Pgf1X8se; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6419DC2BD10; Thu, 25 Apr 2024 06:28:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714026491; bh=pMGdU3FRhPiA5xxqEp2nuiQ5CIEIiPPzHAy4OyHVNWU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Pgf1X8seF8O5V9Xtfub1hocqhBPJJyoT/jz6F+IF7cCSxrHQvohrsJaRqIeIzdA00 Ru4agpKHEuzGolT2vJJy4HeXPoW1j+Fnk3vZ9Xl7IB3wNulHiI6RuTzB0XHteT2EDt aq1E0KUaz0+TuLbQobXhw067tVv+HRLGlmJgVgZ1m8IlC5Z+KUyunNuFhDRAZY+P5R 4OHwKGDc0CP/rjbeujR9jt7X3uP2nzBoh7HS0+6+wFDASrCG3NPMkCFnNIwNTFfI0L /ceJMSutRZ8DUQv9RdFr+qaIHCHF2SK59haKvNQGSa+PwS498rI7ltAjILs80OscEG RXwnKdZp92S4Q== Message-ID: <0d1c6ed9-0c20-4b0e-876d-4b0adf5aa75d@kernel.org> Date: Thu, 25 Apr 2024 08:28:00 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 10/10] arm64: dts: qcom: Add AYN Odin 2 To: wuxilin123@gmail.com, =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Junhao Xie , Neil Armstrong , Jessica Zhang , Sam Ravnborg , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Bjorn Andersson , Konrad Dybcio , Tengfei Fan , Molly Sophia Cc: linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org References: <20240424-ayn-odin2-initial-v1-0-e0aa05c991fd@gmail.com> <20240424-ayn-odin2-initial-v1-10-e0aa05c991fd@gmail.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ307 QWKbBn8P+QFxwl7pDsAKR1InemMAmuykCHl+XgC0LD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: <20240424-ayn-odin2-initial-v1-10-e0aa05c991fd@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 24/04/2024 17:29, Xilin Wu via B4 Relay wrote: > From: Xilin Wu > > AYN Odin 2 is a gaming handheld based on QCS8550, which is derived > from SM8550 but without modem RF system. > > + > +/ { > + model = "AYN Odin 2"; > + compatible = "ayn,odin2", "qcom,qcs8550", "qcom,sm8550"; > + chassis-type = "handset"; > + > + qcom,msm-id = ; > + qcom,board-id = <0x1001f 0>; No, these are not allowed. You did not test your dts. It does not look like you tested the DTS against bindings. Please run `make dtbs_check W=1` (see Documentation/devicetree/bindings/writing-schema.rst or https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/ for instructions). > + > + aliases { > + serial0 = &uart7; > + serial1 = &uart14; > + serial2 = &uart15; > + }; > + > + backlight: backlight { > + compatible = "pwm-backlight"; > + pwms = <&pmk8550_pwm 0 860000>; > + brightness-levels = <1023 0>; > + num-interpolated-steps = <1023>; > + default-brightness-level = <600>; > + power-supply = <&vph_pwr>; > + enable-gpios = <&pmk8550_gpios 5 GPIO_ACTIVE_HIGH>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pwm_backlight_default>; > + status = "okay"; Drop, why do you need it? Do you see it anywhere else in the backlight nodes in DTS? > + }; > + > + fan_pwr: fan-pwr-regulator { > + compatible = "regulator-fixed"; > + regulator-name = "fan_pwr"; > + > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + > + gpio = <&tlmm 109 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&fan_pwr_en>; > + > + regulator-state-mem { > + regulator-off-in-suspend; > + }; > + }; > + > + gpio-keys { > + compatible = "gpio-keys"; > + > + pinctrl-0 = <&volume_up_n>, <&m1_m2_keys_default>; > + pinctrl-names = "default"; > + > + key-volume-up { > + label = "Volume Up"; > + linux,code = ; > + gpios = <&pm8550_gpios 6 GPIO_ACTIVE_LOW>; > + debounce-interval = <15>; > + linux,can-disable; > + wakeup-source; > + }; > + > + m1-button { > + label = "M1"; > + linux,code = ; > + gpios = <&tlmm 57 GPIO_ACTIVE_LOW>; > + }; > + > + m2-button { > + label = "M2"; > + linux,code = ; > + gpios = <&tlmm 58 GPIO_ACTIVE_LOW>; > + }; > + }; > + > + hdmi-out { > + compatible = "hdmi-connector"; > + type = "d"; > + hpd-gpios = <&tlmm 9 GPIO_ACTIVE_HIGH>; > + > + port { > + hdmi_con: endpoint { > + remote-endpoint = <<8912_out>; > + }; > + }; > + }; > + > + hdmi_pwr: hdmi-pwr-regulator { > + compatible = "regulator-fixed"; > + regulator-name = "hdmi_pwr"; > + > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + > + gpio = <&tlmm 10 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + }; > + > + vdd_lcm_2p8: vdd-lcm-2p8-regulator { > + compatible = "regulator-fixed"; > + regulator-name = "vdd_lcm_2p8"; > + > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <2800000>; > + > + gpio = <&tlmm 142 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + }; > + > + led_left_side: led-controller-1 { > + compatible = "pwm-leds-multicolor"; > + > + multi-led { > + label = "left-side"; > + color = ; > + max-brightness = <255>; > + > + led-red { > + color = ; > + pwms = <&pwm_rgb_left 0>; > + }; > + > + led-green { > + color = ; > + pwms = <&pwm_rgb_left 1>; > + }; > + > + led-blue { > + color = ; > + pwms = <&pwm_rgb_left 2>; > + }; > + }; > + }; > + > + led_left_joystick: led-controller-2 { > + compatible = "pwm-leds-multicolor"; > + > + multi-led { > + label = "left-joystick"; > + color = ; > + max-brightness = <255>; > + > + led-red { > + color = ; > + pwms = <&pwm_rgb_left 6>; > + }; > + > + led-green { > + color = ; > + pwms = <&pwm_rgb_left 7>; > + }; > + > + led-blue { > + color = ; > + pwms = <&pwm_rgb_left 8>; > + }; > + }; > + }; > + > + led_right_side: led-controller-3 { > + compatible = "pwm-leds-multicolor"; > + > + multi-led { > + label = "right-side"; > + color = ; > + max-brightness = <255>; > + > + led-red { > + color = ; > + pwms = <&pwm_rgb_right 0>; > + }; > + > + led-green { > + color = ; > + pwms = <&pwm_rgb_right 1>; > + }; > + > + led-blue { > + color = ; > + pwms = <&pwm_rgb_right 2>; > + }; > + }; > + }; > + > + led_right_joystick: led-controller-4 { > + compatible = "pwm-leds-multicolor"; > + > + multi-led { > + label = "right-joystick"; > + color = ; > + max-brightness = <255>; > + > + led-red { > + color = ; > + pwms = <&pwm_rgb_right 6>; > + }; > + > + led-green { > + color = ; > + pwms = <&pwm_rgb_right 7>; > + }; > + > + led-blue { > + color = ; > + pwms = <&pwm_rgb_right 8>; > + }; > + }; > + }; > + > + mcu_3v3: mcu-3v3-regulator { Name all regulators regulator-n, where n is decimal number. Then order the nodes by name. .. > + > +&i2c4 { > + clock-frequency = <400000>; > + status = "okay"; > + > + touchscreen@20 { > + compatible = "syna,rmi4-i2c"; > + reg = <0x20>; > + #address-cells = <1>; > + #size-cells = <0>; > + interrupts-extended = <&tlmm 25 0x2008>; > + > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&ts_int_default>; > + pinctrl-1 = <&ts_int_sleep>; > + > + vio-supply = <&vreg_l12b_1p8>; > + > + syna,startup-delay-ms = <200>; > + syna,reset-delay-ms = <200>; > + > + rmi4-f01@1 { > + syna,nosleep-mode = <0x1>; > + reg = <0x1>; > + }; > + > + rmi4-f12@12 { > + reg = <0x12>; > + syna,rezero-wait-ms = <20>; > + syna,clip-x-low = <0>; > + syna,clip-y-low = <0>; > + syna,clip-x-high = <1080>; > + syna,clip-y-high = <1920>; > + syna,sensor-type = <1>; > + touchscreen-inverted-x; > + }; > + }; Please confirm the status of dtbs_check for your board. I am pretty sure it fails. Best regards, Krzysztof