Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 39 additions & 3 deletions Documentation/devicetree/bindings/power/supply/maxim,max17201.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ title: Maxim MAX17201 fuel gauge
maintainers:
- Dimitri Fedrau <dima.fedrau@gmail.com>

allOf:
- $ref: power-supply.yaml#

properties:
compatible:
oneOf:
- const: maxim,max17201
- const: maxim,max77759-fg
- items:
- enum:
- maxim,max17205
Expand All @@ -25,11 +23,18 @@ properties:
items:
- description: ModelGauge m5 registers
- description: Nonvolatile registers
minItems: 1
maxItems: 2

reg-names:
items:
- const: m5
- const: nvmem
minItems: 1
maxItems: 2

shunt-resistor-micro-ohms:
description: The value of current sense resistor in microohms.

interrupts:
maxItems: 1
Expand All @@ -39,6 +44,37 @@ required:
- reg
- reg-names

allOf:
- $ref: power-supply.yaml#

- if:
properties:
compatible:
contains:
enum:
- maxim,max17201
then:
properties:
reg:
minItems: 2
reg-names:
minItems: 2

- if:
properties:
compatible:
contains:
enum:
- maxim,max77759-fg
then:
properties:
reg:
maxItems: 1
reg-names:
maxItems: 1
required:
- shunt-resistor-micro-ohms

unevaluatedProperties: false

examples:
Expand Down
3 changes: 2 additions & 1 deletion arch/arm64/boot/dts/exynos/google/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

dtb-$(CONFIG_ARCH_EXYNOS) += \
gs101-oriole.dtb \
gs101-raven.dtb
gs101-raven.dtb \
gs101-bluejay.dtb
38 changes: 38 additions & 0 deletions arch/arm64/boot/dts/exynos/google/gs101-bluejay.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Bluejay Device Tree
*
* Copyright 2021-2023 Google LLC
*/

/dts-v1/;

#include "gs101-pixel-common.dtsi"

/ {
model = "Bluejay";
compatible = "google,gs101-bluejay", "google,gs101";
};

&cont_splash_mem {
reg = <0x0 0xfac00000 (1080 * 2400 * 4)>;
status = "okay";
};

&framebuffer0 {
width = <1080>;
height = <2400>;
stride = <(1080 * 4)>;
format = "a8r8g8b8";
status = "okay";
};

&spitouch {
st,dchip_id = /bits/ 8 <0x36 0x48>;
st,max-coords = <1079 2399>;
st,udfps-coords = <540 1717>;
st,touch_offload_id = /bits/ 8 <'0' '0' 'b' '3'>;

fts,x-max = <1080>;
fts,y-max = <2400>;
};
10 changes: 10 additions & 0 deletions arch/arm64/boot/dts/exynos/google/gs101-oriole.dts
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,13 @@
format = "a8r8g8b8";
status = "okay";
};

&spitouch {
st,dchip_id = /bits/ 8 <0x36 0x48>;
st,max-coords = <1079 2399>;
st,udfps-coords = <540 1769>;
st,touch_offload_id = /bits/ 8 <'0' '0' 'o' '6'>;

fts,x-max = <1080>;
fts,y-max = <2400>;
};
Loading